/*
Theme Name: Automotive Zone
Theme URI: https://automotivezone.in
Author: Automotive Zone
Description: High-performance automotive blog theme. Mobile-first, Dark Mode, Auto-TOC.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: autoblog
*/

/* --------------------------------------------------------------------------
   VARIABLES & SETUP
--------------------------------------------------------------------------- */
/* =========================================
   1. COLOR VARIABLES & DARK MODE ENGINE
   ========================================= */
:root {
    /* LIGHT MODE (Default) */
    --bg-body: #ffffff;
    --bg-card: #f9f9f9;
    --text-main: #1a1a1a;
    --text-muted: #666;
    --border: #e0e0e0;
    --primary: #E63946;
    --hero-pattern: #e5e5e5; /* Dotted pattern color */
}

/* DARK MODE OVERRIDES */
body.dark-mode {
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --text-main: #f1f1f1;
    --text-muted: #a0a0a0;
    --border: #333;
    --hero-pattern: #333; /* Darker dots */
}

/* Base Styles using Variables */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Fix the Search Hero Background for Dark Mode */
.search-hero {
    background-color: var(--bg-body) !important; 
    background-image: radial-gradient(var(--hero-pattern) 1.5px, transparent 1.5px) !important;
    border-bottom: 1px solid var(--border) !important;
}

.hero-heading { color: var(--text-main) !important; }
.hero-subtext { color: var(--text-muted) !important; }

/* Fix the Header Background */
.ab-header {
    background-color: var(--bg-body) !important;
    border-bottom: 1px solid var(--border) !important;
}
.ab-nav { background-color: var(--bg-body) !important; }
ul.ab-menu-list a { color: var(--text-main) !important; }
ul.ab-menu-list a:hover { color: var(--primary) !important; }

/* Dark Mode Button Styling */
.theme-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    background-color: rgba(128,128,128,0.1);
    color: var(--primary);
}

/* Dropdown Menu Fix for Dark Mode */
ul.ab-menu-list ul.sub-menu {
    background: var(--bg-card) !important;
    border-top: 3px solid var(--primary);
}

/* --------------------------------------------------------------------------
   RESET & TYPOGRAPHY
--------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; display: block; }

/* --------------------------------------------------------------------------
   LAYOUT
--------------------------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; width: 100%; }
.site-main { padding: 40px 0; min-height: 60vh; }

/* --------------------------------------------------------------------------
   HEADER
--------------------------------------------------------------------------- */
 /* =========================================
   AB-HEADER CORE STYLES
   ========================================= */
.ab-header {
    background: #ffffff;
    border-bottom: 2px solid #f0f0f0;
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 99999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.ab-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.ab-logo {
    font-size: 24px;
    font-weight: 800;
    color: #E63946;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

/* Base Menu Styles */
ul.ab-menu-list, ul.ab-menu-list ul {
    margin: 0;
    padding: 0;
    list-style: none !important; /* No bullets anywhere */
}

ul.ab-menu-list a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    transition: color 0.2s;
}

ul.ab-menu-list a:hover {
    color: #E63946;
}

/* =========================================
   DESKTOP STYLES (Min-Width: 901px)
   This fixes the "News > Cars" wrapping issue
   ========================================= */
@media (min-width: 901px) {
    /* Hide Mobile Toggle */
    .ab-toggle { display: none; }

    /* 1. Main Horizontal Row */
    ul.ab-menu-list {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }

    /* 2. Parent List Items (Relative for dropdown positioning) */
    ul.ab-menu-list > li {
        position: relative; 
        padding: 10px 0; /* Touch target buffer */
    }

    /* 3. THE DROPDOWN FIX (Hidden Sub-menus) */
    ul.ab-menu-list ul.sub-menu {
        display: none; /* Hide Cars/Bikes by default */
        position: absolute;
        top: 100%;
        left: -20px; /* Align slightly left */
        background: #fff;
        min-width: 200px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 3px solid #E63946;
        flex-direction: column;
        z-index: 1000;
        padding: 10px 0;
    }

    /* 4. Show Dropdown on Hover */
    ul.ab-menu-list li:hover > ul.sub-menu {
        display: flex; /* Show when hovering parent */
    }

    /* 5. Dropdown Links Styling */
    ul.ab-menu-list ul.sub-menu li {
        width: 100%;
    }

    ul.ab-menu-list ul.sub-menu a {
        display: block;
        padding: 10px 20px;
        white-space: nowrap;
        font-size: 14px; /* Slightly smaller for sub-items */
    }
    
    ul.ab-menu-list ul.sub-menu a:hover {
        background-color: #f9f9f9;
    }
}

/* =========================================
   MOBILE RESPONSIVENESS (Max-Width: 900px)
   (Keeping your working fix)
   ========================================= */
@media (max-width: 900px) {
    .ab-toggle {
        display: block;
        background: transparent;
        border: 1px solid #ccc;
        font-size: 24px;
        cursor: pointer;
        padding: 5px 12px;
        border-radius: 4px;
    }

    .ab-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 2px solid #E63946;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .ab-nav.active { display: block; }

    ul.ab-menu-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    ul.ab-menu-list li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    ul.ab-menu-list a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }

    /* Indent Sub-menus on Mobile */
    ul.ab-menu-list ul.sub-menu {
        padding-left: 20px;
        background: #fcfcfc;
        display: block; /* Always show sub-items on mobile */
    }
}
/* --------------------------------------------------------------------------
   HERO
--------------------------------------------------------------------------- */
/* =========================================
   SEARCH HERO SECTION
   ========================================= */

