/* =============================================
   HOMEPAGE STYLES - Situ Sir Maths Platform
   © Situ Ghosh - All Rights Reserved
   ============================================= */

/* ====== CSS VARIABLES ====== */
:root {
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --primary-soft: rgba(30, 64, 175, 0.08);
    --secondary: #059669;
    --secondary-light: #10b981;
    --accent: #f59e0b;
    --accent-light: #fbbf24;

    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --card: #ffffff;
    --text: #0f172a;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.15);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-body: 'Inter', 'Poppins', sans-serif;
    --font-accent: 'Caveat', cursive;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

/* ====== RESET & BASE ====== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: #050a1a;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ====== NAVIGATION ====== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 10, 26, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    transition: var(--transition);
}

.site-nav.scrolled {
    background: rgba(5, 10, 26, 0.92);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: #60a5fa;
    white-space: nowrap;
}

.nav-logo small {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.9);
    transition: var(--transition);
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-body);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: 600;
}

.nav-link.nav-highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-weight: 600;
}

.nav-link.nav-highlight:hover {
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
    transform: translateY(-1px);
}

.nav-link i {
    font-size: 0.85rem;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.dropdown-menu a i {
    color: var(--primary-light);
    font-size: 0.85rem;
}

/* Admin */
.admin-only {
    display: none;
}

body.is-admin .admin-only {
    display: flex;
    gap: 6px;
}

.admin-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
}

.admin-btn:hover {
    color: var(--primary);
    border-color: var(--primary-light);
}

/* Advanced Auth Dropdown */
.auth-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-btn-guest {
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.2);
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px 6px 6px;
    border-radius: 50px;
    cursor: pointer;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.user-avatar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.user-dropdown-header strong {
    display: block;
    color: var(--text);
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-header span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.dropdown-item i {
    font-size: 1rem;
    color: var(--text-light);
    width: 16px;
    text-align: center;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

.dropdown-item:hover i {
    color: var(--primary);
}

.dropdown-item.text-danger:hover {
    background: #fef2f2;
    color: #ef4444;
}

.dropdown-item.text-danger:hover i {
    color: #ef4444;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ====== HERO SECTION (Modern Split) ====== */
.hero {
    position: relative;
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 40px 5%;
    overflow: hidden;
    background: transparent;
    gap: 40px;
}

/* Background Pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(59, 130, 246, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    text-align: left;
    /* Left align text */
    padding-left: 20px;
}

.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary);
    border: 1px solid rgba(30, 64, 175, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-badge i {
    color: var(--accent);
}

/* Heading */
.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: #f1f5f9;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 .text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle */
.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(203, 213, 225, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 90%;
}

.hero-subtitle strong {
    color: var(--primary);
    font-weight: 600;
}

/* Buttons */
.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* Left align buttons */
}

/* Modern Teacher Card */
.hero-card {
    position: relative;
    width: 380px;
    height: 480px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.15);
    padding: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transform: rotate(-2deg);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.hero-card:hover {
    transform: rotate(0deg);
}

.hero-teacher-img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.hero-teacher-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Stats on Image */
.hero-card-stat {
    position: absolute;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #e2e8f0;
    z-index: 3;
}

.stat-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-soft);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.float-1 {
    bottom: 30px;
    left: -20px;
}

.float-2 {
    top: 40px;
    right: -20px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
        height: auto;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        align-items: center;
        padding-left: 0;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 40px;
    }

    .hero-card {
        width: 320px;
        height: 400px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}


/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn i {
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

.btn-outline {
    background: white;
    color: var(--primary);
    border-color: var(--primary-light);
}

.btn-outline:hover {
    background: var(--primary-soft);
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ====== TRUST BAR ====== */
.trust-bar {
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    padding: 0;
}

.trust-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 24px;
    justify-content: center;
    border-right: 1px solid rgba(59, 130, 246, 0.1);
}

.trust-item:last-child {
    border-right: none;
}

.trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.trust-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #f1f5f9;
}

.trust-text span {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.8);
}

/* ====== SECTIONS COMMON ====== */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px;
}

