/*
 * Theme Name: new Zero JS Dark
 * Theme URI: https://iguru.blog
 * Author: giorgos
 * Description: Ultra-performance dark magazine framework customized with theverge.com colors.
 * Version: 2.5.0
 * License: GNU General Public License v2 or later
 * Text Domain: zero-js
 */

/* ==========================================================================
 *  1. Global Reset & Dark Theme Foundation
 *  ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #e2e2e8; /* High-readability editorial off-white text */
    background-color: #121212; /* The Verge Charcoal Matte Base */
    margin: 0;
    padding: 0;
}

a {
    color: #e3005c; /* Hyper-vibrant signature pink hyperlinks */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
 *  2. Sticky Header Configuration (Fixed Layer Order & Centering)
 *  ========================================================================== */
header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important; /* Keeps the logo container on the highest layout plane */
    background: #121212 !important; /* Solid dark tone completely blocks underlying text pass-through */
    border-bottom: 1px solid #222224 !important; /* Sleek structural layout separator border row */
    padding: 15px 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

.nav-wrapper {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important; /* Centers menu links vertically with your branding logo */
    height: 50px !important;
    background: transparent !important;
}

.logo {
    display: flex !important;
    align-items: center !important;
}

.logo a {
    display: flex !important;
    align-items: center !important;
}

.logo img,
.footer-logo img {
    max-height: 45px !important;
    width: 120px !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
}

.logo-text {
    color: #ffffff !important;
    font-weight: bold !important;
    font-size: 1.4rem !important;
}

.logo-text-footer {
    color: #ffffff !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
}
/* ==========================================================================
 *  3. WordPress Admin Bar Overlap Clearance Layer
 *  ========================================================================== */
body.admin-bar header {
    top: 32px !important;
}

@media (max-width: 782px) {
    body.admin-bar header {
        top: 46px !important;
    }
}

/* ==========================================================================
 *   4. Accessibility Touch Target Padding Matrix & Mobile Menu
 *   ========================================================================== */
.menu-toggle {
    display: none !important;
}

/* FIX: Completely hides the mobile hamburger label on desktop viewports */
.menu-label {
    display: none !important;
    cursor: pointer;
    font-size: 1.8rem;
    color: #ffffff;
    padding: 12px;
}

/* Standard desktop row arrangement alignment */
.nav-menu {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 25px !important;
}

.nav-menu li {
    display: inline-block !important;
}

/* Forces all header navigation links to render in crisp, uniform lowercase white text */
.nav-menu a,
nav ul li a,
nav ul.nav-menu li a {
    display: inline-block !important;
    padding: 10px 4px !important;
    color: #ffffff !important; /* Restores the bright white visibility tracking */
    font-weight: 700 !important;
    text-transform: lowercase !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.3px !important;
}

.nav-menu a:hover,
nav ul li a:hover,
nav ul.nav-menu li a:hover {
    color: #e3005c !important; /* Hot Magenta hover effect */
    text-decoration: none !important;
}

/* ==========================================================================
 *   5. Hero Magazine Grid (Aspect-Locked Non-Cutting Graphics Engine)
 *   ========================================================================== */
.hero-magazine-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 20px !important;
    margin-top: 35px !important;
    margin-bottom: 35px !important;
    box-sizing: border-box !important;
}

/* Base properties for individual featured cards */
.hero-grid-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    background-color: #050505 !important;
    border: 1px solid #222224 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

/* THE CURE: Forces the primary billboard card to dynamically adapt to its image shapes */
.hero-main-feature {
    flex: 1 1 100% !important;
    height: auto !important; /* Disables the strict 400px restriction that cuts off heads */
    min-height: unset !important;
    aspect-ratio: 16 / 9 !important; /* Perfect landscape proportion grid framework */
}

/* Sub-features balance layout properties */
.hero-sub-feature {
    flex: 1 1 45% !important;
    height: auto !important;
    min-height: unset !important;
    aspect-ratio: 16 / 10 !important;
}

.hero-image-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

/* Master image adjustments ensure no black bars appear and faces remain visible */
.hero-image-bg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 20% !important; /* THE TRACKER: Slightly anchors the image focal point higher up to guarantee faces never get chopped */
    transition: transform 0.3s ease !important;
}

.hero-grid-card:hover .hero-image-bg img {
    transform: scale(1.02) !important;
}

.hero-card-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 65%, transparent 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 25px !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
}

