/* ==========================================================================
   Woodland TV Channel 21 - Design System & Modern CSS Stylesheet (Revamp)
   For Woodland, About Woodland, By Woodland
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Primary Structural Colors */
    --bg-primary: #0a0a0c;
    --bg-secondary: #121418;
    --bg-card-dark: rgba(26, 29, 36, 0.92);
    --bg-card-light: #ffffff;
    --bg-light: #f8fafc;
    --bg-light-alt: #f1f5f9;

    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    --text-dark-muted: #475569;

    /* SMPTE Test Pattern Accent Palette (Including Gray) */
    --color-gray: #b0b0b0;
    --color-yellow: #f5d020;
    --color-cyan: #00bcff;
    --color-green: #10b981;
    --color-magenta: #d946ef;
    --color-red: #ef4444;
    --color-blue: #3b82f6;

    /* Borders & Glassmorphism */
    --border-dark: rgba(255, 255, 255, 0.12);
    --border-light: rgba(0, 0, 0, 0.1);
    --glass-blur: blur(14px);

    /* Fonts & Radii */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Shadows & Transitions */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.25);
    --shadow-dark: 0 15px 30px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Base Reset & Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--color-cyan);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-yellow);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* --------------------------------------------------------------------------
   3. Color Test-Pattern Stripes (Header & Footer) - Includes SMPTE Gray
   -------------------------------------------------------------------------- */
.color-stripe-header,
.color-stripe-footer {
    display: flex;
    width: 100%;
    height: 6px;
}

.color-stripe-header span,
.color-stripe-footer span {
    flex: 1;
    height: 100%;
}

.stripe-gray { background-color: var(--color-gray); }
.stripe-yellow { background-color: var(--color-yellow); }
.stripe-cyan { background-color: var(--color-cyan); }
.stripe-green { background-color: var(--color-green); }
.stripe-magenta { background-color: var(--color-magenta); }
.stripe-red { background-color: var(--color-red); }
.stripe-blue { background-color: var(--color-blue); }

/* --------------------------------------------------------------------------
   4. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.header-banner-container {
    background: #000000;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo-img {
    height: 76px;
    object-fit: contain;
}

.header-quick-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Navigation Bar */
.main-navigation {
    background-color: rgba(18, 20, 24, 0.96);
    backdrop-filter: var(--glass-blur);
    padding: 6px 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-cyan);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    border-bottom: 3px solid var(--color-cyan);
    font-weight: 600;
}

/* 7 Nav Items matched in order to the 7 SMPTE Color Bars (Gray, Yellow, Cyan, Green, Magenta, Red, Blue) */
.nav-list .nav-item:nth-child(1) .nav-link.active,
.nav-list .nav-item:nth-child(1) .nav-link:hover { border-bottom-color: var(--color-gray); }

.nav-list .nav-item:nth-child(2) .nav-link.active,
.nav-list .nav-item:nth-child(2) .nav-link:hover { border-bottom-color: var(--color-yellow); }

.nav-list .nav-item:nth-child(3) .nav-link.active,
.nav-list .nav-item:nth-child(3) .nav-link:hover { border-bottom-color: var(--color-cyan); }

.nav-list .nav-item:nth-child(4) .nav-link.active,
.nav-list .nav-item:nth-child(4) .nav-link:hover { border-bottom-color: var(--color-green); }

.nav-list .nav-item:nth-child(5) .nav-link.active,
.nav-list .nav-item:nth-child(5) .nav-link:hover { border-bottom-color: var(--color-magenta); }

.nav-list .nav-item:nth-child(6) .nav-link.active,
.nav-list .nav-item:nth-child(6) .nav-link:hover { border-bottom-color: var(--color-red); }

.nav-list .nav-item:nth-child(7) .nav-link.active,
.nav-list .nav-item:nth-child(7) .nav-link:hover { border-bottom-color: var(--color-blue); }

.admin-badge-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-dark);
}

.admin-badge-link:hover,
.admin-badge-link.active {
    color: var(--color-yellow);
    border-color: var(--color-yellow);
    background: rgba(245, 208, 32, 0.1);
}

/* Mobile Menu Overlay Layer */
.mobile-overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2500;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.mobile-overlay-menu.active {
    display: flex;
}

.mobile-overlay-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.2rem;
    cursor: pointer;
}

.mobile-overlay-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 320px;
}

.mobile-overlay-link {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
}

.mobile-overlay-link:hover,
.mobile-overlay-link.active {
    background: var(--color-cyan);
    color: #000000;
}

/* Mobile overlay SMPTE bottom accents in matching order */
.mobile-overlay-list li:nth-child(1) .mobile-overlay-link { border-bottom: 3px solid var(--color-gray); }
.mobile-overlay-list li:nth-child(2) .mobile-overlay-link { border-bottom: 3px solid var(--color-yellow); }
.mobile-overlay-list li:nth-child(3) .mobile-overlay-link { border-bottom: 3px solid var(--color-cyan); }
.mobile-overlay-list li:nth-child(4) .mobile-overlay-link { border-bottom: 3px solid var(--color-green); }
.mobile-overlay-list li:nth-child(5) .mobile-overlay-link { border-bottom: 3px solid var(--color-magenta); }
.mobile-overlay-list li:nth-child(6) .mobile-overlay-link { border-bottom: 3px solid var(--color-red); }
.mobile-overlay-list li:nth-child(7) .mobile-overlay-link { border-bottom: 3px solid var(--color-blue); }

