/* ==========================================================================
   Divine Sparks Language & Computer Institution - Main Stylesheet
   Design Philosophy: Refined Editorial & Modern Institutional (Anti-Slop)
   Brand Colors:
     - Primary Violet/Purple: #6A0DAD
     - Metallic Silver/Grey:  #AFA9BC
     - Pure White:            #FFFFFF
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --color-purple: #6A0DAD;
    --color-purple-dark: #4B087D;
    --color-purple-light: #8322CE;
    --color-purple-subtle: #F3EAFB;
    
    --color-silver: #AFA9BC;
    --color-silver-dark: #817893;
    --color-silver-light: #F2F0F5;
    
    --color-white: #FFFFFF;
    --color-bg-subtle: #FAFAFC;
    
    --color-text-dark: #13091F;
    --color-text-muted: #5C526B;
    --color-text-light: #7E758C;
    
    --color-border: #E5E0ED;
    --color-border-dark: #C9C2D4;
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Spacing & Layout */
    --container-max: 1240px;
    --header-height: 72px;
    --announcement-height: 40px;
    
    /* Transitions */
    --ease-out-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.18s var(--ease-out-smooth);
    --transition-normal: 0.3s var(--ease-out-smooth);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utility Helpers */
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.w-full { width: 100%; }
.desktop-only { display: inline-flex; }

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
}

/* --------------------------------------------------------------------------
   3. Typography Systems
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.highlight-purple {
    color: var(--color-purple);
}

.section-title {
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 60ch;
}

.section-header {
    margin-bottom: 3.5rem;
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Controls
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.4rem;
    transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    text-align: center;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--color-purple);
    color: var(--color-white);
    border: 1px solid var(--color-purple);
}

.btn-primary:hover {
    background-color: var(--color-purple-dark);
    border-color: var(--color-purple-dark);
    color: var(--color-white);
}

.btn-secondary {
    background-color: var(--color-silver-light);
    color: var(--color-text-dark);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-border);
    color: var(--color-text-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-purple);
    border: 1px solid var(--color-purple);
}

.btn-outline:hover {
    background-color: var(--color-purple-subtle);
    color: var(--color-purple-dark);
}

.btn-sm {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.btn-lg {
    font-size: 1.05rem;
    padding: 0.9rem 1.8rem;
}

/* --------------------------------------------------------------------------
   5. Announcement Bar
   -------------------------------------------------------------------------- */
.announcement-bar {
    background-color: var(--color-text-dark);
    color: var(--color-white);
    font-size: 0.825rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.announcement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(106, 13, 173, 0.35);
    color: #D8B4FE;
    padding: 0.15rem 0.6rem;
    font-weight: 600;
    font-size: 0.75rem;
}

.announcement-text {
    color: #DCD6E5;
    font-weight: 500;
}

.announcement-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-silver);
    font-weight: 600;
}

.announcement-link:hover {
    color: var(--color-white);
}

@media (max-width: 768px) {
    .announcement-text {
        display: none;
    }
    .announcement-content {
        justify-content: space-between;
    }
}

/* --------------------------------------------------------------------------
   6. Header & Navigation
   -------------------------------------------------------------------------- */
.scroll-sentinel {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition-normal);
}

.site-header.header-scrolled {
    box-shadow: 0 2px 16px rgba(19, 9, 31, 0.08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-purple);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.brand-sub {
    font-size: 0.725rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-dark);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-purple);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-purple);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--color-text-dark);
    padding: 0.4rem;
    border: 1px solid var(--color-border);
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .header-container {
        height: 60px;
    }
    .logo-img {
        height: 34px;
    }
    .brand-name {
        font-size: 1rem;
    }
    .brand-sub {
        display: none;
    }
    .header-actions .btn-primary {
        display: none;
    }
    .header-actions {
        gap: 0.5rem;
    }
    .mobile-menu-btn {
        font-size: 1.35rem;
        padding: 0.4rem;
    }
    .announcement-badge {
        display: none;
    }
    .announcement-content {
        justify-content: center;
    }
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background-color: var(--color-white);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-normal);
}