.search-hero {
    background-color: #ffffff;
    /* Dotted Pattern Effect */
    background-image: radial-gradient(#e5e5e5 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    padding: 80px 20px 60px;
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Typography */
.hero-heading {
    font-family: 'Inter', sans-serif; /* Clean Sans-serif like reference */
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a; /* Dark Navy/Black */
    margin-bottom: 15px;
}

.hero-highlight {
    color: #E63946; /* The Pink/Red Brand Color */
}

.hero-subtext {
    font-size: 1.1rem;
    color: #64748b; /* Muted Slate */
    margin-bottom: 40px;
}

/* Search Bar Styling */
.hero-search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50px; /* Pill Shape */
    padding: 5px 5px 5px 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); /* Soft Shadow */
    transition: box-shadow 0.3s ease;
}

.search-wrapper:hover,
.search-wrapper:focus-within {
    box-shadow: 0 15px 35px rgba(230, 57, 70, 0.15); /* Red glow on focus */
    border-color: #E63946;
}

.search-input {
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #333;
    flex-grow: 1;
    outline: none;
    padding: 10px 0;
}

.search-btn {
    background-color: #E63946;
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: 10px;
}

.search-btn:hover {
    background-color: #d62839;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-heading { font-size: 2.2rem; }
    .search-hero { padding: 60px 20px; }
}

/* --------------------------------------------------------------------------
   GRID & CARDS
--------------------------------------------------------------------------- */
/* =========================================
   NEW CARD DESIGN (Text Over Image)
   ========================================= */

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.blog-card {
    position: relative;
    border-radius: 8px; /* Softer corners */
    overflow: hidden;
    background-color: #000; /* Black background prevents white flashes */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 350px; /* Fixed height for uniformity */
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card-link-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

/* 1. The Image */
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-image {
    transform: scale(1.05); /* Zoom effect */
}

/* 2. The Dark Gradient Overlay (Crucial for text reading) */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0; /* Cover full card */
    background: linear-gradient(
        to bottom, 
        rgba(0,0,0,0) 0%, 
        rgba(0,0,0,0.2) 50%, 
        rgba(0,0,0,0.9) 100%
    );
    z-index: 1;
}

/* 3. The Text Content */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    z-index: 2; /* Sits above overlay */
    box-sizing: border-box;
}

/* Category Badge (Top Left) */
.card-cat-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #E63946;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 3;
}

