﻿:root {
    --section-padding: 60px 7% 40px 7%;
    --section-bg: #F8F8F8;
    --highlight-color: #f4b203;
    --primary-blue: #004E86;
}

.hero-section {
    padding: var(--section-padding);
    display: flex;
    gap: 40px;
    align-items: center;
    background: var(--section-bg);
    position: relative;
}

.hero-left {
    flex: 1 1 50%;
    min-width: 300px;
}

    .hero-left h1, .section-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
        font-weight: 800;
        line-height: 1.3;
        margin-bottom: 5%;
        color: #000;
    }

    .hero-left .highlight {
        color: #f4b203;
    }

    .hero-left .description, .popular-categories-section .section-subtitle, .trainers-section .section-subtitle, .section-subtitle {
        font-size: clamp(1rem, 2vw, 1.25rem);
        color: #777;
        margin-top: 1.5rem;
        max-width: clamp(300px, 60%, 900px);
    }


.highlight-number {
    color: var(--highlight-color);
    font-weight: 700;
}

.hero-right {
    flex: 1 1 40%;
    position: relative;
    max-width: min(400px, 100%);
    aspect-ratio: 1;
    margin-bottom: 40px; 
/*    transform: translateX(-80px);
    padding-right: 0;*/
}

[dir="rtl"] .hero-right {
    transform: translateX(0%);
    padding-left: 0;
    margin-left: 0;
}

.girl-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid transparent;
    background: linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.3));
    z-index: 2;
}

.girl-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.hero-right::before {
    content: "";
    position: absolute;
    width: 110%;
    height: 110%;
    background: radial-gradient(circle at top, #7DDA58 0%, transparent 70%), radial-gradient(circle at right, #FD7120 0%, transparent 80%), radial-gradient(circle at left, #20C3FD 0%, transparent 80%);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.9;
    z-index: 0;
    margin-right: 50%;
}

[dir="rtl"] .hero-right::before {
    margin-right: 0;
    margin-left: 50%;
}




.circular-arc {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%; /* Adjust size as needed */
    height: 110%; /* Adjust size as needed */
    border-radius: 50%;
    border: 3px solid #fff; /* Replace with your desired color */
    border-left-color: transparent;
    border-right-color: transparent;
    animation: rotate 2s linear infinite; /* Optional animation */
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.bg-highlight {
    position: absolute;
    width: 85%;
    height: 85%;
    background: radial-gradient(circle at center, #a3d5ff 0%, transparent 80%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
}

.stat-card {
    position: absolute;
    background: white;
    padding: 15px 20px;
    gap: 50px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    z-index: 3;
}

.card-img {
    padding: 10px;
    border-radius: 25px;
}

.student-card {
    top: 10%;
    left: -15%;
}

.courses-card {
    top: 5%;
    right: -15%;
}

.tutors-card {
    bottom: 10%;
    right: -10%;
}

.stat-card .icon {
    font-size: 24px;
    color: #0c4b8e;
    margin: 5px;
}

.stat-text .number {
    color: #000;
    font-weight: bold;
}

.stat-text .label {
    color: #777;
    font-weight: 500;
}

.stat-card.d-flex {
    flex-direction: row !important;
    text-align: left;
}

.stat-card .icon {
    margin-bottom: 0 !important;
}


.popular-categories-section {
    padding: var(--section-padding);
    background: var(--section-bg);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #111827;
    margin-bottom: 0.5rem;
}

.category-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    min-height: 70px;
    flex-wrap: nowrap;
    overflow: hidden;
}

    .category-box .d-flex {
        flex: 1 1 auto;
        min-width: 0;
        gap: 12px !important;
        align-items: center;
        overflow: hidden;
    }

        .category-box .d-flex.align-items-center {
            align-items: center !important;
        }

.category-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #000 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arrow-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    margin-left: 8px;
}

    .arrow-icon i {
        font-size: 1rem;
        color: #406cc4;
        font-style: italic;
        transform: rotate(315deg);
    }

[dir="rtl"] .arrow-icon i {
    transform: rotate(225deg);
}

.category-box:hover .arrow-icon {
    background-color: var(--primary-blue);
}

    .category-box:hover .arrow-icon i {
        color: #ffffff !important;
    }

.btn:hover {
    background-color: #ffffff !important;
    color: var(--primary-blue) !important;
}


.hover-text {
    color: white;
    text-decoration: none;
}

    .hover-text:hover,
    .hover-text:focus,
    .hover-text:visited,
    .hover-text:active {
        color: white !important;
    }

.testimonial-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #F8F8F8;
}

