.firstBox {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5vh;
    box-sizing: border-box;
}

.firstBox .about-us-container .top-box {
    width: 70%;
    height: 10px;
    background-color: #ffb5349c;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.firstBox .about-us-container .about-us {
    background-color: #ffa726;
    border-radius: 35px;
    padding: 10vh;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 2px 10px rgb(255, 255, 255);
    position: relative;
}

.firstBox .about-us-container .about-us h2 {
    margin-top: 0;
    color: #fff;
}

.firstBox .about-us-container .about-us p {
    color: #fff;
    direction: rtl;
}

.firstBox .about-us-container .icon-box {
    position: absolute;
    bottom: -20px;
    left: 20%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.firstBox .about-us-container .icon-box .icon {
    font-size: 20px;
}


/* //////////////// First Box /////////////// */

.secendBox {
    margin: 10dvh auto;
    width: 90%;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-evenly;
}

.secendBox .rightSecendBox {
    direction: rtl;
    width: 45%;
}

.secendBox .leftSecendBox {
    width: 45%;
    align-content: center;
}

.secendBox .leftSecendBox .imgBox {
    width: 70%;
    margin: 0 15%;
}

.txtBox {
    width: 90%;
}

.txtBox1 {
    width: 80%;
    display: flex;
    justify-content: space-between;
}

.txtBox2 {
    width: 80%;
    display: flex;
    justify-content: space-between;
}


/* //////////////////// second box /////////////////////// */

.thirdBox {
    width: 100%;
    margin-top: 10vh;
    margin-bottom: 30vh;
}

.thirdBox .mainBox {
    background-color: #FDD99C;
    width: 80%;
    margin: 1vh auto;
    padding: 2vh;
    box-sizing: border-box;
    border-radius: 20px;
}

.thirdBox .mainBox h2 {
    direction: rtl;
    font-size: 40px;
    margin-right: 3vh;
}

.thirdBox .mainBox .cardContainer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 20px;
    padding: 0 20px 120px 20px;
    min-width: 600px;
    /* Add webkit properties for mouse grabbing */
    /* cursor: grab; */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    /* Smooth scrolling */
    scroll-behavior: smooth;
}


/* 
.thirdBox .mainBox .cardContainer:active,
.thirdBox .mainBox .cardContainer.active {
    cursor: grabbing;
} */

.thirdBox .mainBox .cardContainer::-webkit-scrollbar {
    display: none;
}

.thirdBox .mainBox .cardContainer .card {
    position: relative;
    box-sizing: border-box;
    flex: 0 0 auto;
    min-width: 300px;
    max-width: 350px;
    z-index: 1;
    margin-bottom: 0;
}

.thirdBox .mainBox .cardContainer .card .upCard {
    width: 100%;
    /* height: 200px; */
    overflow: hidden;
    border-radius: 20px;
}

.thirdBox .mainBox .cardContainer .card .upCard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-sizing: border-box;
}

.thirdBox .mainBox .cardContainer .card .downCard {
    background-color: #F5F7FA;
    position: absolute;
    top: 270px;
    width: 90%;
    padding: 1vh;
    box-sizing: border-box;
    text-align: center;
    left: 17px;
    box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    z-index: 2;
    white-space: normal;
    word-wrap: break-word;
}

.thirdBox .mainBox .cardContainer .card .downCard a {
    color: #4CAF4F;
}

.thirdBox .mainBox .cardContainer .card .downCard p {
    direction: rtl;
    text-align: justify;
}

.phoneVersion {
    display: none;
    direction: rtl;
    width: 80%;
    margin: auto;
    text-align: center;
}

.phoneVersion .txtBox {
    margin: auto;
}

.phoneVersion .txtBox1,
.phoneVersion .txtBox2 {
    width: 100% !important;
    justify-content: space-around;
}

.forthBox {
    display: none;
}

.card {
    border-radius: 20px !important;
}

.card-body {
    text-align: center;
}

.btnInerCard {
    width: 50%;
    margin: 0 auto;
    background-color: #99C67A;
    padding: 1.5vh;
    box-sizing: border-box;
    border-radius: 10px;
    direction: rtl;
    text-align: center;
    border: solid #64E58A;
}

.btnInerCard:hover {
    background-color: #74be43 !important;
}

.btnInerCard .btnRealInerCard {
    color: #FFF !important;
}


/* ///////////////// third box /////////////////// */

@media screen and (max-width: 1355px) {
    .mainBox {
        width: 90% !important;
    }
}

