* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #E63946;    /* Red/Accent */
    --secondary-color: #FFB703;  /* Safety Yellow */
    --dark-bg: #1E293B;          /* Slate Dark */
    --light-bg: #F8FAFC;         /* Clean Light Gray */
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --white: #FFFFFF;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.padding-section {
    padding: 70px 0;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0f172a 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-banner p {
    color: var(--secondary-color);
}

/* Titles */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--dark-bg);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    width: 50%;
    height: 4px;
    background: var(--primary-color);
    position: absolute;
    bottom: -8px;
    left: 25%;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    margin-top: 10px;
}

/* Buttons */
.btn {
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

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

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

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

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

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

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

.full-width {
    width: 100%;
    text-align: center;
}

/* Header & Nav */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 75px;
    padding-top: 10px;
    padding-bottom: 10px;
}

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

.logo-icon {
    font-size: 2rem;
    margin-right: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-bg);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a.active, .nav-links a:hover {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-email-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-bg);
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0f172a 100%);
    color: var(--white);
    padding: 90px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.6rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #cbd5e1;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

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

/* Courses Card & Module Listing */
.courses {
    padding: 70px 0;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: var(--dark-bg);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.course-body {
    padding: 30px;
}

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

.course-body h3 {
    margin-bottom: 10px;
}

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

.content-box {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.content-box h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--dark-bg);
}

.module-list {
    list-style: none;
}

.module-list li {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-list i {
    color: var(--primary-color);
    font-size: 0.75rem;
}

.course-meta {
    list-style: none;
    margin-bottom: 20px;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

.course-meta li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.highlights {
    margin-top: 30px;
}

.hl-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.hl-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 4px;
}

.sidebar-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.sidebar-box h3 {
    margin-bottom: 15px;
}

.sidebar-box ul {
    list-style: none;
}

.sidebar-box li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-left h3 {
    margin-bottom: 20px;
}

.branch-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.branch-card h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.inquiry-form {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.inquiry-form h3 {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    outline: none;
    font-size: 0.95rem;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
}

.social-box h4 {
    margin-bottom: 12px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--dark-bg);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
}

.map-wrapper {
    margin-top: 40px;
}

.map-wrapper h3 {
    margin-bottom: 15px;
}

.map-box {
    border-radius: 8px;
    overflow: hidden;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--text-muted);
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
}

/* Modal & Auth Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 15px;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.modal-content h2 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--dark-bg);
}

.modal-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-muted);
}

.auth-options {
    text-align: right;
    margin-bottom: 15px;
}

.auth-options a, .auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.auth-switch {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.alert-box {
    display: none;
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.alert-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* =========================================
   RESPONSIVE STYLES (TABLET & MOBILE)
   ========================================= */

/* Tablets (992px and below) */
@media (max-width: 992px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

/* Mobile Phones (768px and below) */
@media (max-width: 768px) {
    .padding-section,
    .courses {
        padding: 50px 0;
    }

    /* Stack Navbar cleanly on Mobile */
    .nav-container {
        flex-direction: column;
        gap: 12px;
        padding: 15px 20px;
    }

    .nav-links {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .nav-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-buttons .btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    /* Hero & Banners */
    .hero {
        padding: 60px 0;
    }

    .hero h1,
    .page-banner h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 35px;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    /* Cards & Forms */
    .course-grid {
        grid-template-columns: 1fr;
    }

    .course-body,
    .inquiry-form,
    .sidebar-box,
    .modal-content {
        padding: 20px;
    }

    .map-box iframe {
        height: 260px;
    }
}
