/* ==========================================================================
   MUDHALVAN CHESS ACADEMY - PREMIUM STYLESHEET
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Noto+Serif+Tamil:wght@400;600;700&display=swap');

/* Local Font Face - Friz Quadrata */
@font-face {
    font-family: 'Friz Quadrata';
    src: url('assets/friz-quadrata.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Color Variables & Themes */
:root {
    /* Dark Mode (Default) Variables */
    --bg-primary: #0a0f0b;
    --bg-secondary: #121b14;
    --bg-card: rgba(18, 27, 20, 0.7);
    --bg-input: #1a251d;
    --text-primary: #f4f6f3;
    --text-secondary: #a4b3a7;
    --accent-green: #2e7d32;
    --accent-green-rgb: 46, 125, 50;
    --accent-green-hover: #388e3c;
    --accent-gold: #c5a059;
    --accent-gold-rgb: 197, 160, 89;
    --accent-gold-hover: #d6b572;
    --glow-gold: rgba(197, 160, 89, 0.35);
    --text-on-gold: #0a0f0b;
    --board-green: #4b7d59;
    --board-light: #e8ebdf;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(10, 15, 11, 0.8);
    --glass-border: rgba(46, 125, 50, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --glow-color: rgba(46, 125, 50, 0.35);
    
    /* Animation Speeds */
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s ease;
}

[data-theme="light"] {
    /* Light Mode Variables */
    --bg-primary: #f9fbf8;
    --bg-secondary: #f0f4ef;
    --bg-card: rgba(240, 244, 239, 0.85);
    --bg-input: #ffffff;
    --text-primary: #121b14;
    --text-secondary: #5c6b60;
    --accent-green: #2e7d32;
    --accent-green-rgb: 46, 125, 50;
    --accent-green-hover: #1b5e20;
    --accent-gold: #aa7c11;
    --accent-gold-rgb: 170, 124, 17;
    --board-green: #4b7d59;
    --board-light: #e8ebdf;
    --accent-gold-hover: #8d660b;
    --glow-gold: rgba(170, 124, 17, 0.2);
    --text-on-gold: #ffffff;
    --border-color: rgba(46, 125, 50, 0.12);
    --glass-bg: rgba(249, 251, 248, 0.9);
    --glass-border: rgba(46, 125, 50, 0.15);
    --shadow-color: rgba(46, 125, 50, 0.1);
    --glow-color: rgba(46, 125, 50, 0.15);
}

/* Document Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17.5px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color var(--transition-medium), color var(--transition-medium);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green-hover);
}

/* Typography base styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 1px;
}

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

/* ==========================================================================
   PRELOADER (3D Canvas Overlay & Tap To Play Circle)
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: #050805; /* Solid dark background to hide loading */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 12vh; /* Lift text elements to the top area */
    overflow: hidden;
    transition: opacity 1.2s cubic-bezier(0.85, 0, 0.15, 1), visibility 1.2s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#preloader-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.preloader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(5, 8, 5, 0.85) 100%);
    z-index: 2;
    pointer-events: none;
}

.preloader-ui {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    pointer-events: auto;
}

.preloader-title {
    font-size: 2.2rem;
    color: var(--accent-gold);
    letter-spacing: 4px;
    text-shadow: 0 0 15px rgba(197, 160, 89, 0.4), 0 0 30px rgba(46, 125, 50, 0.4);
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInSlide 1s forwards 0.5s;
    font-weight: 800;
}

.preloader-loader-container {
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    transform: scale(0.9);
    animation: scaleInPulse 1s forwards 1.2s;
}

.preloader-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    border: 1px solid rgba(197, 160, 89, 0.15);
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.preloader-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-gold));
    box-shadow: 0 0 10px var(--accent-gold);
}

.preloader-status {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(197, 160, 89, 0.3);
}

/* Animations for Preloader */
@keyframes fadeInSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes scaleInPulse {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 25px rgba(197, 160, 89, 0.25), inset 0 0 15px rgba(197, 160, 89, 0.15);
    }
    50% {
        box-shadow: 0 0 40px rgba(46, 125, 50, 0.6), inset 0 0 20px rgba(46, 125, 50, 0.3);
        border-color: var(--accent-green);
    }
}
@keyframes spinDashed {
    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   SHARED HEADER & NAV (Glassmorphic)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    transition: background-color var(--transition-medium);
}

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

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

