﻿.affiliate-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 70px;
    margin: 80px auto;
    max-width: 1370px;
    height: 33rem;
    border-radius: 18px;
    margin-top: 6.5rem;
    color: white;
    background: linear-gradient(109.41deg, #3B3B3B 13.58%, #555555 35.92%, #6E6E6E 58.25%, #888888 80.58%, #A1A1A1 102.92%);
}

.affiliate-content {
    width: 50%;
}

    .affiliate-content h1 {
        font-size: 50px;
        font-weight: 600;
        margin-bottom: 20px;
        line-height: 1.3;
        color: #fbfbfb;
        font-family: unset;
    }

    .affiliate-content p {
        font-size: 20px;
        line-height: 1.7;
        margin-bottom: 30px;
        font-family: unset;
        text-align: justify;
        color: #fbfbfb;
    }

.ctam-btn {
    background: transparent;
    border: 2px solid white;
    color: #fbfbfb;
    padding: 13px 39px;
    font-size: 22px;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    font-family: unset;
}

    .ctam-btn:hover {
        background: white;
        color: black;
    }

.image-box {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 6px 25px rgba(0,0,0,0.2);
}

    .image-box img {
        width: 28rem;
        height: 28rem;
        object-fit: cover;
    }



/*  Tablet  */

@media (max-width: 1024px) {
    .affiliate-section {
        flex-direction: column;
        height: auto;
        padding: 60px 40px;
        width: 95%;
    }

    .affiliate-content {
        width: 100%;
        text-align: center;
    }

        .affiliate-content h1 {
            font-size: 70px;
            text-align: center;
            font-family: lato;
        }


        .affiliate-content p {
            font-size: 35px;
            text-align: justify;
            font-family: 'Lato';
            line-height: 3.5rem;
        }

    .image-box img {
        width: 61rem;
        height: 40rem;
        margin-top: -3px;
    }
    .ctam-btn {
        margin-left: 23rem;
        margin-top: -1rem;
        margin-bottom: 16px;
        display: none;
    }
    .ctam-btn:hover {
        background: white;
        color: black;
        margin-left: 23rem;
        margin-top: -1rem;
        margin-bottom: 16px;
        display: none;
    }
}



/* Mobile */

@media (max-width: 767px) {
    .affiliate-section {
        flex-direction: column;
        height: auto;
        padding: 40px 20px;
    }

    .affiliate-content h1 {
        font-size: 32px;
        text-align: center;
    }

    .affiliate-content p {
        font-size: 16px;
        line-height: 1.6;
        text-align: center;
    }

    .ctam-btn {
        font-size: 18px;
        padding: 12px 26px;
    }

    .image-box img {
        width: 18rem;
        height: 18rem;
        margin-top: 25px;
    }

    .ctam-btn:hover {
        background: white;
        color: black;
        margin-left: 23rem;
        margin-top: -1rem;
        margin-bottom: 16px;
        display: none;
    }
}


/*sec-section*/

.affiliate-info-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 40px;
    max-width: 1360px;
    margin: -3rem auto;
    
}

.image-group {
    display: flex;
    gap: 20px;
}

    .image-group img {
        width: 19rem;
        height: 26rem;
        border-radius: 16px;
        object-fit: cover;
/*        box-shadow: 0 4px 20px rgba(0,0,0,0.1);*/
    }

.info-content {
    width: 50%;
}

    .info-content h2 {
        font-size: 49px;
        font-weight: 600;
        margin-bottom: 20px;
        font-family: unset;
        color: #3b3b3b;
        white-space: nowrap;
    }

    .info-content p {
        font-size: 20px;
        line-height: 1.7;
        font-family: unset;
        color: #3b3b3b;
        text-align: justify;
    }
