/* 📱 Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 30px;
    }

    .column::after {
        display: none;
    }

    .column {
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }

    .course-content p {
        width: 100%;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .search-box input {
        width: 100%;
    }

    .column ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .column ul li {
        width: 100%;
    }

    .column ul li:nth-child(n + 6) {
        display: none;
    }
}

.courses-page {
    direction: rtl;
    font-family: "Cairo", sans-serif;
    padding: 40px 0;
}

/* هيدر البحث */
.page-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    width: 50%;
    margin: 40px auto;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.course-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* الزرار */
.search-btn {
    background: #ff6a1a;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
}

/* الدروب داون */
.dropdown {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 15px;
    border-left: 1px solid #ddd;
    color: #6a0dad;
    cursor: pointer;
}

.dropdown .arrow {
    font-size: 14px;
}

/* الانبوت */
.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px;
    font-size: 14px;
    color: #333;
}

.search-box input::placeholder {
    color: #aaa;
}

.menu {
    display: none;
    position: absolute;
    background: #fff;
    list-style: none;
    padding: 10px;
    margin: 0;
    top: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    right: 0;
    min-width: 180px;
    width: 100%;
    height: 302px;
    overflow-y: scroll !important;
}

.menu.show {
    display: block;
    z-index: 10000;
}

.badge-icon {
    height: 84px;
    width: 84px;
    background-color: #dad8fd4d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-title-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
}

.search-submit {
    background: #ff6b00;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
    cursor: pointer;
}

/* كروت الأقسام الصغيرة */
.courses-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.mini-card {
    background: #ffffff;
    border: 1px solid #0000000f;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
    box-shadow: 1px 5px 34.8px 0px #0000000d;
}

.card-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: #ffffff;
    box-shadow: 1px 5px 34.8px 0px #0000000d;
    border-radius: 10px;
    padding: 15px 25px;
    border: none;
    color: #3c85fc;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
}

.main-categories-footer {
    height: 50vh;
}

.card-info {
    margin-inline-start: 20px;
}

.mini-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card-icon {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.blue-bg {
    background: #e9e8ffc2;
    color: #3c85fc;
}

.purple-bg {
    background: #f3e8ff;
    color: #7e22ce;
}

.card-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0f5bc3;
}

.card-info span {
    font-size: 16px;
    font-weight: 400;
    color: #7c8493;
}

.arrow {
    color: #ccc;
    font-size: 12px;
}

.number {
    font-size: 20px;
    font-weight: 500;
    color: #3c85fc;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.content-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.content-header h5 {
    color: #727272;
    font-size: 18px;
    font-weight: 400;
}

.course-category {
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.category-header h2 {
    font-size: 30px;
    font-weight: 500;
}

/* سكشن الدوائر السفلي */
.circles-grid {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.circle-item {
    text-align: center;
    flex: 1;
    background-color: #fefefe;
    border: 1px solid #f5f5f5f5;
    padding: 20px 30px;
    border-radius: 10px;
}

.circle {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.circle.orange {
    background: #fe721e1a;
    color: #ff6b00;
}

.circle.purple {
    background: #dad8fd4d;
    color: #7c3aed;
}

.container {
    display: flex;
    gap: 88px;
    justify-content: space-between;
}

/* الأعمدة */
.column {
    flex: 1;
    position: relative;
}

/* الخط الفاصل */
.column:not(:last-child)::after {
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    height: 100%;
    width: 1px;
    background: #ddd;
}

.section-header h2 {
    margin-bottom: 5px;
}

/* العناوين */
.column h3 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 500;
}

/* القائمة */
.column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.column ul li {
    margin-bottom: 10px;
    color: #727272;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
}

.column ul li:hover {
    color: #000;
}

/* اللينك */
.column .show-more-link {
    display: inline-block;
    margin-top: 10px;
    color: #7b2cbf;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.course-content p {
    font-size: 18px;
    font-weight: 300;
    color: #00000070;
    width: 80%;
}

.swiper {
    position: unset !important;
    margin-bottom: 20px !important;
}

.swiper-slide {
    position: unset !important;
}

.swiper-controls {
    display: grid;
    grid-template-columns: 40px auto 40px;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.swiper-button-prev,
.swiper-button-next {
    position: static !important;
    margin: 0;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: #2563eb !important;
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
    color: white !important;
}

.controls-container {
    height: 50px;
    width: 50px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #00000005;
    box-shadow: 2px 0px 11.9px 0px #0000000a;
}

.swiper-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content !important;
    margin: 0px 10px 0px 0px;
}

.swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    margin: 0 3px !important;
    flex-shrink: 0;
}

.swiper-pagination-bullet-active {
    transform: scale(1.2);
}

.swiper-button-prev,
.swiper-button-next {
    height: 27px !important;
    width: 27px !important;
    border-radius: 50%;
    border: 2px solid #3872e5;
    margin-top: 0px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.swiper-pagination {
    position: unset !important;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #3872e5 !important;
}

.blog-svg {
    color: #3872e5;
    transition: 0.3s;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header .left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 16px;
    color: #0c55c3;
}

.section-header p {
    font-size: 18px;
    font-weight: 400;
    color: #727272;
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 30px;
    }

    .column::after {
        display: none;
    }

    .column {
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }

    .course-content p {
        width: 100%;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .search-box input {
        width: 100%;
    }

    .column ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .column ul li {
        width: 100%;
    }

    .column ul li:nth-child(n + 6) {
        display: none;
    }
}

/* --- الريسبونسف (مهم جداً) --- */
@media (max-width: 1024px) {
    .courses-mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-top-bar {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .search-box {
        width: 100%;
    }

    .circles-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .main-categories-footer {
        height: auto;
        margin-bottom: 100px;
    }
}

@media (max-width: 650px) {
    .courses-mini-grid {
        grid-template-columns: 1fr;
    }

    .circles-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .dark-promo-banner {
        padding: 20px;
        text-align: center;
    }

    .promo-content {
        flex-direction: column-reverse;
    }

    .circles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-categories-footer {
        height: auto;
        margin-bottom: 150px;
    }

    .search-box {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 450px) {
    .category-header {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
        align-items: stretch;
    }

    .dropdown {
        border-left: none;
        padding-top: 10px;
    }

    .search-btn {
        width: 100%;
    }
}
