/* ==========================================================================
   POWER INDIAN ACADEMY - ULTIMATE MASTER STYLESHEET
   Version: 7.2 (Fully Responsive, Fluid Typography & Uncropped Poster Slider)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES (Light Mode Defaults & Global Glows)
   -------------------------------------------------------------------------- */
:root {
    --primary-color: #1f273c;
    --secondary-color: #f97316;
    --secondary-glow: rgba(249, 115, 22, 0.25);
    --secondary-neon: 0 0 20px rgba(249, 115, 22, 0.3);

    --bg-white: #ffffff;
    --light-gray: #f8fafc;
    --border-color: #e2e8f0;
    --border-glow: rgba(249, 115, 22, 0.3);

    --text-main: #1e293b;
    --text-muted: #64748b;

    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-blur: blur(16px);

    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --smooth-lift: transform 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;

    --nav-height: 70px;
}

/* --------------------------------------------------------------------------
   2. DARK MODE THEME OVERRIDES
   -------------------------------------------------------------------------- */
body.dark-mode {
    --primary-color: #f8fafc;
    --secondary-color: #f97316;
    --secondary-glow: rgba(249, 115, 22, 0.3);
    --secondary-neon: 0 0 20px rgba(249, 115, 22, 0.5);

    --bg-white: #0b1120;
    --light-gray: #111827;
    --border-color: #1e293b;
    --border-glow: rgba(249, 115, 22, 0.4);

    --text-main: #cbd5e1;
    --text-muted: #94a3b8;

    --glass-bg: rgba(11, 17, 32, 0.95);
}

body.dark-mode .glass-card,
body.dark-mode .glass-panel,
body.dark-mode .action-card,
body.dark-mode .timeline-content,
body.dark-mode .doc-card,
body.dark-mode .stat-box {
    background: #111827;
    border-color: #1e293b;
}

body.dark-mode .page-header {
    background: linear-gradient(135deg, #0b1120 0%, #111827 100%);
}

body.dark-mode .action-card i, body.dark-mode .doc-card i {
    color: var(--secondary-color);
}

/* --------------------------------------------------------------------------
   3. RESET, SCROLLBAR & FLUID TYPOGRAPHY
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-white);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

::selection {
    background: var(--secondary-color);
    color: #ffffff;
}

body {
    font-size: clamp(14px, 1vw, 15px);
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
    word-wrap: break-word;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.25;
    transition: color 0.4s ease;
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 40px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    transition: var(--transition);
}

.section-title:hover::after {
    width: 80px;
    box-shadow: var(--secondary-neon);
}

/* --------------------------------------------------------------------------
   4. STRUCTURAL GRIDS & SCROLL ANIMATIONS
   -------------------------------------------------------------------------- */
section {
    padding: clamp(40px, 8vw, 80px) 5%;
    background: var(--bg-white);
    position: relative;
    transition: background-color 0.4s ease;
}

.section-pattern {
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--bg-white) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 3vw, 30px);
    align-items: stretch;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(15px, 2.5vw, 25px);
    align-items: stretch;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(15px, 2vw, 20px);
    align-items: stretch;
}

.hidden-scroll {
    opacity: 0;
    transform: translateY(25px) scale(0.99);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.hidden-scroll.show-scroll {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --------------------------------------------------------------------------
   5. UI COMPONENTS (Sleek Buttons & Official Cards)
   -------------------------------------------------------------------------- */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 12px 26px;
    background: var(--primary-color);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 1px solid var(--primary-color);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-20deg);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    left: 150%;
    transition: left 0.5s ease;
}

.btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 25px var(--secondary-glow);
    transform: translateY(-2px);
}

.glass-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    padding: clamp(20px, 3vw, 30px);
    transition: var(--smooth-lift);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.glass-card:hover::after {
    width: 100%;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--secondary-glow);
    border-color: var(--border-glow);
}

.glass-card i {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    color: var(--secondary-color);
    margin-bottom: 15px;
    transition: var(--smooth-lift);
}

.glass-card:hover i {
    transform: translateY(-3px);
}

.styled-list {
    list-style: none;
    text-align: left;
    margin: 0;
    padding: 0;
}

.styled-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    font-weight: 500;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    transition: var(--transition);
}

.styled-list li:hover {
    transform: translateX(5px);
    color: var(--secondary-color);
}