/* Tablet */
@media (max-width: 1024px) {
    .affiliate-info-section {
        flex-direction: column;
        text-align: center;
    }

    .image-group {
        justify-content: center;
    }

    .info-content {
        width: 100%;
    }

        .info-content h2 {
            font-size: 3.5rem;
            text-align: justify;
            line-height: 4rem;
            font-family: 'Lato';
        }

        .info-content p {
            font-size: 35px;
            font-family: 'Lato';
        }

    .image-group img {
        width: 30rem;
        height: 41rem;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .image-group {
        flex-direction: column;
        align-items: center;
    }

        .image-group img {
            width: 18rem;
            height: 20rem;
        }

    .info-content h2 {
        font-size: 28px;
    }

    .info-content p {
        font-size: 16px;
    }
}



/*Third-section*/

.affiliate-who-section {
    text-align: center;
    padding: 60px 50px;
    max-width: 1400px;
    margin: 1rem auto;
}

    .affiliate-who-section h2 {
        font-size: 49px;
        font-weight: 600;
        font-family: unset;
        margin-bottom: 15px;
        color: #3b3b3b;
        text-align: center;
        white-space: nowrap;
        margin-left: 18rem;
    }

    .affiliate-who-section p {
        font-size: 20px;
        line-height: 1.7;
        max-width: 950px;
        margin: 0 auto 40px;
        font-family: unset;
        color: #3b3b3b;
    }

/* GRID & HOVER CARDS */
.affiliate-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.affiliate-box {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
}

    .affiliate-box img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        transition: .5s;
    }

/* Overlay */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: .5s ease;
    color: white;
    text-align: center;
    padding: 20px;
}

    .overlay h3 {
        font-size: 20px;
        font-weight: 600;
        max-width: 85%;
        opacity: 0;
        transform: translateY(15px);
        transition: .5s ease;
        font-family: "Montserrat";
        line-height: 2rem;
    }

    .overlay .line {
        width: 70%;
        height: 3px;
        background: #85E8FF;
        margin-bottom: 15px;
        opacity: 0;
        transform: translateY(-10px);
        transition: .4s ease;
    }

/* Hover Effect */
.affiliate-box:hover img {
    transform: scale(1.1);
    filter: blur(1px);
}

.affiliate-box:hover .overlay {
    opacity: 1;
}

    .affiliate-box:hover .overlay h3,
    .affiliate-box:hover .overlay .line {
        opacity: 1;
        transform: translateY(0);
    }


/* Tablets  */
@media (max-width: 1024px) {
    .affiliate-who-section h2 {
        font-size: 3.5rem;
        margin-left: -12rem;
        font-family: 'Lato';
    }
    .affiliate-who-section p {
        font-size: 35px;
        text-align: justify;
        font-family: 'Lato';
    }
        .affiliate-grid {
            grid-template-columns: repeat(2, 1fr);
        }

    .affiliate-box img {
        height: 240px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {

    .affiliate-who-section {
        padding: 40px 20px;
    }

        .affiliate-who-section h2 {
            font-size: 32px;
            line-height: 1.4;
            white-space: normal; /* fixes long title breaking */
        }

        .affiliate-who-section p {
            font-size: 17px;
            max-width: 100%;
            margin-bottom: 30px;
        }

    .affiliate-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .affiliate-box img {
        height: 220px;
    }

    .overlay h3 {
        font-size: 18px;
        line-height: 1.6;
    }
}

/* Small Phones (480px and below) */
@media (max-width: 480px) {

    .affiliate-who-section h2 {
        font-size: 28px;
    }

    .overlay h3 {
        font-size: 16px;
    }

    .affiliate-box img {
        height: 200px;
    }
}





/*fouth-section*/

.benefit-section {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    font-family: unset;
}

.benefit-title {
    font-size: 44px;
    font-weight: 600;
    color: #3b3b3b;
    margin-bottom: 40px;
    margin-left: 20rem;
    white-space: nowrap;
    font-family: unset;
}

/* GRID */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px 30px;
    max-width: 1200px;
    margin: auto;
}

/* ITEM */
.benefit-item {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
}

/* ICON BOX */
.icon-wrapper {
    width: 75px;
    height: 75px;
    border: 2px solid #d1d1d1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .icon-wrapper img {
        width: 38px;
        height: 38px;
    }

/* TEXT */
.benefit-item span {
    font-size: 19px;
    font-weight: 600;
    color: #3b3b3b;
    line-height: 1.3;
    font-family: unset;
    text-align: justify;
}

/* OVERLAY */
.benefit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: #3b3b3b;
    color: #fff;
    border-radius: 10px;
    padding: 25px 20px;
    opacity: 0;
    transform: translateY(100%);
    transition: 0.4s ease;
    pointer-events: none;
}

    .benefit-overlay h3 {
        font-family: 'Montserrat';
        font-size: 17px;
        font-weight: 600;
        margin-bottom: -5px;
        margin-top: -34px;
        color: #fbfbfb;
        text-align: left;
    }

    .benefit-overlay p {
        font-family: 'Montserrat';
        font-size: 13px;
        line-height: 1.2;
        margin: 0;
        margin-top: -12px;
        text-align: left;
    }