.mobile-drawer.active {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.mobile-drawer-close {
    font-size: 1.5rem;
    color: var(--color-text-dark);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.75rem 0.5rem;
    color: var(--color-text-dark);
}

.mobile-nav-link:hover {
    background-color: var(--color-silver-light);
    color: var(--color-purple);
}

.mobile-drawer-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.drawer-contact-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(19, 9, 31, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    padding: 4rem 0 0;
    background-color: var(--color-white);
    position: relative;
    border-bottom: 1px solid var(--color-border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 3.5rem;
    align-items: stretch;
}

.hero-content {
    padding-bottom: 3.5rem;
}

.hero-visual {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-rule {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.hero-rule-seg {
    display: block;
    height: 2px;
}

.hero-rule .seg-purple {
    width: 48px;
    background-color: var(--color-purple);
}

.hero-rule .seg-silver {
    width: 20px;
    background-color: var(--color-silver);
}

.hero-copy-stack {
    position: relative;
}

.hero-copy {
    opacity: 0;
    transition: opacity 0.8s var(--ease-out-smooth);
}

.hero-copy:first-child {
    position: static;
}

.hero-copy:not(:first-child) {
    position: absolute;
    inset: 0;
}

.hero-copy.active {
    opacity: 1;
}

.hero-title {
    font-size: clamp(2.3rem, 4.5vw, 3.4rem);
    margin-bottom: 1.25rem;
    color: var(--color-text-dark);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 54ch;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

/* Hero Visual: Auto-Fading Image */
.hero-fader {
    position: relative;
    line-height: 0;
}

.hero-fader .fader-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 1s var(--ease-out-smooth);
}

.hero-fader .fader-img:first-child {
    position: static;
}

.hero-fader .fader-img:not(:first-child) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-fader .fader-img.active {
    opacity: 1;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-section {
        padding: 2.5rem 0;
    }
}

/* --------------------------------------------------------------------------
   8. Strip / Trust Section
   -------------------------------------------------------------------------- */
.strip-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #F6EFFC 0%, #FFFFFF 45%, #EFEAF6 100%);
    border-bottom: 1px solid var(--color-border);
    padding: 3rem 0;
}

/* Decorative squares */
.strip-circle {
    position: absolute;
    pointer-events: none;
}

.strip-circle-lg {
    width: 360px;
    height: 360px;
    top: -170px;
    right: -130px;
    background: radial-gradient(circle at 35% 35%, rgba(106, 13, 173, 0.10), rgba(106, 13, 173, 0) 70%);
    border: 1px solid rgba(106, 13, 173, 0.10);
}

.strip-circle-md {
    width: 220px;
    height: 220px;
    top: 50%;
    left: -90px;
    transform: translateY(-50%);
    background: radial-gradient(circle at 60% 40%, rgba(175, 169, 188, 0.30), rgba(175, 169, 188, 0) 70%);
    border: 1px solid rgba(175, 169, 188, 0.30);
}

.strip-circle-sm {
    width: 130px;
    height: 130px;
    bottom: -60px;
    right: 22%;
    background: radial-gradient(circle at 50% 50%, rgba(106, 13, 173, 0.08), rgba(106, 13, 173, 0) 70%);
    border: 1px solid rgba(106, 13, 173, 0.12);
}

.strip-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.strip-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.strip-icon {
    font-size: 1.35rem;
    color: var(--color-purple);
    flex-shrink: 0;
    line-height: 1.4;
}

.strip-text {
    display: flex;
    flex-direction: column;
}

.strip-text strong {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-text-dark);
}

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

@media (max-width: 768px) {
    .strip-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* --------------------------------------------------------------------------
   9. General Section Layouts
   -------------------------------------------------------------------------- */
.section {
    padding: 4.5rem 0;
}

.bg-subtle {
    background-color: var(--color-bg-subtle);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

/* --------------------------------------------------------------------------
   10. Course Pillars Split Layouts
   -------------------------------------------------------------------------- */
.course-split-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
    align-items: flex-start;
}

.split-info {
    position: sticky;
    top: 100px;
}

.pillar-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pillar-text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.pillar-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pillar-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.pillar-features li i {
    color: var(--color-purple);
}

.split-cards {
    display: flex;
    flex-direction: column;
}

/* Program Item (Language) - full-width brand gradient rows */
.program-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem 2.5rem;
    background: linear-gradient(120deg, var(--color-purple) 0%, var(--color-purple-light) 100%);
    color: var(--color-white);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.program-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(106, 13, 173, 0.28);
}

.program-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.14);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.program-item:hover .program-icon {
    background-color: rgba(255, 255, 255, 0.24);
    transform: scale(1.06);
}

.program-body {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.program-name {
    font-size: 1.35rem;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.2rem;
}

.program-flag {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--color-purple);
    background-color: var(--color-white);
    padding: 0.2rem 0.5rem;
}

.program-level {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.program-desc {
    font-size: 0.925rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.55;
    max-width: 46ch;
    margin-top: 0.5rem;
}

/* Decorative language letters */
.program-script {
    position: absolute;
    right: 1.5rem;
    bottom: 0.6rem;
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 4vw, 4.5rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.12);
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.program-script.is-cjk {
    font-family: "Noto Serif SC", "SimSun", serif;
    font-size: clamp(2.75rem, 5vw, 5.5rem);
}

.program-item:hover .program-script {
    transform: translateX(-8px);
    color: rgba(255, 255, 255, 0.2);
}

.program-arrow {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translate(-6px, 6px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.program-item:hover .program-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* Tech Tile Grid - distinct layout family with tinted surfaces */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.tech-tile {
    padding: 2rem;
    border: 1px solid var(--color-border);
}

.tech-tile.tint-purple {
    background-color: var(--color-purple-subtle);
}

.tech-tile.tint-silver {
    background-color: var(--color-silver-light);
}

.tech-icon {
    font-size: 1.5rem;
    color: var(--color-purple);
    margin-bottom: 1rem;
    line-height: 1;
}

.tech-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.tech-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

@media (max-width: 900px) {
    .course-split-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .split-info {
        position: static;
    }
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .program-item {
        padding: 2rem 1.5rem;
        gap: 1rem;
    }
    .program-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    .program-script,
    .program-arrow {
        display: none;
    }
    .program-desc {
        max-width: 100%;
    }
}

/* --------------------------------------------------------------------------
   11. Why Us Section - editorial ledger
   -------------------------------------------------------------------------- */
.features-ledger {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
}

.ledger-row {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--color-border);
}

.features-ledger .ledger-row:nth-child(n+3) {
    border-bottom: 1px solid var(--color-border);
}

.ledger-num {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-purple);
    line-height: 1.4;
}

.ledger-heading {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.ledger-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 44ch;
}

@media (max-width: 768px) {
    .features-ledger {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
    .features-ledger .ledger-row:nth-child(n+3) {
        border-bottom: none;
    }
    .features-ledger .ledger-row:last-child {
        border-bottom: 1px solid var(--color-border);
    }
}

/* --------------------------------------------------------------------------
   12. TikTok Spotlight Banner
   -------------------------------------------------------------------------- */
.tiktok-banner {
    background-color: var(--color-text-dark);
    color: var(--color-white);
    padding: 3.5rem 3rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.tiktok-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-silver);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1.25rem;
}

.tiktok-title {
    color: var(--color-white);
    font-size: 2.1rem;
    margin-bottom: 1rem;
}

.tiktok-desc {
    color: #C8C2D4;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 50ch;
}

.tiktok-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tiktok-banner .btn-outline {
    color: var(--color-white);
    border-color: var(--color-silver);
}

.tiktok-banner .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

/* Vertical TikTok Player */
.tiktok-media {
    display: flex;
    justify-content: center;
}

.tiktok-player {
    width: 300px;
    max-width: 100%;
}

.tiktok-frame {
    position: relative;
    aspect-ratio: 9 / 14;
    background-color: #000;
    border: 1px solid #331F4C;
    border-radius: 16px;
    overflow: hidden;
}

.tiktok-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.tiktok-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tiktok-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    background-color: var(--color-white);
    color: var(--color-text-dark);
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
}

.tiktok-play::before,
.tiktok-play::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    animation: tiktokPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.tiktok-play::after {
    animation-delay: 1s;
}

.tiktok-play:hover {
    background-color: #F1E8FA;
}

.tiktok-play.hidden {
    display: none;
}

@keyframes tiktokPing {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    70%, 100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.tiktok-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.9rem;
    margin-top: 1rem;
    border-top: 1px solid #331F4C;
}

.tiktok-author {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-white);
}

