/* =========================
   HERO BANNER
========================= */

.hero-banner {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.hero-banner img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    text-align: left;

    padding-left: 12%;
    padding-right: 20px;

    background: rgba(0, 0, 0, 0.35);
    color: #fff;
}

.hero-banner-overlay h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-banner-overlay p {
    font-size: 1.5rem;
    max-width: 600px;
}

@media (max-width: 900px) {

    .hero-banner img {
        max-height: 350px;
    }

    .hero-banner-overlay {
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .hero-banner-overlay h1 {
        font-size: 2.4rem;
    }

    .hero-banner-overlay p {
        font-size: 1rem;
    }

}


/* =========================
   HERO SEARCH
========================= */

.hero-search {
    padding: 35px 0 25px;
}

.hero-search .container {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #dbe3ea;
    box-shadow: 0 10px 28px rgba(62, 63, 155, 0.06);
}

.search-form {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form input {
    width: 100%;
    max-width: 500px;
    min-width: 0;

    padding: 14px 16px;

    border: 1px solid #cfd8e3;
    border-radius: 10px;

    font-size: 1rem;
    background: #fff;
    color: #1f2937;
}

.search-form input:focus {
    outline: none;
    border-color: #00a5e5;
    box-shadow: 0 0 0 3px rgba(0,165,229,0.12);
}

.search-form button {
    padding: 14px 22px;
    border: none;
    background: #3e3f9b;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.search-form button:hover {
    background: #00a5e5;
}

@media (max-width: 900px) {

    .hero-search {
        padding: 20px 0;
    }

    .hero-search .container {
        padding: 20px;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form input {
        max-width: 100%;
    }

    .search-form button {
        width: 100%;
    }

}


/* =========================
   CATEGORIES
========================= */

.category-section {
    margin: 40px auto 50px;
}

.category-section h2 {
    text-align: center;
    color: #3e3f9b;
    margin-bottom: 25px;
    font-size: 2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: #fff;
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    padding: 22px;
    text-align: center;

    transition: all 0.2s ease;

    box-shadow: 0 6px 18px rgba(62,63,155,0.04);

    overflow-wrap: break-word;
    word-wrap: break-word;
}

.category-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 12px 28px rgba(62,63,155,0.12);
}

.category-card h3 {
    color: #3e3f9b;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.category-count {
    color: #6b7280;
    font-size: 0.9rem;
}

@media (max-width: 900px) {

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 14px;
    }

    .category-card h3 {
        font-size: 1rem;
    }

}


/* =========================
   GROUP CARDS
========================= */

.group-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px auto 50px;
}

.group-card {
    background: #fff;
    border: 1px solid #dbe3ea;
    border-radius: 16px;
    padding: 20px;
    min-height: 180px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.2s ease;

    box-shadow: 0 6px 18px rgba(62,63,155,0.04);
}

.group-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 14px 30px rgba(62,63,155,0.12);

    border-color: #c9d6ea;
}

.group-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.group-header-badge-wrap {
    flex: 0 0 auto;
}

.group-header-badge {
    width: 140px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.group-header-content h1 {
    margin-bottom: 8px;
    color: #3e3f9b;
}

@media (max-width: 900px) {

    .group-cards {
        grid-template-columns: 1fr;
    }

    .group-header-inner {
        flex-direction: column;
        text-align: center;
    }

}