/* HOVER */
.benefit-item:hover .benefit-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* -----------------------------
   TABLET RESPONSIVE
------------------------------*/
@media (max-width: 992px) {
    .benefit-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-left: 3rem;
    }

    .benefit-title {
        font-size: 3.5rem;
        text-align: left;
        margin-left: 3rem;
        font-family: 'Lato';
    }
    .benefit-overlay {
        padding-top: 15px; 
    }

        .benefit-overlay h3 {
            margin-top: -10px;
        }

        .benefit-overlay p {
            margin-top: -10px;
        }
    .benefit-item span {
        font-size: 30px;
        font-weight: 600;
        color: #3b3b3b;
        line-height: 1.3;
        text-align: justify;
        font-family: 'Lato';
    }

}

/*  MOBILE RESPONSIVE  */
@media (max-width: 600px) {
    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
    }

        .benefit-item span {
            margin-left: 0 !important;
            text-align: center;
            font-size: 16px;
        }

    .benefit-title {
        font-size: 30px;
        white-space: normal;
    }

    .icon-wrapper {
        margin-bottom: 10px;
    }

    .benefit-overlay {
        padding-top: 15px; /* reduce top gap */
    }

        .benefit-overlay h3 {
            margin-top: 0;
        }

        .benefit-overlay p {
            margin-top: 2px;
        }
}




/*5th-section*/
.feature-section {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.feature-header {
    width: 95%;
    height: 490px;
    margin: auto;
    background-image: url('../../images/index/partnerporfile/rectangle 564.png');
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    padding: 60px 30px;
    position: relative;
    margin-top: 3rem;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 59, 59, 0.65); 
    border-radius: 20px;
}

.feature-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 59, 59, 0.78);
    border-radius: 1rem;
}

    .feature-header h2,
    .feature-header p {
        position: relative;
        margin: 0;
        z-index: 2;
    }

.feature-header h2 {
    font-size: 51px;
    font-weight: 500;
    color: #fbfbfb;
    margin-top: 4rem;
    font-family: unset;
}

.feature-header p {
    margin-top: 10px;
    font-size: 20px;
    opacity: 0.9;
    color: #fbfbfb;
    font-family: unset;
}

/* 4 BOX GRID */
.feature-box-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px 20px;
    width: 75rem;
    margin: auto;
    margin-top: -9rem;
}


/* BOX */
.feature-box {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.25s ease;
    border: 1px solid #e3e3e3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

 
    .feature-box:hover {
/*        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        transform: translateY(-4px);*/
    }

.f-icon {
    width: 50px;
    margin-bottom: 22px;
}

.feature-box h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #3b3b3b;
    font-family: unset;
    white-space: nowrap;
}

