@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Righteous&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@100..900&display=swap');

.benefits-wrapper {
    display: inline-block;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 40px 0;
    background-color: #ffffff;
}

.benefits-title {
    color: #191919;
    margin-bottom: 15px;
    font-family: Roboto, "Cairo" !important;
    font-weight: 700;
    font-size: 32px;
    line-height: 130%;
    text-align: center;
}

/* Responsive Tabs */
.tabs {
    display: flex;
    justify-content: center;
    border-bottom: 2.1px solid #72777a;
    margin: 40px 0;
}

.tab {
    position: relative;
    font-family: Roboto, "Cairo" !important;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    padding: 10px 20px;
    color: #72777a;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0 170px;
    border-bottom: none;
    transition: color 0.3s ease-in-out, border-bottom 0.3s ease-in-out;
}

.tab::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: -170px;
    width: 0;
    height: 2.1px;
    background-color: #191919;
    transition: all 0.3s ease-in-out;
}

.tab.active {
    color: #191919;
    font-weight: 700;
}

.tab.active::after {
    width: 590px;
}

[dir="rtl"] .tab.active::after {
    width: 510px;
}

.benefits-container {
    display: flex;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 20px 20px;
}

/* Content Container */
.content-container {
    width: 100%;
}

/* Benefits Content */
.benefits-content {
    display: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 80px;
}

.benefits-content.active {
    display: flex;
}

/* Benefits Box */
.benefit {
    flex: 1;
    text-align: start;
}

.benefit p {
    max-width: 96%;
    color: #72777a;
    font-size: 18px;
}

/* Badge Styling */
.badge {
    display: inline-block;
    background-color: #73b5aa;
    color: black;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 10px;

    font-family: Roboto, "Cairo" !important;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .benefits-content {
        margin: 0 20px;
        flex-direction: column;
        align-items: start;
        gap: 55px;
    }

    .tab {
        font-size: 16px;
        padding: 10px 12px;
        margin: auto;
    }

    .tab.active {
        border-bottom: 2px solid black;
    }

    .tab.active::after {
        width: 0;
    }

    [dir="rtl"] .tab.active::after {
        width: 0;
    }

    .badge {
        font-size: 16px;
        padding: 4px 8px;
    }

    .benefit {
        max-width: 100%;
    }

    .benefit p {
        max-width: 100%;
    }
}

@media (max-width: 411px) {
    .tab {
        font-size: 13px;
        padding: 10px 12px;
        margin: auto;
    }
}

/* New (Founding Section) */

/* Container for the funding section */
.funding-section {
    background-color: #ffffff;
    display: flex;
    width: 100%;
    height: 476px;
}

/* Each funding box (left and right side) */
.funding-section .funding-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: white;
}

/* Left and Right Background Colors */
.funding-section .left {
    background-color: #1b8271;
    padding-inline-end: 20px;
}

.funding-section .right {
    background-color: #73b5aa;
    padding-inline-start: 20px;
}

/* Images inside the funding section */
.funding-section .funding-box img {
    /* margin-right: 20px; */
}

/* Text Container */
.funding-section .funding-box .text {
    max-width: 447px;
    padding: 10px;
}

/* Subheading */
.funding-section .funding-box h4 {
    font-size: 18px;
    font-weight: normal;
}

/* Main Heading */
.funding-section .funding-box h2 {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

/* Buttons */
.funding-section .funding-box button {
    background: #ffffff;
    color: #404446;
    padding: 12px 30px;
    border: none;
    border-radius: 20px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
    margin-bottom: 20px;
}

.funding-section .funding-box.left button {
    float: inline-start;
}

.funding-section .funding-box.right button {
    float: inline-end;
}

/* Button Hover Effect */
.funding-section .funding-box button:hover {
    background: #d7a85d !important;
    color: white !important;
}

/* Responsive Design: Stacking on Small Screens */
@media (max-width: 1107px) {
    .funding-section .funding-box img {
        width: 40%;
    }

    .funding-section .funding-box h2 {
        font-size: 22px;
    }

    .funding-section .funding-box button {
        padding: 12px 11px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .funding-section {
        flex-direction: column;
        height: 1000px;
    }

    .funding-section .funding-box {
        width: 100%;
        flex-direction: column;
        padding: 20px;
    }

    .funding-section .funding-box img {
        width: 241px;
        margin-bottom: 15px;
        margin-right: 0;
    }

    .funding-section .funding-box button {
        padding: 12px 30px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 475px) {
    .funding-section {
        height: 1060px;
    }
}

@media (max-width: 310px) {
    .funding-section .funding-box img {
        width: 65%;
    }
}

/* Our Achievments (Imapct) Section */
.impact-container {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 40px 0;
}

.data-container .impact-data .animate-number {
    color: #b17c31 !important;
    font-size: 48px;
}

body.home .row.impact-data .item .description {
    font-weight: bold !important;
    text-transform: capitalize !important;
    font-size: 24px !important;
}

.impact-container .data-container .container {
    margin-bottom: 0 !important;
}

@media (max-width: 767px) {
    [dir="rtl"] .impact-container {
        padding-bottom: 70px;
    }
}
