/* Isabella Font Declaration - matching live site */
        @font-face {
            font-family: 'Isabella';
            src: url('../../../../assets/fonts/Isabella.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }
        
        /* Base Reset */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Isabella', Georgia, serif;
            line-height: 1.7;
            color: #f0f0f0;
            background: #000;
            min-height: 100vh;
            overflow-x: hidden;
            position: relative;
        }
        
        /* Parallax Background Container - Ready for images */
        #parallax-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            overflow: hidden;
        }
        
        .parallax-layer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            transition: opacity 1.5s cubic-bezier(0.4, 0.0, 0.2, 1);
            /* Smoother easing curve for more natural transitions */
        }
        
        #parallax-bg-a {
            z-index: 2;
            opacity: 0.3;
            /* Background image will be set via JavaScript */
        }
        
        #parallax-bg-b {
            z-index: 1;
            opacity: 0;
            /* Background image will be set via JavaScript */
        }
        
        /* Main Content Wrapper - Above parallax */
        .content-wrapper {
            position: relative;
            z-index: 10;
            min-height: 100vh;
            padding: 20px;
        }
        
        /* Article Container - Matching live site aesthetic */
        .article-container {
            max-width: 900px;
            margin: 40px auto;
            background: rgba(255, 0, 0, 0.08);
            backdrop-filter: blur(4px);
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 0, 0.2);
            overflow: hidden;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        }
        
        /* Theme Header */
        .theme-header {
            background: rgba(139, 69, 19, 0.3);
            backdrop-filter: blur(5px);
            padding: 60px 40px;
            text-align: center;
            border-bottom: 2px solid rgba(255, 255, 0, 0.2);
        }
        
        .theme-header h1 {
            font-family: 'Isabella', Georgia, serif;
            font-size: 3em;
            color: yellow;
            text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
            margin-bottom: 20px;
            letter-spacing: 1px;
        }
        
        .theme-tagline {
            font-size: 1.2em;
            color: #ffd700;
            opacity: 0.9;
            font-style: italic;
            max-width: 700px;
            margin: 0 auto;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
        }
        
        /* Neville Quote Section - Prominent & Spiritual */
        .neville-quote-section {
            background: rgba(255, 215, 0, 0.08);
            backdrop-filter: blur(5px);
            border-left: 4px solid rgba(255, 255, 0, 0.6);
            border-right: 4px solid rgba(255, 255, 0, 0.6);
            margin: 40px;
            padding: 35px;
            position: relative;
            border-radius: 10px;
        }
        
        .neville-quote-section::before {
            content: """;
            position: absolute;
            top: 10px;
            left: 20px;
            font-size: 80px;
            color: rgba(255, 255, 0, 0.3);
            font-family: Georgia, serif;
            line-height: 1;
        }
        
        .neville-quote {
            font-size: 1.4em;
            font-style: italic;
            color: #ffd700;
            line-height: 1.6;
            position: relative;
            z-index: 1;
            text-align: center;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
        }
        
        .neville-attribution {
            text-align: right;
            margin-top: 20px;
            font-size: 1.1em;
            color: yellow;
            font-weight: 600;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
        }
        
        /* Tab Navigation - NOW 4 TABS */
        .tab-navigation {
            display: flex;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(5px);
            border-bottom: 2px solid rgba(255, 255, 0, 0.3);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .tab-button {
            flex: 1;
            padding: 20px;
            background: none;
            border: none;
            font-family: 'Isabella', Georgia, serif;
            font-size: 1.15em;
            color: rgba(255, 255, 255, 0.7);
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
        }
        
        .tab-button:hover {
            background: rgba(255, 255, 0, 0.1);
            color: yellow;
        }
        
        .tab-button.active {
            color: yellow;
            background: rgba(255, 0, 0, 0.1);
            font-weight: 600;
        }
        
        .tab-button.active::after {
            content: "";
            position: absolute;
            bottom: -2px;
            left: 20%;
            right: 20%;
            height: 3px;
            background: yellow;
            border-radius: 3px 3px 0 0;
            box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
        }
        
        /* Tab Content Panels */
        .tab-content {
            display: none;
            padding: 40px;
            animation: fadeIn 0.5s ease;
            background: rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(5px);
        }
        
        .tab-content.active {
            display: block;
        }
        
        @keyframes fadeIn {
            from { 
                opacity: 0; 
                transform: translateY(20px);
            }
            to { 
                opacity: 1; 
                transform: translateY(0);
            }
        }
        
        /* Content Typography - Optimized for readability */
        h2 {
            color: yellow;
            font-size: 2em;
            font-weight: 400;
            margin: 35px 0 25px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 0, 0.3);
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
            font-family: 'Isabella', Georgia, serif;
        }
        
        h3 {
            color: #ffd700;
            font-size: 1.4em;
            font-weight: 600;
            margin: 25px 0 15px;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
        }
        
        /* Body text - cream for better readability */
        p {
            margin-bottom: 20px;
            color: #f5f5dc;
            font-size: 1.1em;
            line-height: 1.8;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }
        
        /* Lists - Properly styled */
        ul, ol {
            margin: 25px 0;
            padding-left: 35px;
            color: #f5f5dc;
        }
        
        li {
            margin-bottom: 15px;
            line-height: 1.8;
            font-size: 1.05em;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }
        
        /* Definition Sections */
        .theme-definition {
            background: rgba(255, 215, 0, 0.05);
            border-radius: 10px;
            padding: 30px;
            margin: 30px 0;
            border-left: 3px solid rgba(255, 255, 0, 0.5);
            backdrop-filter: blur(5px);
        }
        
        .theme-definition p {
            color: #ffd700;
            font-size: 1.15em;
        }
        
        /* Technique Cards */
        .technique-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 0, 0.2);
            border-radius: 10px;
            padding: 30px;
            margin: 30px 0;
            transition: all 0.3s ease;
        }
        
        .technique-card:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 0, 0.4);
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(255, 255, 0, 0.1);
        }
        
        .technique-card h3 {
            color: yellow;
            margin-top: 0;
        }
        
        /* Q&A Styling */
        .qa-item {
            margin: 35px 0;
            padding: 30px;
            background: rgba(255, 0, 0, 0.05);
            backdrop-filter: blur(5px);
            border-radius: 10px;
            border-left: 3px solid rgba(255, 255, 0, 0.5);
        }
        
        .qa-question {
            font-size: 1.25em;
            font-weight: 600;
            color: yellow;
            margin-bottom: 20px;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
        }
        
        .qa-answer {
            color: #f5f5dc;
            line-height: 1.8;
            font-size: 1.05em;
        }
        
        /* Biblical Verse Containers - Ornamental Display */
        .biblical-verse-container {
            background: rgba(255, 215, 0, 0.06);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 0, 0.25);
            border-radius: 12px;
            margin: 25px 0;
            padding: 25px 30px;
            position: relative;
            box-shadow: 0 4px 16px rgba(255, 215, 0, 0.1);
        }
        
        .biblical-verse-container::before {
            content: """;
            position: absolute;
            top: 10px;
            left: 20px;
            font-size: 40px;
            color: rgba(255, 255, 0, 0.25);
            font-family: Georgia, serif;
            line-height: 1;
        }
        
        .verse-content {
            position: relative;
            z-index: 1;
            margin-left: 15px;
        }
        
        /* Biblical Quote - Distinct from Neville interpretation */
        .biblical-quote {
            font-size: 1.05em;
            line-height: 1.6;
            color: #ffd700;
            font-style: italic;
            margin-bottom: 15px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 0, 0.15);
        }
        
        .verse-reference {
            text-align: right;
            font-size: 0.95em;
            color: yellow;
            font-weight: 600;
            font-family: 'Isabella', Georgia, serif;
            letter-spacing: 0.3px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
            margin-bottom: 15px;
        }
        
        .verse-reference::before {
            content: "— ";
            opacity: 0.7;
        }
        
        /* Neville's Interpretation - Distinct styling */
        .neville-interpretation {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .interpretation-label {
            display: block;
            font-size: 0.9em;
            color: #ffeb3b;
            font-weight: 600;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            opacity: 0.8;
        }
        
        .interpretation-text {
            display: block;
            font-size: 0.95em;
            line-height: 1.6;
            color: #f5f5dc;
            font-style: normal;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }
        
        /* Wrong/Right Example Cards - Visual Distinction */
        .wrong-right-examples {
            margin: 30px 0;
        }
        
        .example-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 0, 0.2);
            border-radius: 12px;
            margin: 25px 0;
            padding: 25px;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .example-card:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 0, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 255, 0, 0.1);
        }
        
        .example-title {
            font-size: 1.25em;
            color: yellow;
            font-weight: 600;
            margin-bottom: 20px;
            text-align: center;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
            font-family: 'Isabella', Georgia, serif;
        }
        
        .wrong-way-section, .right-way-section {
            margin: 15px 0;
            padding: 20px;
            border-radius: 8px;
            backdrop-filter: blur(5px);
        }
        
        .wrong-way-section {
            background: rgba(255, 80, 80, 0.1);
            border-left: 4px solid rgba(255, 80, 80, 0.6);
        }
        
        .right-way-section {
            background: rgba(80, 255, 120, 0.08);
            border-left: 4px solid rgba(80, 255, 120, 0.6);
        }
        
        .section-label {
            font-size: 1.1em;
            font-weight: 600;
            margin-bottom: 10px;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
        }
        
        .wrong-way-section .section-label {
            color: #ff8080;
        }
        
        .right-way-section .section-label {
            color: #80ff98;
        }
        
        .section-content {
            font-size: 1.05em;
            line-height: 1.7;
            color: #f5f5dc;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }
        
        /* YouTube Section - THEME STYLED */
        .youtube-section {
            background: rgba(255, 0, 0, 0.08);
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 0, 0.2);
            border-radius: 15px;
            padding: 30px;
            margin: 30px 0;
        }
        
        .youtube-section h3 {
            color: yellow;
            text-align: center;
            margin-bottom: 25px;
            font-size: 1.5em;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
            font-family: 'Isabella', Georgia, serif;
        }
        
        /* Video Carousel - MOBILE HARDENED */
        .carousel-container {
            position: relative;
            max-width: 100%;
            overflow: hidden;        /* clip edges */
            padding: 0;              /* move side padding to track */
            margin: 25px 0;
        }
        
        .video-carousel {
            display: flex;
            flex-wrap: nowrap;       /* one line, always */
            align-items: flex-start;
            gap: 15px;
            overflow-x: auto;
            overflow-y: hidden;
            padding: 20px 36px;      /* side padding lives on the track */
            position: relative;
            scroll-behavior: smooth;
            scroll-snap-type: x mandatory;
            scroll-padding-left: 36px;
            scroll-padding-right: 36px;
            scrollbar-width: none;
            -ms-overflow-style: none;
            -webkit-overflow-scrolling: touch;   /* momentum on iOS */
            overscroll-behavior-x: contain;      /* stop scroll chaining */
            touch-action: pan-x;                 /* allow horizontal dragging */
        }
        
        .video-carousel::-webkit-scrollbar {
            display: none;
        }
        
        .video-item {
            position: relative;
            flex: 0 0 auto;
            width: clamp(160px, 72vw, 220px);
            cursor: pointer;
            transition: transform 0.3s ease;
            scroll-snap-align: start;
        }
        
        .video-item:hover {
            transform: translateY(-5px);
            border-color: rgba(255, 255, 0, 0.6);
            background: rgba(255, 0, 0, 0.2);
            box-shadow: 0 6px 20px rgba(255, 255, 0, 0.1);
        }
        
        .video-thumbnail {
            width: 100%;
            height: auto;
            aspect-ratio: 16 / 9;
            object-fit: cover;
            border-radius: 8px;
        }
        
        .video-info {
            position: absolute;
            bottom: 8px;
            left: 8px;
            right: 8px;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 8px;
            border-radius: 4px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .verse-ref {
            color: #ffd700;
            font-size: 0.85rem;
            font-weight: bold;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
        }
        
        .info-btn {
            background: rgba(255, 215, 0, 0.3);
            border: 1px solid rgba(255, 215, 0, 0.5);
            color: yellow;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s ease;
            touch-action: manipulation;   /* hints: tap/click, not pan */
            pointer-events: auto;         /* explicit */
        }
        
        .info-btn:hover {
            background: rgba(255, 215, 0, 0.5);
            transform: scale(1.1);
        }
        
        /* Carousel Controls - THEME STYLED */
        .carousel-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 0, 0, 0.3);
            color: yellow;
            border: 2px solid rgba(255, 215, 0, 0.4);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            font-size: 1.5rem;
            cursor: pointer;
            z-index: 3;
            transition: all 0.3s ease;
        }
        
        .carousel-arrow:hover {
            background: rgba(255, 0, 0, 0.5);
            border-color: rgba(255, 215, 0, 0.7);
            transform: translateY(-50%) scale(1.1);
        }
        
        .carousel-arrow.left {
            left: 10px;
        }
        
        .carousel-arrow.right {
            right: 10px;
        }
        
        /* OLD YouTube Subscribe Widget styles - REMOVED */
        /* Now using the grid-based approach at the end of the stylesheet */
        
        /* Comparison Table Styles - FOR COMPARISON PAGES */
        .comparison-table {
            margin: 20px 0;
        }

        .comparison-row {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 15px;
        }

        .comparison-aspect {
            color: yellow;
            font-size: 1.1em;
            font-weight: 600;
            margin-bottom: 15px;
        }

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

        .teacher-column {
            padding: 15px;
            border-left: 3px solid rgba(255, 255, 0, 0.5);
        }

        .teacher-points {
            color: #f5f5dc;
            line-height: 1.7;
        }
        
        /* Approach Examples Styles - FOR COMPARISON PAGES */
        .approach-example-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            margin: 25px 0;
            padding: 25px;
            border: 1px solid rgba(255, 255, 0, 0.2);
        }

        .example-scenario {
            color: yellow;
            font-size: 1.2em;
            margin-bottom: 20px;
            text-align: center;
        }

        .approach-comparison {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .neville-approach, .other-approach {
            padding: 15px;
            border-radius: 8px;
        }

        .neville-approach {
            background: rgba(80, 255, 120, 0.08);
            border-left: 4px solid rgba(80, 255, 120, 0.6);
        }

        .other-approach {
            background: rgba(255, 200, 80, 0.08);
            border-left: 4px solid rgba(255, 200, 80, 0.6);
        }

        .approach-label {
            font-weight: 600;
            margin-bottom: 10px;
            color: yellow;
        }

        .approach-content {
            color: #f5f5dc;
            line-height: 1.7;
        }
        
        /* Playlist Links - THEME STYLED */
        .playlist-links {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            margin-top: 25px;
            padding: 25px;
            background: rgba(255, 0, 0, 0.08);
            border: 1px solid rgba(255, 255, 0, 0.1);
            border-radius: 15px;
        }
        
        .playlist-links h3 {
            color: yellow;
            margin-bottom: 20px;
            font-size: 1.3rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        }
        
        .playlist-buttons {
            display: grid;
            gap: 12px;
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
        }
        
        .playlist-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px 14px;
            background: rgba(255, 0, 0, 0.2);
            color: #f5f5dc;
            border: 2px solid rgba(255, 255, 0, 0.3);
            border-radius: 10px;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.95rem;
            line-height: 1.2;
            text-align: center;
            white-space: normal;           /* allow wrapping */
            word-break: break-word;
            text-wrap: balance;
            box-sizing: border-box;
            min-height: 44px;              /* thumb-friendly */
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }
        
        .playlist-link:hover {
            background: rgba(255, 0, 0, 0.3);
            border-color: rgba(255, 255, 0, 0.6);
            transform: translateY(-2px);
            color: yellow;
        }
        
        /* Related Content Section - THEME STYLED */
        .related-content {
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(5px);
            padding: 40px;
            margin-top: 40px;
            border-top: 2px solid rgba(255, 255, 0, 0.3);
        }
        
        .related-content h2 {
            color: yellow;
            text-align: center;
            margin-bottom: 30px;
            font-size: 1.8rem;
            border-bottom: 2px solid rgba(255, 255, 0, 0.2);
            padding-bottom: 15px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        }
        
        .related-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }
        
        .related-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(5px);
            padding: 25px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 0, 0.2);
            transition: all 0.3s ease;
        }
        
        .related-card:hover {
            background: rgba(255, 255, 255, 0.08);
            transform: translateY(-3px);
            border-color: rgba(255, 255, 0, 0.4);
            box-shadow: 0 6px 20px rgba(255, 255, 0, 0.1);
        }
        
        .related-card h3 {
            color: yellow;
            font-size: 1.2rem;
            margin-bottom: 15px;
            text-align: center;
            border-bottom: 2px solid rgba(255, 255, 0, 0.3);
            padding-bottom: 8px;
        }
        
        .related-card a {
            color: #ffd700;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1em;
            display: block;
            margin-bottom: 10px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
            padding: 8px 12px;
            border-radius: 6px;
            background: rgba(255, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 0, 0.2);
            transition: all 0.3s ease;
        }
        
        .related-card a:hover {
            color: yellow;
            background: rgba(255, 0, 0, 0.2);
            border-color: rgba(255, 255, 0, 0.4);
            transform: translateY(-2px);
        }
        
        .related-card p {
            font-size: 0.95em;
            color: rgba(255, 255, 255, 0.8);
            margin: 0;
        }
        
        /* Footer */
        footer {
            text-align: center;
            margin-top: 60px;
            padding: 20px;
            background: rgba(255, 0, 0, 0.05);
            backdrop-filter: blur(5px);
            border-top: 1px solid rgba(255, 255, 0, 0.2);
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.95em;
        }
        
        /* Custom Scrollbar - Matching live site */
        ::-webkit-scrollbar {
            width: 12px;
        }
        
        ::-webkit-scrollbar-track {
            background: rgba(185, 28, 28, 0.2);
            border-radius: 6px;
        }
        
        ::-webkit-scrollbar-thumb {
            background: rgba(241, 196, 15, 0.8);
            border-radius: 6px;
            border: 1px solid rgba(241, 196, 15, 0.4);
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: rgba(241, 196, 15, 1);
            border: 1px solid rgba(241, 196, 15, 0.6);
        }
        
        /* Video Info Modal Styles (Bible Chapter Style) */
        .video-info-modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
        }
        
        .video-info-modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }
        
        .video-modal-content {
            background: linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(255, 0, 0, 0.1));
            border: 2px solid rgba(255, 255, 0, 0.3);
            border-radius: 15px;
            max-width: 600px;
            width: 90%;
            max-height: 90vh;
            overflow: hidden;                      /* shell doesn't scroll */
            position: relative;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        }
        
        .video-modal-header {
            padding: 20px;
            border-bottom: 1px solid rgba(255, 255, 0, 0.2);
            position: relative;
        }
        
        .video-modal-close {
            position: absolute;
            right: 20px;
            top: 20px;
            background: none;
            border: none;
            color: yellow;
            font-size: 32px;
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        .video-modal-close:hover {
            transform: scale(1.2);
        }
        
        .video-modal-title {
            color: yellow;
            font-size: 1.5rem;
            margin: 0 40px 10px 0;
            font-family: 'Isabella', Georgia, serif;
        }
        
        .video-modal-verse {
            color: #ffd700;
            font-size: 1rem;
            opacity: 0.9;
        }
        
        .video-modal-body {
            max-height: 70vh;                      /* inner area scrolls */
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-gutter: stable both-edges;
            padding: 20px;
            padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 80px); /* ensure buttons aren't cut off */
            display: flex;
            flex-direction: column;
        }
        
        .video-modal-thumbnail {
            width: 100%;
            max-width: 480px;
            height: auto;
            border-radius: 10px;
            margin-bottom: 15px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        }
        
        .video-modal-description {
            color: #f5f5dc;
            line-height: 1.6;
            margin-bottom: 15px;
        }
        
        .video-modal-tags {
            margin: 15px 0;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .video-tag {
            background: rgba(255, 255, 0, 0.1);
            border: 1px solid rgba(255, 255, 0, 0.3);
            color: #ffd700;
            padding: 4px 10px;
            border-radius: 15px;
            font-size: 0.85rem;
        }
        
        .video-modal-actions {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .video-action-btn {
            flex: 1;
            padding: 12px 20px;
            border: 2px solid rgba(255, 255, 0, 0.3);
            background: rgba(255, 0, 0, 0.2);
            color: #f5f5dc;
            border-radius: 8px;
            cursor: pointer;
            text-align: center;
            text-decoration: none;
            transition: all 0.3s;
            font-size: 1rem;
        }
        
        .video-action-btn:hover {
            background: rgba(255, 0, 0, 0.4);
            border-color: rgba(255, 255, 0, 0.6);
            transform: translateY(-2px);
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        /* Prevent background scroll while modal is open */
        body.modal-open {
            overflow: hidden;
            position: fixed;   /* iOS-safe lock */
            width: 100%;
        }
        
        /* Optional: avoid scroll chaining into the page */
        .video-info-modal { 
            overscroll-behavior: contain; 
        }
        
        /* Accessibility */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation: none !important;
                transition: none !important;
            }
        }
        
        /* Mobile Typography */
        @media (max-width: 480px) {
            .playlist-link {
                font-size: clamp(.9rem, 2.5vw + .2rem, 1rem);
            }
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            h1 { font-size: clamp(1.6rem, 4vw + 1rem, 2.1rem); }
            h2 { font-size: clamp(1.2rem, 2.8vw + .6rem, 1.6rem); }
            p, li { font-size: clamp(.86rem, 2.1vw + .28rem, .98rem); line-height: 1.55; }
            .article-container {
                margin: 20px 10px;
                border-radius: 10px;
            }
            
            .theme-header {
                padding: 40px 20px;
            }
            
            .theme-header h1 {
                font-size: 2.2em;
            }
            
            .tab-content,
            .neville-quote-section {
                padding: 25px;
                margin: 25px 20px;
            }
            
            .related-grid {
                grid-template-columns: 1fr;
            }
            
            .tab-button {
                font-size: 1em;
                padding: 15px 10px;
            }
            
            .video-carousel {
                gap: 10px;
                padding: 16px 24px;
                scroll-padding-left: 24px;
                scroll-padding-right: 24px;
            }
            
            .carousel-arrow {
                display: none; /* swipe > arrows */
            }
            
            .playlist-buttons {
                flex-direction: column;
                gap: 12px;
            }
            
            .playlist-link {
                display: flex;
                margin: 0 auto;
                min-width: auto;
                width: 100%;
                max-width: 360px;
            }
            
            /* Kill the inner scrollbar on mobile so only the body scrolls */
            .video-modal-description {
                max-height: none;
                overflow: visible;
            }
        }
        
        /* Kill the outer frame when we're on the Videos tab */
        #videos-panel.tab-content {
            background: transparent !important;
            border: none !important;
            padding: 0 !important;
            margin: 0 !important;
        }

        /* Mobile typography cap for body text (not headings) */
        @media (max-width: 768px) {
            /* paragraphs and list items across the article + tabs + modal */
            main p, main li,
            .tab-content p, .tab-content li,
            .article-footer p,
            .related-card a,
            .playlist-link,
            .video-modal-body p, .video-modal-body li,
            .faq p, .faq li,
            .technique-card p, .technique-card li {
                font-size: .8em !important;
                line-height: 1.6;
            }
            
            /* Specific mobile sizing for wrong/right examples */
            .wrong-right-examples .section-content {
                font-size: .8em !important;
                line-height: 1.6;
            }
        }

        /* Hide scrollbar inside modal on small screens */
        @media (max-width: 390px){
            .video-info-modal *{
                scrollbar-width: none;                /* Firefox */
            }
            .video-info-modal *::-webkit-scrollbar{ /* WebKit */
                display: none;
                width: 0; height: 0;
            }
        }

        /* Ultra-narrow phones (iPhone SE widths) */
        @media (max-width: 360px) {
            .video-carousel { gap: 8px; padding: 14px 18px; }                   /* more room */
            .video-item      { width: clamp(140px, 78vw, 200px); }
            .video-thumbnail { height: 96px; }                                   /* was 120px */
            .verse-ref       { font-size: .8rem; }

            .info-btn { width: 28px; height: 28px; font-size: 12px; }           /* keep hit-size visible */

            .playlist-links { padding: 16px; }
            .playlist-buttons { display: grid; grid-template-columns: 1fr; gap: 10px; }
            .playlist-link {
                padding: 10px 12px;
                font-size: .9rem;          /* stays readable but compact */
                min-height: 44px;          /* thumb-friendly */
            }
        }

        /* iPhone SE and narrow phone polish breakpoint */
        @media (max-width: 430px){
            /* Wrap the tabs into two rows */
            .tab-navigation { 
                flex-wrap: wrap;              /* allow 2 rows */
                row-gap: 6px;                 /* little breathing room between rows */
            }
            .tab-button {
                flex: 1 1 50%;                /* two per row */
                min-width: 0;                 /* prevent overflow from long labels */
                padding: 12px 8px;
                font-size: .9rem;
                line-height: 1.2;
            }
            /* keep the active underline inside its button */
            .tab-button.active::after {
                left: 8px; right: 8px;
            }

            /* Give Videos panel top padding */
            #videos-panel.tab-content { padding-top: 12px !important; }

            /* Modal styles */
            .video-modal-title { font-size: 1.15rem; }
            .video-modal-verse { font-size: .95rem; }
            .video-modal-description { font-size: .95rem; line-height: 1.5; }
            .video-action-btn { padding: 10px 12px; font-size: .95rem; }
            .video-modal-body { padding: 16px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 70px); }
        }

        /* ALL PREVIOUS SUBSCRIBE CSS REMOVED - CLEAN SLATE */

        /* === YouTube Subscribe — single source of truth === */
        .subscribe-label{
          display:block;
          margin-bottom:2px;
          color:#FFB300;
          font-weight:700;
          font-size:1.1em;
          text-shadow:2px 2px 4px rgba(0,0,0,.7);
        }

        /* PLAYLIST: centered (same class you use on the page) */
        .yt-subscribe{
          display:grid;
          place-items:center;
          grid-auto-flow:row;           /* label above, button below */
          width:100%;
          max-width:800px;              /* matches playlist buttons */
          margin:20px auto 15px;        /* centers within the section */
          text-align:center;
          gap:6px;
        }
        /* Force the YouTube iframe host to behave */
        .yt-subscribe .g-ytsubscribe{ display:inline-block !important; }
        .yt-subscribe .g-ytsubscribe iframe{
          display:block !important;
          margin:0 auto !important;
        }

        /* MODAL: left-aligned (flex-start) on one row */
        .yt-subscribe--modal{
          display:flex;
          align-items:center;
          justify-content:flex-start;   /* left align */
          gap:10px;
          width:100%;
          /*max-width:480px;*/
          margin:14px auto 18px;
          text-align:left;
        }
        /* Keep Google's widget from recentring itself */
        .yt-subscribe--modal .g-ytsubscribe{
          display:inline-flex !important;
          align-items:center !important;
          justify-content:flex-start !important;
        }
        .yt-subscribe--modal .g-ytsubscribe > *{
          display:block !important;
          margin:0 !important;          /* no auto-centering in modal */
        }

        /* Safety on ultra-narrow phones (iPhone SE, ≤400px) */
        @media (max-width:400px){
          .yt-subscribe--modal{
            flex-direction:row;       /* stack: label above button */
            align-items:center;
            max-width:100%;
            text-align:center;
          }
        }

        /* Prevent horizontal clipping inside the modal body */
        .video-modal-body{ overflow-x:hidden; }

        /* playlist section: simple left-aligned row */
        .playlist-links .yt-subscribe{
          display: flex !important;           /* override grid */
          flex-direction: row !important;     /* Subscribe: <widget> on one line */
          align-items: center !important;     /* vertically center */
          justify-content: flex-start !important;  /* left align */
          gap: 10px !important;
          width: 100% !important;
          margin: 14px 0 18px !important;     /* no auto centering */
          text-align: left !important;
        }

        /* ensure Subscribe label uses our color */
        .playlist-links .yt-subscribe .subscribe-label{
          color: #FFB300 !important;
        }

        /* force Google's widget to behave */
        .playlist-links .yt-subscribe .g-ytsubscribe{ 
          display:inline-block !important; 
          margin:0 !important; 
        }
        .playlist-links .yt-subscribe .g-ytsubscribe iframe{
          display:block !important;
          margin:0 !important;
        }
        
        /* --- MOBILE FIX FOR COMPARISON + APPROACH SECTIONS --- */
        @media (max-width: 768px) {
          /* 1) QUICK COMPARISON — stack columns, tighten type */
          .comparison-row { padding: 16px; }
          .comparison-aspect {
            font-size: clamp(0.95rem, 2.2vw + .2rem, 1.1rem);
            margin-bottom: 10px;
          }
          .teacher-columns {
            display: grid;
            grid-template-columns: 1fr;      /* two rows on mobile */
            gap: 12px;
          }
          .teacher-column {
            padding: 12px 0;
            border-left: none;               /* remove vertical divider when stacked */
          }
          .teacher-column + .teacher-column {
            border-top: 2px solid rgba(255,255,0,.3);  /* row divider */
          }
          .teacher-name {
            color: yellow;
            font-weight: 600;
            margin-bottom: 6px;
            font-size: clamp(.95rem, 2.1vw + .2rem, 1.05rem);
            line-height: 1.25;
          }
          .teacher-points {
            font-size: clamp(.82rem, 1.8vw + .24rem, .95rem); /* match your small mobile body size */
            line-height: 1.55;
            overflow-wrap: anywhere;
          }

          /* 2) APPROACH EXAMPLES — stack columns, tighten type */
          .approach-example-card { padding: 16px; }
          .example-scenario {
            font-size: clamp(1.0rem, 2.4vw + .2rem, 1.15rem);
            margin-bottom: 12px;
            text-align: center;
          }
          .approach-comparison {
            display: grid;
            grid-template-columns: 1fr;      /* two rows on mobile */
            gap: 12px;
          }
          .neville-approach,
          .other-approach {
            padding: 12px;
          }
          .approach-label {
            color: yellow;
            font-weight: 600;
            margin-bottom: 8px;
            font-size: clamp(.9rem, 2vw + .2rem, 1rem);
            line-height: 1.25;
          }
          .approach-content {
            font-size: clamp(.82rem, 1.8vw + .24rem, .95rem); /* same small mobile body size */
            line-height: 1.55;
            overflow-wrap: anywhere;
          }
        }

        /* Extra polish for ultra-narrow devices */
        @media (max-width: 380px) {
          .comparison-row, .approach-example-card { padding: 14px; }
          .teacher-columns, .approach-comparison { gap: 10px; }
        }