.logo-icon {
    width: 32px;
    height: 32px;
    fill: var(--accent-gold);
    transition: fill var(--transition-fast);
}

.logo-img {
    height: 52px;
    width: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.logo:hover .logo-img {
    transform: scale(1.05);
    border-color: var(--accent-gold);
}

.logo-text {
    font-family: 'Cinzel', serif;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-brand {
    font-family: 'Friz Quadrata', serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.mudhalvan-font {
    font-family: 'Friz Quadrata', serif !important;
}

.logo-sub {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 0.3rem 0;
    color: var(--text-secondary);
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width var(--transition-medium);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--accent-gold);
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    background-color: var(--bg-card);
    transition: transform var(--transition-medium), background-color var(--transition-fast);
}

.theme-toggle-btn:hover {
    transform: rotate(45deg) scale(1.05);
    background-color: var(--bg-input);
    border-color: var(--accent-gold);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ==========================================================================
   BUTTONS (Premium glowing & geometric)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-medium);
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--text-on-gold);
    border: 1px solid transparent;
    box-shadow: 0 4px 15px var(--glow-gold);
}

.btn-primary:hover {
    background: var(--accent-gold-hover);
    box-shadow: 0 6px 20px var(--glow-gold);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.btn-secondary:hover {
    background: rgba(197, 160, 89, 0.08);
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--accent-gold);
    color: var(--text-on-gold);
    border: 1px solid transparent;
    box-shadow: 0 4px 15px var(--glow-gold);
}

.btn-whatsapp:hover {
    background: var(--accent-gold-hover);
    box-shadow: 0 6px 20px var(--glow-gold);
    transform: translateY(-2px);
}

.btn-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ==========================================================================
   HERO / MAIN STRUCTURE
   ========================================================================== */
main {
    flex: 1;
    margin-top: 80px; /* Offset fixed header */
}

section {
    padding: 6.5rem 2rem;
    position: relative;
}

.section-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4.5rem auto;
}

.section-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    color: var(--accent-gold);
    letter-spacing: 4px;
    font-weight: 700;
    margin-bottom: 1.4rem;
    text-transform: uppercase;
    display: inline-block;
    margin-top: -0.5rem;
    transform: translateY(-4px);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Page Hero Header Banner (About, Courses, etc.) */
.page-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 6rem 2rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, var(--border-color) 25%, transparent 25%), 
        linear-gradient(-45deg, var(--border-color) 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, var(--border-color) 75%), 
        linear-gradient(-45deg, transparent 75%, var(--border-color) 75%);
    background-size: 60px 60px;
    opacity: 0.03;
    pointer-events: none;
}

.page-hero .section-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   HERO SECTION (index.html)
   ========================================================================== */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.hero-academy-tag {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--accent-gold);
    font-weight: 700;
    border-left: 3px solid var(--accent-green);
    padding-left: 1rem;
}

.hero-heading {
    font-size: 3.2rem;
    line-height: 1.15;
    font-weight: 800;
    background: linear-gradient(to right, var(--text-primary) 40%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtext {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Hero Chess Board Visual Widget */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.board-widget {
    width: 480px;
    height: 480px;
    display: block;
    overflow: visible;
    position: relative;
    transition: transform var(--transition-slow);
}

.board-widget:hover {
    transform: scale(1.02);
}

.board-square {
    width: 100%;
    height: 100%;
    position: relative;
}

.board-square.dark {
    background-color: var(--board-green);
}

.board-square.light {
    background-color: var(--board-light);
}

.widget-piece {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    opacity: 0.95;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
    transition: transform 0.4s ease;
}

.board-square:hover .widget-piece {
    transform: translate(-50%, -60%) scale(1.15);
}

.badge-20yrs {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--accent-green);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    transform: rotate(5deg);
    z-index: 10;
}

.badge-20yrs-num {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-gold);
}

.badge-20yrs-text {
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Glass Card Premium Styling */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-gold));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border);
    box-shadow: 0 15px 40px var(--shadow-color), 0 0 15px var(--glow-color);
}

.card:hover::before {
    opacity: 1;
}

/* ==========================================================================
   SECTION 2: WHY CHOOSE US
   ========================================================================== */
