/* Core Variables: Deep Black Premium Theme */
:root {
    --bg-color: #0d0d0d;
    --bg-light: #1a1a1a;
    --bg-darker: #050505;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --gold: #d4af37;
    --gold-hover: #e8c655;
    --gold-glow: rgba(212, 175, 55, 0.3);
    --border-color: #333333;
    --font-main: 'Inter', 'Helvetica Neue', sans-serif;
    --border-radius: 12px;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

main {
    flex: 1;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.text-gold {
    color: var(--gold);
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    /* Pill shape for modern look */
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
    /* For icons */
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #b5952f 100%);
    color: #111;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, var(--gold-hover) 0%, var(--gold) 100%);
    color: #111 !important;
    /* Fix for a:hover inheritance */
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Bilingual Text Component */
.bilingual-text {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.25;
}

.bilingual-text span:last-child {
    font-size: 0.8em;
    opacity: 0.85;
    font-weight: 500;
}

/* Header & Glass Nav */
header {
    background-color: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-color);
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 28px;
    cursor: pointer;
    z-index: 2000;
}

/* Mobile Menu Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    z-index: 2000;
    transition: color 0.3s ease;
}

.mobile-close-btn:hover {
    color: var(--gold);
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-overlay a {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    font-weight: 500;
}

.alert-error {
    background-color: rgba(220, 38, 38, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Sections & Home Page Elements */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title span {
    color: var(--gold);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 140px 20px 100px;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 13, 0.7);
    /* Darkening overlay for contrast */
    z-index: 1;
}

.hero h1 {
    font-size: 64px;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Marquee / Auto-scrolling Band */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    background-color: var(--gold);
    color: #111;
    padding: 15px 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 0 20px var(--gold-glow);
}

.marquee-content {
    display: flex;
    animation: scroll-x 30s linear infinite;
}

.marquee-item {
    padding: 0 40px;
    display: inline-block;
}

@keyframes scroll-x {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* About / Process Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 42px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 20px;
}

.process-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.process-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.process-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.process-step {
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    margin: 0 auto 20px auto;
}

/* Course Cards Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.course-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    /* Force dark text for readability on white bg */
    color: #1a1a1a;
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.course-card h3 {
    color: #1a1a1a;
}

.course-card p {
    color: #555555 !important;
}

.course-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 20px;
    margin-top: auto;
    /* Push to bottom */
}

.course-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.course-card .btn-outline {
    border-color: #333333;
    color: #1a1a1a;
}

.course-card .btn-outline:hover {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

/* Bi-lingual elements */
.bilingual-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.bilingual-text span:last-child {
    font-size: 0.85em;
    font-weight: normal;
    opacity: 0.9;
}

/* Scroll Animations (Intersection Observer) */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col p {
    color: var(--text-muted);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 14px;
}

/* Admin Specific Overrides */
.admin-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 40px auto;
    max-width: 1000px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: rgba(255, 255, 255, 0.02);
    font-weight: 600;
}

/* Mobile Strict Rules */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .process-cards {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Handled by mobile overlay now */
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 100px 15px 60px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-btns {
        flex-direction: column;
    }

    .section-title {
        font-size: 28px;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }
}