/* --- CSS Variables & Design Tokens --- */
:root {
    --primary: #E84118;
    --primary-hover: #C23616;
    --secondary: #2F3640;
    --secondary-hover: #1E272E;
    --accent: #E84118;
    --dark: #212529;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --text-muted: #6C757D;
    --border-color: #dee2e6;
    --font-primary: 'Poppins', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 50px;
    --transition: all 0.3s ease;
}

/* --- Reset & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: var(--radius-sm);
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.py-5 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.my-5 { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(11, 94, 215, 0.2);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(11, 94, 215, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}
.btn-secondary:hover {
    background-color: var(--secondary-hover);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- Header & Navigation --- */
.header-top {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
}
.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-top a {
    color: var(--white);
    margin-left: 15px;
    font-size: 18px;
}

.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.navbar-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-brand i {
    font-size: 32px;
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
}
.nav-links a {
    color: var(--dark);
    font-weight: 600;
    font-size: 16px;
}
.nav-links a:hover {
    color: var(--primary);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    padding: 10px 0;
    z-index: 1000;
    list-style: none;
    border: 1px solid var(--border-color);
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li {
    padding: 0;
}
.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
}
.dropdown-menu a:hover {
    background: #f8f9fa;
    color: var(--primary);
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    color: var(--white);
    text-align: center;
}
.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.5rem;
    color: var(--light);
    margin-bottom: 30px;
}

/* --- Cards (Glassmorphism & Standard) --- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}
.feature-box i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* --- Courses Grid --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* --- Statistics Section --- */
.statistics {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 20px;
}
.stat-item h3 {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 5px;
}
.stat-item p {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
}

/* --- Footer --- */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}
footer h4 {
    color: var(--white);
}
footer p {
    color: #adb5bd;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #adb5bd;
}
.footer-links a:hover {
    color: var(--secondary);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #adb5bd;
}

/* --- Mobile Bottom Menu --- */
.mobile-bottom-menu {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    padding-bottom: env(safe-area-inset-bottom, 10px); /* iPhone X+ support */
}

.mobile-bottom-menu a {
    color: var(--secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    gap: 4px;
}

.mobile-bottom-menu a i {
    font-size: 22px;
}

.mobile-bottom-menu a:hover,
.mobile-bottom-menu a.active {
    color: var(--primary);
}


/* --- Page Header --- */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #ff7642 100%);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
    box-shadow: inset 0 -3px 10px rgba(0,0,0,0.1);
}
.page-header .container {
    position: relative;
    z-index: 2;
}
.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.page-header p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .header-top .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-btn {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px;
        gap: 15px;
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }

    /* Hero */
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.2rem; }
    .hero-swiper-container { height: 350px; }
    
    .hero-content h1 { font-size: 2rem !important; }
    .hero-content p { font-size: 1rem !important; margin-bottom: 15px !important; }
    .hero-content .btn { padding: 10px 20px !important; font-size: 1rem !important; margin: 5px !important; display: inline-block; }

    /* Grids */
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .courses-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    
    footer { display: none !important; }
    .mobile-bottom-menu { display: flex !important; }
    body { padding-bottom: 70px; } /* Space for mobile menu */
    
    .py-5 { padding-top: 2rem; padding-bottom: 2rem; }
    .my-5 { margin-top: 2rem; margin-bottom: 2rem; }
    
    .section-title { font-size: 1.8rem; margin-bottom: 1.5rem; }
}

@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .navbar .container { height: 70px; }
    .navbar-brand { font-size: 20px; }
    .navbar-brand img { width: 80px; height: 50px; }
    
    .feature-box { padding: 20px 15px; }
}