.tiktok-caption {
    display: block;
    font-size: 0.75rem;
    color: #A39BB2;
}

.tiktok-open {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

.tiktok-open:hover {
    border-bottom-color: var(--color-white);
}

@media (max-width: 900px) {
    .tiktok-banner {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   13. Contact & Enrollment Section (full brand color panel)
   -------------------------------------------------------------------------- */
.enroll-section {
    position: relative;
    background-color: var(--color-purple);
    background-image: url('assets/teaching.png');
    background-size: cover;
    background-position: center;
    padding: 4.5rem 0;
    color: var(--color-white);
}

.enroll-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(106, 13, 173, 0.86);
}

.enroll-section .container {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: flex-start;
}

.enroll-title {
    color: var(--color-white);
}

.enroll-lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-list {
    display: flex;
    flex-direction: column;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-row:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-icon {
    font-size: 1.35rem;
    color: var(--color-white);
    flex-shrink: 0;
    line-height: 1.4;
}

.contact-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
}

.phone-link {
    color: var(--color-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.phone-link:hover {
    color: var(--color-white);
    border-bottom-color: var(--color-white);
}

/* Form (landscape on desktop, vertical on mobile) */
.contact-form-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.06);
    padding: 2rem;
}

.form-title {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 0.35rem;
}

.form-sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 1.75rem;
}

.inquiry-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group-wide {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-white);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: var(--color-white);
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.form-select {
    color: var(--color-white);
}

.form-select option {
    color: var(--color-text-dark);
    background-color: var(--color-white);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.16);
}

