@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1e3a8a; /* deep blue */
    --secondary: #fbbf24; /* yellow/gold */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --bg-white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo img {
    height: 40px;
}

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

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

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

.contact-info {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #172a6b;
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: #f59e0b;
}

/* Hero Section */
.hero {
    background: var(--primary);
    color: white;
    padding: 60px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
}

.hero-content {
    flex: 1;
    max-width: 55%;
    z-index: 2;
}

.hero-image-container {
    flex: 1;
    max-width: 40%;
    position: relative;
    z-index: 2;
}

.hero-image-container img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--secondary);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* Stats Section */
.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    background-color: var(--primary);
    color: white;
    padding: 20px 5%;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 2rem;
    color: var(--secondary);
}

.stat-text h3 {
    font-size: 1.5rem;
    line-height: 1.1;
}

.stat-text p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Sections Common */
.section {
    padding: 80px 5%;
}

.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.course-card {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.course-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background-color: #eff6ff;
    color: var(--primary);
}

.course-card h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.course-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e7eb;
    padding-top: 15px;
}

.course-price {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.course-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.course-card:hover .course-arrow {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    padding: 30px 20px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-item h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 5% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Forms & Dashboards */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.auth-container {
    max-width: 400px;
    margin: 100px auto;
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

/* Dashboards Grid */
.dashboard-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--primary);
    color: white;
    padding: 20px 0;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.sidebar-nav li a {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s;
}

.sidebar-nav li a:hover, .sidebar-nav li a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left: 4px solid var(--secondary);
}

.main-content {
    padding: 30px;
    background: var(--bg-light);
}

.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    font-weight: 600;
    color: var(--text-dark);
    background-color: #f9fafb;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }

/* Responsive Layout */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
    order: 1; /* Keep it on the right side on mobile */
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
        min-height: auto;
    }
    .hero-content, .hero-image-container {
        max-width: 100%;
        width: 100%;
    }
    .hero-image-container {
        margin-top: 40px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    /* Navbar fixes */
    .navbar {
        flex-wrap: wrap;
        align-items: center;
    }
    .logo {
        flex: 1; /* Takes available space pushing toggle to right */
    }
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
        margin-top: 15px;
        gap: 15px;
        order: 2;
    }
    .nav-right {
        display: none; /* Hide initially on mobile, toggle with active */
        width: 100%;
        flex-direction: column;
        text-align: center;
        align-items: center;
        margin-top: 15px;
        gap: 15px;
        order: 3;
    }
    .nav-links.active, .nav-right.active {
        display: flex;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    /* Dashboards - Toggle Drawer Sidebar */
    .sidebar-toggle {
        display: inline-block;
        font-size: 1.5rem;
        color: var(--primary);
        cursor: pointer;
        background: none;
        border: none;
        margin-right: 15px;
    }
    
    .dashboard-layout {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 260px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        padding: 20px;
        overflow-y: auto;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    .sidebar-overlay.active {
        display: block;
    }
    
    .sidebar-header {
        text-align: center;
        margin-bottom: 20px;
    }
    .sidebar-header i {
        font-size: 2rem !important;
    }
    .sidebar-header p {
        display: block;
    }
    
    .sidebar-nav {
        display: block; /* Stack links vertically in drawer */
    }
    
    .sidebar-nav a {
        padding: 10px 15px;
        white-space: normal;
    }
    
    .main-content {
        padding: 15px;
        width: 100%;
    }
    .card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons .hero-btn-outline, 
    .hero-buttons .btn-secondary, 
    .hero-buttons .btn-primary {
        width: 100%;
        justify-content: center;
        text-align: center;
        margin-bottom: 10px;
    }
}
