﻿/* HERO SECTION */
.hero {
    display: flex;
    align-items: center;
    justify-content: center; /* centers flex items */
    gap: 2rem;
    padding: 3rem 2rem;
    min-height: 60vh;
    max-height: 700px;
    background: #f5f7fa;
    max-width: 1400px; /* center hero content on large screens */
    margin: 0 auto;
    overflow: hidden; /* prevent horizontal scroll */
    box-sizing: border-box;
}

/* HERO CONTENT */
.hero-content {
    flex: 1;
    max-width: 600px; /* text width limit */
    color: #111;
}

    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
        font-weight: 700;
    }

    .hero-content h5 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        font-weight: 400;
        color: #555;
    }

    .hero-content p {
        font-size: 1.125rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        color: #333;
    }

/* BUTTONS */
.hero-actions .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s;
}

.hero-actions .btn-primary:hover {
    background-color: #00b894;
    border-color: #00b894;
}

.hero-actions .btn-outline-secondary:hover {
    background-color: #111;
    color: #fff;
}

/* HERO IMAGE */
.hero-image {
    flex: 1;
    max-width: 600px; /* prevent image from being too wide */
    text-align: right;
}

    .hero-image img {
        width: 100%;
        height: auto;
        object-fit: contain; /* full image visible */
        border-radius: 12px;
    }

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        max-width: 90%;
        min-height: auto;
    }

    .hero-image {
        text-align: center;
        margin-top: 2rem;
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h5 {
        font-size: 1.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-actions .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}