/* --------------------------------------------------------------------------
   5. Buttons & Badges
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; display: flex; }

.btn-yellow { background-color: var(--color-yellow); color: #000000; }
.btn-yellow i { color: #000000; }
.btn-yellow:hover { background-color: #e0bc15; color: #000000; transform: translateY(-2px); }

.header-donate-btn {
    background-color: #f5d020;
    color: #000000;
    font-weight: 700;
}
.header-donate-btn i { color: #000000; }
.header-donate-btn:hover {
    background-color: #e0bc15;
    color: #000000;
}

.btn-cyan { background-color: var(--color-cyan); color: #000000; }
.btn-cyan:hover { background-color: #00a4e0; color: #000000; transform: translateY(-2px); }

.btn-green { background-color: var(--color-green); color: #ffffff; }
.btn-green:hover { background-color: #0d9668; color: #ffffff; transform: translateY(-2px); }

.btn-magenta { background-color: var(--color-magenta); color: #ffffff; }
.btn-magenta:hover { background-color: #c026d3; color: #ffffff; transform: translateY(-2px); }

.btn-red { background-color: var(--color-red); color: #ffffff; }
.btn-red:hover { background-color: #dc2626; color: #ffffff; transform: translateY(-2px); }

.btn-blue { background-color: var(--color-blue); color: #ffffff; }
.btn-blue:hover { background-color: #2563eb; color: #ffffff; transform: translateY(-2px); }

.btn-dark { background-color: #0f172a; color: #ffffff; }
.btn-dark:hover { background-color: #1e293b; color: #ffffff; transform: translateY(-2px); }

.btn-paypal { background-color: #0070ba; color: #ffffff; }
.btn-paypal:hover { background-color: #005ea6; color: #ffffff; transform: translateY(-2px); }

.btn-outline-cyan { background: transparent; border-color: var(--color-cyan); color: var(--color-cyan); }
.btn-outline-cyan:hover { background: var(--color-cyan); color: #000000; }

.btn-outline-dark { background: transparent; border-color: #1e293b; color: #1e293b; }
.btn-outline-dark:hover { background: #1e293b; color: #ffffff; }

.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.3); color: #ffffff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: #ffffff; }

.btn-outline-yellow { background: transparent; border-color: var(--color-yellow); color: var(--color-yellow); }
.btn-outline-yellow:hover { background: var(--color-yellow); color: #000000; }

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.bg-yellow-pill { background: rgba(245, 208, 32, 0.15); color: #b48a00; border: 1px solid rgba(245, 208, 32, 0.4); }
.bg-cyan-pill { background: rgba(0, 188, 255, 0.15); color: #0082b3; border: 1px solid rgba(0, 188, 255, 0.4); }
.bg-green-pill { background: rgba(16, 185, 129, 0.15); color: #059669; border: 1px solid rgba(16, 185, 129, 0.4); }
.bg-magenta-pill { background: rgba(217, 70, 239, 0.15); color: #a21caf; border: 1px solid rgba(217, 70, 239, 0.4); }

/* --------------------------------------------------------------------------
   6. Alternating Section Themes (Light vs Dark)
   -------------------------------------------------------------------------- */
.section-padding { padding: 60px 0; }

.bg-light-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.bg-light-section h1,
.bg-light-section h2,
.bg-light-section h3,
.bg-light-section h4 {
    color: var(--text-dark);
}

.bg-light-section p {
    color: var(--text-dark-muted);
}

