
/* ================================
   TOPPER BANNER
   MAHFOOZ ACADEMY
================================ */

.topper-section {
    width: 100%;
    padding: 45px 20px;
    background: #ffffff;
}

.topper-banner {
    position: relative;
    width: 100%;
    max-width: 1280px;
    height: 350px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 18px;
    background: #520d20;
    box-shadow: 0 15px 40px rgba(82, 13, 32, 0.15);
}

/* IMAGE */

.topper-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* OVERLAY */

.topper-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(62, 7, 20, 0.96) 0%,
        rgba(82, 13, 32, 0.82) 35%,
        rgba(82, 13, 32, 0.25) 100%
    );
}

/* CONTENT */

.topper-banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 600px;
    padding: 45px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
}

.topper-small-title {
    color: #e5bc67;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 14px;
}

.topper-banner-content h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.15;
    font-weight: 700;
    color: #ffffff;
}

.topper-banner-content h2 span {
    color: #e2b457;
}

.topper-banner-content p {
    margin: 17px 0 0;
    max-width: 400px;
    color: #f5e8d4;
    font-size: 15px;
    line-height: 1.7;
}

.topper-divider {
    width: 65px;
    height: 3px;
    margin-top: 22px;
    border-radius: 10px;
    background: #d9aa4d;
}

.topper-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px 17px;
    border: 1px solid rgba(224, 182, 89, 0.65);
    border-radius: 50px;
    color: #f2d18b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.topper-label i {
    color: #e0b04e;
}

/* ================================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 768px) {

    .topper-section {
        padding: 28px 12px;
    }

    .topper-banner {
        height: 260px;
        border-radius: 14px;
    }

    .topper-banner-overlay {
        background: linear-gradient(
            90deg,
            rgba(62, 7, 20, 0.96) 0%,
            rgba(82, 13, 32, 0.58) 100%
        );
    }

    .topper-banner-content {
        max-width: 80%;
        padding: 25px 28px 35px;
    }

    .topper-small-title {
        font-size: 9px;
        letter-spacing: 1.5px;
        margin-bottom: 9px;
    }

    .topper-banner-content h2 {
        font-size: 28px;
        line-height: 1.15;
    }

    .topper-banner-content p {
        margin-top: 10px;
        font-size: 12px;
        line-height: 1.5;
    }

    .topper-divider {
        width: 45px;
        height: 2px;
        margin-top: 14px;
    }

    .topper-label {
        margin-top: 12px;
        padding: 7px 11px;
        font-size: 8px;
        letter-spacing: 1px;
    }

}

@media (max-width: 400px) {

    .topper-banner {
        height: 240px;
    }

    .topper-banner-content {
        padding: 20px 22px 30px;
    }

    .topper-banner-content h2 {
        font-size: 24px;
    }

    .topper-banner-content p {
        font-size: 11px;
    }

}