/* Title & Meta */
.card-title {
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.card-meta {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   SINGLE POST
--------------------------------------------------------------------------- */
.full-width-overlay { position: relative; height: 450px; display: flex; align-items: flex-end; margin-bottom: 50px; background-color: #222; }
.header-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; }
.header-bg img { width: 100%; height: 100%; object-fit: cover; }
.dark-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1; }
.header-content { position: relative; z-index: 2; padding-bottom: 50px; width: 100%; }
.entry-title { font-size: 2.5rem; color: white; margin-bottom: 15px; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.entry-meta { color: rgba(255,255,255,0.9); font-weight: 600; }
.content-container { max-width: 800px; }
.entry-content { font-size: 1.1rem; line-height: 1.8; }
.entry-content p { margin-bottom: 25px; }

/* --------------------------------------------------------------------------
   TOC
--------------------------------------------------------------------------- */
.automotive-toc { background: var(--bg-card); border-left: 5px solid var(--primary); padding: 25px; margin: 30px 0 40px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.toc-header { display: flex; justify-content: space-between; align-items: center; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.2rem; margin-bottom: 15px; }
#toggle-toc { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }
#toc-list { list-style: none; padding: 0; margin: 0; }
#toc-list li { margin-bottom: 10px; }
.toc-link { color: var(--text-main); font-size: 0.95rem; }
.toc-link:hover { color: var(--primary); }
.toc-3 { margin-left: 20px; font-size: 0.9rem; color: var(--text-light); }
/* --- Add this to your Table of Contents section --- */
#toc-list {
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 1000px; /* Arbitrary large height for animation */
    opacity: 1;
}

/* When JS adds this class, hide the list */
#toc-list.is-hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

/* --------------------------------------------------------------------------
   FOOTER & PAGINATION
--------------------------------------------------------------------------- */
.pagination-wrapper { margin: 60px 0; text-align: center; }
.nav-links { display: inline-flex; gap: 8px; }
.nav-links a, .nav-links span { padding: 12px 18px; border: 1px solid var(--border); color: var(--text-main); font-weight: 600; border-radius: var(--radius); }
.nav-links .current { background: var(--primary); color: white; border-color: var(--primary); }

.site-footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 70px 0 20px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-col h3 { font-size: 1.2rem; margin-bottom: 25px; color: var(--text-main); border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 5px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col a { color: var(--text-light); }
.site-info { border-top: 1px solid var(--border); padding-top: 25px; text-align: center; color: var(--text-light); font-size: 0.85rem; }

/* --------------------------------------------------------------------------
   MOBILE
--------------------------------------------------------------------------- */
/* --- MOBILE RESPONSIVENESS (Verified) --- */
@media (max-width: 768px) {
    
    /* 1. Header Layout - Ensure Logo and Toggle are on opposite sides */
    .nav-container {
        display: flex;
        justify-content: space-between; /* Pushes Logo Left, Toggle Right */
        align-items: center;
        position: relative; /* Anchor for the absolute menu */
    }

    /* 2. Toggle Button Styling */
    .menu-toggle { 
        display: block; 
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: 8px 12px;
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
        color: var(--text-main);
    }
    
    .menu-toggle:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

    /* 3. The Dropdown Menu Wrapper */
    .main-nav {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%; /* Directly below header */
        left: 0;
        width: 100%; /* Force full width */
        background-color: var(--bg-card);
        border-top: 1px solid var(--border);
        border-bottom: 4px solid var(--primary);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 9999;
        padding: 0;
    }

    /* 4. Active State (Triggered by JS) */
    .main-nav.toggled {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    /* 5. List Items Styling */
    .main-nav ul {
        display: flex;
        flex-direction: column; /* Stack vertically */
        width: 100%;
        margin: 0;
        padding: 0;
        text-align: left; /* Align text to left */
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block; /* Clickable full width */
        padding: 15px 20px;
        font-size: 1rem;
        color: var(--text-main);
    }

    .main-nav a:hover {
        background-color: rgba(0,0,0,0.05);
        padding-left: 25px; /* Slight movement effect */
    }

    /* Animation */
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
/* =========================================
   LAYOUT CONTAINER (The Constraint)
   ========================================= */
:root {
    --container-width: 1200px; /* Adjust this to make it narrower/wider */
}

/* 1. Global Container */
.container,
.ab-container, 
.hero-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto; /* Centers the box */
    padding: 0 20px; /* Safe space on mobile edges */
    box-sizing: border-box;
}

/* 2. Main Wrapper Alignment */
.site-main {
    display: flex;
    flex-direction: column;
    align-items: center; /* Forces children to center */
    width: 100%;
}

/* 3. Force Grids to be Contained */
.post-grid,
.main-wrapper,
.content-container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

/* 4. Ensure Search Hero Content is Contained (Background stays full) */
.search-hero {
    width: 100%;
    display: flex;
    justify-content: center;
}

.search-hero .hero-container {
    width: 100%;
    max-width: var(--container-width);
}

/* =========================================
   FOOTER (Contained Content)
   ========================================= */
.site-footer {
    width: 100%;
    background: var(--bg-card); /* Background stretches full width */
    border-top: 1px solid var(--border);
    margin-top: 80px;
    padding: 70px 0 20px;
    
    /* Flex alignment to ensure inner content is centered */
    display: flex;
    flex-direction: column;
    align-items: center; 
}

/* The inner content of the footer */
.footer-grid {
    width: 100%;
    max-width: var(--container-width); /* Strict Limit */
    margin: 0 auto 50px; /* Center horizontally */
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding: 0 20px; /* Inner spacing */
}

/* Copyright Bar */
.site-info {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    border-top: 1px solid var(--border);
    padding-top: 25px;
    text-align: center;
    color: var(--text-muted);
}
/* 2. Logo Styling */
.ab-logo {
    margin: 0; /* CRITICAL: Remove default H1 margin */
    padding: 0;
    line-height: 1; /* Fix vertical alignment */
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Style the link INSIDE the H1/Div */
.ab-logo a {
    color: #E63946;
    text-decoration: none;
}
/* =========================================
   SINGLE POST HERO (Fixed Image & Fonts)
   ========================================= */

.single-hero {
    position: relative;
    /* Height adjusts slightly per device */
    height: 500px;
    display: flex;
    align-items: flex-end; /* Aligns text to bottom */
    color: white;
    overflow: hidden;
    
    border-radius: 20px;
    margin-top: 30px;
    margin-bottom: 60px;
    
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    background-color: #000; /* Black fallback if image loads slow */
}

/* 1. FIX THE IMAGE (Make it a true background) */
.hero-bg {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 0; /* Send to back */
}

.hero-img-blur {
    width: 100%;
    height: 100%;
    object-fit: cover; /* CRITICAL: Forces image to cover the whole box */
    object-position: center;
    display: block;
}

/* 2. THE OVERLAY (Readability Layer) */
.hero-dark-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Smooth gradient: clear at top, dark at bottom */
    background: linear-gradient(
        to bottom, 
        rgba(0,0,0,0) 0%, 
        rgba(0,0,0,0.3) 50%, 
        rgba(0,0,0,0.85) 100%
    );
    z-index: 1; /* Sits on top of image */
}

/* 3. THE CONTENT (Text) */
.hero-content-wrapper {
    position: relative;
    z-index: 2; /* Sits on top of overlay */
    width: 100%;
    padding: 0 40px 50px 40px; /* Internal spacing */
}

/* Category Pill */
.hero-cat-pill a {
    background: #E63946;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px; /* Matches your other buttons */
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
}

/* FIX THE TITLE SIZE (Responsive Scaling) */
.single-title {
    /* Clamps font size: Min 1.8rem, Max 3.5rem */
    font-size: clamp(1.8rem, 4vw, 3.5rem); 
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    max-width: 900px;
}

/* =========================================
   METADATA ALIGNMENT FIX
   ========================================= */

.hero-meta-data {
    display: flex;
    align-items: center; /* CRITICAL: Vertically center everything */
    flex-wrap: wrap;     /* Allow wrapping only if absolutely necessary */
    gap: 20px;           /* Consistent space between Author and Date */
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    margin-top: auto;    /* Push to bottom if inside a flex column */
}

/* Author Section */
.meta-item.author-item {
    display: flex;
    align-items: center;
    height: 40px; /* Fixed height to match Date */
}

.author-item img {
    border-radius: 50%;
    border: 2px solid #E63946;
    width: 35px;
    height: 35px;
    margin-right: 10px;
    object-fit: cover;
    display: block; /* Removes bottom gap from inline images */
}

/* Date Section */
.meta-item.date-item {
    display: flex;
    align-items: center;
    height: 40px; /* Match height with Author */
    line-height: 1; /* Reset line height to prevent drifting */
}

/* MOBILE FIX */
@media (max-width: 768px) {
    .hero-meta-data {
        gap: 15px;
        align-items: center; /* Force center alignment even on mobile */
    }
    
    .meta-item {
        font-size: 0.85rem;
    }
}

/* =========================================
   MOBILE & TABLET ADJUSTMENTS
   ========================================= */
@media (max-width: 768px) {
    .single-hero {
        height: 400px; /* Slightly shorter on mobile */
        border-radius: 12px;
        margin-top: 15px;
        margin-bottom: 40px;
    }

    .hero-content-wrapper {
        padding: 0 20px 30px 20px; /* Less padding on small screens */
    }

    /* Force font to be readable but not huge */
    .single-title {
        font-size: 2rem; 
    }

    .hero-meta-data {
        flex-wrap: wrap; /* Allow author/date to stack if needed */
        gap: 15px;
        font-size: 0.85rem;
    }
}
/* =========================================
   RELATED POSTS SECTION
   ========================================= */

.related-wrapper {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid var(--border);
    margin-bottom: 60px;
}

.related-heading {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 30px;
    border-left: 5px solid #E63946;
    padding-left: 15px;
    color: var(--text-main);
}