.bg-dark-section {
    background: linear-gradient(180deg, #0a0a0c 0%, #121418 100%);
    color: var(--text-primary);
}

.bg-dark-section h1,
.bg-dark-section h2,
.bg-dark-section h3,
.bg-dark-section h4 {
    color: #ffffff;
}

.bg-dark-section p {
    color: var(--text-muted);
}

/* Page Header Banner */
.page-header-banner {
    background: linear-gradient(180deg, #121418 0%, #0a0a0c 100%);
    padding: 50px 0 30px 0;
    border-bottom: 1px solid var(--border-dark);
}

.page-header-banner h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-top: 10px;
    margin-bottom: 10px;
}

.page-header-banner .lead {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 750px;
    margin: 0 auto;
}

.page-header-banner .lead a {
    color: var(--color-cyan);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-header-banner .lead a:hover {
    color: var(--color-yellow);
}

/* Common Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-blue { color: var(--color-blue); }
.text-muted { color: var(--text-muted); }
.text-dark-muted { color: var(--text-dark-muted); }
.small { font-size: 0.875rem; }
.d-block { display: block; }
.m-0 { margin: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2.25rem; }
.mb-1 { margin-bottom: 0.35rem; }
.mb-2 { margin-bottom: 0.6rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2.25rem; }
.my-3 { margin-top: 1rem; margin-bottom: 1rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.mr-2 { margin-right: 0.5rem; }
.p-3 { padding: 1rem; }
.pt-3 { padding-top: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.pl-3 { padding-left: 1.25rem; }
.rounded { border-radius: var(--radius-sm); }
.border { border: 1px solid var(--border-dark); }
.card-light .border { border: 1px solid var(--border-light); }
.border-top { border-top: 1px solid var(--border-light); }
.bg-light-alt { background-color: var(--bg-light-alt); }
.bg-dark-card { background: rgba(15, 23, 42, 0.72); }

/* Cards */
.card-glass {
    background: var(--bg-card-dark);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-dark);
    color: var(--text-primary);
    transition: var(--transition);
}

.card-light {
    background: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 28px;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card-light h2,
.card-light h3,
.card-light h4 {
    color: var(--text-dark);
}

/* Card Accent Borders */
.border-accent-gray { border-top: 5px solid var(--color-gray); }
.border-accent-yellow { border-top: 5px solid var(--color-yellow); }
.border-accent-cyan { border-top: 5px solid var(--color-cyan); }
.border-accent-green { border-top: 5px solid var(--color-green); }
.border-accent-magenta { border-top: 5px solid var(--color-magenta); }
.border-accent-red { border-top: 5px solid var(--color-red); }
.border-accent-blue { border-top: 5px solid var(--color-blue); }

/* Grid Utilities */
.grid-2-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* --------------------------------------------------------------------------
   7. Home Page: Hero Section & Dynamically Resized Carousel
   -------------------------------------------------------------------------- */
.hero-section-light {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 50px 0 70px 0;
    border-bottom: 1px solid var(--border-light);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.hero-carousel-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    background: #0f172a;
    height: 100%;
}

.carousel-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: var(--glass-blur);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 420px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active { opacity: 1; z-index: 2; }

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 22px;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.92) 100%);
    color: #ffffff;
    z-index: 5;
}

.carousel-caption h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: #ffffff;
}

.carousel-caption p {
    font-size: 0.9rem;
    color: #cbd5e1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.carousel-btn:hover { background: var(--color-cyan); color: #000000; }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }

.carousel-indicators {
    position: absolute;
    bottom: 14px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 6px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--color-cyan);
    width: 24px;
    border-radius: 5px;
}