.styled-list li i {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-right: 12px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   6. RESPONSIVE EXAM TABLES & PANELS
   -------------------------------------------------------------------------- */
.glass-panel {
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    position: relative;
}

.glass-panel>div {
    min-width: 265px;
}

/* --------------------------------------------------------------------------
   7. ADMISSIONS PAGE COMPONENTS
   -------------------------------------------------------------------------- */
.action-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: clamp(20px, 4vw, 35px) 25px;
    text-align: center;
    transition: var(--smooth-lift);
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.action-card:hover {
    border-top-color: var(--secondary-color);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px var(--secondary-glow);
}

.action-card .icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    flex-shrink: 0;
}

.action-card:hover .icon-wrapper {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.action-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--smooth-lift);
}

.action-card:hover i {
    color: #ffffff;
    transform: translateY(-2px);
}

.timeline-container {
    position: relative;
    padding-left: clamp(25px, 5vw, 40px);
    margin: 40px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: clamp(11px, 2.5vw, 19px);
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: clamp(-25px, -5vw, -40px);
    top: 0;
    width: clamp(30px, 5vw, 40px);
    height: clamp(30px, 5vw, 40px);
    background: var(--bg-white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: var(--primary-color);
    z-index: 2;
    transition: var(--smooth-lift);
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.timeline-item:hover .timeline-dot {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 12px var(--secondary-glow);
}

.timeline-content {
    margin-left: clamp(10px, 3vw, 20px);
    padding: clamp(15px, 4vw, 25px);
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.timeline-item:hover .timeline-content {
    border-left-color: var(--secondary-color);
    transform: translateX(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: var(--bg-white);
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.doc-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    transition: var(--smooth-lift);
}

.doc-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    transition: var(--smooth-lift);
}

.doc-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px var(--secondary-glow);
}

.doc-card:hover i {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.doc-card p {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 600;
    margin: 0;
}

/* --------------------------------------------------------------------------
   8. NAVIGATION & LEFT-FLOATING DROPDOWNS
   -------------------------------------------------------------------------- */
nav {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    height: var(--nav-height);
    top: 0;
    z-index: 1010;
    transition: var(--transition);
}

nav.sticky {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: var(--bg-white);
    border-color: var(--border-glow);
}

.logo h2 {
    margin-bottom: 0;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    font-weight: 800;
    font-size: clamp(1.2rem, 3vw, 1.4rem);
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    height: 100%;
}

.nav-links li {
    margin-left: clamp(10px, 2vw, 25px);
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-links>li>a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.3px;
}

.nav-links>li>a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links>li>a:hover::after, .nav-links>li>a.active::after {
    width: 100%;
}

.nav-links>li>a:hover, .nav-links>li>a.active {
    color: var(--secondary-color);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 15px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--secondary-glow);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: -15px;
    background: var(--bg-white);
    min-width: 270px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 6px 6px;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--secondary-color);
    z-index: 1001;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 993px) {
    .dropdown:hover .dropdown-content {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .sub-dropdown:hover .sub-dropdown-content {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }

    .sub-dropdown .sub-dropbtn .fa-caret-right {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:hover {
    background: var(--light-gray);
    color: var(--secondary-color);
    padding-left: 26px;
    border-left: 3px solid var(--secondary-color);
    box-shadow: inset 4px 0 0 var(--secondary-glow);
}

.sub-dropdown {
    position: relative;
    width: 100%;
}

.sub-dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    right: 100%;
    left: auto;
    top: -3px;
    background: var(--bg-white);
    min-width: 260px;
    box-shadow: -15px 20px 45px rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    border-right: 3px solid var(--secondary-color);
    z-index: 1005;
    transform: translateX(-15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sub-dropdown-content a {
    padding-left: 20px;
    font-size: 0.8rem;
}

.sub-dropdown-content a:hover {
    padding-left: 26px;
}

.menu-btn {
    display: none;
    font-size: clamp(1.3rem, 4vw, 1.5rem);
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
}

.menu-btn:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.page-header {
    min-height: clamp(160px, 20vh, 220px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: var(--nav-height);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--bg-white) 100%);
    padding: 20px 5%;
}

.page-header::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--secondary-glow);
    border-radius: 50%;
    filter: blur(50px);
    top: -40px;
    left: -40px;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.page-header p {
    font-size: clamp(0.9rem, 2vw, 1rem) !important;
    color: var(--text-muted) !important;
    font-weight: 400 !important;
    position: relative;
    z-index: 2;
    margin-top: 5px;
}
/* --------------------------------------------------------------------------
   9. HERO SLIDER (Perfect Poster Responsiveness & Auto-Play)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   9. HERO SLIDER (Zero Cropping - Full Poster Display)
   -------------------------------------------------------------------------- */
.hero-slider {
    padding:0;
    position: relative;
    width: 100%;
    /* Locks the container strictly to the 16:9 poster format */
    aspect-ratio: 16 / 9; 
    /* REMOVED max-height entirely so the browser never squishes the container */
    
    background: var(--primary-color); /* Dark slate background */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--nav-height);
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.02) translateX(20px); 
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: scale(1) translateX(0);
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    /* 'contain' is the magic word: It forces the browser to shrink/grow the image 
       so that 100% of it is ALWAYS visible, ensuring nothing is ever cropped off. */
    object-fit: contain; 
    object-position: center;
    z-index: -1;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(35px, 6vw, 50px);
    height: clamp(35px, 6vw, 50px);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: clamp(1rem, 2vw, 1.2rem);
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.slider-btn:hover {
    background: var(--secondary-color);
    color: #ffffff !important;
    border-color: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px var(--secondary-glow);
}

.prev-btn { left: clamp(10px, 3vw, 4%); }
.next-btn { right: clamp(10px, 3vw, 4%); }

.slider-dots {
    position: absolute;
    bottom: clamp(10px, 2vw, 20px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.dot {
    width: clamp(8px, 1.5vw, 12px);
    height: clamp(8px, 1.5vw, 12px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot:hover { background: #ffffff; }
.dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
    box-shadow: 0 0 8px var(--secondary-color);
}

.slider-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--secondary-color);
    width: 0%;
    z-index: 20;
    box-shadow: 0 0 10px var(--secondary-glow);
}

/* Hide navigation arrows on phones to keep the view of the poster clean */
@media (max-width: 768px) {
    .slider-btn { display: none; }
}

/* 4-Column Stat Box Section */
.stat-box {
    text-align: center;
    padding: clamp(15px, 3vw, 25px) clamp(10px, 2vw, 15px);
    border-bottom: 4px solid var(--secondary-color);
    background: var(--bg-white);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-box h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--secondary-color);
    margin-bottom: 5px;
    line-height: 1;
    text-shadow: 0 4px 10px var(--secondary-glow);
}

.stat-box p {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 600;
    color: var(--text-main);
}

/* Strict Mobile Adjustments (< 768px) */
@media (max-width: 768px) {
    .slider-btn {
        display: none; /* Hides arrows on mobile for a cleaner, modern look */
    }
    
    .slide-content {
        margin-top: -20px; /* Bumps text box slightly up to ensure it clears the dots on small phones */
    }
}
/* --------------------------------------------------------------------------
   10. INTERACTIVE COMPONENTS (Tabs, Flips, Floating Imgs)
   -------------------------------------------------------------------------- */
.flip-card {
    height: clamp(280px, 40vh, 320px);
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    background: var(--bg-white);
}

.flip-card-back {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: rotateY(180deg);
    border-color: var(--secondary-color);
}

.flip-card-back h3 {
    color: var(--secondary-color);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

body.dark-mode .flip-card-back {
    background: #000;
    color: #fff;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--bg-white);
    color: var(--text-main);
    border: 2px solid var(--border-color);
    padding: 10px 22px;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--smooth-lift);
}

.tab-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.tab-pane {
    display: none;
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-pane.active {
    display: block;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.premium-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 50px);
    align-items: center;
    margin-bottom: clamp(50px, 8vw, 80px);
}

.premium-row.reverse-row .premium-visual {
    order: 2;
}

.premium-row.reverse-row .premium-content {
    order: 1;
}

.premium-visual {
    position: relative;
    padding: 15px;
    animation: float 6s ease-in-out infinite;
}

.premium-visual::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 90%;
    height: 90%;
    border: 3px solid var(--secondary-color);
    border-radius: 8px;
    z-index: 1;
    transition: var(--transition);
}

.premium-row.reverse-row .premium-visual::before {
    left: 0;
    right: auto;
}

.img-container {
    position: relative;
    z-index: 2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    height: clamp(250px, 40vw, 380px);
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-row:hover .img-container img {
    transform: scale(1.06);
}

.highlight-box {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    padding: 18px 22px;
    border-left: 4px solid var(--secondary-color);
    border-radius: 6px;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
    margin-top: 15px;
}

/* --------------------------------------------------------------------------
   11. FORMS, INPUTS & FOOTER
   -------------------------------------------------------------------------- */
.contact-input {
    width: 100%;
    padding: 14px 20px;
    background: var(--light-gray);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    color: var(--primary-color);
    outline: none;
    transition: var(--transition);
    font-weight: 500;
}

.contact-input:focus {
    background: var(--bg-white);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px var(--secondary-glow);
}

footer {
    background: #0b1120;
    color: #94a3b8;
    padding: 80px 5% 20px;
    border-top: 4px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(249, 115, 22, 0.05);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    filter: blur(40px);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.footer-col h3 {
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    font-size: 1.25rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
}

.footer-col p, .footer-col a {
    color: #cbd5e1;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 400;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--secondary-color);
    padding-left: 8px;
}

/* --------------------------------------------------------------------------
   12. FLAWLESS MOBILE RESPONSIVENESS & ACCORDION NAVIGATION
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    nav {
        z-index: 1020;
    }

    .theme-toggle {
        margin-left: auto;
        margin-right: 15px;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        background: var(--bg-white);
        width: 100%;
        height: calc(100vh - var(--nav-height));
        flex-direction: column;
        text-align: left;
        padding: 20px 5%;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        display: block;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        height: auto;
        display: block;
    }

    .nav-links>li>a {
        display: block;
        padding: 16px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 1rem;
    }

    .menu-btn {
        display: block;
    }

    .dropdown-content, .sub-dropdown-content {
        position: static;
        display: none;
        visibility: visible;
        opacity: 1;
        transform: none;
        min-width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        max-height: none;
        background: transparent;
    }

    .sub-dropdown-content {
        border-right: none;
        border-left: 2px solid var(--secondary-color);
        margin-left: 15px;
        margin-bottom: 10px;
    }

    .dropdown.active>.dropdown-content, .sub-dropdown.active>.sub-dropdown-content {
        display: block;
        animation: slideDownMobile 0.35s ease forwards;
    }

    @keyframes slideDownMobile {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .dropdown-content a {
        padding: 14px 20px;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .sub-dropbtn .fa-caret-right {
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    }

    .sub-dropdown.active .sub-dropbtn .fa-caret-right {
        transform: rotate(270deg);
    }

    /* Hide desktop arrows to save mobile screen space */
    .slider-btn {
        display: none;
    }

    .premium-visual {
        animation: none;
        padding: 5px;
    }

    .premium-row, .premium-row.reverse-row {
        grid-template-columns: 1fr;
    }

    .premium-row .premium-visual, .premium-row.reverse-row .premium-visual {
        order: 1;
    }

    .premium-row .premium-content, .premium-row.reverse-row .premium-content {
        order: 2;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 20px 15px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   13. FLOATING WHATSAPP WIDGET
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    z-index: 1005;
    transition: var(--transition);
    text-decoration: none;
    animation: pulse-green 2.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
    color: #ffffff;
    animation: none;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background: var(--bg-white);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--bg-white);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }

    .whatsapp-tooltip {
        display: none;
    }
}
/* =========================================
   DIRECTOR'S DESK RESPONSIVE FIX
   ========================================= */
.director-panel {
    max-width: 1100px;
    margin: 0 auto;
    /* Uses clamp to reduce padding on small phones, stopping overflow */
    padding: clamp(20px, 5vw, 45px); 
    text-align: left;
}

.director-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(30px, 5vw, 60px);
}

.director-text {
    flex: 1; /* Allows text to take up remaining space smoothly */
}

.director-wrapper {
    text-align: center;
    flex-shrink: 0; /* Prevents the circular image from getting squished into an oval */
}

.director-img-container {
    width: clamp(200px, 45vw, 280px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 35px var(--secondary-glow);
    border: 8px solid var(--bg-white);
    overflow: hidden;
    transition: transform 0.4s ease;
}

.director-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Strict Mobile Fix: Stack elements and center text */
@media (max-width: 850px) {
    .director-content {
        /* column-reverse pushes the image to the top on mobile */
        flex-direction: column-reverse; 
        text-align: justify;
    }
    
    .director-panel, .director-text {
        text-align: center; /* Centers the text below the image */
    }
}

/* --- RESPONSIVE DIRECTOR PROFILE IMAGE --- */
.director-wrapper {
    text-align: center;
    margin-top: clamp(20px, 5vw, 0px); /* Adds spacing ONLY on mobile when it stacks */
}
.director-img-container {
    width: clamp(160px, 55vw, 280px); /* Shrinks automatically on small phones */
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 35px var(--secondary-glow);
    border: 8px solid var(--bg-white);
    overflow: hidden;
    transition: transform 0.4s ease;
}
.director-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   14. ELITE GALLERY & DUAL-MEDIA LIGHTBOX (YouTube Style)
   ========================================= */
.gallery-grid {
    display: grid;
    /* Auto-fill keeps items compact instead of stretching them massively */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: clamp(15px, 2vw, 20px);
    max-width: 100%; /* Allows it to span wide like YouTube */
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 12px; /* Slightly more rounded corners like modern YouTube */
    overflow: hidden;
    aspect-ratio: 16 / 9; /* Strict YouTube Video Format */
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Specific YouTube-Style Breakpoints */
@media (max-width: 768px) {
    .gallery-grid {
        /* 2 smaller thumbnails side-by-side on Tablets/Large phones */
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        /* 1 Full-width thumbnail per row on small phones (Exact YouTube App behavior) */
        grid-template-columns: 1fr; 
        gap: 20px;
    }
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 17, 32, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(2px);
}

.gallery-overlay i {
    color: #ffffff;
    font-size: 2.5rem;
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Distinct Play Button Styling for Videos */
.video-overlay {
    opacity: 1; /* Always show a faint play button to indicate it's a video */
    background: rgba(11, 17, 32, 0.3);
}
.video-overlay i {
    transform: scale(1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
}

/* Hover Physics */
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; background: rgba(11, 17, 32, 0.6); }
.gallery-item:hover .gallery-overlay i { transform: scale(1.2); color: var(--secondary-color); }

/* Dual-Media Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    border: 2px solid var(--secondary-color);
    animation: zoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none; /* Removes outline from video element */
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    transition: var(--transition);
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover, .lightbox-close:focus {
    color: var(--secondary-color);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .lightbox-close { top: 15px; right: 25px; font-size: 35px; }
    .lightbox-content { max-width: 95%; max-height: 70vh; }
}

/* =========================================
   15. FLOATING PROMOTIONAL MODAL
   ========================================= */
.promo-modal {
    display: none; 
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.promo-modal.show {
    display: flex;
    opacity: 1;
}

.promo-content {
    background: linear-gradient(180deg, #1e293b 0%, #0b1120 100%);
    border: 2px solid #d4af37; /* Premium Gold Border */
    border-radius: 12px;
    max-width: 450px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.2);
    text-align: center;
    overflow: hidden;
    animation: promoPopUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes promoPopUp {
    0% { transform: scale(0.8) translateY(50px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.promo-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #ffffff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.promo-close:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.promo-header {
    padding: 25px 15px 15px;
}

.promo-header h2 {
    color: #d4af37; 
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.promo-ribbon {
    background: #ffffff;
    color: #0b1120;
    font-weight: 800;
    padding: 8px 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.promo-image-container {
    width: 100%;
    height: 180px;
    background: #111827;
    border-top: 2px solid rgba(212, 175, 55, 0.5);
    border-bottom: 2px solid rgba(212, 175, 55, 0.5);
}

.promo-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.promo-details {
    padding: 20px 15px;
}

.promo-course-title {
    color: #d4af37;
    font-size: 1.8rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.promo-mentor {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 15px;
}

.promo-pricing {
    margin-bottom: 15px;
}

.limited-seats {
    color: #d4af37;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.price-strikethrough {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    line-height: 1;
    margin: 5px 0;
}

.price-strikethrough::after {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    top: 50%;
    height: 4px;
    background-color: #ff0000; 
    transform: translateY(-50%) rotate(-10deg);
}

.price-final {
    color: #d4af37;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.promo-footer {
    background: #ffffff;
    color: #0b1120;
    padding: 20px 15px;
    font-size: 0.95rem;
}

.promo-footer p {
    margin-bottom: 5px;
    font-weight: 600;
}

.promo-footer a {
    color: #0b1120;
    text-decoration: none;
    transition: color 0.3s;
}

.promo-footer a:hover {
    color: var(--secondary-color);
}

.promo-btn {
    margin-top: 15px;
    width: 100%;
    background: #25d366; 
    border-color: #25d366;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.1rem;
}

.promo-btn:hover {
    background: #1ebc59;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}