
body {
    background-color: #000000e1;
    margin: 0;
}


nav {
    align-items: center;
    background-color: #F8F7FD;
    display: flex;
    justify-content: space-around;
    padding-bottom: 25px;
    padding-top: 25px;
    position: relative;
}

.navbar-title {
    color: #E91C22;
    display: flex;
    font-size: 1.5rem;  
    font-weight: bold;
    margin-left: 60px;
    margin-right: auto;
}


nav ul {
    display: flex;
    gap: 25px;
    justify-content: right;
    margin-right: 200px;
}

nav li {
    color: rgb(0, 0, 0);
    font-size: 1.5rem;
    list-style: none;
    position: relative;
    text-align: center;
}

nav li::after {
    background: red;
    bottom: 0;
    content: '';
    height: 2px;
    left: 0;
    position: absolute;
    transition: width 0.3s ease;
    width: 0%;
}

nav li:hover::after {
    width: 100%;
}

nav li:nth-child(1):after {
    background: #E91C22;
    bottom: 0;
    content: '';
    height: 2px;
    left: 0;
    position: absolute;
    transition: width 0.3s ease;
    width: 100%;
}

nav a {
    color: rgb(0, 0, 0);
    text-decoration: none;
}
.hamburger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: none;
    padding: 10px;
    z-index: 1005;
}

.hamburger span {
    background-color: #000;
    display: block;
    height: 3px;
    margin: 5px 0;
    transition: all 0.3s ease;
    width: 25px;
}

.hero-image {
    border-radius: 25px;
    display: block;
    height: auto;
    margin: 40px auto;
    width: 40%;
}

.hero-section-heading {
    color: rgb(255, 255, 255);
    font-size: 40px;
    font-weight: 600;
    margin: 50px 20px;
    text-align: center;
}

.quiz-button {
    background: linear-gradient(143deg, rgba(200, 88, 159, 0.91), rgba(255, 0, 0, 0.69));
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    display: block;
    font-size: 20px;
    margin: 20px auto 30px auto;
    padding: 15px 30px;
    transition: transform 0.2s ease;
}

button::after,
.quiz-button:hover {
    transform: scale(1.1);
}

.hero-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 30px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 180px;
    justify-content: center;
    padding: 20px;
    width: 300px;
}

.hero-card svg {
    width: 50px;
    height: 50px;
    color: #E91C22;
}

.hero-card-icon {
    width: 60px;
    height: 50px;
    display: block;
    object-fit: contain;
}

.hero-card h2 {
    color: #E91C22;
    font-size: 1.2rem;
}

.hero-image {
    border-radius: 25px;
    display: block;
    height: auto;
    margin: 40px auto;
    width: 40%;
    aspect-ratio: 16 / 9;
    max-width: 100%;
}

@media screen and (max-width: 768px) {
    nav {
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .hamburger {
        display: block;
    }

    nav ul {
        align-items: center;
        background-color: white;
        display: none;
        flex-direction: column;
        gap: 40px;
        height: 100vh;
        justify-content: center;
        left: 0;
        margin: 0;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1001;
    }

    nav.active ul {
        display: flex;
    }

    nav li {
        font-size: 1.8rem;
        margin-right: 0;
    }

    .hero-image {
        width: 80%;
    }

    .hero-section-heading {
        font-size: 28px;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Set nav to row-reverse so hamburger (last in HTML) stays on the left */
    /* Move title explicitly to the right side of the nav row */
}

footer {
    background-color: white;
    margin-top: 50px;
    padding: 20px;
    width: 100%;
}

footer p {
    color: #333;
    text-align: center;
}