.feature-box p {
    font-size: 18px;
    color: #3b3b3b;
    margin: 0;
    font-family: unset;
}
@media (max-width:1024px) {
    .feature-box-container {
        grid-template-columns: repeat(2,1fr);
        width: 100%;
        margin-top: -6rem;
        height: auto;
        margin-left: 0;
        padding: 20px;
    }

    .feature-header h2 {
        font-size: 40px;
    }

    .feature-header p {
        font-size: 30px;
        font-family: 'Lato';
    }
    .feature-box h3 {
        font-size: 35px;
        margin-bottom: 8px;
        font-weight: 600;
        color: #3b3b3b;
        white-space: nowrap;
        font-family: 'Lato';
    }
    .feature-box p {
        font-size: 30px;
        color: #3b3b3b;
        margin: 0;
        font-family: 'Lato';
    }
}


@media(max-width:768px) {
    .feature-header {
        height: 350px;
        padding: 35px 20px;
    }

        .feature-header h2 {
            font-size: 32px;
            margin-top: 2.5rem;
        }

        .feature-header p {
            font-size: 15px;
        }

    .feature-box-container {
        grid-template-columns: repeat(2,1fr);
        width: 100%;
        margin-left: 0;
        margin-top: -7rem;
        height: auto;
    }
}

@media(max-width:550px) {
    .feature-box-container {
        grid-template-columns: 1fr;
        margin-top: -6rem;
        width: 100%;
    }

    .feature-box {
        padding: 18px;
    }

    .feature-header h2 {
        font-size: 26px;
    }
}


/*6th-section*/

.nm-info-section {
    background: #3b3b3b;
    padding: 60px 40px;
    /*    border-radius: 5px;*/
    margin: 3rem auto;
    /*    max-width: 1300px;*/
    margin-top: 5rem;
}

.nm-info-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.nm-info-left h2 {
    color: #fbfbfb;
    font-size: 44px;
    font-weight: 600;
    font-family: unset;
    margin-bottom: 15px;
}

.nm-info-left p {
    color: #fbfbfb;
    font-size: 20px;
    font-family: unset;
    margin: 5px 0;
    line-height: 1.6;
}

.nm-info-right {
    display: flex;
    gap: 15px;
    margin-left: -14rem;
}

.nm-btn {
    padding: 14px 28px;
    font-size: 16px;
    font-family: "Montserrat";
    border-radius: 10px;
    cursor: pointer;
    transition: .3s;
}

/* Filled Button */
.nm-filled {
    background: #fbfbfb;
    border: none;
    color: #3b3b3b;
    font-weight: 600;
}

.nm-outlined {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fbfbfb;
    font-weight: 600;
}

/* Hover Effects */
.nm-filled:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(255,255,255,0.2);
}

.nm-outlined:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}


/* --- RESPONSIVE --- */


@media (max-width: 1024px) {

    .nm-info-section {
        padding: 50px 30px;
    }

    .nm-info-left h2 {
        font-size: 3.5rem;
        line-height: 4rem;
        font-family: 'Lato';
    }

    .nm-info-left p {
        font-size: 22px;
        text-align: left;
        font-family: 'Lato';
    }

    .nm-info-wrapper {
        gap: 30px;
    }

    .nm-info-right {
        margin-left: 0;
    }

    @media (max-width: 768px) {

        .nm-info-section {
            padding: 40px 25px;
        }

        .nm-info-wrapper {
            flex-direction: column;
            text-align: center;
            gap: 25px;
        }

        .nm-info-left h2 {
            font-size: 30px;
        }

        .nm-info-left p {
            font-size: 16px;
        }

        .nm-info-right {
            flex-direction: column;
            width: 100%;
            justify-content: center;
            align-items: center;
            margin-left: 0;
            gap: 12px;
        }

        .nm-btn {
            width: 90%;
            padding: 14px 0;
            font-size: 16px;
        }
    }


    @media (max-width: 480px) {

        .nm-info-section {
            padding: 35px 18px;
        }

        .nm-info-left h2 {
            font-size: 26px;
        }

        .nm-info-left p {
            font-size: 15px;
        }

        .nm-btn {
            width: 100%;
            padding: 13px 0;
            font-size: 15px;
        }
    }
}
















