/* ========================================
   MODERN ARTICLE PAGE STYLES
   Magazine-style research report layout
   ======================================== */

/* Base Styles for Article Pages */
body.article-page {
    background: #DEB2CF; /* Match main site pink background */
    color: #2c3e50;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
}

/* Navbar - Keep Same as Main Page (No Override) */
body.article-page .navbar {
    /* Inherits from main style.css - no changes needed */
}

/* ========================================
   HERO SECTION WITH IMAGE
   Background image with scroll reveal effect
   ======================================== */

.article-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #DEB2CF;
    overflow: visible;
    margin-top: 80px;
    padding-bottom: 300px; /* Extended even more to ensure full coverage */
    --hero-bg-position: 50%;
}

/* Background Image - extends far behind boxes */
.article-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -400px; /* Extended much further to ensure complete coverage */
    background-size: cover;
    background-position: center var(--hero-bg-position);
    background-repeat: no-repeat;
    background-image: url('../assets/market%20research/edtech%20study.jpeg');
    opacity: 0.5;
    z-index: 0;
    transition: background-position 0.05s ease-out;
}

/* Dark overlay for readability */
.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -400px; /* Match the ::after extension */
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

/* Hero Content */
.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 40px;
    text-align: left;
}

.article-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #EB5D23; /* Changed to orange */
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.article-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
}

/* Category Tags in Hero */
.article-tags {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.article-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   MAIN ARTICLE CONTAINER
   Two-column layout with sidebar
   ======================================== */

.article-container {
    max-width: 1400px;
    margin: -150px auto 80px; /* Increased negative margin for more overlap */
    padding: 0 40px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    position: relative;
    z-index: 10; /* Sits above hero background */
}

/* Wrapper to fix pink background bleed */
.article-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent; /* Transparent to let hero image show through */
    z-index: -1;
    border-radius: 0;
}

/* ========================================
   SIDEBAR NAVIGATION
   Match article box styling with black border
   ======================================== */

.article-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
    background: #FFFFFF; /* Solid white like article box */
    border: 2px solid #292933; /* Black border */
    box-shadow: 2px 2px 0px #333; /* Hard shadow */
    border-radius: 20px;
    padding: 30px 20px;
    isolation: isolate;
    transform: translateZ(0);
    will-change: transform;
}

.article-sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-sidebar nav ul li {
    margin-bottom: 4px;
}

.article-sidebar nav ul li a {
    display: block;
    padding: 12px 16px;
    color: #5a6c7d;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left; /* Left-aligned like research cards */
}

.article-sidebar nav ul li a:hover {
    background: rgba(235, 93, 35, 0.1);
    color: #EB5D23;
    transform: translateX(4px);
}

.article-sidebar nav ul li a.active {
    background: rgba(235, 93, 35, 0.15);
    color: #EB5D23;
    font-weight: 700;
}

/* ========================================
   ARTICLE CONTENT
   Match research card styling with left-aligned text
   ======================================== */

.article-content {
    background: #FFFFFF;
    border: 2px solid #292933;
    box-shadow: 2px 2px 0px #333;
    border-radius: 20px;
    padding: 50px;
    isolation: isolate;
    transform: translateZ(0);
    position: relative;
    /* Ensure crisp edges */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    will-change: transform;
}

/* Intro paragraph with larger text */
.article-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #34495e;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    text-align: left; /* Left-aligned like research cards */
}

/* Typography Hierarchy */
.article-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFAD44;
    margin: 50px 0 20px 0;
    padding-top: 15px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content h2::before {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #EB5D23;
    margin-bottom: 15px;
}

.article-content h2:first-of-type {
    margin-top: 0;
}

.article-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #EB5D23;
    margin: 25px 0 12px 0;
    text-align: left;
}

.article-content p {
    margin-bottom: 18px;
    color: #34495e;
    font-size: 1rem;
    text-align: left;
    line-height: 1.7;
}

