body:lang(ar) {
    direction: rtl;
}

/* first home section */
.banner {
    background-image: url(./../../images/group.webp);
    background-size: cover;
    background-position: center;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.programs_row {
    background-color: #EDF0F2;
    border-radius: 10px;
    box-shadow: -10px 10px 0 rgba(0, 0, 0, 0.125);
    padding: 20px;
}

.banner h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--main-site);
}

.banner p {
    font-size: 1.2rem;
}

.banner .btn {
    color: white;
    border: 1px solid white;
    padding: 10px 20px;
    margin-top: 20px;
    text-transform: uppercase;
    border-radius: 25px;
}

.banner .footer-icons {
    color: white;
    font-size: 1.5rem;
    position: absolute;
    bottom: 3%;
    left: 2%;
}

.banner .footer-icons a {
    color: white;
    margin: 0 5px;
}

.learning-programs {
    position: absolute;
    top: 75%;
}

.Learning_Programs {
    color: var(--main-site);
}

.learning-programs h2 {
    font-weight: bold;
    font-size:1.3rem
}
.learning-programs h3 {
    font-size:1rem
}
.program-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.program-card img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

.program-card i {
    display: block;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #C2C2C2;
    background-size: 15px 15px !important;
    border-radius: 50%;
    padding: 8px !important;
}

.card1 {
    background-color: #113D68;
}

.card2 {
    background-color: #F8AF18;
}

.card3 {
    background-color: #B92239;
}

/* Custom Positioning for Controls */
.custom-prev {
    position: absolute !important;
    top: 50% !important;
    left: -48px !important;
    transform: translateY(-50%) !important;
    z-index: 2;
}

.custom-next {
    position: absolute !important;
    top: 50% !important;
    right: -50px !important;
    /* Adjust distance from carousel */
    transform: translateY(-50%) !important;
    z-index: 2;
}

.custom-next:lang(ar) {
    right: -43px !important;
}

.prev_icon {
    width: 1.2rem !important;
    height: 1.2rem !important;
}


/* Second Sec - Choose Us Button (Cleaned & Optimized) */
.choose-us {
    width: fit-content;
    height: 2.3em;
    margin: 0.5em 0;
    background-color: var(--sec-site);
    color: white;
    border: 1px solid var(--sec-site);
    border-radius: 4px;
    font-size: 22px;
    font-weight: bold;
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 10px 23px;
    display: flex;
    align-items: center;
}

.bg-students-school-life:hover .choose-us {
    color: var(--main-site);
    border: 1px solid var(--main-site);
}

.bg-students-school-life li {
    list-style: disc;
}

.choose-us:after {
    content: "";
    background: white;
    position: absolute;
    z-index: -1;
    left: -20%;
    right: -20%;
    top: 0;
    bottom: 0;
    transform: skewX(-45deg) scale(0, 1);
    transition: transform 0.5s ease;
}

.bg-students-school-life:hover .choose-us:after {
    transform: skewX(-45deg) scale(1, 1);
}

/* Image Optimization */
.bg-students-school-life .parent-img .activities_1 {
    width: 100%;
    height: 500px;
    max-width: 500px;
    object-fit: contain;
}

/* Dots & Animation Performance Fix */
.dots .dot {
    width: 10px;
    height: 10px;
    background-color: var(--main-site);
    border-radius: 50%;
    animation: pulse 3s infinite ease-in-out;
    opacity: 0;
    will-change: transform, opacity;
}
/* Animation Delays */
.dots .dot:nth-child(1)  { animation-delay: 0s; }
.dots .dot:nth-child(2)  { animation-delay: 0.1s; }
.dots .dot:nth-child(3)  { animation-delay: 0.2s; }
.dots .dot:nth-child(4)  { animation-delay: 0.3s; }
.dots .dot:nth-child(5)  { animation-delay: 0.4s; }
.dots .dot:nth-child(6)  { animation-delay: 0.5s; }
.dots .dot:nth-child(7)  { animation-delay: 0.6s; }
.dots .dot:nth-child(8)  { animation-delay: 0.7s; }
.dots .dot:nth-child(9)  { animation-delay: 0.8s; }
.dots .dot:nth-child(10) { animation-delay: 0.9s; }
.dots .dot:nth-child(11) { animation-delay: 1s; }
.dots .dot:nth-child(12) { animation-delay: 1.1s; }
.dots .dot:nth-child(13) { animation-delay: 1.2s; }
.dots .dot:nth-child(14) { animation-delay: 1.3s; }
.dots .dot:nth-child(15) { animation-delay: 1.4s; }