h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #000;
}

.subtitle {
    font-size: 18px;
    color: #6b6b6b;
    margin-bottom: 30px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #555;
    height: 150px;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

.user h3 {
    margin: 10px 0 5px;
}

.user span {
    color: gray;
    font-size: 14px;
}

.dots {
    margin-top: 20px;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

    .dot.active {
        background-color: #0077c2;
    }

.avatar-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

.testimonial-wrapper {
    width: 600px;
    max-width: 100%;
    margin: 0 20px;
}

.avatars-left,
.avatars-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .avatars-left img,
    .avatars-right img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        transition: transform 0.3s ease;
    }

        .avatars-left img:nth-child(2) {
            position: relative;
            left: 110px;
        }

        .avatars-right img:nth-child(2) {
            position: relative;
            right: 110px;
        }

[dir="rtl"] .avatars-left img:nth-child(2) {
    left: auto;
    right: 110px;
}

[dir="rtl"] .avatars-right img:nth-child(2) {
    right: auto;
    left: 110px;
}


.team-section {
    width: 100%;
    padding: 60px 0;
    text-align: center;
}

team-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.team-section p {
    margin-bottom: 40px;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
}

.team-card {
    background-color: #F0F3F9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    padding: 20px;
    width: 250px;
    transition: transform 0.3s ease;
}

    .team-card:hover {
        transform: translateY(-5px);
    }

    .team-card img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: fill;
        margin: 0 auto 15px auto;
        display: block;
    }

    .team-card h3 {
        margin: 10px 0 5px;
        font-size: 18px;
    }

    .team-card .title {
        color: #3366cc;
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 8px;
    }

    .team-card .desc {
        font-size: 13px;
        color: #666;
    }

.custom-stats {
    padding: 10px 7% 10px 7%;
    background: #f9f9f9;
}

.custom-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 100%;
    margin: auto;
    position: relative;
}

.custom-stat-card {
    background: white;
    border-radius: 16px;
    padding: 0.7rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .custom-stat-card:hover {
        transform: translateY(-10px);
        box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
    }

.custom-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    background-color: #011C2A;
}

.custom-stat-card:hover .custom-icon {
    transform: rotate(10deg) scale(1.1);
    color: #F39100;
}

.custom-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #555;
}

.custom-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #011C2A;
}