.inquiry-form .btn {
    grid-column: 1 / -1;
}

.form-note {
    font-size: 0.775rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.form-success-message {
    text-align: center;
    padding: 2rem 1rem;
}

.success-icon {
    font-size: 3rem;
    color: #86EFAC;
    margin-bottom: 1rem;
}

.form-success-message h4 {
    font-size: 1.4rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.form-success-message p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
}

/* Button on brand color: white button, purple text */
.btn-light {
    background-color: var(--color-white);
    color: var(--color-purple);
    border: 1px solid var(--color-white);
}

.btn-light:hover {
    background-color: #F1E8FA;
    border-color: #F1E8FA;
    color: var(--color-purple-dark);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .inquiry-form {
        grid-template-columns: 1fr;
    }
    .inquiry-form .btn,
    .form-group-wide {
        grid-column: 1 / -1;
    }
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    overflow: hidden;
    background-color: var(--color-text-dark);
    color: var(--color-white);
    padding: 4.5rem 0 2rem 0;
    border-top: 1px solid #231238;
}

.footer-texture {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: clamp(9rem, 24vw, 22rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.045);
    pointer-events: none;
    user-select: none;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid #28173F;
}

.footer-brand .brand-name {
    color: var(--color-white);
}

.footer-brand .brand-sub {
    color: var(--color-silver);
}

.footer-tagline {
    font-size: 0.9rem;
    color: #AFA9BC;
    line-height: 1.6;
    margin-top: 1.25rem;
    max-width: 34ch;
}

.footer-heading {
    font-size: 0.95rem;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: #AFA9BC;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-address {
    font-size: 0.9rem;
    color: #AFA9BC;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    background-color: #28173F;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background-color var(--transition-fast);
}

.footer-socials a:hover {
    background-color: var(--color-purple);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    font-size: 0.85rem;
    color: #8C849B;
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   15. Scroll Reveal & Toast Component
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out-smooth), transform 0.7s var(--ease-out-smooth);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: var(--color-text-dark);
    color: var(--color-white);
    padding: 0.85rem 1.25rem;
    border: 1px solid #331F4C;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
    z-index: 2000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast i {
    font-size: 1.2rem;
    color: #E879F9;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .tiktok-play::before,
    .tiktok-play::after {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}