/* Hero Spotlight Card (Light) */
.hero-spotlight-card-light {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.spotlight-tag {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.tag-yellow { background: rgba(245, 208, 32, 0.2); color: #a17c00; }

.spotlight-title {
    font-size: 2.1rem;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.spotlight-text {
    color: var(--text-dark-muted);
    margin-bottom: 14px;
    font-size: 1rem;
}

.spotlight-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   8. Featured Videos Section
   -------------------------------------------------------------------------- */
.featured-videos-section {
    background: linear-gradient(180deg, #0a0a0c 0%, #121418 100%);
    padding: 70px 0;
}

.section-header { margin-bottom: 40px; }
.section-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.badge-magenta { background: rgba(217, 70, 239, 0.15); color: var(--color-magenta); }
.section-title { font-size: 2.2rem; margin-bottom: 10px; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; }

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.video-card {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-dark);
}

.video-thumb-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.video-thumb-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumb-container img { transform: scale(1.06); }

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.video-card:hover .play-overlay {
    background: var(--color-cyan);
    color: #000000;
    scale: 1.15;
}

.video-card-body { padding: 18px; }

.video-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cat-cyan { color: var(--color-cyan); }
.cat-yellow { color: var(--color-yellow); }
.cat-green { color: var(--color-green); }
.cat-magenta { color: var(--color-magenta); }
.cat-red { color: var(--color-red); }
.cat-blue { color: var(--color-blue); }

.video-title {
    font-size: 1.1rem;
    margin: 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. Training Opportunities & Infographic
   -------------------------------------------------------------------------- */
.training-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    align-items: center;
}

.text-dark-title { color: var(--text-dark); font-size: 2.2rem; margin-bottom: 16px; }

.lead-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 16px;
}

.training-copy p { color: #475569; margin-bottom: 16px; }

.training-cta-group {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

.training-infographic-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 24px;
}

.infographic-header h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
}

.infographic-header .sub {
    color: var(--text-dark-muted);
    font-size: 0.9rem;
}

.infographic-svg-wrapper {
    width: 100%;
    padding: 10px 0;
}

.node-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.text-gray { color: var(--color-gray); }
.text-yellow { color: var(--color-yellow); }
.text-cyan { color: var(--color-cyan); }
.text-green { color: var(--color-green); }
.text-magenta { color: var(--color-magenta); }
.text-red { color: var(--color-red); }

.badge-impact {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   10. About Us Page Layout & Divider Stripe Container
   -------------------------------------------------------------------------- */
.about-content-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.about-main-card {
    display: flex;
    flex-direction: column;
}

.about-main-card h2 {
    font-size: 1.55rem;
    margin-bottom: 10px;
}

.about-main-card p,
.about-main-card .lead-text {
    margin-bottom: 10px;
}

.about-main-card .styled-check-list {
    gap: 8px;
    margin-top: 10px;
}

.about-featured-media {
    flex: 1 1 0;
    min-height: 0;
    margin-top: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.about-media-frame {
    position: relative;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000000;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.about-media-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.about-media-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    display: block;
}

@supports (container-type: size) {
    .about-featured-media {
        container-type: size;
    }

    .about-media-frame {
        width: min(100cqw, calc(100cqh * 16 / 9));
        height: min(100cqh, calc(100cqw * 9 / 16));
    }

    .about-media-image {
        max-width: 100cqw;
        max-height: 100cqh;
    }
}

.styled-check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.styled-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.styled-check-list li > i {
    margin-top: 4px;
    flex-shrink: 0;
}

.styled-check-list li .rte-content {
    display: inline;
}

.styled-check-list li .rte-content p {
    display: inline;
    margin-bottom: 0;
}

/* Container wrapper for padding around the 3px line */
.divider-wrapper {
    padding: 1.5em 0;
    width: 100%;
}

/* Strict 3px line height */
.divider-stripe {
    height: 3px;
    background: linear-gradient(90deg, var(--color-yellow), var(--color-cyan), var(--color-magenta), var(--color-green), var(--color-red));
    border: none;
    padding: 0;
    margin: 0;
    display: block;
    width: 100%;
}

.leadership-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.lead-item {
    background: rgba(0, 0, 0, 0.04);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

.lead-item strong { display: block; font-size: 0.95rem; }
.lead-item span { font-size: 0.85rem; color: var(--text-dark-muted); }

/* --------------------------------------------------------------------------
   11. Programming Page & Embed
   -------------------------------------------------------------------------- */
.card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.live-status-pill {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.pulse { animation: pulse 1.5s infinite; }

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.stream-notice-banner {
    background: rgba(15, 23, 42, 0.78);
    padding: 18px 22px 22px 22px;
    margin-bottom: 28px;
    border-radius: var(--radius-sm);
    border-left: 1px solid var(--border-dark);
    border-right: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

.stream-notice-banner .btn-stream-launch {
    margin-top: 14px;
    margin-bottom: 4px;
}

.iframe-responsive-wrapper {
    position: relative;
    width: 100%;
    height: 800px;
    margin-top: 8px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-dark);
    background: #000;
}

.iframe-responsive-wrapper iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

/* --------------------------------------------------------------------------
   12. Videos & YouTube CTA Banner + Subsections
   -------------------------------------------------------------------------- */
.yt-cta-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(18, 20, 24, 0.9) 100%);
}

.yt-cta-inner {
    display: flex;
    align-items: center;
    gap: 28px;
}

.yt-cta-text h2 { font-size: 1.8rem; margin-bottom: 8px; color: #ffffff; }
.yt-cta-text p { color: var(--text-muted); font-size: 0.95rem; }

.videos-subsection {
    padding-top: 24px;
}

.videos-subsection-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-dark);
}

.videos-subsection-title {
    font-size: 1.85rem;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.videos-subsection-sub {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
}

.videos-section-divider {
    margin: 56px 0 36px 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--color-gray), var(--color-yellow), var(--color-cyan), var(--color-green), var(--color-magenta), var(--color-red), var(--color-blue));
    opacity: 0.7;
    border-radius: 2px;
}

/* Row Flip Utility (Controlled by Backend Editor One-Click Swap) */
.is-flipped > :first-child { order: 2; }
.is-flipped > :last-child { order: 1; }

/* Custom CMS Section Types */
.cms-custom-section {
    padding: 56px 0;
}

.cms-media-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

.cms-media-split img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    max-height: 420px;
}

.cms-cta-band {
    padding: 48px 32px;
    border-radius: var(--radius-md);
    text-align: center;
}

.cms-cta-band h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.cms-cta-band p {
    max-width: 720px;
    margin: 0 auto 22px auto;
}

.cms-colorbar-rule {
    display: flex;
    width: 100%;
}
.cms-colorbar-rule span { flex: 1; height: 100%; }

/* Seamless Section (Blends cleanly into adjacent light/dark sections with zero seam borders) */
.cms-seamless-section {
    border-top: none !important;
    border-bottom: none !important;
    padding: 44px 0;
}

.cms-seamless-section.seam-attach-above {
    padding-top: 0;
}

.cms-seamless-section.seam-attach-below {
    padding-bottom: 0;
}

.cms-seamless-section.seam-attach-above.seam-attach-below {
    padding-top: 0;
    padding-bottom: 0;
}

section:has(+ .cms-seamless-section.seam-attach-above) {
    border-bottom: none !important;
    padding-bottom: 32px !important;
}

.cms-seamless-section.seam-attach-below + section {
    border-top: none !important;
    padding-top: 32px !important;
}

.cms-seamless-grid {
    display: grid;
    gap: 28px;
    align-items: stretch;
}

.cms-seamless-grid.cols-1 { grid-template-columns: 1fr; }
.cms-seamless-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cms-seamless-grid.cols-2-wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.cms-seamless-grid.cols-2-wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.cms-seamless-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cms-seamless-block {
    min-width: 0;
}

.cms-seamless-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000000;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.cms-seamless-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.cms-seamless-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: block;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   13. Support & Contact Forms
   -------------------------------------------------------------------------- */
.support-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
}

.paypal-form button { font-weight: 700; font-size: 1.1rem; }

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
}

