.courses-page {
    direction: rtl;
}
#aswift_1_host{
    width:100% !important;
}
.google-aiuf{
    width:100% !important;
}
/* هيدر البحث */
.page-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.course-content h1 {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 500;
}

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

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

/* الزرار */
.search-btn {
    background: #ff6a1a;
    color: #fff;
    border: none;
    padding: 10px 35px;
    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: #41037E;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

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

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

}

.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;
}

.menu.show {
    display: block;
}

.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;
    width: 50%;
}
.page-title-branding form{
    width: 50%;
}
.search-box input {
    flex: 1;
    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 25px;
    border-radius: 15px;
}

.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: 8px;
    font-weight: 500;
    font-size: clamp(24px, 3vw, 30px);

}

.section-header a {
    font-weight: 500;
    font-size: clamp(14px, 3vw, 18px);
    color: rgba(114, 114, 114, 1)
}

.section-header .color-head {
    font-weight: 500;
    font-size: clamp(14px, 3vw, 16px);
    color: rgba(12, 85, 195, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space:nowrap;
}

/* العناوين */
.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: 15px;
    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%;
}

/* 📱 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%;
    }

    .jobheader-container {
        width: 100%;
    }

    .search-box input {
        border-left: none !important;
    }
    .page-title-branding form{
    width: 100%;
}
.page-title-branding{
    width: 100%;
}
}

/* --- الريسبونسف (مهم جداً) --- */
@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%;
    }
    .circle{width:88px; height:88px}

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

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

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


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

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

  .circles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr !important;
}

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

    /* .page-title-branding {
        flex-direction: column;
    } */
       .page-title-branding {
        display:flex
    }

    .search-box {
        flex-direction: column;
        gap: 15px;
    }
    .column ul{
        display: flex;
        flex-wrap: wrap;
    }
    .column ul li{
        width: 100%;
    }
    .column ul li:nth-child(n+6) {
        display: none;
    }
}

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

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

    .search-box input {
        border-left: none;
    }

    .dropdown {
        border-right: 1px solid #eee;
        /* border-top: 1px solid #eee; */
        padding-top: 10px;
    }

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

.main-categories-footer .circles-grid h4 {
    color: #0F5BC3;
    font-size: 20px;
    font-weight: 600;
}

.main-categories-footer .circles-grid span {
    color: #7C8493;
    font-size: 18px;
    font-weight: 400;

}
.search-box{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.search-fields{
    display:flex;
    align-items:center;
    flex:1;
}
@media (max-width:768px){

    .search-box{
        flex-direction:column;
        align-items:stretch;
    }

    .search-fields{
        width:100%;
    }

    .search-btn{
        width:100%;
    }
    .search-fields input{
    width:100%;
    border:none;
    padding:10px;
    outline:none;
}
.search-fields input{
    flex:1;
    min-width:0;
}
}

.islamic-show-more-link {
    display: inline-block;
    margin-top: 15px;
    color: #0F5BC3;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    transition: 0.3s;
}

.islamic-show-more-link:hover {
    color: #000;
    text-decoration: underline;
}

@media (max-width: 992px) {
    .islamic-course-sub-subcats {
        grid-template-columns: 1fr !important;
    }
    .islamic-course-sub-subcats li:nth-child(n+6) {
        display: none !important;
    }
}
