/* ===============================
   HERO SECTION - Edunet365
================================= */

.hero {
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-color: var(--color-white);
    padding: 20px;
    overflow: hidden;
    position: relative;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- Text Content ---------- */
.hero-content {
    flex: 1 1 500px;
    animation: fadeInLeft 1s ease forwards;
}

.hero-content h1,
.hero-content h2 {
    color: var(--color-dark-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 {
    font-size: 2.5rem;
}

.hero-content h2 {
    font-size: 1.5rem;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--color-gray);
    margin-bottom: 30px;
    max-width: 600px;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 180px;
}

/* ---------- Image ---------- */
.hero-image {
    flex: 1 1 500px;
    animation: fadeInRight 1s ease forwards;
}

.hero-image img {
    width: 105%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}

/* ---------- Animations ---------- */
@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
        /* smaller gap between text and image */
        justify-content: center;
        /* center items vertically */
        align-items: center;
    }

    .hero-content,
    .hero-image {
        flex: 1 1 auto;
        /* remove fixed 500px basis */
        max-width: 100%;
        /* allow full width on small screens */
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        gap: 15px;
        /* reduce gap for mobile */
    }

    .hero-image img {
        max-width: 90%;
        /* shrink image to fit smaller screens */
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    .hero-content h2 {
        font-size: 1rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        /* stack buttons */
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-image img {
        max-width: 100%;
    }
}