@@media (min-width: 2560px) {
    .row-cols-xxxxl-5 > * {
        flex: 0 0 auto;
        width: 20%;
    }

    .course-container {
        padding: 0 !important;
    }
}
@@media (max-width: 1700px) {



    .circular-arc {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        height: 90%;
        border-radius: 50%;
        border: 3px solid #fff;
        border-left-color: transparent;
        border-right-color: transparent;
        animation: rotate 2s linear infinite;
    }
}
    @media (max-width: 1100px) {
        .avatar-layout {
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
        }

        .avatars-left,
        .avatars-right {
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            width: 100%;
        }

            .avatars-left img,
            .avatars-right img {
                position: static !important;
                left: auto !important;
                right: auto !important;
                transform: none !important;
                margin: 5px;
            }
    }

    @media (max-width: 992px) {

        .hero-section {
            flex-direction: column;
            text-align: center;
            gap: 30px;
            overflow-x: hidden;
        }
        .hero-left {
            max-width: 600px;
            margin: 0 auto;
        }

            .hero-left .description {
                max-width: clamp(300px, 100%, 6000px);
                text-align: center;
            }

        .hero-right {
            margin-left: 0;
            margin-bottom: 30px;
            max-width: 400px;
        }

            .hero-right::before {
                width: 80%;
                transform: translateX(-50%);
            }

        .student-card {
            left: -5%;
        }

        .courses-card {
            right: -5%;
        }

        .tutors-card {
            right: -2%;
        }

        .avatar-layout {
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
        }

        .avatars-left,
        .avatars-right {
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            width: 100%;
        }

            .avatars-left img,
            .avatars-right img {
                position: static !important;
                left: auto !important;
                right: auto !important;
                transform: none !important;
                margin: 5px;
            }
        [dir="rtl"] .hero-right::before {
            margin-right: -100%;
            margin-left: 50%;
        }
    }

    @media (max-width: 768px) {
        .hero-right {
            max-width: 320px;
            margin-bottom: 40px;
        }


            .hero-right::before {
                content: "";
                position: absolute;
                width: 80%;
                height: 110%;
                background: radial-gradient(circle at top, #7DDA58 0%, transparent 70%), radial-gradient(circle at right, #FD7120 0%, transparent 80%), radial-gradient(circle at left, #20C3FD 0%, transparent 80%);
                border-radius: 50%;
                filter: blur(100px);
                opacity: 0.9;
                transform: translateX(-50%);
                z-index: 0;
                margin-right: 50%;
            }


        .stat-card {
            padding: 12px 15px;
            min-width: 100px;
            font-size: 13px;
        }

        .student-card {
            left: -8%;
        }

        .courses-card {
            right: -8%;
        }

        .tutors-card {
            right: -5%;
        }


        .avatar-layout {
            align-items: center;
            gap: 30px;
        }

        .avatars-left,
        .avatars-right {
            flex-direction: row;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
        }

            .avatars-left img:nth-child(2),
            .avatars-right img:nth-child(2),
            [dir="rtl"] .avatars-left img:nth-child(2),
            [dir="rtl"] .avatars-right img:nth-child(2) {
                transform: none;
            }

        .testimonial-wrapper {
            flex: 1;
            padding: 0 20px;
            max-width: 100%;
        }
    }

    @media (max-width: 576px) {
        : root {
            --section-padding: 40px 5%;
        }

        .hero-right {
            max-width: 280px;
            margin-bottom: 30px;
        }

            .hero-right::before {
                width: 80%;
                transform: translateX(-50%);
            }

        .stat-card {
            padding: 10px 12px;
            min-width: 90px;
            font-size: 12px;
        }

        .student-card {
            left: -12%;
            top: 8%;
        }

        .courses-card {
            right: -12%;
            top: 3%;
        }

        .tutors-card {
            right: -8%;
            bottom: 8%;
        }

        .stat-card .icon {
            font-size: 20px;
        }

        .category-box {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5rem;
        }

            .category-box .d-flex {
                width: 100%;
            }

        .arrow-icon {
            align-self: flex-end;
            margin-left: auto;
            margin-top: 0.5rem;
        }
    }

    .swiper-container2 {
        height: 400px;
        width: 100%;
        overflow: hidden;
    }

    .new-container {
        max-width: 100%;
        max-height: 100%;
        padding: var(--section-padding);
        background-color: var(--section-bg);
        border-radius: 12px;
    }

    .news-date {
        font-size: 0.9rem;
        color: var(--primary-blue);
        margin-right: 10px;
        margin-bottom: 0;
    }

    .news-title-line {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .swiper-slide {
        display: flex;
        align-items: flex-start;
        background-color: var(--section-bg);
        border-radius: 12px;
        padding: 0 15px 15px 15px;
        gap: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        transition: transform 0.3s ease;
        cursor: pointer;
        flex-direction: row;
        flex-wrap: nowrap;
    }


        .swiper-slide:hover {
            transform: translateY(-3px);
        }

        .swiper-slide img {
            display: block;
            width: 50%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
        }

        .swiper-slide .d-block {
            overflow: hidden;
            flex: 1;
        }

    .video-title {
        font-size: 1rem;
        color: #333;
        margin: 0;
    }

    .video-text {
        font-size: 0.9rem;
        color: #555;
    }

    .trainers-section {
        background-color: var(--section-bg);
        padding-bottom: 4%;
    }

    .trainers-container {
        padding: 60px 7% 40px 7%;
    }

    .trainers-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
        max-width: 100%;
        margin: auto;
    }


    .trainer-card {
        background-color: #EEEFF0;
        border-radius: 16px;
        padding: 20px;
        flex: 1 1 calc(25% - 40px);
        min-width: 250px;
        max-width: 500px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: transform 0.3s;
    }


        .trainer-card:hover {
            transform: translateY(-5px);
        }

    .trainer-link {
        text-decoration: none;
        color: inherit;
    }

    .trainer-img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 50%;
        margin-bottom: 12px;
    }

    .trainer-name {
        font-weight: bold;
        font-size: 18px;
        margin: 8px 0 4px 0;
        color: var(--primary-blue);
    }

    .trainer-desc {
        font-size: 14px;
        color: #666;
    }