.article-content strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Lists */
.event-list-details {
    list-style: none;
    padding-left: 0;
    margin: 18px 0;
}

.event-list-details li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: #34495e;
    line-height: 1.6;
    text-align: left;
}

.event-list-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #EB5D23;
    font-weight: bold;
    font-size: 1.1rem;
}

.event-list-details.checkmark li::before {
    content: '✓';
    color: #EB5D23; /* Changed to orange */
}

/* Nested lists */
.event-list-details ul {
    margin-top: 8px;
    padding-left: 20px;
}

.event-list-details ul li {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* ========================================
   PERSONA CARDS
   Match research card design
   ======================================== */

.persona-card {
    background: #FFFFFF;
    border: 2px solid #292933;
    box-shadow: 2px 2px 0px #333;
    border-radius: 20px;
    padding: 35px;
    margin: 35px 0;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.persona-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #333;
}

.persona-card h5 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #EB5D23;
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    text-align: left;
}

.persona-profile {
    background: rgba(235, 93, 35, 0.05);
    padding: 15px 18px;
    border-radius: 8px;
    margin-bottom: 22px;
    border-left: 4px solid #EB5D23;
    text-align: left;
}

.persona-profile strong {
    color: #EB5D23;
    font-size: 1rem;
    font-weight: 700;
}

.persona-card p strong {
    display: block;
    color: #2c3e50;
    font-size: 1rem;
    margin: 22px 0 8px 0;
    font-weight: 700;
    text-align: left;
}

.persona-card .event-list-details {
    margin-top: 12px;
    margin-bottom: 22px;
}

/* ========================================
   IMAGE ZOOM HOVER
   ======================================== */

/* Wrapper for image zoom effect */
.image-hover-zoom {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid #292933;
    box-shadow: 2px 2px 0px #333;
    margin: 0 0 40px 0;
}

.image-hover-zoom .hero-image-in-content {
    margin: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
    transition: transform 0.3s ease-in-out;
}

.image-hover-zoom:hover .hero-image-in-content {
    transform: scale(1.05);
}

/* ========================================
   DOWNLOAD BUTTONS (FIXED)
   Updated to use .download-btn class with
   Neo-brutalism style (Border + Shadow)
   ======================================== */

.downloads-section {
    margin-top: 30px;
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Renamed to .download-btn to match your HTML */
.download-btn {
    display: inline-flex; /* Ensures icon and text align */
    align-items: center;
    gap: 10px;            /* Spacing between icon and text */
    background: #EB5D23;  /* Orange Background */
    color: #ffffff;       /* White Text */
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    margin-right: 0;      /* Removed right margin as flex gap handles it */
    margin-top: 0;
    transition: all 0.2s ease-in-out;
    border: 2px solid #292933;    /* Black Border */
    box-shadow: 2px 2px 0px #333; /* Hard Shadow */
    font-family: 'Poppins', sans-serif;
}

/* SVG Icon Styling */
.download-btn svg {
    stroke: currentColor;
    width: 20px;
    height: 20px;
}

/* Hover Effects */
.download-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #333;
    background: #d64d1a;
    color: #ffffff;
}


/* =========================================
   ARTICLE FOOTER NAVIGATION (Purple Gradient)
   ========================================= */

.article-footer {
    /* Gradient from Purple (#BD71B4) to darker Violet */
    background: linear-gradient(135deg, #BD71B4 0%, #914E89 100%);
    padding: 60px 20px;
    margin-top: 80px;
    color: #FFFFFF; /* White Text */
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

/* The Container for Back/Next Buttons */
.footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    margin-bottom: 40px;
    /* Semi-transparent white line */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); 
    flex-wrap: wrap;
    gap: 20px;
}