.feature-card {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.feature-num {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    line-height: 1;
    color: rgba(197, 160, 89, 0.18);
    font-weight: 800;
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    transition: color var(--transition-fast);
}

.feature-card:hover .feature-num {
    color: var(--accent-gold);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: rgba(46, 125, 50, 0.1);
    border: 1px solid rgba(46, 125, 50, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-green);
    transition: all var(--transition-fast);
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--accent-green);
    color: #ffffff;
}

.feature-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.feature-title {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   SECTION 3: COURSES SNAPSHOT & FULL PAGE
   ========================================================================== */
.course-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.course-card-popular {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
}

.course-card-popular-text {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 800;
    color: #000;
    text-transform: uppercase;
    text-align: center;
    line-height: 22px;
    transform: rotate(45deg);
    width: 200px;
    display: block;
    background: linear-gradient(135deg, #ffd700 0%, #f39c12 100%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 30px;
    right: -50px;
    letter-spacing: 1px;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.course-title {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.course-age {
    background: rgba(197, 160, 89, 0.12);
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.course-meta svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.course-body {
    margin-bottom: 2rem;
}

.course-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.course-learn-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.course-learn-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.course-learn-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-learn-list li::before {
    content: "✓";
    color: var(--accent-green);
    font-weight: bold;
}

.course-footer {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: auto;
}

.course-price-box {
    background: var(--bg-secondary);
    border-radius: 4px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.course-price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.course-price-val {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.course-price-val span {
    font-size: 0.8rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-secondary);
}

/* Online Section Styling */
.online-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-top: 1px solid var(--border-color);
}

.online-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.online-features {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.online-feature-item {
    display: flex;
    gap: 1.2rem;
}

.online-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.1);
    color: var(--accent-gold);
    display: flex;
    justify-content: center;
    align-items: center;
}

.online-feature-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.online-feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.online-feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   TESTIMONIALS (Section 4)
   ========================================================================== */
.testimonial-carousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.testimonial-card {
    padding: 3rem;
}

.quote-icon {
    font-size: 4rem;
    line-height: 1;
    color: rgba(197, 160, 89, 0.15);
    position: absolute;
    top: 1.5rem;
    left: 2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-secondary);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--accent-gold);
}

.author-info h4 {
    font-size: 1rem;
    color: var(--text-primary);
}

.author-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   CTA SECTION & CONTACT (Section 5, Contact form)
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(46, 125, 50, 0.15) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
}

.cta-box .section-title {
    font-size: 2.8rem;
    margin-bottom: 0;
}

.cta-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Forms styling (Contact & Franchise) */
.form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3.5rem;
    box-shadow: 0 15px 40px var(--shadow-color);
}

.form-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-green);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.form-control {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 0.9rem 1.2rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 8px rgba(46, 125, 50, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-submit-btn {
    width: 100%;
}

/* ==========================================================================
   ABOUT US PAGE (about.html)
   ========================================================================== */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.stat-num {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.vision-mission-grid {
    margin-top: 5rem;
}

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

.founder-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.founder-image-wrapper {
    position: relative;
    border: 4px solid var(--accent-gold);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/5;
    width: 100%;
    max-width: 225px;
    margin-left: 3.5rem;
    box-shadow: 0 15px 35px var(--shadow-color);
}

.founder-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.founder-image-wrapper:hover img {
    transform: scale(1.05);
}

.coach-section {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.coach-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.coach-image-wrapper {
    position: relative;
    border: 4px solid var(--accent-gold);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/5;
    width: 100%;
    max-width: 225px;
    margin-right: 3.5rem;
    justify-self: end;
    box-shadow: 0 15px 35px var(--shadow-color);
}

.coach-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.coach-image-wrapper:hover img {
    transform: scale(1.05);
}

.founder-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.founder-title {
    font-size: 1.1rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.founder-name {
    font-size: 2.2rem;
    margin-bottom: -0.5rem;
}

.founder-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==========================================================================
   TOURNAMENTS & WINNERS (tournaments.html)
   ========================================================================== */
.tournaments-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tournament-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all var(--transition-medium);
}

.tournament-row:hover {
    transform: translateX(5px);
    border-color: var(--glass-border);
    box-shadow: 0 8px 25px var(--shadow-color), 0 0 10px var(--glow-color);
}

.tournament-badge {
    text-align: center;
}

.t-icon-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.1);
    color: var(--accent-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 0.8rem auto;
}

.t-icon-container svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.t-level {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tournament-details {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tournament-name {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.tournament-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tournament-action {
    text-align: right;
}

/* ==========================================================================
   GALLERY PAGE (gallery.html)
   ========================================================================== */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.8rem;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    letter-spacing: 1.5px;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--text-on-gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
}

.gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all var(--transition-medium);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 15, 11, 0.9) 100%);
    opacity: 0;
    transition: opacity var(--transition-medium);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    pointer-events: none;
}

.gallery-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 700;
    transform: translateY(10px);
    transition: transform var(--transition-medium);
}

.gallery-category {
    font-size: 0.75rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transform: translateY(10px);
    transition: transform var(--transition-medium) 0.1s;
}

.gallery-item:hover {
    transform: scale(1.02) translateY(-5px);
    border-color: var(--glass-border);
    box-shadow: 0 10px 25px var(--shadow-color), 0 0 15px var(--glow-color);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-title,
.gallery-item:hover .gallery-category {
    transform: translateY(0);
}

/* Lightbox overlay */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 5, 0.95);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border: 4px solid var(--accent-gold);
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: #ffffff;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--accent-gold);
}

