/* 1. Theme Variables */
:root {
    /* Base Theme Colors */
    --background: #F5F7FA;
    --card-bg: #FFFFFF;
    --text: #34495E;;
    --shadow: rgba(0, 0, 0, 0.1);
    --footer-bg: #2C3E50;

    /* Light Theme Card Gradients */
    --box-gradient: linear-gradient(145deg, #bf73dd, #6E48AA);
    --48-gradient: linear-gradient(145deg, #ff6b6b, #ffc04d);
    --wim-gradient: linear-gradient(145deg, #4CA1AF, #2C3E50);
    --belly-gradient: linear-gradient(145deg, #63e0c5, #4ef5a2);
    --buteyko-gradient: linear-gradient(145deg, #1f5c9d, #a2b1c0);
    --labour-gradient: linear-gradient(145deg, #e287b2, #9c5076);
    

    /* Card Back Gradients */
    --box-back: linear-gradient(145deg, #BE8AD4, #9B7CC3);
    --48-back: linear-gradient(145deg, #e95f5f, #dd8544);
    --wim-back: linear-gradient(145deg, #7FC7D2, #546E7A);
    --belly-back: linear-gradient(145deg, #63e0c5, #4ef5a2);
    --buteyko-back: linear-gradient(145deg, #1f5c9d, #8ea0b2);
    --labour-back: linear-gradient(145deg, #d278a3, #b15f88);
}

/* 2. Dark Theme */
[data-theme="dark"] {
    /* Dark Theme Colors */
    --background: #1a1a2e;
    --card-bg: #162447;
    --text: #e6e6e6;
    --shadow: rgba(0, 0, 0, 0.2);
    --footer-bg: #1f1f3a;

    /* Dark Theme Card Gradients - FRONT */
    --box-gradient: linear-gradient(145deg, #2d3250, #424874);
    --48-gradient: linear-gradient(145deg, #1a454e, #2c6975);
    --wim-gradient: linear-gradient(145deg, #2b445d, #455565);
    --belly-gradient: linear-gradient(145deg, #2e6e60, #45564e);
    --buteyko-gradient: linear-gradient(145deg, #2c4268, #455a64);
    --labour-gradient: linear-gradient(145deg, #38263a, #4a3249); /* Added labour gradient */
    
/* Card Back Gradients - BACK */
--box-back: linear-gradient(145deg, #353b5e, #4a5085);
--48-back: linear-gradient(145deg, #204f59, #327a87);
--wim-back: linear-gradient(145deg, #324d66, #4c6170);
--belly-back: linear-gradient(145deg, #357a6b, #4d6256);
--buteyko-back: linear-gradient(145deg, #324c76, #4d6370);
--labour-back: linear-gradient(145deg, #3d263a, #533550); /* Added labour back */

    /* Dark theme text colors */
    .hero h2 {
        background: linear-gradient(145deg, #7FC7D2, #546E7A);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    .box-text { color: #8e94c4; }
    .zen-text { color: #55adbd; }
    .wim-text { color: #4CA1AF; }
}

/* 3. Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--background);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header { /* Consider using .site-header class instead */
    padding: 0.5rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* Navbar Styles */
.navbar {
    padding: 1rem;
    background: var(--card-bg);
    box-shadow: 0 2px 5px var(--shadow);
    position: relative; /* Changed from sticky to relative if header isn't sticky */
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-controls {
    display: flex;
    flex-direction: row; /* Ensure row direction */
    align-items: center; /* Center items vertically */
    gap: 1rem; /* Space between hamburger and theme toggle */
    z-index: 1001;
    /* order: 3; /* Example: Push controls to the right visually */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    margin-right: auto; /* Push logo to left */
    background: var(--box-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 1001;
    transition: opacity 0.3s ease;
    /* order: 1; /* Example: Ensure logo is first visually */
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: block;
}

/* Mobile Navigation Menu Styles */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: 300px; /* Fixed width for slide-out */
    height: 100vh;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    gap: 2rem;
    transition: right 0.3s ease; /* Animate the 'right' property */
    z-index: 999;
    box-shadow: -2px 0 5px var(--shadow);
}

.nav-menu li {
    list-style: none;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.7;
}

.nav-menu button { /* Style for button within mobile menu */
    background: var(--box-gradient);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.nav-menu button:hover {
    transform: translateY(-2px);
}

/* Hamburger Menu Button */
.hamburger { /* Assuming this is a <button> now */
    background: none;
    border: none;
    cursor: pointer;
    display: flex; /* Use flex for mobile, none for desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    z-index: 1002;
    /* order: 2; /* Example: Place hamburger before theme toggle */
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text);
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* Removed .theme-toggle-container ruleset */

/* Theme Toggle Button */
.theme-toggle {
    /* Removed top, right, margin-right - rely on flexbox */
    background: var(--card-bg);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex; /* Keep display flex */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 5px var(--shadow);
    /* order: 3; /* Example: Place theme toggle last */
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-icon {
    font-size: 1.2rem;
}

/* Active States (Mobile Menu) */
.nav-menu.active {
    right: 0; /* Slide menu in */
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

body.menu-open {
    overflow: hidden; /* Prevent scrolling background when mobile menu is open */
}

/* --- REMOVED/COMMENTED OUT: Desktop Navigation Styles --- */
/*
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }

    .nav-menu {
        position: static;
        right: auto;
        width: auto;
        height: auto;
        background: none;
        flex-direction: row;
        padding: 0;
        gap: 1.5rem;
        box-shadow: none;
        display: flex;
        align-items: center;
    }

    .nav-menu button {
       display: none;
    }
}
*/
/* --- END DESKTOP NAVIGATION STYLES --- */

/* Mobile Responsive Adjustments (Existing) */
@media (max-width: 768px) {
    .logo {
        font-size: 1.3rem;
    }

    .logo-icon {
        width: 24px;
        height: 24px;
    }

    .nav-controls {
        gap: 0.75rem;
    }

    /* Adjust theme toggle size for mobile if needed */
    .theme-toggle {
        /* Removed top, margin-right */
        width: 2.25rem;
        height: 2.25rem;
    }

    .theme-icon {
        font-size: 1rem;
    }
}

main {
    flex: 1; /* Allow main content to fill available space */
    padding: 1rem;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 1rem 2rem; /* Match card container padding */
    text-align: center;
    border-radius: 15px;
}

.hero h2 {
    background: linear-gradient(145deg, #85e3f1, #537494);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.hero p { /* This now targets the combined paragraph */
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: justify;
    font-size: 1.1rem;
}

.box-text { color: #6E48AA; font-weight: bold; }
.zen-text { color: #ff6b6b; font-weight: bold; }
.wim-text { color: #4CA1AF; font-weight: bold; }
.free-text {
    background: linear-gradient(145deg, #ffc04d, #ff9642);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

/* --- Read More / Read Less Functionality --- */
.read-more-btn {
    display: none; /* Hidden by default, JS shows if needed */
    background: transparent;
    border: 1px solid var(--text);
    color: var(--text);
    padding: 0.4em 0.9em;
    margin-top: 0.8em;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    opacity: 0.9;
    display: inline-block;
}

.read-more-btn:hover {
    opacity: 1;
    background: var(--text);
    color: var(--background);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hero Styles for specific pages */
.page-hero {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--box-gradient);
    color: white;
    margin-bottom: 2rem;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
}

/* Read More - Desktop: Ensure full display */
@media (min-width: 992px) {
    #hero-description {
        display: block !important;
        overflow: visible !important;
        max-height: none !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
    }

    .read-more-btn {
        display: none !important;
    }
}

/* Read More - Mobile: Apply truncation */
@media (max-width: 991px) {
    .hero {
        padding: 1.5rem 1rem;
    }
    .hero h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    #hero-description {
        overflow: hidden;
        display: -webkit-box;
        display: box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        box-orient: vertical;
        max-height: 4.8em; /* Approx 3 lines */
        position: relative;
    }

    #hero-description.expanded {
        -webkit-line-clamp: unset;
        line-clamp: unset;
        max-height: none;
        display: block;
        overflow: visible;
    }

    #hero-description:not(.expanded)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2em;
        background: linear-gradient(transparent, var(--background));
        pointer-events: none;
    }
}
/* End Read More */

/* Card Section */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.card {
    perspective: 1000px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.card-inner {
    flex-grow: 1;
    position: relative;
    width: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card-image {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px var(--shadow);
}

.card:hover .card-inner,
.card-inner.is-flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.card-front {
    background: var(--card-bg);
    box-shadow: 0 10px 20px var(--shadow);
}

.card[data-technique="box"] .card-front { background: var(--box-gradient); color: white; }
.card[data-technique="48"] .card-front { background: var(--48-gradient); color: white; }
.card[data-technique="wim-hof"] .card-front { background: var(--wim-gradient); color: white; }
.card[data-technique="belly"] .card-front { background: var(--belly-gradient); color: white; }
.card[data-technique="buteyko"] .card-front { background: var(--buteyko-gradient); color: white; }
.card[data-technique="labour"] .card-front { background: var(--labour-gradient); color: white; }


.card-back {
    transform: rotateY(180deg);
    box-shadow: 0 10px 20px var(--shadow);
    justify-content: space-between;
}

.card-back h2 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-top: 0;
    margin-bottom: 0.75rem;
    text-align: center;
}

.card-back p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    text-align: justify;
}

.card[data-technique="box"] .card-back { background: var(--box-back); color: white; }
.card[data-technique="48"] .card-back { background: var(--48-back); color: white; }
.card[data-technique="wim-hof"] .card-back { background: var(--wim-back); color: white; }
.card[data-technique="belly"] .card-back { background: var(--belly-back); color: white; }
.card[data-technique="buteyko"] .card-back { background: var(--buteyko-back); color: white; }
.card[data-technique="labour"] .card-back { background: var(--labour-back); color: white; }

.card-front h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.timing {
    font-size: 1.1rem;
    opacity: 0.9;
    padding-top: 0.5rem;
}

.start-btn, .labour-options-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: center;
    width: fit-content;
}

.start-btn:hover, .labour-options-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Article Container Styles (Blog Index Page) */
.blog-container { /* Used on blog index */
    width: min(1200px, 95%);
    margin: 3rem auto;
}

.section-title { /* Generic section title */
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text);
    margin-bottom: 2rem;
    text-align: center;
}

.articles-grid { /* Grid for blog index */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card { /* Card style for blog index */
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    display: flex; /* Use flex for consistent height */
    flex-direction: column;
}

.article-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-title {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.article-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text);
    opacity: 0.7;
    margin-bottom: 0.75rem;
    margin-top: auto;
    padding-top: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.article-meta .article-category {
     font-weight: 500;
     background-color: rgba(0,0,0,0.05);
     padding: 0.2em 0.5em;
     border-radius: 4px;
     text-transform: uppercase;
     letter-spacing: 0.5px;
}
/* .article-meta .article-date { } */

.article-link {
    color: var(--wim-text);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.article-link:hover {
    opacity: 0.7;
}

/* Shared Card Hover Effects */
.card, .article-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover, .article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.view-all-link-container {
    text-align: center; /* Center the button */
    margin-top: 1.5rem; /* Add space above the button */
    
}

.view-all-btn {
    display: inline-block;
    padding: 1.5rem;
    margin-bottom: 2.5rem;           ;
    background-color: var(--primary-color); /* Use your theme's primary color */
    color:#55adbd; /* Text color that contrasts with primary */
    text-decoration: none;
    border: 1px solid #55adbd;
    border-radius: var(--border-radius, 4px);
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.view-all-btn:hover,
.view-all-btn:focus {
    background-color: #55adbd; /* Darker shade for hover/focus */
    color: white;
    transform: translateY(-2px);
    outline: none;
}
.view-all-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
/* Footer */
footer {
    width: 100%;
    background: var(--footer-bg);
    padding: 2rem 1rem;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s ease;
    
}

.links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-bottom: 1rem;
}

footer a, footer button {
    color: white;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    padding: 0.2rem 0.5rem;
}

footer a:hover, footer button:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding-top: 0.5rem;
    margin-top: 0;
    width: 100%;
}

/* Mobile Adjustments for Blog Index */
@media (max-width: 768px) {
    .blog-container {
        margin: 2rem auto;
    }

    .articles-grid {
        grid-template-columns: 1fr; /* Stack articles on mobile */
    }
}

/* Specific Responsive adjustments for Cards/Footer */
@media screen and (max-width: 768px) {
    .card-container {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    .card-front h2 {
        font-size: 1.6rem;
    }
    .card-back h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    .card-back p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    .timing {
        font-size: 1rem;
    }
    .start-btn, .labour-options-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    .links { /* Footer links */
        gap: 0.8rem 1rem;
    }
    footer a, footer button {
        font-size: 0.85rem;
    }
    .copyright {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        padding: 1rem;
        gap: 1rem;
    }
     .hero h2 {
        font-size: 1.3rem;
    }
    .hero p {
        font-size: 0.95rem;
    }
     .card-front h2 {
        font-size: 1.4rem;
    }
     .card-back h2 {
        font-size: 1.1rem;
    }
    .card-back p {
        font-size: 0.85rem;
    }
}

/* Article Section Styles */
.article-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    color: var(--text);
}

.article-hero {
    background-image: linear-gradient(145deg, #7FC7D2, #546E7A);
    
    background-size: cover;
    background-position: center;
    padding: 3.5rem 1.5rem;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
}

.article-hero h1 {
    background: linear-gradient(145deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.article-hero h3 {
    color: #e0e0e0;
    font-weight: 400;
    text-align: left;
    border-left: 6px solid var(--wim-text, #4CA1AF);
    padding-left: 16px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

.article-content {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    line-height: 1.6;
}

.article-content p {
    color: var(--text);
    margin-bottom: 1.2rem;
}

.article-content h2 {
    background: var(--48-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 2.5rem 0 1.2rem;
    font-size: 1.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(204, 153, 0, 0.2);
}

.article-content h3 {
    background: var(--box-gradient);
     -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.article-content h4 {
    color: var(--wim-text, #4CA1AF);
    margin: 1.5rem 0 0.8rem;
    font-size: 1.3rem;
}

.article-divider {
    border: 0;
    height: 1px;
    background: var(--shadow);
    margin: 2.5rem 0;
    opacity: 0.6;
}

.highlights-list {
    background: rgba(31, 92, 157, 0.1);  /* Light blue background matching Buteyko */
    padding: 1.8rem 2rem;
    border-radius: 15px;
    border-left: 8px solid var(--buteyko-gradient, #1f5c9d);  /* Changed to Buteyko blue */
    margin: 1.8rem 0;
    list-style-position: inside;
}

.highlights-list li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.highlights-list li:last-child {
    margin-bottom: 0;
}

.highlights-list b {
     color: #1f5c9d;  /* Fixed this to use the solid Buteyko blue color */
}

/* For dark mode compatibility */
[data-theme="dark"] .highlights-list {
    background: rgba(44, 66, 104, 0.15);  /* Darker Buteyko blue for dark mode */
    border-left: 8px solid var(--buteyko-gradient, #2c4268);
}

[data-theme="dark"] .highlights-list b {
    color: #4d6370;  /* Dark mode Buteyko accent color */
}

.article-image-container {
    text-align: center;
    margin: 2rem 0;
}

.article-image {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    height: auto;
}

.image-caption {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.75;
    margin-top: 0.8rem;
    font-style: italic;
}

.benefits-table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
}

.benefits-table {
    width: 100%;
    border-collapse: collapse;
}

.benefits-table th, .benefits-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--shadow);
}

.benefits-table th {
    background-color: rgba(76, 161, 175, 0.2);
    color: var(--text);
    font-weight: 600;
}

.benefits-table tr:nth-child(even) {
    background-color: rgba(0,0,0,0.03);
}

.benefits-table tr:hover {
    background-color: rgba(76, 161, 175, 0.05);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 2rem 0;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.faq-container {
    margin: 2rem 0;
}

.faq-item {
    margin-bottom: 1.2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px var(--shadow);
}

.faq-question {
    background: var(--wim-gradient, linear-gradient(145deg, #4CA1AF, #2C3E50));
    color: white;
    padding: 1.2rem;
    border-radius: 15px 15px 0 0;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
}

.faq-question:hover {
    opacity: 0.95;
}

.faq-arrow {
    position: absolute;
    right: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    display: none;
    padding: 1.5rem;
    background-color: rgba(76, 161, 175, 0.1);
    border-radius: 0 0 15px 15px;
    color: var(--text);
}

.mobile-table-notice {
    display: none;
    background: rgba(76, 161, 175, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--wim-text, #4CA1AF);
    margin: 1.5rem 0;
}

.article-footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--zen-text, #388278);
    font-style: italic;
    opacity: 0.9;
}

/* Responsive styles */
@media (max-width: 768px) {
    .article-hero {
        padding: 2.5rem 1.2rem;
    }
    
    .article-hero h1 {
        font-size: 1.7rem;
    }
    
    .article-hero h3 {
        font-size: 1rem;
        padding-left: 12px;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .benefits-table-container {
        display: none; /* Hide table on mobile */
    }
    
    .mobile-table-notice {
        display: block;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.3rem;
    }
    
    .article-content h4 {
        font-size: 1.1rem;
    }
    
    .highlights-list {
        padding: 1.2rem 1rem 1.2rem 1.5rem;
    }
}

@media (min-width: 769px) {
    .mobile-table-notice {
        display: none;
    }
}

/* Technique Selection Popup */
.technique-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

/* Labour-specific popup styling with pink gradient */
#labour-popup .popup-content {
    background: var(--labour-back, linear-gradient(145deg, #d278a3, #b15f88));
    color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    max-width: 800px;
    animation: popupFadeIn 0.4s ease-out;
}

#labour-popup .popup-content h2,
#labour-popup .popup-content p {
    color: white;
}

#labour-popup .close-popup {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

#labour-popup .technique-option {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#labour-popup .technique-option:hover {
    transform: translateY(-3px);
}

#labour-popup .technique-option h3 {
    color: white;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
}

#labour-popup .technique-option p {
    color: white;
    opacity: 0.9;
}

.start-option-btn, .info-option-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 25px;
    margin-top: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.start-option-btn:hover, .info-option-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Dark Theme Labour Support */
[data-theme="dark"] #labour-popup .popup-content {
    background: var(--labour-back); /* Use the variable instead of inline gradient */
}

[data-theme="dark"] #labour-popup .technique-option {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Static Information Modal */
.info-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(7px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow);
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.5s ease-out;
}

.close-modal {
    color: var(--text);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--labour-text, #e287b2);
}

.modal-header h2 {
    color: var(--labour-text, #e287b2);
    margin-top: 5px;
}

.modal-header h3 {
    color: var(--text);
    font-weight: 400;
    font-style: italic;
    margin-top: 5px;
    margin-bottom: 25px;
}

.modal-body {
    color: var(--text);
    line-height: 1.6;
}

.modal-image-container {
    text-align: center;
    margin: 20px 0;
}

.modal-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
}

.modal-body h3 {
    color: var(--labour-text, #e287b2);
    margin: 25px 0 15px;
}

.modal-body h4 {
    color: var(--labour-text, #e287b2);
    margin: 20px 0 10px;
}

.modal-body ol, .modal-body ul {
    padding-left: 25px;
    margin-bottom: 20px;
}

.modal-body li {
    margin-bottom: 10px;
}

.technique-benefits {
    background: rgba(226, 135, 178, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--labour-text, #e287b2);
}

[data-theme="dark"] .technique-benefits {
    background: rgba(156, 80, 118, 0.2);
    border-left: 4px solid #9c5076;
}

[data-theme="dark"] .modal-header h2, 
[data-theme="dark"] .modal-body h3,
[data-theme="dark"] .modal-body h4 {
    color: #e287b2;
}

.technique-notes {
    background: rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
}

[data-theme="dark"] .technique-notes {
    background: rgba(255, 255, 255, 0.05);
}

.practice-reminder {
    font-style: italic;
    text-align: center;
    margin: 25px 0 5px;
    font-weight: 500;
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive styles */
@media (max-width: 768px) {
    .popup-content, .modal-content {
        margin: 5% 15px;
        padding: 20px;
    }
    
    .modal-content {
        max-height: 85vh;
    }
}
/* Manual Follow-Along Button */
.manual-follow-along-btn {
    background: var(--labour-back);
    color: white;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 25px;
    margin-top: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.manual-follow-along-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .manual-follow-along-btn {
    background: var(--labour-gradient);
}