﻿/* بنر */
.banner-wrapper {
    position: relative;
    width: 100%;
    margin-top: 80px;
}

/* عکس همیشه کامل */
.banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* متن روی عکس */
.banner-text {
    position: absolute;
    top: 50%;
    right: 6%;
    transform: translateY(-50%);
    width: 32%;
    color: #fff;
    text-align: right;
    padding: 20px 25px;
    background: linear-gradient( to left, rgba(10, 20, 60, 0.95), rgba(20, 40, 90, 0.55), rgba(20, 40, 90, 0.15) );
    border-radius: 10px;
}
.banner-text-inner h1 {
    font-weight: 700;
 
}
/* متن داخل */
.banner-text-inner h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

.banner-text-inner p {
    font-size: 16px;
    margin-bottom: 15px;
}

/* ----------------------------- */
/* حالت بین 992 تا 1400 */
/* ----------------------------- */
@media (max-width: 1400px) {
    .banner-text {
        width: 38%;
        right: 4%;
        padding: 18px 20px;
    }

    .banner-text-inner h2 {
        font-size: 24px;
    }

    .banner-text-inner p {
        font-size: 14px;
    }
}

/* ----------------------------- */
/* تبلت (بین 768 تا 991) */
/* ----------------------------- */
@media (max-width: 991px) {
    .banner-text {
        width: 45%;
        right: 3%;
        top: 50%;
        transform: translateY(-50%);
        padding: 15px 18px;
    }

    .banner-text-inner h2 {
        font-size: 20px;
    }

    .banner-text-inner p {
        font-size: 13px;
    }
}

/* ----------------------------- */
/* موبایل */
/* ----------------------------- */
@media (max-width: 768px) {
    .banner-text {
        width: 70%;
        right: 50%;
        transform: translate(50%, -50%);
        padding: 12px 14px;
    }

    .banner-text-inner h2 {
        font-size: 18px;
    }

    .banner-text-inner p {
        font-size: 12px;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .banner-text {
        width: 85%;
        padding: 10px 12px;
    }

    .banner-text-inner h2 {
        font-size: 16px;
    }

    .banner-text-inner p {
        font-size: 12px;
    }
}