/* ==========================================================================
   FRANCHISE PAGE (franchise.html)
   ========================================================================== */
.table-wrapper {
    overflow-x: auto;
    margin: 3rem 0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 10px 25px var(--shadow-color);
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: var(--bg-card);
}

.premium-table th, 
.premium-table td {
    padding: 1.2rem 1.8rem;
    border-bottom: 1px solid var(--border-color);
}

.premium-table th {
    background: var(--bg-secondary);
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-gold);
    text-transform: uppercase;
}

.premium-table tr:last-child td {
    border-bottom: none;
}

.premium-table tr:hover td {
    background: rgba(46, 125, 50, 0.05);
}

.table-highlight {
    font-weight: 700;
    color: var(--text-primary);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3.5rem 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    margin-top: 3rem;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
}

.step-num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-green);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 0 15px var(--glow-color);
}

.step-title {
    font-size: 1.15rem;
    color: var(--text-primary);
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
   CONTACT US PAGE (contact.html)
   ========================================================================== */
.contact-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.contact-info-card {
    display: flex;
    gap: 1.5rem;
}

.contact-info-icon {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    background: rgba(197, 160, 89, 0.1);
    color: var(--accent-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.contact-info-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.contact-info-content p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.contact-info-content a:hover {
    color: var(--accent-gold);
}

.map-wrapper {
    border: 3px solid var(--accent-gold);
    border-radius: 8px;
    overflow: hidden;
    height: 380px;
    box-shadow: 0 15px 35px var(--shadow-color);
    margin-top: 1.5rem;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg); /* Dark mode map styling, bypassed in light theme using JS if needed */
}

/* ==========================================================================
   FOOTER (Premium standard layout)
   ========================================================================== */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 5rem 2rem 2rem 2rem;
    color: var(--text-secondary);
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
}

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

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-col h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

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

.footer-links a:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3), 0 0 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: transform var(--transition-medium), background-color var(--transition-fast);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #1ebe57;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Toast Notification (Form submissions) */
.toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--bg-card);
    border: 1px solid var(--accent-green);
    border-radius: 6px;
    padding: 1rem 2rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
    pointer-events: none;
}

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

.toast-icon {
    color: var(--accent-green);
}

.toast-msg {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Adaptive styling)
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-4, .support-grid, .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-heading {
        font-size: 2.8rem;
    }
    
    .hero-wrapper {
        gap: 2rem;
    }
}

