/* hero-section */
.hero-section {
    min-height: 80vh;
    background-color: var(--white);
    background-image: url("../images/hero.png");
}
.content-side {
    padding: 80px 4% !important;
    position: relative;
}
.welcome-text {
    color: var(--accent-color);
    font-size: 1.1rem;
}
.hero-title {
    color: var(--primary-color);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.3;
}
.hero-desc {
    font-size: 1.1rem;
    line-height: 1.8;
}
.fw-800 {
    font-weight: 800;
}

.teachers-badge {
    position: absolute;
    bottom: 40px;
    left: 10%;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 200px;
    z-index: 10;
}
.badge-text {
    font-size: 1rem;
    color: #333;
}
.avatar-stack .stack-img,
.plus-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid white;
    margin-right: -12px;
}
.plus-circle {
    background-color: var(--primary-color);
    font-weight: bold;
    margin-right: 0;
}

.image-side::before {
    content: "";
    position: absolute;
    width: 40%;
    height: 32%;
    background: url("../images/wavy-decoration.png") no-repeat bottom right;
    z-index: 0;
    opacity: 0.9;
    right: -135px;
    top: 168px;
}

.hero-img {
    max-height: 650px;
    z-index: 9;
    position: relative;
}

.hero-bg-lines {
    background-size: cover;
    opacity: 0.4;
}

@media (max-width: 991px) {
    .content-side {
        text-align: center !important;
    }
    .hero-content-wrapper {
        padding: 0 !important;
    }
    .teachers-badge {
        position: relative;
        left: 0;
        bottom: 0;
        margin: 40px auto 0;
    }
    .hero-img {
        border-radius: 0;
    }
}
/* categories-section */
.categories-section .section-title {
    font-size: 2.2rem;
}