.section-title {
    text-align: center;
    margin-bottom: 56px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-title p {
    font-size: 1.1rem;
    color: rgba(148, 163, 184, 0.8);
    max-width: 550px;
    margin: 0 auto;
}

/* ====== HOW IT WORKS ====== */
.how-it-works {
    background: rgba(10, 15, 30, 0.65);
    backdrop-filter: blur(15px);
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step-card {
    background: rgba(15, 23, 42, 0.7);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.15);
    max-width: 300px;
    flex: 1;
    position: relative;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 16px auto 20px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #f1f5f9;
}

.step-card p {
    font-size: 0.95rem;
    color: rgba(148, 163, 184, 0.8);
}

.step-connector {
    flex: 0 0 80px;
    display: flex;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
}

/* ====== LEARN BY CLASS ====== */
.courses-section {
    background: rgba(10, 15, 30, 0.55);
    backdrop-filter: blur(15px);
}

.course-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.course-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

/* ====== Glassmorphism for Sections ====== */
.how-it-works,
.courses-section,
.tools-section,
.testimonials-section,
.gallery-section,
.teacher-section,
.site-footer {
    backdrop-filter: blur(8px) !important;
}

.course-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.course-class-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.course-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.course-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.course-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chapter-preview {
    list-style: none;
    margin-bottom: 24px;
}

.chapter-preview li {
    font-size: 0.92rem;
    color: rgba(203, 213, 225, 0.8);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px dashed rgba(59, 130, 246, 0.1);
}

.chapter-preview li:last-child {
    border-bottom: none;
}

.chapter-preview li i {
    color: var(--secondary-light);
    font-size: 0.8rem;
}

.course-features {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.course-features span {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.1);
    color: rgba(148, 163, 184, 0.9);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* Specific Card Colors */
.course-10 .course-header {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
}

.course-10:hover {
    border-color: var(--secondary-light);
}

.course-10 .btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
}

/* ====== TOOLS SECTION ====== */
.tools-section {
    background: rgba(10, 15, 30, 0.65);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.tool-card {
    background: rgba(15, 23, 42, 0.7);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.tool-featured {
    grid-column: span 2;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border: none;
    color: white;
}

@media (max-width: 768px) {
    .tool-featured {
        grid-column: span 1;
    }
}

.tool-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tool-featured .tool-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tool-info h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #f1f5f9;
}

.tool-featured .tool-info h3 {
    color: white;
}

.tool-info p {
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.8);
    line-height: 1.4;
}

.tool-featured .tool-info p {
    color: rgba(255, 255, 255, 0.9);
}

.tool-arrow {
    margin-left: auto;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.tool-featured .tool-arrow {
    color: rgba(255, 255, 255, 0.6);
}

.tool-card:hover .tool-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

.tool-featured:hover .tool-arrow {
    color: white;
}

.more-tools {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.more-tools a {
    color: var(--primary);
    font-weight: 500;
    margin: 0 4px;
    border-bottom: 1px dashed var(--primary-light);
}

.more-tools a:hover {
    border-bottom: 1px solid var(--primary);
}

/* ====== TESTIMONIALS ====== */
.testimonials-section {
    background: rgba(10, 15, 30, 0.55);
    backdrop-filter: blur(15px);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(15, 23, 42, 0.7);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(59, 130, 246, 0.15);
    position: relative;
    backdrop-filter: blur(10px);
}

.testimonial-stars {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    gap: 2px;
}

.testimonial-text {
    font-size: 1rem;
    color: rgba(226, 232, 240, 0.9);
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.9rem;
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
    color: #f1f5f9;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.7);
}

/* ====== GALLERY SECTION ====== */
.gallery-section {
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(15px);
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 240px;
    /* Fixed height for uniformity */
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-upload-placeholder {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 240px;
    background: var(--bg-alt);
    color: var(--text-light);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-upload-placeholder:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.gallery-upload-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.gallery-actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Modal */
/* ====== TEACHER SECTION ====== */
.teacher-section {
    background: rgba(10, 15, 30, 0.55);
    backdrop-filter: blur(15px);
    padding-bottom: 0;
}

.teacher-card {
    background: rgba(15, 23, 42, 0.7);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(10px);
}

.teacher-image {
    width: 40%;
    position: relative;
    min-height: 400px;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.teacher-info {
    width: 60%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.teacher-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 20px;
}

.teacher-bio {
    color: rgba(203, 213, 225, 0.8);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.teacher-bio strong {
    color: #f1f5f9;
}

.teacher-highlights {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.highlight-item i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.teacher-social {
    display: flex;
    gap: 16px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.social-link.linkedin {
    background: #0077b5;
    color: white;
}

.social-link.email {
    background: rgba(59, 130, 246, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ====== CTA SECTION ====== */
.cta-section {
    padding-bottom: 100px;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-xl);
    padding: 80px 24px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-decoration {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.cta-math span {
    position: absolute;
    font-family: var(--font-heading);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.06);
    user-select: none;
}

.cta-math span:nth-child(1) {
    top: 10%;
    left: 10%;
    font-size: 4rem;
    transform: rotate(-15deg);
}

.cta-math span:nth-child(2) {
    top: 20%;
    right: 15%;
    font-size: 3rem;
    transform: rotate(10deg);
}

.cta-math span:nth-child(3) {
    bottom: 15%;
    left: 15%;
    font-size: 2.5rem;
    transform: rotate(5deg);
}

.cta-math span:nth-child(4) {
    bottom: 10%;
    right: 10%;
    font-size: 5rem;
    transform: rotate(-5deg);
}

/* ====== FOOTER ====== */
.site-footer {
    background: rgba(5, 10, 26, 0.85);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    padding: 80px 0 30px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: #60a5fa;
    margin-bottom: 16px;
}

.footer-logo i {
    width: 36px;
    height: 36px;
    background: var(--primary-soft);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.footer-brand p {
    font-size: 0.95rem;
    color: rgba(148, 163, 184, 0.8);
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    color: rgba(148, 163, 184, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
}

.footer-links-group h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 24px;
}

.footer-links-group a {
    display: block;
    font-size: 0.95rem;
    color: rgba(148, 163, 184, 0.7);
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links-group a:hover {
    color: var(--primary);
    transform: translateX(2px);
}

.footer-links-group a i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer-small {
    font-size: 0.8rem !important;
}

/* ====== MOBILE RESPONSIVE ====== */
@media (max-width: 1024px) {
    .section-container {
        padding: 60px 24px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .trust-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .trust-item:nth-child(3),
    .trust-item:nth-child(4) {
        border-bottom: none;
    }

    .teacher-card {
        flex-direction: column;
    }

    .teacher-image,
    .teacher-info {
        width: 100%;
    }

    .teacher-image {
        min-height: 300px;
    }

    .teacher-info {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-badge {
        margin: 0 auto 24px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-emotion {
        justify-content: center;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-card {
        width: 100%;
        max-width: 340px;
        height: 380px;
    }

    .nav-links,
    .admin-only {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Mobile Nav */
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        padding: 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        align-items: flex-start;
        gap: 16px;
    }

    .nav-link {
        width: 100%;
        padding: 12px;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        transform: none;
        box-shadow: none;
        border: 1px solid var(--border);
        margin-top: 10px;
        display: none;
        visibility: visible;
        opacity: 1;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .steps-grid {
        flex-direction: column;
        gap: 40px;
    }

    .step-connector {
        transform: rotate(90deg);
        flex: 0 0 40px;
    }

    .step-card {
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links-group a i {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Animations */
.animate-target {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.animate-target.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: white;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 2000;
    font-weight: 500;
    border-left: 4px solid var(--secondary);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-left-color: var(--secondary);
}

.toast.error {
    border-left-color: #ef4444;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.modal h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.modal p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.modal input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.modal input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.btn-cancel {
    padding: 10px 20px;
    border: none;
    background: var(--bg-alt);
    color: var(--text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
}

.btn-cancel:hover {
    background: var(--border);
}