.styled-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.col-6 { flex: 1; }

.styled-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
}

.card-light .styled-form label {
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 10, 12, 0.7);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.card-light .form-input {
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-dark);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 3px rgba(0, 188, 255, 0.2);
}

.form-input-sm { padding: 8px 12px; }

.form-feedback-alert {
    display: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
}

.alert-success { background: rgba(16, 185, 129, 0.2); color: var(--color-green); border: 1px solid var(--color-green); display: block; }
.alert-error { background: rgba(239, 68, 68, 0.2); color: var(--color-red); border: 1px solid var(--color-red); display: block; }

.info-block {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.info-icon { font-size: 1.5rem; }

.contact-info-card {
    display: flex;
    flex-direction: column;
}

.contact-info-emblem {
    flex: 1 1 0;
    min-height: 0;
    margin-top: 24px;
    padding: 8px 0 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-info-logo {
    max-width: 240px;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.14));
}

@supports (container-type: size) {
    .contact-info-emblem {
        container-type: size;
    }

    .contact-info-logo {
        max-width: min(260px, 86cqw);
        max-height: 94cqh;
    }
}

/* --------------------------------------------------------------------------
   14. Admin Portal & Site Editor
   -------------------------------------------------------------------------- */
.admin-auth-wrapper {
    max-width: 440px;
    margin: 40px auto;
}

.auth-header h2 { font-size: 1.5rem; margin-bottom: 4px; }

.font-mono { font-family: monospace; }
.letter-spacing-lg { letter-spacing: 0.25em; font-size: 1.4rem; }

.admin-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-welcome h2 { font-size: 1.5rem; }
.badge-user { font-size: 0.85rem; color: var(--text-muted); }

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.admin-tab-btn {
    padding: 12px 24px;
    background: var(--bg-card-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.admin-tab-btn.active {
    background: var(--color-yellow);
    color: #000000;
    border-color: var(--color-yellow);
}

.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

.editor-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 28px;
}

.sections-manager-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.section-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.section-item-card:hover,
.section-item-card.selected {
    border-color: var(--color-cyan);
    background: rgba(0, 188, 255, 0.1);
}

.section-item-actions { display: flex; gap: 6px; }

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 4px;
    cursor: pointer;
}

.btn-icon:hover { color: #ffffff; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-dark);
}

.admin-table th { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   15. Modals & Back to Top
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 7, 11, 0.82);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal-header-title h3 {
    display: flex;
    align-items: center;
    gap: 0.65em;
    padding-right: 34px;
    line-height: 1.3;
}

.modal-header-title h3 > i {
    flex-shrink: 0;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    position: relative;
    width: 100%;
    padding: 28px;
    box-shadow: var(--shadow-dark);
}

.modal-sm { max-width: 440px; }
.modal-md { max-width: 640px; }
.modal-lg { max-width: 900px; }

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
}

.video-modal-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-modal-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-sm);
}

.modal-body-scroll {
    max-height: 62vh;
    overflow-y: auto;
    margin: 16px 0;
    padding-right: 12px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.modal-body-scroll h4 {
    color: #ffffff;
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}

.modal-body-scroll h5 {
    color: var(--color-cyan);
    margin-top: 12px;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.modal-body-scroll p {
    margin-bottom: 10px;
    color: #cbd5e1;
}

.modal-body-scroll ul {
    margin: 6px 0 12px 20px;
    color: #cbd5e1;
}

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

.modal-body-scroll a {
    color: var(--color-cyan);
    text-decoration: underline;
}

.legal-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 0.82rem;
    color: #cbd5e1;
}

/* Featured Videos Admin Manager UI */
.fv-manager-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-dark);
}

.fv-manager-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.fv-slot-card {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fv-slot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.fv-slot-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
}

.fv-mode-toggle {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 2px;
}

.fv-mode-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.fv-mode-btn.active[data-mode="auto"] {
    background: var(--color-cyan);
    color: #000000;
}

.fv-mode-btn.active[data-mode="manual"] {
    background: var(--color-yellow);
    color: #000000;
}