/* Toggle Circle Navigation System */
.global-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    animation: slideInFromTopRight 0.5s ease;
}

/* Circle toggle button */
.nav-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-toggle-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
}

.nav-toggle-btn.active {
    background: rgba(255, 215, 0, 0.3);
    transform: rotate(180deg);
}

/* Hidden navigation panel */
.nav-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(255, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
    padding: 15px;
    min-width: 200px;
    
    /* Hidden by default */
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-panel.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Navigation sections in panel */
.nav-section {
    position: relative;
    margin-bottom: 8px;
}

.nav-section:last-of-type {
    margin-bottom: 0;
}

.nav-main-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffd700;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Isabella', Georgia, serif;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
    cursor: pointer;
}

.nav-main-item:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateX(-3px);
}

/* Submenu that appears on hover */
.nav-submenu {
    position: absolute;
    right: 100%;
    top: 0;
    margin-right: -2px; /* Overlap to prevent hover gap */
    background: rgba(255, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
    padding: 10px;
    min-width: 150px;
    z-index: 60;
    
    /* Hidden by default */
    opacity: 0;
    transform: translateX(6px);
    pointer-events: none;
    transition: opacity 0.12s ease, transform 0.12s ease;
}

/* Show submenu when section OR submenu is hovered */
.nav-section:hover .nav-submenu,
.nav-section:focus-within .nav-submenu,
.nav-submenu:hover {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.nav-submenu a {
    display: block;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    color: #f0f0f0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-family: 'Isabella', Georgia, serif;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.nav-submenu a:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    transform: translateX(-2px);
}

/* Divider */
.nav-divider {
    height: 1px;
    background: rgba(255, 215, 0, 0.3);
    margin: 10px 0;
}

/* Contextual navigation in panel */
.nav-contextual {
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.4);
    color: #ccc;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-family: 'Isabella', Georgia, serif;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.1);
    display: flex;
    align-items: center;
}

.nav-contextual:hover {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
}

.nav-contextual .arrow {
    margin-right: 8px;
    font-size: 1rem;
}

/* Keep nav above all */
.global-nav {
    z-index: 2000;
}

/* Mobile: replicate desktop floating panel & left-flyout */
@media (max-width: 768px) {
    /* Button stays at corner */
    .global-nav {
        top: 12px;
        right: 12px;
    }
    
    /* Floating panel anchored to top-right; no full-screen */
    .nav-panel {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 52px);
        right: 12px;
        left: auto;
        bottom: auto;
        
        width: 260px; /* compact menu width */
        max-height: 75vh; /* scroll panel if tall */
        overflow-y: auto;
        overflow-x: visible; /* let flyouts render beyond panel */
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        
        margin: 0;
        padding: 12px;
        border-radius: 14px;
        background: rgba(26, 0, 0, 0.92);
        border: 1px solid rgba(255, 215, 0, 0.28);
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
        
        display: none;
        opacity: 0;
        transform: translateY(-6px);
        transition: opacity 0.18s ease, transform 0.18s ease;
        z-index: 2001;
    }
    
    .nav-panel.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Each section is a positioning context for its flyout */
    .nav-section {
        position: relative;
    }
    
    .nav-main-item {
        padding: 14px 16px;
        font-size: 1rem;
    }
    
    /* IMPORTANT: keep absolute left flyout like desktop */
    .nav-submenu {
        position: absolute;
        top: 0;
        right: calc(100% - 6px); /* overlap a bit to avoid a gap */
        min-width: 160px;
        
        background: rgba(255, 0, 0, 0.1);
        backdrop-filter: blur(15px);
        border-radius: 10px;
        border: 1px solid rgba(255, 215, 0, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
        padding: 10px;
        z-index: 60;
        
        opacity: 0;
        transform: translateX(6px);
        pointer-events: none;
        transition: opacity 0.12s ease, transform 0.12s ease;
    }
    
    /* Open state driven by a class (tap to toggle) */
    .nav-section.open .nav-submenu {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }
    
    /* Disable hover logic on touch—use the .open class instead */
    .nav-section:hover .nav-submenu {
        opacity: 0;
        pointer-events: none;
    }
    
    .nav-submenu a {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .nav-contextual {
        margin-top: 8px;
        padding: 12px 14px;
        font-size: 0.98rem;
    }
    
    .nav-toggle-btn.active {
        transform: rotate(180deg);
    }
}

/* Optional safety fallback for ultra-narrow phones */
@media (max-width: 360px) {
    .nav-panel {
        right: 8px;
        width: 88vw;
    }
}

/* --- Mobile: accordion instead of left flyout --- */
@media (max-width: 768px) {
    /* keep the panel fixed height and scrollable */
    .nav-panel {
        width: clamp(220px, 90vw, 320px);
        max-height: 75vh; /* panel doesn't grow; it scrolls */
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    /* rows a bit tighter (optional) */
    .nav-main-item {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    /* turn the flyout into a downward dropdown */
    .nav-submenu {
        position: static !important; /* no absolute flyout */
        right: auto;
        top: auto;
        left: auto;
        width: 100%;
        min-width: 0;
        max-width: none;
        
        margin-top: 6px;
        border-radius: 10px;
        border: 1px solid rgba(255, 215, 0, 0.3);
        background: rgba(255, 0, 0, 0.08);
        
        /* accordion mechanics */
        overflow: hidden; /* hide when collapsed */
        max-height: 0; /* collapsed */
        padding: 0; /* collapsed */
        opacity: 1 !important; /* ditch hover fade logic */
        transform: none !important;
        pointer-events: auto !important;
        
        transition: max-height 0.24s ease, padding 0.18s ease;
        will-change: max-height;
    }
    
    /* opened state */
    .nav-section.open .nav-submenu {
        /* max-height set inline via JS to the real content height */
        padding: 8px;
    }
    
    /* smaller submenu links */
    .nav-submenu a {
        padding: 8px 10px;
        font-size: 0.92rem;
    }
    
    /* caret rotate on open */
    .nav-main-item span {
        transition: transform 0.18s ease;
    }
    
    .nav-section.open .nav-main-item span {
        transform: rotate(90deg);
    }
    
    /* CRITICAL: Disable hover completely on mobile */
    .nav-section:hover .nav-submenu,
    .nav-section:focus-within .nav-submenu {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        max-height: 0;
        padding: 0;
    }
    
    /* Only the .open class shows content on mobile */
    .nav-section.open .nav-submenu {
        /* JS will set max-height dynamically */
        padding: 8px;
    }
}

/* Related Link Overlay Loading */
.related-link-container.loading {
    padding: 0;  /* Override generic .loading padding */
    text-align: inherit;
    color: inherit;
    font-style: inherit;
}

.related-link-container.loading .related-link {
    position: relative;
}

.related-link-container.loading .related-link::after {
    content: "Loading...";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 0, 0, 0.3);
    color: yellow;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 8px;
    z-index: 10;
    font-size: 0.95rem;
    backdrop-filter: blur(2px);
}

@keyframes slideInFromTopRight {
    from {
        opacity: 0;
        transform: translate(30px, -30px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* Legal Footer Styles */
.legal-footer {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 0;
    font-family: Georgia, serif;
    margin-top: 40px;
    position: relative;
    z-index: 100;
}

.legal-footer-content {
    text-align: center;
    font-size: 0.8em;
    color: #f0f0f0;
}

.legal-links a {
    color: #ff6666;
    text-decoration: none;
    font-weight: normal;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
}

.legal-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.legal-links .divider {
    color: #ff6666;
    margin: 0 8px;
    opacity: 0.5;
}