@keyframes pulse {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Start Gallery */
.gallary .icon,
.admissions-process .icon,
.opinions .icon {
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 40px;
}

.gallary .icon::after,
.admissions-process .icon::after,
.opinions .icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--main-site);
    border-radius: 50%;
    top: 0;
    left: 0;
}

.gallary .icon-img,
.admissions-process .icon-img,
.opinions .icon-img {
    width: 40px;
    height: 40px;
    aspect-ratio: 1/1;
    object-fit: contain;
    z-index: 2;
}

.gallary .imgs img,
.admissions-process .imgs img {
    width: 100%;
    height: auto; 
    object-fit: cover;
    border-radius: 5px;
    will-change: transform; 
}

/* Gallery Description */
.gallary_desc {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    font-size: 18px;
    text-align: center;
    z-index: 2;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.btn_circ {
    position: absolute;
    top: 82%;
    right: 11px;
    color: #fff !important;
    transform: rotate(45deg);
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.btn_circ i {
    font-size: 30px;
    transition: transform 0.3s ease;
}

/* Hover Effects (Optimized with Opacity for Smoother Performance) */
.cover:hover .gallary_desc,
.cover:hover .btn_circ {
    opacity: 1;
    visibility: visible;
}

.cover:hover .layer {
    width: 100%;
    height: 100%;
    background-color: #00000073;
}

.layer {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    background-color: transparent;
    transition: width 0.4s ease, height 0.4s ease;
}

.imgs {
    direction: ltr !important;
}

/* start admissions-process */
.admissions-process {
    background-color: #F8F8F8;
}

.admissions-process .card-img {
    width: 80px;
    height: 80px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 5px;
}

.admissions-process .title {
    color: #626161;
}

.admissions-process .des {
    text-align: justify;
    color: #000000;
}

.admissions-process .button {
    position: relative;
    color: #000;
    background-color: transparent;
    font-size: 14px;
    border: 1px solid transparent;
    border-radius: 4px;
    width: 100px;
    height: 42px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.admissions-process .button::before {
    content: "اطلب الأن";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: var(--main-site);
    transform: translate(0%, 90%);
    z-index: 99;
    position: relative;
    transform-origin: bottom;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.admissions-process .button:hover {
    color: #fff;
}

.admissions-process .button::after {
    content: "اطلب الأن";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 1px solid var(--sec-site);
    height: 100%;
    pointer-events: none;
    transform-origin: top;
    transform: translate(0%, -100%);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.admissions-process .button:hover::before {
    transform: translate(0%, 0%);
}

.admissions-process .button:hover::after {
    transform: translate(0%, -200%);
}

.admissions-process .button:focus {
    outline: none;
}

.admissions-process .button:active {
    scale: 0.95;
}

/* end admissions-process */




/* slider section */
.news-section {
    background-color: #D9D9D945;
    color: white;
    position: relative;
    z-index: 0;
}

.news-section::after {
    content: "";
    background-color: #f5511e;
    position: absolute;
    width: 100%;
    height: 60%;
    top: 0;
    left: 0;
    z-index: -1;
}

.news-section h2 {
    font-size: 2rem;
    font-weight: bold;
}

.news-section p {
    font-size: 14px;
}

/* Social icons styling */
.social-icons {
    position: absolute;
    z-index: 3;
}

.social-icons ul {
    list-style: none;
}

.social-icons li::after {
    content: "";
    display: block;
    transition: height 0.3s ease-in-out;
    pointer-events: none;
}

.social-icons li {
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}


.social-icons li:hover {
    transform: translateY(-10px);
}

.social-icons .example-2 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icons .example-2 .icon-content {
    margin: 0 10px;
    position: relative;
}


.social-icons .example-2 .icon-content a {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #4d4d4d;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

.social-icons .example-2 .icon-content a:hover {
    box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}

.social-icons .example-2 .icon-content a .icon {
    position: relative;
    z-index: 1;
    font-size: 20px;
    transition: all 0.3s ease-in-out;
}

.social-icons .example-2 .icon-content a:hover {
    color: white;
}

.social-icons .example-2 .icon-content a .filled {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #000;
    transition: all 0.3s ease-in-out;
}

.social-icons .example-2 .icon-content a:hover .filled {
    height: 100%;
}

.social-icons .example-2 .icon-content a[data-social="whatsapp"] .filled,
.social-icons .example-2 .icon-content a[data-social="whatsapp"]:hover .icon {
    background-color: #25D366;
    color: #fff;
}

.social-icons .example-2 .icon-content a[data-social="whatsapp"] .icon {
    color: #25D366;
}

.social-icons .example-2 .icon-content a[data-social="facebook"] .filled,
.social-icons .example-2 .icon-content a[data-social="facebook"]:hover .icon {
    background-color: #1877F2;
    color: #fff;
}

.social-icons .example-2 .icon-content a[data-social="facebook"] .icon {
    color: #1877F2;
}

.social-icons .example-2 .icon-content a[data-social="twitter"] .filled,
.social-icons .example-2 .icon-content a[data-social="twitter"]:hover .icon {
    background-color: #1DA1F2;
    color: #fff;
}

.social-icons .example-2 .icon-content a[data-social="twitter"] .icon {
    color: #1DA1F2;
}

.social-icons .example-2 .icon-content a[data-social="telegram"] .filled,
.social-icons .example-2 .icon-content a[data-social="telegram"]:hover .icon {
    background-color: #0088cc;
    color: #fff;
}

.social-icons .example-2 .icon-content a[data-social="telegram"] .icon {
    color: #0088cc;
}
/* end Social icons styling */
.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.card img {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

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

.news-section .card-title {
    color: var(--main-site);
}

.news-section .card-text {
    color: #212529;
}

/* start btn-read-more */
.btn-read-more {
    position: relative;
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    color: #fff;
    cursor: pointer;
    background-color: var(--sec-site);
    transition: all 0.5s ease;
}

.btn-read-more:active {
    transform: scale(1);
}

.btn-read-more:before,
.btn-read-more:after {
    position: absolute;
    content: "";
    width: 150%;
    left: 50%;
    height: 100%;
    transform: translateX(-50%);
    z-index: 1000;
    background-repeat: no-repeat;
}

.news-section .card:hover .btn-read-more {
    background: var(--main-site);
}

.news-section .card:hover .btn-read-more::before {
    top: -70%;
    background-image: radial-gradient(circle, var(--sec-site) 20%, transparent 20%),
        radial-gradient(circle, transparent 20%, var(--sec-site) 20%, transparent 30%),
        radial-gradient(circle, var(--sec-site) 20%, transparent 20%),
        radial-gradient(circle, var(--sec-site) 20%, transparent 20%),
        radial-gradient(circle, transparent 10%, var(--sec-site) 15%, transparent 20%),
        radial-gradient(circle, var(--sec-site) 20%, transparent 20%),
        radial-gradient(circle, var(--sec-site) 20%, transparent 20%),
        radial-gradient(circle, var(--sec-site) 20%, transparent 20%),
        radial-gradient(circle, var(--sec-site) 20%, transparent 20%);
    background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%,
        10% 10%, 18% 18%;
    background-position: 50% 120%;
    animation: greentopBubbles 2s ease;
}

@keyframes greentopBubbles {
    0% {
        background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%,
            40% 90%, 55% 90%, 70% 90%;
    }

    50% {
        background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%,
            50% 50%, 65% 20%, 90% 30%;
    }

    100% {
        background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%,
            50% 40%, 65% 10%, 90% 20%;
        background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
}

.news-section .card:hover .btn-read-more::after {
    bottom: -70%;
    background-image: radial-gradient(circle, var(--sec-site) 20%, transparent 20%),
        radial-gradient(circle, var(--sec-site) 20%, transparent 20%),
        radial-gradient(circle, transparent 10%, var(--sec-site) 15%, transparent 20%),
        radial-gradient(circle, var(--sec-site) 20%, transparent 20%),
        radial-gradient(circle, var(--sec-site) 20%, transparent 20%),
        radial-gradient(circle, var(--sec-site) 20%, transparent 20%),
        radial-gradient(circle, var(--sec-site) 20%, transparent 20%);
    background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 20% 20%, 18% 18%;
    background-position: 50% 0%;
    animation: greenbottomBubbles 2s ease;
}

@keyframes greenbottomBubbles {
    0% {
        background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%,
            70% -10%, 70% 0%;
    }

    50% {
        background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%,
            105% 0%;
    }

    100% {
        background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%,
            110% 10%;
        background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
}

/* Carousel controls styling */
.carousel-controls:lang(en) {
    position: absolute;
    top: 20%;
    right: 17%;
    transform: translateY(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.carousel-controls:lang(ar) {
    position: absolute;
    top: 20%;
    left: 19%;
    transform: translateY(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.carousel-controls .btn:lang(en) {
    border: 3px solid white;
    color: white;
    border-radius: 50%;
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 13px;
}

.carousel-controls .btn:lang(ar) {
    border: 3px solid white;
    color: white;
    border-radius: 50%;
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 13px;
    transform: scaleX(-1);
}

.previous_butn {
    left: -12% !important;
}

.next_butn {
    right: -12% !important;
}

.carousel-controls .btn:hover {
    background-color: #ffffff;
}

/* start opinions  */
.opinions {
    background-size: 100% 100%;
    background-position: center;
}

.testimonial-container {
    background-color: #fff;
    color: #fff;
    border-radius: 15px;
    max-width: 768px;
    position: relative;
}
.testimonial-container .user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fa-quote {
    color: var(--main-site);
    font-size: 20px;
    position: absolute;
    top: 70%;
}

.fa-quote-right {
    left: 10px;
    top: 5px;
}

.fa-quote-right:lang(ar) {
    right: 10px;
}

.fa-quote-left:lang(ar) {
    left: 10px;
}

.fa-quote-left:lang(en) {
    right: 10px;
}

.testimonial {
    line-height: 28px;
    text-align: justify;
    color: #5F7285;
}

.user {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.user .user-image {
    border-radius: 50%;
    height: 75px;
    width: 75px;
    object-fit: cover;
    will-change: transform;
}

.user .user-details {
    margin-left: 10px;
}

.user .username {
    margin: 0;
    color: #1B263D;
}

.user .role {
    font-weight: normal;
    margin: 10px 0;
    color: #9C9EA3;
}

@media (max-width: 768px) {
    .fa-quote {
        display: none;
    }
}

.numbers {
    background-image: url(./../../images/Group-10.webp);
    background-size: cover;
    background-position: center;
    position: relative;
}

.numbers .img,
.numbers p {
    z-index: 2;
    position: relative;
}

.numbers .img {
    width: 100%;
    height: 250px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.numbers p {
    font-size: 21px;
    font-weight: bold;
    color: var(--sec-site);
}

.numbers p.number {
    color: var(--main-site);
}

.numbers p.number::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #5CC4DB;
    transform: translate(-50%, 50%);
    z-index: -1;
    border-radius: 3px;
}

.social_icon {
    color: #232369;
}