@media (max-width: 1150px) {
    /* Mobile Menu Drawer style */
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        gap: 1.8rem;
        transition: left 0.4s cubic-bezier(0.85, 0, 0.15, 1);
        border-right: 1px solid var(--border-color);
        padding: 3rem 2rem 4rem 2rem;
        z-index: 998;
        overflow-y: auto;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16.5px;
    }
    
    section {
        padding: 4.5rem 1.5rem;
    }
    
    .grid-2, .grid-3, .hero-wrapper, .about-split, .founder-wrapper, .coach-wrapper, .contact-split, .online-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .founder-image-wrapper, .coach-image-wrapper {
        max-width: 180px;
        margin: 0 auto;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .board-widget {
        width: 360px;
        height: 360px;
    }
    
    .testimonial-carousel {
        grid-template-columns: 1fr;
    }
    
    .tournament-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .tournament-action {
        text-align: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .grid-4, .support-grid, .steps-container {
        grid-template-columns: 1fr;
    }
    
    .board-widget {
        width: 300px;
        height: 300px;
    }
    
    .hero-heading {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .form-wrapper {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    z-index: 999;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #1ebe57;
}
.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* ==========================================================================
   ADMISSIONS POPUP WINDOW
   ========================================================================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 5, 0.88);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    backdrop-filter: blur(8px);
}
.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}
.popup-content {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    padding: 3rem;
    width: 90%;
    max-width: 480px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--glow-color);
    transform: scale(0.7);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.popup-overlay.active .popup-content {
    transform: scale(1);
}
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.popup-close:hover {
    color: var(--accent-gold);
}
.popup-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.popup-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ==========================================================================
   PRODUCTS CATALOG GRID
   ========================================================================== */
.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.product-image-placeholder {
    width: 100%;
    height: 180px;
    background: var(--bg-input);
    border: 1px dashed var(--accent-green);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}
.product-price {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--accent-gold);
    margin: 0.8rem 0;
    font-weight: bold;
}

/* ==========================================================================
   FAQ ACCORDION COMPONENT
   ========================================================================== */
.faq-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}
.faq-item:hover {
    border-color: var(--accent-gold);
}
.faq-header {
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}
.faq-header-icon {
    font-size: 1.4rem;
    color: var(--accent-gold);
    transition: transform var(--transition-medium);
}
.faq-item.active .faq-header-icon {
    transform: rotate(45deg);
}
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s;
    padding: 0 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.98rem;
}
.faq-item.active .faq-body {
    padding: 0 2rem 1.5rem 2rem;
}

/* ==========================================================================
   BLOG CARDS & CONTENT
   ========================================================================== */
.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.blog-meta {
    font-size: 0.8rem;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   CHESS GAMEPLAY BOARD (play.html)
   ========================================================================== */
.play-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: start;
    margin-top: 2rem;
}
.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.chess-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width: 520px;
    height: 520px;
    border: 14px solid #361b0c; /* Rich premium walnut border */
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px var(--glow-color);
}
.chess-cell {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
}
.chess-cell.light {
    background-color: #dfc190; /* Premium Birch wood style */
}
.chess-cell.dark {
    background-color: #7b4b26; /* Premium Mahogany wood style */
}
.chess-cell.selected {
    background-color: rgba(247, 202, 24, 0.5) !important;
}
.chess-cell.valid-move::after {
    content: '';
    width: 18px;
    height: 18px;
    background-color: rgba(46, 125, 50, 0.7);
    border-radius: 50%;
    position: absolute;
    z-index: 5;
    pointer-events: none;
}
.chess-cell.valid-move.has-piece::after {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(46, 125, 50, 0.8);
    background: transparent;
    border-radius: 50%;
}
.chess-piece {
    font-size: 3.2rem;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 80%;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.45));
}
.chess-piece.white {
    color: #f7ebd3;
    text-shadow: 0 0 4px #ffffff, 0 0 10px #c5a059;
}
.chess-piece.black {
    color: #1e3020;
    text-shadow: 0 0 4px #0a0f0b, 0 0 10px #2e7d32;
}
.chess-piece:hover {
    transform: scale(1.15);
}
.game-status-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 10px 30px var(--shadow-color);
}
.status-turn {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    color: var(--accent-gold);
    text-shadow: 0 0 10px var(--glow-color);
}
.move-history-box {
    height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 6px;
    padding: 1rem;
    font-size: 0.9rem;
    font-family: monospace;
    color: var(--text-secondary);
}
.student-counter-container {
    background: rgba(46, 125, 50, 0.08);
    border: 1px solid rgba(46, 125, 50, 0.2);
    border-radius: 6px;
    padding: 1.2rem;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin: 2rem 0;
    box-shadow: 0 0 15px rgba(46, 125, 50, 0.1);
}

@media (max-width: 1024px) {
    .play-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}
@media (max-width: 580px) {
    .chess-board {
        width: 320px;
        height: 320px;
        border-width: 8px;
    }
    .chess-piece {
        font-size: 2.1rem;
    }
    .chess-cell.valid-move.has-piece::after {
        width: 30px;
        height: 30px;
        border-width: 3px;
    }
}