/* Modal covers full screen */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.45);
    justify-content: center;
    align-items: flex-end;
    backdrop-filter: blur(5px);
    overflow: hidden;
    z-index: 9999; /* <-- ADD THIS */
}

.form-row label {
    color: #3b3b3b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    margin-left: 1.5rem;
    font-family: 'Montserrat';
}

.form-control {

    background: #fafafa;
}

.form-row div {
    display: flex;
    flex-direction: column;
}


/* Modal box full height */
.modal-box {
    width: 95%;
    height: 93vh; /* ⬅ HEIGHT increased */
    background: #fff;
    border-radius: 22px 22px 0 0;
    overflow: hidden;
    transform: translateY(120%);
    transition: 0.55s cubic-bezier(.22,.61,.36,1);
}

/* Content scroll inside modal */
.modal-content {
    height: 100%; /* ⬅ Required */
    overflow-y: auto; /* ⬅ Now content scrolls */
    padding: 40px 50px;
}


.modal-overlay.active {
    display: flex;
}

    .modal-overlay.active .modal-box {
        transform: translateY(0);
    }

/* ===== CONTENT ===== */
.modal-content {
    width: 100%;
    padding: 36px 44px;
    overflow-y: auto;
}

    .modal-content h1 {
        font-size: 30px;
        margin: 0 0 12px 0;
        margin-left: 1rem;
        font-family: 'Montserrat';
        color: #3b3b3b;
        font-weight: 600;
    }

.section-title {
    margin-top: 18px;
    margin-bottom: 14px;
    font-weight: 600;
    font-size: 18px;
    border-bottom: 2px solid #eee;
    padding-bottom: 6px;
}



/* two inputs per row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

    .form-row.single input {
        grid-column: span 2;
    }

    .form-row input,
    .form-row select,
    .form-row textarea {
        width: 95%;
        padding: 12px 14px;
        border-radius: 10px;
        /*      border: 1px solid #d0d0d0;*/
        font-size: 15px;
        /*      background: #fff;*/
        box-sizing: border-box;
        height: 3rem;
        margin-left: 1.5rem;
    }

.next-btn {
    margin-top: 18px;
    background: #1A73E8;
    color: #fff;
    padding: 12px 26px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

/* close circle */
.close-modal {
    position: absolute;
    right: 46px;
    top: 17px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
    cursor: pointer;
    font-size: 18px;
    z-index: 20;
    border: none;
}

/* footer spacing (optional) */
.modal-footer {
    padding: 14px 44px 30px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #f0f0f0;
    border: none;
}




/* ================== RESPONSIVE ================== */

/* TAB view (max-width: 1024px) */
@media(max-width:1024px) {
    .modal-box {
        width: 100%;
        height: 92vh;
    }

    .modal-content {
        padding: 30px 35px;
    }

    .form-row {
        gap: 14px;
    }

        .form-row input, .form-row select, .form-row textarea {
            width: 92%;
            margin-left: 1rem;
        }

    .close-modal {
        right: 28px;
        top: 15px;
    }
}

/* MOBILE view (max-width: 600px) */
@media(max-width:600px) {

    .modal-box {
        width: 100%;
        height: 95vh;
        border-radius: 20px 20px 0 0;
    }

    .modal-content {
        padding: 22px;
    }

        .modal-content h1 {
            font-size: 22px;
            margin-left: 0.5rem;
        }

    .form-row {
        grid-template-columns: 1fr; /* 1 column only */
        gap: 10px;
    }

        .form-row input, .form-row select, .form-row textarea {
            width: 100%;
            margin-left: 0;
            height: 2.8rem;
        }

    .modal-footer {
        padding: 12px 20px 25px;
        justify-content: center;
    }

    .next-btn {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }

    .close-modal {
        right: 15px;
        top: 12px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}
