﻿.container {
    max-width: 1520px;
}

@media (min-width: 1905px) {
    .container {
        max-width: 1870px;
    }
    .content {
        width: 90%;
        padding: 20px;
        margin-right: var(--sidebar-width-expanded);
        transition: margin-right 0.3s ease;
    }
    .sidebar.collapsed + .content {
        margin-right: var(--sidebar-width-collapsed);
        width: 94%;
    }
    .story-slide {
        width: 169px !important;
    }
}


.search-container {
    max-width: 630px;
}

.section-title h2 {
    height: 35px;
    line-height: 1;
}



.logoAl {
    width: 120px;
    height: 57px;
}
    .logoAl img {
        display:block;
        width: 100%;
        height: 100%;
    }


.icon-nav svg {
    width: 30px;
    height: 40px;
    color: #555;
}


icon-nav {
    gap: 25px;
}

.top-bar {
    height: 80px;
    box-shadow: rgba(0, 0, 0, 0.20) 0px 3px 8px;
}

.main-footer {
    padding-bottom: 40px;
    padding-right: 10px;
}
.form-control:placeholder-shown {
    padding-top: 12px; 
    padding-bottom: 4px;
}


.form-control::placeholder {
    color: #9e9e9e;
    opacity: 1; 
}
.latest-news-section .section-header h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    height: 23px;
    font-family: B-FFShamelFamily;
}

section-title h2 {
    font-size: 16px;
    font-family: B-FFShamelFamily;
    color: #4c4d4d;
    transition: 0.3s ease;
}


.news-category a{
    display: flex;
    font-size: 11px;
    color: #555;
    font-weight: 600;
    margin-bottom: 5px;
    font-family: B-FFShamelFamily;
}

.section-icon {
    margin-bottom: 10px;
}

.nav-icon {
    margin-bottom: 10px;
}

.news-time a {
    font-size: 10px;
    font-family: B-FFShamelFamily;
    color: #777;
    padding: 0 5px;
    margin-bottom: 0.5rem;
}
.small-thumb {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    margin-left: 15px;
}

.img-left a {
    display: block;
    height: 60px;
    width: 100%;
}

.news-thumbnail {
    width: 150px !important;
    height: 79px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}


/* إظهار/إخفاء فورمات الصفحات */
#login-form, #register-form, #forgot-password-form {
    display: none;
}

.page-login #login-form {
    display: block;
}

.page-register#register-form {
    display: block;
}

.page-forgot #forgot-password-form {
    display: block;
}

/* متطلبات كلمة المرور */
ul.password-reqs {
    list-style-type: disc !important;
    padding-right: 10px;
    margin: 10px 20px;
    font-size: .8rem;
    color: #6c757d;
}

.password-toggle-icon {
    cursor: pointer;
}

/* تخطيط كارت التسجيل فقط */
#register-form.row {
    display: flex !important;
    flex-wrap: wrap; /* موبايل: تحت بعض */
}

@media (min-width:768px) {
    #register-form.row {
        flex-wrap: nowrap !important; /* ديسكتوب: جنب بعض */
        align-items: stretch;
    }

    #register-form .image-section {
        flex: 0 0 41.6667%;
        max-width: 41.6667%;
        order: 2; /* يمين في RTL */
    }

    #register-form .form-section {
        flex: 0 0 58.3333%;
        max-width: 58.3333%;
        order: 1;
    }
}
/* صورة العمود الأيمن */
#register-form .image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* كبسولة موحّدة لكل input-group */
.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 56px;
    padding: 0 20px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    flex-wrap: nowrap;
}

    .input-group .form-control {
        border: 0;
        text-align: right;
        font-family: B-FFShamelFamily;
    }

    .input-group .input-group-text {
        height: 100%;
        background: #fff;
        border: 0;
        color: #9e9e9e;
        display: flex;
        align-items: center;
    }

    /* ===== Select2: ياخد مساحة الحقل بالكامل وبنفس الشكل ===== */
    .input-group .select2-container {
        flex: 1 1 auto;
        width: 1% !important; 
        min-width: 0;
    }

.select2-container--default .select2-selection--single {
    height: 52px;
    border: 0 !important;
    background: transparent;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

    .select2-container--default
    .select2-selection--single .select2-selection__rendered {
        color: #9e9e9e; /* لون placeholder */
        font-weight: normal;
        padding: 0;
        margin: 0;
        width: 100%;
        text-align: right;
        font-family: B-FFShamelFamily;
        line-height: 52px; /* تمركز عمودي */
    }
/* لما يبقى فيه قيمة مختارة نغمّق اللون */
.select2-container.has-value
.select2-selection--single .select2-selection__rendered {
    color: #333;
}
/* نخفي سهم Select2 (عندنا أيقونة في الجروب) */
.select2-container--default
.select2-selection--single .select2-selection__arrow {
    display: none;
}

/* قائمة النتائج */
.select2-dropdown {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.select2-container--default .select2-results > .select2-results__options {
    direction: rtl;
    text-align: right;
}

.select2-container--default
.select2-results__option--highlighted[aria-selected] {
    background: #2386c9;
    color: #fff;
}