.hero-card-tag {
    background: #e3005c !important;
    color: #ffffff !important;
    font-size: 0.7rem !important;
    font-weight: bold !important;
    text-transform: lowercase !important;
    padding: 4px 10px !important;
    margin-bottom: 12px !important;
    width: fit-content !important;
    display: block !important;
}

.hero-card-title {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    letter-spacing: -0.4px !important;
}

.hero-sub-feature .hero-card-title {
    font-size: 1.15rem !important;
}

/* MOBILE PHONE BREAKPOINT DOWN-SCALING OVERRIDES */
@media (max-width: 768px) {
    .hero-magazine-grid {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .hero-grid-card,
    .hero-main-feature,
    .hero-sub-feature {
        width: 100% !important;
        flex: 1 1 100% !important;
        aspect-ratio: 16 / 10 !important;
    }
    .hero-card-title {
        font-size: 1.25rem !important;
    }
}

/* ==========================================================================
 *  6. Trending Infinite Text Marquee (Pure CSS Track Loop)
 *  ========================================================================== */
.trending-ticker-bar {
    background: #000000;
    border-top: 1px solid #222224;
    border-bottom: 1px solid #222224;
    padding: 10px 0;
    margin-bottom: 20px;
    overflow: hidden;
}

.ticker-flex-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ticker-badge {
    background: #e3005c;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: lowercase !important; /* Converts "trending today" label to lowercase */
    padding: 5px 12px;
    border-radius: 0px;
    white-space: nowrap;
    z-index: 5;
    letter-spacing: 0.5px;
}

.ticker-window-frame {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.ticker-moving-track {
    display: flex;
    white-space: nowrap;
    gap: 50px;
    width: max-content;
    animation: marqueeLoop linear infinite;
    animation-duration: 25s;
}

.ticker-moving-track:hover {
    animation-play-state: paused;
}

/* Forces all streaming article titles inside the ticker to flow in lowercase */
.ticker-item-link,
.ticker-moving-track a {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: lowercase !important; /* Converts ticker stream text to lowercase */
}

.ticker-item-link:hover,
.ticker-moving-track a:hover {
    color: #e3005c;
    text-decoration: none;
}

@keyframes marqueeLoop {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
/* ==========================================================================
 *   7. Main Content / Sidebar Split Layout Grid
 *   ========================================================================== */
.main-layout-grid {
    display: flex !important;
    flex-direction: row !important; /* Locks structural layers into a horizontal row track */
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 45px !important; /* Balanced gap between loop feed and right sidebar */
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative;
    z-index: 1;
}

main.content-area,
.main-layout-grid > div:first-child {
    flex: 1 !important;
    min-width: 0 !important; /* Prevents text overflow from pushing the sidebar down */
    display: block !important;
}

aside.site-sidebar {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    display: block !important;
    box-sizing: border-box !important;
    position: -webkit-sticky !important;
    position: sticky !important; /* Sidebar smoothly tracks viewport scrolling */
    top: 100px !important; /* Keeps it clear from your sticky header */
    z-index: 50 !important;
}

/* ==========================================================================
 *   8. Post Summary Cards (Title on Top, Image next to Excerpt - Verified Lock)
 *   ========================================================================== */
.post-summary-card {
    display: flex !important;
    flex-direction: column !important; /* Stacks layout elements in clean top-to-bottom lines */
    width: 100% !important;
    background: transparent !important;
    padding: 25px 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    border-bottom: 1px solid #222224 !important; /* Precision dark separating lines */
    box-sizing: border-box !important;
    position: relative;
    z-index: 1;
}

/* TOP BLOCK ELEMENT 1: Post Title spans edge-to-edge on the absolute top row line */
.post-card-title {
    display: block !important;
    width: 100% !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px !important;
    line-height: 1.3 !important;
}

.post-card-title a {
    color: #ffffff !important;
    display: inline-block !important;
}

.post-card-title a:hover {
    color: #e3005c !important;
    text-decoration: none !important;
}

/* TOP BLOCK ELEMENT 2: Author Meta Details sits flush directly under the title */
.post-card-meta {
    display: block !important;
    width: 100% !important;
    color: #8a8a93 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
}

/* MIDDLE CONTROL ROW: Splits the lower area into side-by-side structural boxes */
.post-card-content,
.post-summary-card > div {
    display: flex !important;
    flex-direction: row !important; /* Forces thumbnail and paragraph onto a single row */
    align-items: flex-start !important; /* Aligns top edges in a straight line */
    justify-content: flex-start !important;
    gap: 30px !important; /* Fixed channel width separating image from excerpt text */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* BOTTOM LEFT SLOT: Widescreen thumbnail preview frame layout box */
.post-thumbnail-wrapper {
    flex-shrink: 0 !important;
    width: 240px !important;
    height: 150px !important; /* Tight landscape depth configuration prevents block cutting */
    display: block !important;
    overflow: hidden !important;
    margin: 0 !important;
}

.mini-thumb,
.post-thumbnail-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Center-fills image frame without distortion lines */
    border-radius: 4px !important;
    border: 1px solid #222224 !important;
    display: block !important;
}

/* BOTTOM RIGHT SLOT: Clean summary post paragraph column next to image */
.entry-summary {
    flex-grow: 1 !important;
    font-size: 0.95rem !important;
    color: #a1a1aa !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* AUTOMATED RESPONSIVE FILTER FOR MOBILE SMARTPHONES */
@media (max-width: 580px) {
    .post-card-content,
    .post-summary-card > div {
        flex-direction: column !important; /* Safe vertical fallback stack on small mobile screens */
        gap: 15px !important;
    }
    .post-thumbnail-wrapper {
        width: 100% !important;
        height: 160px !important;
    }
}

/* ==========================================================================
 *  9. Sidebar Visual Component Layout Blocks
 *  ========================================================================== */
.site-sidebar {
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0px;
    height: fit-content;
}

.widget {
    margin-bottom: 40px;
}

.widget-title {
    color: #e3005c; /* Pink heading rails */
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e3005c;
    padding-bottom: 5px;
}

.widget ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    /* REMOVED VERGE COUNTER RESET MECHANIC TO STRIP NUMBERS */
}

.widget li {
    border-bottom: 1px solid #222224;
    position: relative;
    padding-left: 0px; /* Reset padding since numbers are gone */
}

/* REMOVED .widget li::before ASSIGNMENT TO DELETE GRAPHIC NUMBERS ENTIRELY */

.widget li a {
    display: block;
    padding: 14px 0;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
}

.widget li a:hover {
    color: #e3005c;
}
/* ==========================================================================
 *  10. Single Post Focused Layout - Centered Media Update
 *  ========================================================================== */
.single-post-container {
    max-width: 760px;
    margin: 0 auto;
    padding-top: 0;
}

.single .article-header,
.full-article-view .article-header {
    position: static !important;
    width: 100% !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 30px 0 25px 0 !important;
    transform: none !important;
    box-shadow: none !important;
}

.single .article-meta,
.single .post-card-meta,
.article-header .article-meta,
.full-article-view .article-meta {
    position: static !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    padding: 10px 0 20px 0 !important;
    margin: 0 0 15px 0 !important;
    border: none !important;
    border-bottom: 1px solid #222224 !important;
    color: #8a8a93 !important;
    font-size: 0.9rem !important;
    text-align: left !important;
    transform: none !important;
}

.single .article-title,
.article-header h1 {
    position: static !important;
    margin: 0 0 10px 0 !important;
    color: #ffffff !important;
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    transform: none !important;
}

.full-article-view {
    position: relative;
    z-index: 1;
    padding-top: 10px !important;
}

.continuous-feed-divider {
    text-align: center;
    margin-top: 40px !important;
    margin-bottom: 20px;
    position: relative;
}

.site-breadcrumb {
    margin-top: 20px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
 *   IMAGE & BLOCK MEDIA CENTERING ENGINE (PARENTS & CHILDREN)
 *   ========================================================================== */
/* Formats the core article container to align all blocks down the center axis */
.article-body-content,
.full-article-view {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Forces all paragraph nodes to stretch gracefully within the center block format */
.article-body-content p {
    width: 100% !important;
    max-width: 760px !important; /* Matches your reading column width constraints */
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Master container override targeting absolutely every figure and image wrap slot */
.article-body-content .wp-block-image,
.article-body-content figure,
.article-featured-image,
.full-article-view figure,
div.wp-block-image {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Perfect horizontal axis tracking locks elements dead center */
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 35px auto !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
    transform: none !important;
}

/* Forces the raw image assets themselves to snap into dead center placement */
.article-body-content img,
.article-body-content .wp-block-image img,
.article-body-content figure img,
.responsive-hero-img,
img {
    display: block !important;
    margin: 0 auto !important; /* Locks the illustration graphic directly onto the center axis line */
    max-width: 100% !important;
    height: auto !important;
    float: none !important;
    transform: none !important;
}

/* Center-aligns descriptive caption tracks cleanly beneath your graphics */
.article-body-content figcaption,
.wp-block-image figcaption,
.article-body-content p + em,
.wp-block-image + em {
    text-align: center !important;
    color: #8a8a93 !important;
    font-size: 0.85rem !important;
    margin-top: 14px !important;
    display: block !important;
    width: 100% !important;
    max-width: 760px !important;
}

/* ==========================================================================
 *   11. Single Post Navigation Links & Related Posts Grid Matrix
 *   ========================================================================== */
.post-navigation-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 0;
    margin-top: 40px;
    border-top: 1px solid #222224;
    border-bottom: 1px solid #222224;
}

.nav-link-box {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.link-next {
    text-align: right;
    align-items: flex-end;
}

.nav-direction-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8a8a93;
    margin-bottom: 6px;
}

.nav-link-box a {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    padding: 6px 0;
}

.nav-link-box a:hover {
    color: #e3005c;
    text-decoration: none;
}

.related-posts-section {
    margin-top: 50px;
    margin-bottom: 20px;
}

.related-section-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 25px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.related-card {
    background: transparent;
    border: 1px solid #222224;
    border-radius: 0px;
    overflow: hidden;
}

.related-card:hover {
    border-color: #e3005c;
}

.related-card-link {
    display: block;
    padding: 15px;
}

.related-card-link:hover {
    text-decoration: none;
}

/* RELATED BOX CONTAINER TRACK: Re-scaled to wrap your 380x220 widescreen image crops flawlessly */
.related-thumb-wrapper {
    width: 100% !important;
    height: 220px !important; /* Expanded from 144px to match your updated dimensions cleanly */
    overflow: hidden;
    border-radius: 0px;
    margin-bottom: 12px;
    border: 1px solid #222224;
}


.related-mini-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-title {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
}

.related-card-link:hover .related-card-title {
    color: #e3005c;
}

.related-card-date {
    font-size: 0.8rem;
    color: #8a8a93;
}

@media (min-width: 600px) {
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
 *   12. Zero-JS Dark Mode Comment Section Styles
 *   ========================================================================== */
.comments-area-wrapper {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #222224;
}

.comments-title,
.comment-reply-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment-body {
    background: #000000;
    border: 1px solid #222224;
    border-radius: 0px;
    padding: 20px;
    margin-bottom: 20px;
}

.comment-meta {
    font-size: 0.85rem;
    color: #8a8a93;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-author .fn {
    font-weight: 700;
    color: #ffffff;
    font-style: normal;
}

.comment-metadata a {
    color: #8a8a93;
}

.comment-content {
    color: #e2e2e8;
    font-size: 0.95rem;
    line-height: 1.5;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-form label {
    font-size: 0.9rem;
    color: #e2e2e8;
    display: block;
    margin-bottom: 5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    background: #000000;
    border: 1px solid #222224;
    border-radius: 0px;
    padding: 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #e3005c;
    outline: none;
}

.comment-form .submit {
    background: #e3005c;
    color: #ffffff;
    border: none;
    border-radius: 0px;
    padding: 12px 24px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.95rem;
    align-self: flex-start;
    min-height: 48px;
    transition: background 0.2s ease;
}

.comment-form .submit:hover {
    background: #b8004a;
}

/* ==========================================================================
 *   13. Continuous Infinite Scroll Visual Separator Lines
 *   ========================================================================== */
.continuous-feed-divider::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #222224, transparent);
    margin-bottom: 30px;
}

.continuous-feed-divider {
    text-align: center;
    margin-top: 100px !important;
    margin-bottom: 60px;
    position: relative;
}

.continuous-feed-divider span {
    background: #121212;
    padding: 0 20px;
    color: #8a8a93;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
}

/* ==========================================================================
 *   14. Centered Global Footer Area & Pagination Links
 *   ========================================================================== */
.site-global-footer {
    background: #000000; /* Onyx Footer Track */
    border-top: 1px solid #222224;
    padding: 40px 0;
    margin-top: 60px;
    width: 100%;
    display: block;
    clear: both;
}

/* Force perfect layout centering for all footer children modules */
.site-global-footer .container,
.footer-centered-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
    width: 100%;
    gap: 20px;
}

/* Align navigation links into a centered row and convert text to clean lowercase */
.footer-menu {
    display: flex !important;
    list-style: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 25px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.footer-menu a,
.site-global-footer a,
.copyright-text {
    text-transform: lowercase !important; /* Transforms all uppercase to lowercase smoothly */
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.3px !important;
}

.copyright-text {
    margin: 0;
    color: #8a8a93;
}

.navigation .nav-links a,
.navigation .nav-links .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 16px;
    margin: 4px;
    background: #000000;
    border: 1px solid #222224;
    border-radius: 0px;
    color: #ffffff;
    text-transform: lowercase !important; /* Makes pagination markers uniform */
}

.navigation .nav-links a:hover {
    background: #222224;
    color: #e3005c;
    text-decoration: none;
}

.navigation .nav-links .current {
    background: #e3005c;
    color: #ffffff;
    font-weight: bold;
}

/* ==========================================================================
 *  15. Advanced Mobile Responsive Rules Breakpoint Matrix
 *  ========================================================================== */

/* --- TRACK A: COMPACT TABLET VIEWPORTS (DOWN TO 992PX) --- */
@media (max-width: 992px) {
    .main-layout-grid {
        display: flex !important;
        flex-direction: column !important; /* Stack content and sidebar vertically */
        gap: 40px !important;
    }

    aside.site-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        border-left: none !important;
        padding-left: 0 !important;
        margin-top: 30px !important;
    }

    .post-summary-card {
        padding: 20px 0 !important;
    }

    .post-card-title {
        font-size: 1.25rem !important;
    }
}

/* --- TRACK B: MOBILE SMARTPHONE VIEWPORTS (DOWN TO 768PX) --- */
@media (max-width: 768px) {
    body {
        font-size: 16px !important;
    }

    .container {
        padding: 0 16px !important; /* Tightens side breathing room on small viewports */
    }

    /* 1. Fluid Typography Scaling */
    .single .article-title,
    .article-header h1 {
        font-size: 1.75rem !important; /* Prevents long Greek headings from truncating */
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .article-body-content {
        font-size: 1.05rem !important;
        line-height: 1.75 !important;
    }

    /* 2. Responsive Mobile Hamburg Navigation Trigger System */
    .menu-label {
        display: block !important; /* Unlocks the responsive touch trigger icon */
        cursor: pointer !important;
        font-size: 1.6rem !important;
        color: #ffffff !important;
        padding: 10px !important;
        user-select: none;
    }

    .nav-menu {
        display: none !important; /* Keeps links cleanly hidden inside slide drawer on boot */
        flex-direction: column !important;
        width: 100% !important;
        position: absolute !important;
        top: 80px !important; /* Slides out flush below header track line */
        left: 0 !important;
        background: #000000 !important; /* Pure black dropdown drawer mask */
        padding: 15px 20px !important;
        border-bottom: 1px solid #222224 !important;
        gap: 0 !important;
        z-index: 9998 !important;
    }

    .nav-menu li {
        width: 100% !important;
        border-bottom: 1px solid #141416 !important;
    }

    .nav-menu li:last-child {
        border-bottom: none !important;
    }

    .nav-menu a,
    nav ul li a,
    nav ul.nav-menu li a {
        display: block !important;
        width: 100% !important;
        padding: 14px 0 !important; /* Maximizes fat touch safety layout dimensions */
        font-size: 0.95rem !important;
    }

    /* Natively activates the dropdown drawer toggle chain using purely CSS mechanics */
    .menu-toggle:checked ~ .nav-menu {
        display: flex !important;
    }

    /* 3. Infinite Marquee Mobile Track Slowdown */
    .ticker-moving-track {
        gap: 30px !important;
        animation-duration: 35s !important; /* Slows down track motion for easy smartphone legibility */
    }

    .ticker-badge {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
    }

    /* 4. Complete Mobile Media Fitting Core Rules */
    .article-body-content img,
    .article-body-content .wp-block-image img,
    .article-body-content figure img,
    .responsive-hero-img,
    img {
        width: 100% !important; /* Prevents wide technical sheets from clipping past screen borders */
        height: auto !important;
    }

    /* 5. Safe Multi-Column Stack for Related Posts Grid */
    .related-posts-grid {
        grid-template-columns: 1fr !important; /* Drops 3-column related cards into a balanced vertical deck stack */
        gap: 15px !important;
    }

    /* 6. Footer Realignment Matrices */
    .footer-menu {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;
    }
}

/* --- TRACK C: COMPACT MOBILE VIEWPORTS (DOWN TO 480PX) --- */
@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem !important;
    }

    .post-summary-card {
        flex-direction: column !important; /* Forces layout into a straight clean block line cards stack */
        gap: 15px !important;
    }

    .post-thumbnail-wrapper {
        width: 100% !important;
        height: 160px !important; /* Scales image frame wide across the text block */
    }

    .mini-thumb {
        border-radius: 4px !important;
    }
}