.fv-preview-row {
    display: flex;
    gap: 14px;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    border-radius: var(--radius-sm);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.fv-thumb-preview {
    width: 120px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #000;
}

.fv-preview-info {
    flex: 1;
    min-width: 0;
}

.fv-preview-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fv-preview-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.fv-manual-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.fv-auto-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    background: rgba(0, 188, 255, 0.08);
    border: 1px solid rgba(0, 188, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
}

.fv-slot-error {
    color: var(--color-red);
    font-size: 0.8rem;
    font-weight: 600;
}

.video-source-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.video-source-badge.badge-pinned {
    background: rgba(245, 208, 32, 0.92);
    color: #000000;
}

/* ==========================================================================
   Enhanced Visual Admin Studio (Split-Pane + Live Preview + Repeaters)
   ========================================================================== */
.admin-container-wide {
    max-width: 1800px;
}

.admin-tabs {
    flex-wrap: wrap;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.admin-stat-card {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 20px 22px;
}

.admin-stat-val {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 4px;
}

.admin-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Split-Pane Editor Studio */
.studio-layout {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.studio-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.studio-section-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.studio-section-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.studio-section-item:hover {
    border-color: var(--color-cyan);
    background: rgba(0, 188, 255, 0.08);
}

.studio-section-item.is-hidden-sec {
    opacity: 0.55;
    border-style: dashed;
}

.studio-section-item.is-dragging {
    opacity: 0.35;
}

.studio-section-item.is-drag-over {
    border-color: var(--color-yellow);
    box-shadow: 0 -3px 0 0 var(--color-yellow);
}

.studio-grip {
    color: var(--text-muted);
    cursor: grab;
    padding: 2px 4px;
}

.studio-sec-info {
    flex: 1;
    min-width: 0;
}

.studio-sec-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-sec-type {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.studio-sec-actions {
    display: flex;
    gap: 4px;
}

.studio-icon-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid transparent;
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.78rem;
    transition: var(--transition);
}

.studio-icon-btn:hover {
    color: #ffffff;
    border-color: var(--border-dark);
    background: rgba(255, 255, 255, 0.14);
}

.studio-icon-btn.btn-del:hover {
    color: var(--color-red);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Live Responsive Preview Frame */
.studio-preview-pane {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: sticky;
    top: 120px;
}

.studio-preview-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid var(--border-dark);
}

.preview-device-group {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 2px;
}

.preview-device-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.preview-device-btn.active {
    background: var(--color-cyan);
    color: #000000;
}

.preview-frame-stage {
    background: #1e293b;
    padding: 14px;
    display: flex;
    justify-content: center;
    min-height: 700px;
}

.studio-preview-iframe {
    width: 100%;
    height: 700px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    background: #ffffff;
    transition: width 0.25s ease;
}

/* Schema Editor Modal & Repeaters */
.modal-xl {
    max-width: 960px;
}

.schema-form-scroll {
    max-height: 66vh;
    overflow-y: auto;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Rich Content Output Styling (Public Site + Admin WYSIWYG Preview Parity) */
.rte-content {
    display: flow-root;
}

.rte-content p {
    margin-bottom: 10px;
}

.rte-content p:last-child {
    margin-bottom: 0;
}

.rte-content h2,
.rte-editor h2 {
    font-size: 2.05rem;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 18px 0 10px 0;
}

.rte-content h3,
.rte-editor h3 {
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 14px 0 6px 0;
}

.rte-content h4,
.rte-editor h4 {
    font-size: 1.1rem;
    line-height: 1.35;
    margin: 12px 0 6px 0;
}

.rte-content a:not(.btn) {
    color: var(--color-cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.card-light .rte-content a:not(.btn) {
    color: #0284c7;
}

.rte-content blockquote.rte-callout {
    margin: 14px 0;
    padding: 12px 16px;
    border-left: 4px solid var(--color-cyan);
    background: rgba(0, 188, 255, 0.08);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

.card-light .rte-content blockquote.rte-callout {
    background: #f1f5f9;
    color: #334155;
}

.rte-content hr.rte-divider,
.rte-editor hr.rte-divider {
    border: none;
    height: 3px;
    margin: 18px 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-gray), var(--color-yellow), var(--color-cyan), var(--color-green), var(--color-magenta), var(--color-red), var(--color-blue));
}

.rte-content hr.rte-custom-hr,
.rte-editor hr.rte-custom-hr {
    border: none;
    border-radius: 2px;
    display: block;
}

.smpte-swatch.swatch-none {
    background: repeating-linear-gradient(135deg, #1e293b 0 6px, #334155 6px 12px);
    color: #cbd5e1;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Custom Bullet & Numbered List Styles */
.rte-content ul,
.rte-content ol,
.rte-editor ul,
.rte-editor ol {
    margin: 8px 0 12px 24px;
    padding: 0;
}

.rte-content li,
.rte-editor li {
    margin-bottom: 6px;
}

.rte-list-disc    { list-style-type: disc !important; }
.rte-list-circle  { list-style-type: circle !important; }
.rte-list-square  { list-style-type: square !important; }
.rte-list-decimal { list-style-type: decimal !important; }
.rte-list-alpha   { list-style-type: lower-alpha !important; }
.rte-list-roman   { list-style-type: lower-roman !important; }

/* FontAwesome Icon Lists */
ul.rte-icon-list {
    list-style: none !important;
    margin: 10px 0 14px 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

ul.rte-icon-list > li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
}

ul.rte-icon-list > li > i.rte-li-icon {
    flex-shrink: 0;
    margin-top: 4px;
    width: 18px;
    text-align: center;
}

ul.rte-icon-list > li > span.rte-li-text {
    flex: 1;
    min-width: 0;
}

/* Inline Figures & Images with Text Wrapping */
.rte-figure {
    margin: 10px 0 14px 0;
    max-width: 100%;
    display: block;
}

.rte-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.rte-figure.rte-styled img {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.rte-figure figcaption {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: center;
    line-height: 1.4;
}

.card-light .rte-figure figcaption {
    color: var(--text-dark-muted);
}

.rte-figure.rte-align-left {
    float: left;
    margin: 4px 20px 14px 0;
}

.rte-figure.rte-align-right {
    float: right;
    margin: 4px 0 14px 20px;
}

.rte-figure.rte-align-center {
    float: none;
    margin: 14px auto;
}

.rte-figure.rte-align-full {
    float: none;
    width: 100% !important;
    margin: 14px 0;
}

/* Stacked Modals & Upgraded WYSIWYG Admin Editor */
.modal-overlay.modal-stack-top {
    z-index: 2200;
}

.modal-overlay.modal-stack-topper {
    z-index: 2400;
}

.cms-custom-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#cms-custom-modal .modal-body-scroll.rte-content {
    color: #e2e8f0;
}

#cms-custom-modal .modal-body-scroll.rte-content h2,
#cms-custom-modal .modal-body-scroll.rte-content h3,
#cms-custom-modal .modal-body-scroll.rte-content h4 {
    color: #ffffff;
}

.media-upload-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed var(--border-dark);
    border-radius: var(--radius-sm);
}

.image-picker-tile {
    position: relative;
}

.image-picker-group-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(10, 12, 16, 0.82);
    color: var(--color-cyan);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.image-picker-del-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    font-size: 0.72rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-dark);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    padding: 7px 8px;
}

.rte-sep {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.14);
    margin: 0 3px;
}

.rte-select {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-dark);
    color: #ffffff;
    font-size: 0.78rem;
    padding: 4px 6px;
    border-radius: 5px;
    cursor: pointer;
    max-width: 138px;
}

.rte-select:hover,
.rte-select:focus {
    border-color: var(--color-cyan);
    outline: none;
}

.rte-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid transparent;
    color: #ffffff;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.rte-btn:hover {
    background: rgba(0, 188, 255, 0.2);
    border-color: var(--color-cyan);
}

