/* ===== RESET & GLOBAL ===== */
body {
    background-color: #888;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

/* ===== WRAPPER (hero background) ===== */
.wrapper {
    background: url(abcd.jpg) no-repeat center center;
    background-size: cover;
    min-height: 30rem;
}

/* ===== NAVIGATION ===== */
nav {
    width: 100%;
    min-height: 80px;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-sizing: border-box;
    position: relative;
}

/* Logo area */
.logo-area {
    display: flex;
    align-items: center;
}

.logo-area .img {
    max-height: 60px;
    width: auto;
    display: block;
}

/* Navigation links – desktop */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: #fff;
    padding: 12px 18px;
    display: inline-block;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

.nav-links li a:hover {
    background-color: coral;
    color: #000;
}

/* Hide checkbox */
.menu-toggle {
    display: none;
}

/* Hamburger button – hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 10;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== MAIN SECTION ===== */
.section {
    width: 80%;
    margin: auto;
    overflow: hidden;
    margin-top: 4%;
}

.section h1 {
    color: #fff;
    line-height: 1.4;
    font-size: 2.2rem;
}

.section p {
    color: #ddd;
    font-size: 1.1rem;
    max-width: 700px;
}

.btn-1 {
    background-color: orangered;
    padding: 0.7rem 1.8rem;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-1:hover {
    background-color: #cc3700;
}

/* Features */
.features {
    margin-top: 4%;
    margin-bottom: 2%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.features button {
    padding: 0.7rem 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
    background-color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
}

.features button:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ===== SHOWCASE (Courses) ===== */
.showcase h2 {
    margin-top: 5%;
    margin-bottom: 3%;
    text-align: center;
    font-size: 2rem;
}

.courses {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    text-align: center;
    padding: 0 2rem 3rem;
}

.courses img {
    width: 250px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid #000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.apply {
    margin-top: 1rem;
    background-color: orangered;
    padding: 0.6rem 1.5rem;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.apply:hover {
    background-color: #cc3700;
}

/* ===== FOOTER ===== */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1.2rem;
    margin-top: 4%;
}

/* ========================================== */
/*        RESPONSIVE (MOBILE & TABLET)         */
/* ========================================== */
@media screen and (max-width: 992px) {
    nav {
        padding: 0.8rem 1.5rem;
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* Hide nav links by default, they will appear when checkbox is checked */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        display: none;
        z-index: 5;
    }

    /* The magic: when checkbox is checked, show the menu */
    .menu-toggle:checked ~ .nav-links {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        padding: 15px 0;
        width: 100%;
        display: block;
    }

    /* Hamburger animation when menu is open */
    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Hero text adjustments */
    .section h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .features {
        flex-direction: column;
    }

    .features button {
        width: 100%;
        margin-right: 0;
        text-align: center;
    }

    .courses {
        flex-direction: column;
        align-items: center;
    }

    .courses img {
        width: 80%;
        max-width: 300px;
    }

    .btn-1 {
        width: 100%;
        padding: 0.8rem;
    }
}