/* =============== RESET =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fdfdfd;
    color: #333;
}

/* =============== NAVBAR =============== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #002147;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.logo img {
    width: 40px;
    height: 40px;
}

.site-name {
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
    margin-left: 0.5rem;
    text-decoration: none;
    display: inline-block;
    outline: none;
    box-shadow: none;
}

/* ==== Navigation Dropdown Styling ==== */
.navbar ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    position: relative;
}

.navbar ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.navbar ul li a:hover {
    color: #fdd835;
}

/* Dropdown setup */
.dropdown {
    position: relative;
}

/* Add arrow indicator */
.dropdown-toggle::after {
    content: " ▾";
    font-size: 0.8em;
    color: #ccc;
}

/* Dropdown hidden by default */
.dropdown-menu {
    display: none;
    /* ensures hidden initially */
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: #ffffff;
    /* light background for contrast */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    padding: 10px 0;
    flex-direction: column;
    visibility: hidden;
    /* extra safeguard */
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* Show dropdown only on hover/focus */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: flex;
    visibility: visible;
    opacity: 1;
}

/* Dropdown links */
.dropdown-menu li a {
    display: block;
    width: 100%;
    padding: 10px 15px;
    color: #002147;
    /* dark blue for visibility */
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* Hover effect for dropdown links */
.dropdown-menu li a:hover {
    background-color: #fdd835;
    /* yellow highlight */
    color: #002147;
    /* dark blue text on yellow */
    padding-left: 20px;
}

/* Optional: for active dropdown (mobile toggle use) */
.dropdown.active .dropdown-menu {
    display: flex;
    visibility: visible;
    opacity: 1;
}

/* Mobile version */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
    }

    .dropdown-menu {
        position: static;
        background: #ffffff;
        box-shadow: none;
        border-radius: 0;
        visibility: visible;
        opacity: 1;
        display: none;
        /* still hidden until active */
    }

    .dropdown.active .dropdown-menu {
        display: flex;
    }

    .dropdown-menu li a {
        color: #002147;
        padding-left: 30px;
    }
}


/* =============== HERO =============== */
.hero {
    background: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?fit=crop&w=1600&q=80') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 8rem 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero button {
    background: #ffb703;
    color: #002147;
    border: none;
    padding: 0.8rem 1.6rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s;
}

.hero button:hover {
    background: #fdd835;
    transform: scale(1.05);
}

/* =============== COURSES =============== */
.courses {
    padding: 4rem 5%;
    text-align: center;
    background: #f8f9fa;
}

.courses h2 {
    color: #002147;
    margin-bottom: 2rem;
}

.course-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.course-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    width: 280px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card h3 {
    color: #002147;
    margin-bottom: 0.7rem;
}

.course-card button {
    background: #002147;
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-card button:hover {
    background: #fdd835;
    color: #002147;
}

/* =============== PROGRAM SECTIONS =============== */
.program-section {
    padding: 4rem 5%;
    text-align: center;
    color: #fff;
}

.program-section.affiliate {
    background: #0066cc;
}

.program-section.trainer {
    background: #ff7f50;
}

.program-section .btn {
    display: inline-block;
    background: #fff;
    color: inherit;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
}

.program-section .btn:hover {
    background: #fdd835;
    color: #002147;
    transform: scale(1.05);
}

/* =============== FOOTER & CONTACT =============== */
.about,
.contact,
.payment {
    padding: 3rem 5%;
    text-align: center;
}

footer {
    background: #002147;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        background: #002147;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
    }

    .nav-toggle:checked+.nav-toggle-label+nav {
        display: flex;
    }

    .nav-toggle-label {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
    }

    .dropdown-menu {
        position: static;
    }
}