.rte-btn.is-active {
    background: rgba(245, 208, 32, 0.22);
    border-color: var(--color-yellow);
    color: var(--color-yellow);
}

.rte-color-wrap {
    position: relative;
    display: inline-flex;
}

.rte-color-popover {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 60;
    background: #11141c;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    padding: 8px;
    display: none;
    grid-template-columns: repeat(5, 24px);
    gap: 6px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.rte-color-popover.open {
    display: grid;
}

.rte-color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.28);
    cursor: pointer;
    padding: 0;
}

.rte-color-dot:hover {
    transform: scale(1.15);
    border-color: #ffffff;
}

/* Contextual Toolbar When Clicking an Inline Image Inside the Editor */
.rte-img-quickbar {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(0, 188, 255, 0.14);
    border: 1px solid var(--color-cyan);
    border-bottom: none;
    font-size: 0.78rem;
}

.rte-img-quickbar.active {
    display: flex;
}

.rte-img-quickbar-label {
    font-weight: 700;
    color: var(--color-cyan);
    margin-right: 4px;
}

.rte-editor {
    min-height: 120px;
    padding: 12px 14px;
    background: rgba(10, 10, 12, 0.75);
    border: 1px solid var(--border-dark);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    color: #ffffff;
    font-size: 0.94rem;
    line-height: 1.55;
    outline: none;
    display: flow-root;
}

.rte-editor:focus {
    border-color: var(--color-cyan);
}

.rte-editor p { margin-bottom: 8px; }
.repeater-card .rte-editor { min-height: 54px; padding: 8px 12px; }
.rte-editor .rte-figure { cursor: pointer; }
.rte-editor .rte-figure.is-selected {
    outline: 2px solid var(--color-yellow);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.rte-source-area {
    display: none;
    width: 100%;
    min-height: 140px;
    padding: 12px 14px;
    background: #090b10;
    border: 1px solid var(--color-cyan);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    color: #a5f3fc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.84rem;
    line-height: 1.5;
    resize: vertical;
}

.rte-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 8px;
    max-height: 46vh;
    overflow-y: auto;
    padding: 2px;
}

.rte-icon-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition);
}

.rte-icon-choice:hover {
    border-color: var(--color-cyan);
    background: rgba(0, 188, 255, 0.12);
    transform: translateY(-1px);
}

.rte-icon-choice i {
    font-size: 1.25rem;
}

.rte-icon-choice span {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
}