@media screen and (max-width: 1205px) {
    .mainBox {
        width: 95% !important;
    }
    .secendBox .rightSecendBox h3 {
        font-size: 35px !important;
    }
}

@media screen and (max-width: 1040px) {
    .mainBox {
        width: 99% !important;
    }
    .cardContainer {
        justify-content: space-between !important;
    }
}

@media screen and (max-width: 990px) {
    .txtBox1 p,
    .txtBox2 p {
        font-size: 18px !important;
    }
}

@media screen and (max-width: 932px) {
    .txtBox1,
    .txtBox2 {
        width: 100% !important;
    }
}

@media screen and (max-width: 850px) {
    .firstBox .about-us-container {
        width: 100%;
    }
    .firstBox .about-us-container .about-us {
        padding-left: 3dvh;
        padding-right: 3dvh;
    }
}

@media screen and (max-width: 744px) {
    .desktopVersion {
        display: none;
    }
    .phoneVersion {
        display: block;
    }
    .secendBox {
        flex-direction: column-reverse;
        justify-content: center;
    }
    .secendBox .rightSecendBox,
    .secendBox .leftSecendBox {
        width: 100%;
    }
}

@media screen and (max-width: 640px) {
    .secendBox {
        width: 90% !important;
    }
    .firstBox .about-us-container {
        width: 100%;
    }
    .rightSecendBox h3 {
        font-size: 32px !important;
    }
    .rightSecendBox p {
        font-size: 18px !important;
    }
    .mainBox h2 {
        font-size: 30px !important;
    }
    .downCard p {
        font-size: 12px !important;
    }
}

@media screen and (max-width: 520px) {
    .firstBox {
        padding-left: 2dvh !important;
        padding-right: 2dvh !important;
    }
    .imgBox {
        width: 100% !important;
        margin: 0 !important;
    }
}

@media screen and (max-width: 400px) {
    .rightSecendBox h3 {
        font-size: 26px !important;
    }
    .rightSecendBox p {
        font-size: 14px !important;
    }
    .phoneVersion h3 {
        font-size: 30px !important;
    }
    .txtBox1 p,
    .txtBox2 p {
        font-size: 20px !important;
    }
}

@media screen and (max-width: 360px) {
    .firstBox {
        padding: 1vh;
    }
}


/* @media screen and (max-width: 300px) {
    body{
        display: none;
    }
} */

@media screen and (max-width: 1150px) {
    .thirdBox {
        width: 100%;
    }
    .thirdBox .mainBox {
        width: 100% !important;
        background-color: #FDD99C;
        border-radius: 20px;
        padding: 2vh;
        box-sizing: border-box;
        overflow: hidden;
        /* Hide overflow from the main container */
    }
    .thirdBox .mainBox h2 {
        position: sticky;
        top: 0;
        background-color: #FDD99C;
        z-index: 10;
        margin-bottom: 3%;
        margin-top: 0.5%;
        padding: 10px 0;
    }
    .thirdBox .mainBox .cardContainer {
        overflow-x: auto;
        overflow-y: visible;
        /* Allow vertical overflow for downCard */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 20px;
        padding: 0 20px 120px 20px;
        /* Increased bottom padding to show last downCard */
        min-width: 600px;
        /* Increased minimum width to accommodate all cards */
    }
    .thirdBox .mainBox .cardContainer::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari and Opera */
    }
    .thirdBox .mainBox .cardContainer .card {
        flex: 0 0 auto;
        min-width: 300px;
        /* Increased minimum card width */
        max-width: 350px;
        /* Increased maximum card width */
        position: relative;
        z-index: 1;
        margin-bottom: 0;
        /* Remove any bottom margin */
    }
    .thirdBox .mainBox .cardContainer .card .upCard {
        width: 100%;
        /* height: 200px; */
        /* Fixed height for consistency */
        overflow: hidden;
        border-radius: 20px;
    }
    .thirdBox .mainBox .cardContainer .card .upCard img {
        width: 100%;
        /* height: 100%; */
        object-fit: cover;
        /* This will make the image fill the container without distortion */
        border-radius: 20px;
        box-sizing: border-box;
    }
    .thirdBox .mainBox .cardContainer .card .downCard {
        z-index: 2;
        position: absolute;
        top: 270px;
        width: 90%;
        padding: 1vh;
        box-sizing: border-box;
        text-align: center;
        left: 16px;
        box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        background-color: #F5F7FA;
        white-space: normal;
        /* Ensure text wraps properly */
        word-wrap: break-word;
        /* Break long words if needed */
    }
}