.category-card {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    border-radius: 15px;
    text-decoration: none !important;
    transition: var(--transition);
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 9px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.cat-name {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.cat-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px dashed var(--accent-clr);
    padding: 10px;
    background: #fff;
}

.cat-icon-box img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

/* ألوان الكروت وتحديد متغير الـ Accent لكل واحد */
.cat-green {
    background-color: #ebfcf6;
    --accent-clr: #55daab;
}
.cat-red {
    background-color: #fff0f0;
    --accent-clr: #ff9393;
}
.cat-blue {
    background-color: #ebf4ff;
    --accent-clr: #79b7f5;
}
.cat-pink {
    background-color: #fdf0f7;
    --accent-clr: #f79ccb;
}
.cat-purple {
    background-color: #f2f2ff;
    --accent-clr: #a4a4f8;
}
.cat-yellow {
    background-color: #fff8eb;
    --accent-clr: #ffc470;
}
.cat-cyan {
    background-color: #ebfcff;
    --accent-clr: #79e3f5;
}
.cat-orange {
    background-color: #fff4e8;
    --accent-clr: #ffb873;
}
.cat-indigo {
    background-color: #f1f3ff;
    --accent-clr: #909cff;
}

@media (max-width: 576px) {
    .cat-name {
        font-size: 0.95rem;
    }
    .cat-icon-box {
        width: 55px;
        height: 55px;
    }
}
/* courses-grid */
.courses-grid .section-badge {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    width: fit-content;
}
.header-title {
    max-width: 500px;
    font-size: 2rem;
    line-height: 1.4;
}
.oval-highlight {
    position: relative;
    z-index: 1;
    padding: 0 5px;
}
/* .oval-highlight::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 130%;
    border: 2px solid var(--accent-color);
    border-radius: 50% / 100% 100% 100% 100%;
    z-index: -1;
} */

.course-item {
    background-color: var(--white);
    border: 1.5px dotted #e1e1e1;
    border-radius: var(--border-radius);
    padding: 15px;
    transition: var(--transition);
}
.course-item:hover {
    transform: translateY(-5px);
    border-style: solid;
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.course-banner {
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.category-pill {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

.course-price {
    color: #5a78ff;
    font-size: 1.1rem;
}
.stars {
    color: #f0a31b;
    font-size: 0.8rem;
    letter-spacing: -1px;
}
.course-name {
    height: 3rem;
    overflow: hidden;
}

.btn-join {
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.85rem;
    transition: var(--transition);
}
.btn-join:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

@media (max-width: 991px) {
    .header-title {
        font-size: 1.6rem;
    }
}
/* about-section */
.about-section {
    position: relative;
    padding: 80px 0;
}

.about-images-wrapper {
    position: relative;
    max-width: 520px;
    margin-left: auto;
}

.img-top-left {
    width: 160px;
    height: 220px;
    object-fit: cover;
    margin-top: 30px;
}

.img-top-right {
    width: 280px;
    height: 250px;
    object-fit: cover;
}

.img-bottom {
    height: 300px;
    object-fit: cover;
}

.experience-circle {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background-color: var(--primary-color);
    border: 8px solid var(--white);
    border-radius: 50%;
    color: var(--white);
    z-index: 5;
    box-shadow: 0 10px 30px rgba(40, 57, 113, 0.2);
}

.experience-circle .number {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.experience-circle .text {
    font-size: 0.9rem;
}

.platform-tag {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 25px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    width: fit-content;
}

.about-content-box .section-title {
    font-size: 2.5rem;
    line-height: 1.3;
}

.dots-pattern {
    position: absolute;
    top: -20px;
    left: -40px;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(var(--accent-color) 2px, transparent 2px);
    background-size: 15px 15px;
    z-index: -1;
    opacity: 0.3;
}

@media (max-width: 991px) {
    .img-top-right {
        width: 134px;
        height: 241px;
        object-fit: cover;
        top: 4px;
    }
    .about-content-box {
        text-align: center !important;
        margin-top: 50px;
    }
    .about-images-wrapper {
        margin: 0 auto;
        overflow-x: hidden;
    }
    .mobile-search-box {
        display: none;
    }
    .about-content-box .section-title {
        font-size: 2rem;
    }
    .experience-circle {
        left: 50%;
        top: auto;
        bottom: 40%;
    }
}
/* why-us-section */
.why-us-section {
    padding: 100px 0;
}

.why-tag {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 30px;
    border-radius: 8px;
    font-weight: 500;
}

.feature-box {
    background-color: #f2f2ff;
    border-radius: 12px;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-box:hover {
    background-color: #e6e6ff;
    transform: translateY(-3px);
}

.check-icon {
    background-color: transparent;
    color: #a4a4f8;
}

.why-us-image-container {
    padding: 30px;
    position: relative;
    z-index: 1;
}

.main-why-img {
    width: 100%;
    z-index: 5;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* البراويز الصفراء الديكورية */
.yellow-frame {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 15px solid #ffcc5c;
    z-index: 0;
}

.top-frame {
    top: 0;
    right: 0;
    border-bottom: 0;
    border-left: 0;
}

.bottom-frame {
    bottom: 0;
    left: 0;
    border-top: 0;
    border-right: 0;
}

.decorative-dots {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 140px;
    background-image: radial-gradient(#ced4da 2px, transparent 2px);
    background-size: 18px 18px;
    z-index: -1;
}

@media (max-width: 991px) {
    .why-us-section {
        padding: 50px 0;
    }
    .why-us-content {
        text-align: center !important;
        margin-bottom: 60px;
    }
    .why-us-image-container {
        padding: 20px;
        max-width: 500px;
        margin: 0 auto;
    }
    .yellow-frame {
        width: 100px;
        height: 100px;
        border-width: 10px;
    }
}
/* testimonials-stats-section */
.testimonials-stats-section {
    background-color: #ffffff52;
    background-image: url("../images/map.jpg");
    background-size: cover;
    background-attachment: fixed;
}

.stats-pills-bar {
    background-color: var(--primary-color);
    border-radius: 100px;
}

.stat-icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.stat-icon-circle img {
    width: 100%;
    height: auto;
}

.map-bg-wrapper {
    background: url("map-pattern.png") no-repeat center center;
    background-size: cover;
    min-height: 600px;
}

.testimonial-card {
    background-color: var(--white);
    border: 1px solid #dce2f3;
    border-radius: 20px;
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(40, 57, 113, 0.1);
    border-color: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

@media (max-width: 991px) {
    .stats-pills-bar {
        border-radius: 25px;
        flex-direction: column;
        gap: 30px;
        padding: 30px !important;
    }
    .stat-pill-item {
        border: none !important;
        width: 100%;
        justify-content: space-between;
        flex-direction: row-reverse;
    }
}
/* instructors-section */
.instructor-card-box {
    border-radius: 8px;
    background-color: transparent;
    transition: var(--transition);
}

.border-purple {
    border: 2px solid #7c61f5 !important;
}

.instructor-img {
    height: 320px;
    object-fit: cover;
}

.status-dot {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 25px;
    height: 25px;
    background-color: #7c61f5;
    border-radius: 50%;
    z-index: 10;
}

.name-overlay {
    position: absolute;
    bottom: 12px;
    left: 8px;
    right: 8px;
    background-color: var(--white);
    border-radius: 6px;
    z-index: 15;
}

.smaller {
    font-size: 0.7rem;
}

.arrow-icon-circle {
    width: 28px;
    height: 28px;
    background-color: #f1efff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c61f5;
}

.badge-pill-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.instructor-card-box:hover {
    transform: scale(1.02);
}

@media (max-width: 991px) {
    .instructor-img {
        height: 250px;
    }
    .status-dot {
        width: 18px;
        height: 18px;
        top: 10px;
        right: 10px;
    }
}