.smpte-swatches {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.smpte-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.smpte-swatch:hover { transform: scale(1.12); }
.smpte-swatch.active {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px var(--color-cyan);
    transform: scale(1.12);
}

.repeater-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.repeater-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.repeater-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.repeater-card-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-cyan);
}

.image-field-box {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.image-field-thumb {
    width: 96px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-dark);
    background: #000;
}

.image-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    max-height: 55vh;
    overflow-y: auto;
    padding: 4px;
}

.image-picker-tile {
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    padding: 0;
    color: #ffffff;
    transition: var(--transition);
}

.image-picker-tile:hover {
    border-color: var(--color-cyan);
    transform: translateY(-2px);
}

.image-picker-tile img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.image-picker-tile span {
    display: block;
    padding: 6px 8px;
    font-size: 0.76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-section-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.add-section-choice {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    text-align: left;
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition);
}

.add-section-choice:hover {
    border-color: var(--color-yellow);
    background: rgba(245, 208, 32, 0.08);
}

.add-section-choice strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.add-section-choice span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Channel Uploads Quick-Hide / Pin Gallery */
.channel-library-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.channel-lib-card {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.channel-lib-card.is-hidden-vid {
    opacity: 0.45;
    border-style: dashed;
}

.channel-lib-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.channel-lib-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.channel-lib-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.channel-lib-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
}

.videos-subtabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.videos-subtab-btn {
    padding: 9px 18px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-dark);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}

.videos-subtab-btn.active {
    background: var(--color-cyan);
    color: #000000;
    border-color: var(--color-cyan);
}

.toggle-check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.toggle-check-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--color-cyan);
    cursor: pointer;
}

.settings-panels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-cyan);
    color: #000000;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); background: var(--color-yellow); }

/* --------------------------------------------------------------------------
   16. Footer & Social Icons
   -------------------------------------------------------------------------- */
.bg-dark-footer {
    background-color: #050507;
    border-top: 1px solid var(--border-dark);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    margin-bottom: 40px;
}

.footer-logo { height: 44px; object-fit: contain; }
.tagline { font-weight: 700; color: #ffffff; margin-bottom: 8px; }

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #ffffff;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--color-cyan); padding-left: 4px; }

.social-icons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-btn.yt:hover { background: #ff0000; color: #ffffff; }
.social-btn.fb:hover { background: #1877f2; color: #ffffff; }
.social-btn.ig:hover { background: #e4405f; color: #ffffff; }
.social-btn.li:hover { background: #0a66c2; color: #ffffff; }

.footer-watch-btn-container {
    margin-top: 10px;
}

.footer-bottom-bar { background: #000000; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-bottom-flex {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom-left { text-align: left; }
.footer-bottom-center { text-align: center; }
.footer-bottom-right { text-align: right; }

.footer-credit a {
    color: var(--color-cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-credit a:hover {
    color: var(--color-yellow);
}

.btn-link-legal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}

.btn-link-legal:hover { color: var(--color-cyan); }

/* --------------------------------------------------------------------------
   17. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .hero-grid,
    .training-grid,
    .about-content-grid,
    .grid-2-col,
    .grid-3-col,
    .support-grid,
    .contact-grid,
    .editor-layout-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .video-grid { grid-template-columns: repeat(2, 1fr); }

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .header-quick-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-navigation {
        display: none;
    }

    .brand-logo-img { height: 58px; }
    .fv-manager-grid { grid-template-columns: 1fr; }
    .studio-layout { grid-template-columns: 1fr; }
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .settings-panels-grid { grid-template-columns: 1fr; }
    .channel-library-grid { grid-template-columns: repeat(2, 1fr); }
    .cms-media-split { grid-template-columns: 1fr; }
    .cms-seamless-grid.cols-2,
    .cms-seamless-grid.cols-2-wide-left,
    .cms-seamless-grid.cols-2-wide-right,
    .cms-seamless-grid.cols-3 { grid-template-columns: 1fr; }
    .add-section-grid { grid-template-columns: 1fr; }

    .about-featured-media {
        flex: none;
        container-type: normal;
        margin-top: 24px;
        align-items: center;
    }
    .about-media-frame {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .about-media-image {
        max-width: 100%;
        max-height: 360px;
    }

    .contact-info-emblem {
        flex: none;
        container-type: normal;
        margin-top: 26px;
        padding-top: 12px;
    }
    .contact-info-logo {
        max-width: 200px;
        max-height: 260px;
    }
    .footer-bottom-flex {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    .footer-bottom-left,
    .footer-bottom-center,
    .footer-bottom-right {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .video-grid { grid-template-columns: 1fr; }
    .channel-library-grid { grid-template-columns: 1fr; }
    .admin-stats-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 14px; }
    .yt-cta-inner { flex-direction: column; text-align: center; }
    .iframe-responsive-wrapper { height: 640px; }
    .rte-figure.rte-align-left,
    .rte-figure.rte-align-right {
        float: none;
        width: 100% !important;
        margin: 14px auto;
    }
}