/* General Link Styling */
.footer-nav a {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: #FFFFFF;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Hover State */
.footer-nav a:hover {
    opacity: 0.9;
    transform: translateX(5px);
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.footer-back-link:hover {
    transform: translateX(-5px);
}

/* The "Get in Touch" Section */
.footer-cta {
    text-align: center;
}

.footer-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    color: #FFFFFF;
}

/* The "Get In Touch" Button */
.footer-contact-btn {
    display: inline-block;
    background-color: #000000; 
    color: #FFFFFF;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.footer-contact-btn:hover {
    background-color: #FFFFFF; 
    color: #BD71B4; /* Purple text on White background */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ========================================
   RESPONSIVE DESIGN
   Mobile and tablet adaptations
   ======================================== */

@media (max-width: 1024px) {
    .article-container {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: -40px;
    }
    
    .article-sidebar {
        position: static;
        order: -1;
    }
    
    .article-content {
        padding: 40px 30px;
    }
}

/* ========================================
   TABLET/MOBILE - HAMBURGER MENU & TEXT WRAPPING
   Matches landing page breakpoint (max-width: 992px)
   ======================================== */

/* Hide hamburger and mobile overlay by default */
.hamburger-menu {
    display: none;
}

.mobile-overlay {
    display: none;
}

@media (max-width: 992px) {

    /* Force all containers to be 100% width */
    .article-hero,
    .article-hero-content,
    .article-hero-content-text,
    .article-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Aggressive text wrapping */
    .article-hero-content h1,
    .article-subtitle,
    .article-hero-content-text h1,
    .article-description,
    .article-content h2,
    .article-content h3,
    .article-content h4,
    .article-content h5,
    .article-content p {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
    }
    
    /* Reduce hero padding */
    .article-hero-content {
        padding: 0 20px !important;
    }
    
    .article-hero-content-text {
        padding: 0 25px !important;
    }
    
    /* Ensure text-only hero doesn't overflow */
    .article-hero-text-only {
        padding: 100px 25px 140px 25px !important;
        overflow: hidden !important;
    }
    
    /* Make title sizes more flexible */
    .article-hero-content h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
        line-height: 1.3 !important;
    }
    
    .article-hero-content-text h1 {
        font-size: clamp(1.6rem, 5vw, 2.2rem) !important;
        line-height: 1.3 !important;
    }
    
    .article-description {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    /* Prevent Mobile Overflow */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative !important;
    }
    
    /* Hamburger Menu Button */
    .hamburger-menu {
        display: block;
        position: fixed;
        top: 25px;
        left: 20px;
        z-index: 2000;
        background: transparent !important;
        border: none;
        cursor: pointer;
        padding: 10px;
        width: 50px;
        height: 50px;
        transition: transform 0.3s ease;
    }
    
    .hamburger-menu:hover {
        transform: scale(1.1);
    }
    
    .hamburger-menu svg {
        width: 32px;
        height: 32px;
        display: block;
    }
    
    .hamburger-menu.hidden {
        opacity: 0;
        pointer-events: none;
    }
    
    /* Logo positioning on mobile */
    .logo {
        position: fixed !important;
        top: 38px !important;
        right: 20px;
        left: auto !important;
        z-index: 2000;
        font-size: 1rem !important;
        text-align: right !important;
        line-height: 1 !important;
        margin: 0 !important;
    }
    
    /* Hide desktop navigation */
    .nav-links {
        display: none !important;
    }
    
    /* Mobile Overlay Menu */
    .mobile-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(222, 178, 207, 0.98);
        z-index: 1999;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }
    
    .mobile-overlay.active {
        transform: translateX(0);
    }
    
    /* Close button */
    .mobile-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: transparent;
        border: none;
        color: white;
        font-size: 2.5rem;
        cursor: pointer;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
        padding: 0;
        line-height: 1;
    }
    
    .mobile-close:hover {
        transform: rotate(90deg);
    }
    
    /* Mobile Menu Content */
    .mobile-menu-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-height: 100vh;
        padding: 120px 40px 80px 40px;
    }
    
    /* Mobile Menu Links */
    .mobile-menu-links {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 20px !important;
        width: 100%;
        max-width: 400px;
    }
    
    .mobile-menu-links li {
        text-align: center;
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        position: relative;
    }
    
    .mobile-menu-links li a {
        display: inline-block;
        color: white;
        font-size: 1.8rem !important;
        font-weight: 600;
        text-decoration: none;
        padding: 15px 20px;
        transition: all 0.3s ease;
        border-radius: 8px;
        position: relative;
    }
    
    /* Orange Wiggle Underline Effect */
    .mobile-menu-links li a::after {
        content: '';
        position: absolute;
        left: -5%;
        bottom: 5px;
        width: 110%;
        height: 6px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 15' preserveAspectRatio='none'%3E%3Cpath d='M0,7.5 C4,3 8,12 12,7.5 C16,3 20,11.5 24,7.5 C28,4 32,11 36,7.5 C40,4.5 44,10.5 48,7.5 C52,4 56,11 60,7.5 C64,4.5 68,10.5 72,7.5 C76,4 80,11.5 84,7.5 C88,3.5 92,11 96,7.5 C100,4 104,11 108,7.5 C112,4.5 116,10 120,7.5' stroke='%23FFAD44' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-size: 100% 100%;
        background-repeat: no-repeat;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        opacity: 0;
    }
    
    .mobile-menu-links li a:hover::after {
        transform: scaleX(1);
        opacity: 0.95;
    }
    
    .mobile-menu-links li a.active::after {
        transform: scaleX(1);
        opacity: 0.95;
    }
    
    /* Stagger animation */
    .mobile-overlay.active .mobile-menu-links li:nth-child(1) { animation: slideInLeft 0.5s ease 0.1s forwards; }
    .mobile-overlay.active .mobile-menu-links li:nth-child(2) { animation: slideInLeft 0.5s ease 0.2s forwards; }
    .mobile-overlay.active .mobile-menu-links li:nth-child(3) { animation: slideInLeft 0.5s ease 0.3s forwards; }
    .mobile-overlay.active .mobile-menu-links li:nth-child(4) { animation: slideInLeft 0.5s ease 0.4s forwards; }
    .mobile-overlay.active .mobile-menu-links li:nth-child(5) { animation: slideInLeft 0.5s ease 0.5s forwards; }
    .mobile-overlay.active .mobile-menu-links li:nth-child(6) { animation: slideInLeft 0.5s ease 0.6s forwards; }
    
    @keyframes slideInLeft {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .mobile-menu-links li a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #FFAD44;
    }
    
    .mobile-menu-links li a.active {
        color: #FFAD44;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    /* Transparent navbar on mobile */
    .navbar {
        background-color: transparent !important;
        backdrop-filter: none !important;
        padding: 20px 0px !important;
    }
    
    .navbar.scrolled {
        background-color: transparent !important;
        backdrop-filter: none !important;
    }
    
    /* Text Wrapping Fixes for Tablet */
    .article-hero-content h1,
    .article-subtitle,
    .article-hero-content-text h1,
    .article-description,
    .article-content h2,
    .article-content p,
    .article-intro,
    .article-category-tag {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
    }
    
    .article-hero-content {
        padding: 0 30px !important;
        max-width: 100% !important;
    }
    
    .article-hero-content-text {
        padding: 0 30px !important;
        max-width: 100% !important;
    }
    
    .article-hero {
        min-height: 450px;
    }
    
    .article-hero-text-only {
        padding: 100px 30px 140px 30px !important;
    }
}

/* ========================================
   SMALLER MOBILE - ARTICLE LAYOUT CHANGES
   Phone-specific adjustments (max-width: 768px)
   ======================================== */

@media (max-width: 768px) {
    
    /* Hide sidebar completely on phones */
    .article-sidebar {
        display: none !important;
    }
    
    /* Single column layout */
    .article-container {
        grid-template-columns: 1fr !important;
        gap: 0;
        padding: 0 15px !important;
        margin-top: -80px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Hero adjustments */
    .article-hero {
        height: auto !important;
        min-height: 300px !important;
        padding: 60px 15px 180px 15px !important;
        margin-top: 60px !important;
    }
    
    .article-hero::after,
    .article-hero::before {
        bottom: -250px !important;
    }
    
    .article-hero-content {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .article-hero-content h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }
    
    .article-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    /* Text-only hero for phones */
    .article-hero-text-only {
        padding: 80px 15px 100px 15px !important;
        margin-bottom: 40px !important;
        margin-top: 60px !important;
    }
    
    .article-hero-content-text {
        padding: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .article-hero-content-text h1 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
        margin-bottom: 16px !important;
    }
    
    .article-category-tag {
        font-size: 0.75rem !important;
        padding: 5px 12px !important;
        margin-bottom: 16px !important;
    }
    
    .article-description {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    /* Article content box */
    .article-content {
        padding: 25px 15px !important;
        border-radius: 12px;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .article-content h2 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin: 35px 0 15px 0 !important;
    }
    
    .article-intro {
        font-size: 1rem !important;
        padding-bottom: 20px !important;
        margin-bottom: 30px !important;
    }
    
    .article-content p {
        font-size: 0.95rem !important;
        margin-bottom: 15px !important;
    }
    
    .article-content h5 {
        font-size: 0.95rem !important;
        margin: 20px 0 10px 0 !important;
    }
    
    /* Persona cards */
    .persona-card {
        padding: 20px 15px !important;
        margin: 25px 0 !important;
    }
    
    .persona-card h5 {
        font-size: 1.1rem !important;
    }
    
    /* Tags */
    .article-tags {
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-top: 20px !important;
    }
    
    .article-tag {
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
    }
    
    /* Images */
    .hero-image-in-content,
    .image-hover-zoom {
        margin: 0 0 25px 0 !important;
        border-radius: 8px;
    }
    
    /* Download buttons */
    .download-btn {
        display: flex !important;
        justify-content: center;
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    /* Downloads section */
    .downloads-section {
        margin-top: 20px !important;
        margin-bottom: 60px !important;
    }
    
    /* Downloads section heading */
    .article-content h2#downloads {
        color: #FFAD44 !important;
        font-size: 1.5rem !important;
        margin: 30px 0 20px 0 !important;
        padding-left: 0 !important;
        border-left: 4px solid #EB5D23;
        padding-left: 12px !important;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 60px 15px !important;
    }
    
    .cta-section h2 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }
    
    .cta-section p {
        font-size: 0.95rem !important;
    }
    
    .cta-button {
        display: block;
        padding: 16px 30px;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Footer adjustments */
    .article-footer {
        padding: 60px 15px 40px 15px !important;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
}

/* ========================================
   EXTRA SMALL DEVICES
   Very small phones (max-width: 480px)
   ======================================== */

@media (max-width: 480px) {
    .article-hero-content h1 {
        font-size: 1.5rem !important;
    }
    
    .article-hero-content-text h1 {
        font-size: 1.4rem !important;
    }
    
    .article-content h2 {
        font-size: 1.25rem !important;
    }
    
    .article-container {
        padding: 0 10px !important;
    }
    
    .article-content {
        padding: 20px 12px !important;
    }
}

/* ========================================
   SMOOTH SCROLLING
   ======================================== */

html {
    scroll-behavior: smooth;
}

/* Scroll padding for anchor links */
:target {
    scroll-margin-top: 100px;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .navbar,
    .article-sidebar,
    .download-btn,
    .cta-section {
        display: none;
    }
    
    .article-container {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .article-hero {
        height: auto;
        min-height: 0;
        page-break-inside: avoid;
    }
}

/* ========================================
   TEXT-ONLY HERO VARIANT
   ======================================== */

.article-hero-text-only {
    background: #DEB2CF; /* Pink background */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    height: auto;
    min-height: auto;
    padding: 120px 40px 160px;
    margin-top: 80px;
    margin-bottom: 80px;
    overflow: visible;
}

.article-hero-text-only::before,
.article-hero-text-only::after {
    display: none;
}

.article-hero-content-text {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.article-category-tag {
    display: inline-block;
    background: #EB5D23;
    color: #FFFFFF;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-hero-content-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #2c3e50;
    margin: 0 0 24px 0;
    line-height: 1.2;
}

.article-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #34495e;
    margin: 0;
}

.article-hero-text-only + main .article-container {
    margin-top: 0;
}

/* ========================================
   HERO IMAGE IN CONTENT
   ======================================== */

.hero-image-in-content {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 0 40px 0;
    display: block;
    border: 2px solid #292933;
    box-shadow: 2px 2px 0px #333;
}

/* =========================================== */
/* FOOTER CTA SECTION FOR ARTICLE PAGES       */
/* =========================================== */

/* ========================================
   CASE STUDY NAVIGATION (SEO Links)
   Between article content and footer
   ======================================== */

.case-study-navigation {
    background: #DEB2CF;
    padding: 60px 40px;
}

.case-study-navigation .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.case-study-navigation .nav-link {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.case-study-navigation .nav-link:hover {
    color: #FFFFFF;
}

/* Circle container */
.case-study-navigation .nav-link::before {
    content: '';
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFAD44;
    display: block;
    flex-shrink: 0;
    transition: background 0.3s ease;
    position: relative;
}

/* Arrow icon positioned in the circle */
.case-study-navigation .nav-back::before {
    content: '←';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.case-study-navigation .nav-next::before {
    content: '→';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

/* Hover effect - change circle color and move arrow */
.case-study-navigation .nav-link:hover::before {
    background: #EB5D23;
}

.case-study-navigation .nav-back:hover::before {
    transform: translateX(-4px);
    transition: all 0.3s ease;
}

.case-study-navigation .nav-next:hover::before {
    transform: translateX(4px);
    transition: all 0.3s ease;
}

/* Position and layout for navigation links */
.case-study-navigation .nav-back {
    margin-right: auto;
}

.case-study-navigation .nav-next {
    margin-left: auto;
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .case-study-navigation {
        padding: 40px 20px;
    }
    
    .case-study-navigation .nav-container {
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
    }
    
    .case-study-navigation .nav-link {
        width: 100%;
        font-size: 1rem;
        gap: 12px;
    }
    
    /* Reset margins for mobile */
    .case-study-navigation .nav-back,
    .case-study-navigation .nav-next {
        margin: 0;
    }
    
    /* Keep back arrow on left side on mobile */
    .case-study-navigation .nav-back {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    /* Keep next arrow on right side on mobile */
    .case-study-navigation .nav-next {
        flex-direction: row-reverse;
        justify-content: flex-start;
    }
    
    .case-study-navigation .nav-link::before {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* ========================================
   FOOTER STYLES
   ======================================== */

#footer-cta {
    background: linear-gradient(135deg, #A8D5BA 0%, #DEB2CF 50%, #E8D4C4 100%);
    padding: 120px 40px 60px 40px;
    position: relative;
    overflow: hidden;
}

.footer-cta-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-cta-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    color: #7543A1;
    line-height: 1.2;
    margin-bottom: 80px;
    max-width: 1000px;
}

/* Static word for article pages (no rotation) */
.rotating-word-static {
    color: #FFFFFF;
    display: inline-block;
    position: relative;
}

/* Footer columns */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(117, 67, 161, 0.3);
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #7543A1;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #7543A1;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #FFFFFF;
}

.footer-col p {
    color: #7543A1;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(117, 67, 161, 0.3);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #7543A1;
    margin: 0;
    font-weight: 500;
}

.footer-tagline {
    letter-spacing: 2px;
    font-weight: 700 !important;
}

/* Mobile responsive styles for footer */
@media (max-width: 768px) {
    #footer-cta {
        padding: 80px 20px 40px 20px;
    }
    
    .footer-cta-title {
        font-size: 2rem;
        margin-bottom: 50px;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 50px;
        padding-top: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-top: 30px;
    }
}