/*
Theme Name: جامعة المعرفة
Theme URI: https://um.edu.sa
Author: جامعة المعرفة
Description: قالب جامعة المعرفة مع دعم WPBakery Page Builder
Version: 1.0.0
Text Domain: un
*/

@font-face {
    font-family: 'Droid Arabic Kufi';
    src: url('fonts/DroidArabicKufi.woff2') format('woff2'),
    url('fonts/DroidArabicKufi.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noor';
    src: url('fonts/Noor-Bold.woff2') format('woff2'),
    url('fonts/Noor-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noor';
    src: url('fonts/Noor-Light.woff2') format('woff2'),
    url('fonts/Noor-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noor';
    src: url('fonts/Noor-Regular.woff2') format('woff2'),
    url('fonts/Noor-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


a{
    text-decoration: none;
}

body{
    font-family: 'Noor','Droid Arabic Kufi',Arial,sans-serif;
    font-size: 16px;
    font-weight: 400;
    background-color: #F8F8F8;;
}
h1,h2,h3,h4,h5,h6{
    font-family: 'Noor','Droid Arabic Kufi',Arial,sans-serif;
    font-weight: 700;
}

.container{
    max-width: 1400px;
}



/* تنسيقات المظهر العام للموقع */
html {
    overflow-x: hidden;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* تنسيقات الشريط العلوي (Top Nav Header) */
.top-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    height: 42px;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
}

/* روابط الشريط العلوي */
.top-bar-link {
    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    transition: color 0.2s ease;
}

.top-bar-link:hover {
    color: #00a2b2;
}

/* تخصيص القائمة المنسدلة لتلائم التصميم */
.top-bar .dropdown-menu {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 6px;
    min-width: 160px;
    margin-top: 6px !important;
    z-index: 1050;
    animation: dropdownFadeIn 0.18s ease-out;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.top-bar .dropdown-item {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #475569;
    transition: background 0.18s ease, color 0.18s ease, padding-right 0.18s ease;
}

.top-bar .dropdown-item:hover {
    background-color: #e8f8fb;
    color: #00a2b2;
    padding-right: 18px;
}

/* إخفاء سهم الدوب داون الافتراضي لـ Bootstrap واستبداله بأيقونة مخصصة */
.top-bar-link.dropdown-toggle::after {
    display: none;
}

/* ========================================================
   تنسيقات سكشن الهيرو والقائمة الرئيسية (Hero & Main Nav)
   ======================================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* --- Hero Owl Carousel (background slider) --- */
.hero-owl {
    position: absolute;
    inset: 0;
}

.hero-owl .owl-stage-outer,
.hero-owl .owl-stage,
.hero-owl .owl-item {
    height: 100%;
}

.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
}

/* Dots — bottom right */
.hero-owl .owl-dots {
    position: absolute;
    bottom: 28px;
    right: 40px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.hero-owl .owl-dot span {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.45);
    border-radius: 50%;
    display: block;
    transition: background 0.3s;
}

.hero-owl .owl-dot.active span {
    background: #fff;
}

/* التراكب اللوني (Cyan/Teal Gradient Overlay) مطابق تماماً للصورة */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #00ADCA 0%, rgba(0, 0, 0, 0.00) 114.82%);
    z-index: 2;
    pointer-events: none;
}

/* جعل القائمة والمحتوى فوق التراكب اللوني */
.main-navbar, .hero-container {
    position: relative;
    z-index: 3;
}

/* القائمة الرئيسية */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10;
}

.logo-img {
    height: 95px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

/* روابط القائمة الرئيسية */
.main-navbar .nav-link {
    padding: 8px 16px !important;
    transition: all 0.3s ease;
    position: relative;

    color: #FFF;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;

}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: #ffffff !important;
}

.main-navbar .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
    width: 60%;
}

/* زر البحث */
.search-link {
    color: #ffffff;
    font-size: 1.25rem;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.search-link:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* زر فتح القائمة الرئيسية عند استخدام قائمة سياقية */
.context-primary-menu-btn {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #05a9c5;
    color: #0d3039;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(0, 92, 111, .2);
    transition: background-color .2s ease, transform .2s ease;
}
.context-primary-menu-btn span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.context-primary-menu-btn:hover { background: #18b8d1; transform: scale(1.04); }
.context-primary-menu-btn:focus-visible { outline: 3px solid rgba(255,255,255,.9); outline-offset: 3px; }

/* زر للتسجيل المبتكر */
.btn-register {
    background-color: #ffffff;
    color: #00a2b2;
    font-weight: 700;
    font-size: 15px;
    padding: 5px 18px 5px 5px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border:2px solid #fff;
}

.btn-register .arrow-circle {
    background-color: #00a2b2;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-register .arrow-circle i {
    font-size: 1.2rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-register:hover {
    background-color: #00a2b2;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 162, 178, 0.3);
}

.btn-register:hover .arrow-circle {
    background-color: #ffffff;
    color: #00a2b2;
}

.btn-register:hover .arrow-circle i {
    transform: translateX(-3px);
}

/* محتوى الهيرو */
.hero-container {
    flex-grow: 1;
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.hero-content-col {
    animation: fadeInUp 0.8s ease-out;
}

.hero-content-col h1 {
    color: #FFF;
    text-align: right;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    font-size: 6rem;
    font-style: normal;
    font-weight: 700;
    line-height: 5rem;
    margin-bottom: 1.0625rem;
}

.hero-content-col p {
    color: #FFF;
    text-align: right;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    font-size: 2.3125rem;
    font-style: normal;
    font-weight: 400;
    line-height: 3.9rem;
    max-width: 491px;
    margin: 40px 0 0 0;
}

/* أزرار سكشن الهيرو */
.btn-gold {
    background-color: #D0A968;
    color: #ffffff ;
    border: 4px solid #D0A968;
    font-weight: 600;
    font-size: 17px;
    padding: 12px 36px;
    border-radius: 11px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(213, 163, 92, 0.15);
}

.btn-gold:hover {
    background-color: transparent;
    border-color: #d5a35c;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(213, 163, 92, 0.3);
}

.btn-outline-gold {
    background-color: transparent;
    font-weight: 600;
    font-size: 17px;
    padding: 12px 36px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 11px;
    border: 4px solid #D0A968;
}

.btn-outline-gold:hover {
    background-color: #D0A968;
    transform: translateY(-4px);
    color: #fff;
    box-shadow: 0 8px 25px rgba(213, 163, 92, 0.3);
}
.hero-container .btn-outline-gold ,.hero-container  .btn-gold {
    min-width: 280px;
}
/* حركة ترحيبية ناعمة للنصوص */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================================
   PAGE LOADER
   ======================================================== */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .4s ease, visibility .4s ease;
}
#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-ring {
    position: relative;
    width: 56px;
    height: 56px;
}
.loader-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 44px;
    height: 44px;
    margin: 6px;
    border: 5px solid transparent;
    border-top-color: var(--un-teal, #0f8fa0);
    border-radius: 50%;
    animation: loader-spin .9s cubic-bezier(.5,0,.5,1) infinite;
}
.loader-ring div:nth-child(1) { animation-delay: -.27s; }
.loader-ring div:nth-child(2) { animation-delay: -.18s; border-top-color: #0d3a47; }
.loader-ring div:nth-child(3) { animation-delay: -.09s; }
@keyframes loader-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================================
   MOBILE OFFCANVAS
   ======================================================== */

/* ── هيكل الـ offcanvas ── */
.mob-offcanvas {
    width: 300px !important;
    max-width: 88vw !important;
    display: flex;
    flex-direction: column;
}
.primary-menu-offcanvas {
    width: 360px !important;
    max-width: 92vw !important;
}
.primary-menu-offcanvas .mob-oc-body { background: #f8fbfc; }
.primary-canvas-nav .mob-nav-link { padding-block: 16px; }
.offcanvas-body.mob-oc-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* ── الهيدر ── */
.mob-oc-header {
    background: #0d3a47;
    padding: 14px 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
}
.mob-oc-logo img {
    height: 62px;
    width: auto;
    display: block;
}
.mob-oc-close {
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s;
    padding: 0;
}
.mob-oc-close:hover { background: rgba(255,255,255,.28); }

/* ── قائمة التنقل ── */
.mob-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mob-nav-item {
    border-bottom: 1px solid #eef2f4;
}
.mob-nav-link {
    display: block;
    padding: 14px 20px;
    color: #0d3a47;
    font-size: .97rem;
    font-weight: 700;
    text-decoration: none;
    transition: color .15s, background .15s;
}
.mob-nav-link:hover,
.mob-nav-link.active { color: var(--un-teal, #0f8fa0); background: #f4fbfc; }

/* صف الرابط + زر التوسع */
.mob-nav-row {
    display: flex;
    align-items: stretch;
}
.mob-nav-row .mob-nav-link { flex: 1; }
.mob-sub-toggle {
    background: none;
    border: none;
    border-right: 1px solid #eef2f4;
    color: #6b8fa0;
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .85rem;
    flex-shrink: 0;
    transition: color .2s, background .2s;
    padding: 0;
}
.mob-sub-toggle .bi { transition: transform .25s; }
.mob-sub-toggle:not(.collapsed) .bi { transform: rotate(180deg); }
.mob-sub-toggle:hover { background: #f4fbfc; color: var(--un-teal, #0f8fa0); }

/* قائمة فرعية */
.mob-sub-wrap { background: #f7fbfc; }
.mob-sub-menu {
    list-style: none;
    padding: 4px 0;
    margin: 0;
}
.mob-sub-item { border-bottom: 1px solid #edf1f3; }
.mob-sub-item:last-child { border-bottom: none; }
.mob-sub-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 20px 11px 28px;
    color: #3a6070;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s, background .15s;
}
.mob-sub-link:hover,
.mob-sub-link.active { color: var(--un-teal, #0f8fa0); background: #edf8fa; }
.mob-sub-link .bi { font-size: .8rem; color: var(--un-teal, #0f8fa0); }

/* زر التسجيل */
.mob-oc-actions {
    padding: 18px 20px 12px;
    border-top: 1px solid #eef2f4;
}
.mob-oc-register { width: 100%; justify-content: space-between; }

/* السوشيال */
.mob-oc-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px 18px;
    border-top: 1px solid #eef2f4;
    flex-shrink: 0;
    background: #fff;
}
.mob-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f8f9;
    color: var(--un-teal, #0f8fa0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.mob-social-btn:hover { background: var(--un-teal, #0f8fa0); color: #fff; }

/* ── زر الهامبرغر (3 شرائح) ── */
.mob-hamburger {
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.4);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    transition: background .2s;
}
.mob-hamburger:hover { background: rgba(255,255,255,.22); }
.mob-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

/* إخفاء الـ top-bar على الجوال */
@media (max-width: 991.98px) {
    .top-bar { display: none !important; }
}

/* ========================================================
   تحسينات التجاوب للهواتف والشاشات الصغيرة
   ======================================================== */

@media (max-width: 991.98px) {
    /* الشريط العلوي */
    .top-bar {
        height: auto;
        padding: 8px 0;
    }
    .top-bar .container {
        flex-direction: column;
        gap: 8px;
    }
    .top-bar-left, .top-bar-right {
        justify-content: center !important;
        flex-wrap: wrap;
        width: 100%;
        gap: 6px !important;
    }

    /* القائمة الرئيسية على الجوال */
    .main-navbar {
        background: transparent;
        border-radius: 0;
        padding: .75rem 0;
        margin-top: 0;
    }
    .main-navbar .nav-link::after { display: none; }

    /* الهيرو */
    .hero-section { min-height: 100vh; }

    /* التدرج الرئيسي: من الأسفل للأعلى */
    .hero-section::before {
        background: linear-gradient(to top, #00ADCA 0%, rgba(0,0,0,0) 65%);
    }

    /* تدرج داكن أعلى الهيرو بحجم الهيدر */
    .hero-section::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 140px;
        background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
        z-index: 2;
        pointer-events: none;
    }

    .hero-container {
        padding-top: 3rem;
        padding-bottom: 3.5rem;
        text-align: right;
    }

    .hero-content-col {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-content-col h1 {
        font-size: 2.6rem;
        line-height: 1.2;
    }

    .hero-content-col p {
        font-size: 1.1rem;
        line-height: 1.8;
        margin-top: 16px;
        max-width: 100%;
    }

    /* الأزرار جنب بعض */
    .hero-content-col .d-flex {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 12px !important;
        margin-top: 24px !important;
    }

    .hero-container .btn-outline-gold,
    .hero-container .btn-gold {
        min-width: unset;
        flex: 1 1 auto;
        padding: 10px 20px;
        font-size: 15px;
    }

    /* الشعار */
    .logo-img { height: 64px; }
}

/* ========================================================
   تنسيقات الإحصائيات العائمة في أسفل الهيرو (Hero Stats)
   ======================================================== */
.hero-stats-bar {
    padding: 1.25rem 0;
     width: 100%;
    z-index: 10;
    margin-top: 5rem;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 5px ;
    border-radius: 5px;
}

.hero-stat-icon {
    width: 52px;
    height: 52px;
    background-color: transparent;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
    padding: 2px;
    flex-shrink: 0;
}

.hero-stat-item:hover {
    background-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(-3px);
}
.stat-icon-img {
    width: 40px;
    max-height: 40px;
    object-fit: contain;
    transition: all 0.3s ease;

}
.hero-stat-item:hover .stat-icon-img {
 }
.hero-stat-number {
    color: #FFF;
    font-family: 'Droid Arabic Kufi';
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
 }

.hero-stat-label {
    color: #FFF;
    font-family: 'Droid Arabic Kufi';
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
 }

@media (min-width: 992px) and (max-width: 1359.98px) {
    .hero-content-col h1 {
        font-size: 4.5rem;
        line-height: 4rem;
    }
    .hero-content-col p {
        font-size: 1.75rem;
        line-height: 2.8rem;
        max-width: 420px;
    }
    .hero-container .btn-outline-gold,
    .hero-container .btn-gold {
        min-width: 200px;
        font-size: 15px;
        padding: 10px 24px;
    }
    .hero-stats-bar {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 1rem 0;
        margin-top: 3rem;
    }
    .hero-stat-item {
        justify-content: flex-start;
        gap: 10px;
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
    .hero-stat-icon   { width: 42px; height: 42px; }
    .stat-icon-img    { width: 26px; }
    .hero-stat-number { font-size: 20px; }
    .hero-stat-label  { font-size: 12px; }
}

@media (max-width: 991.98px) {
    .hero-stats-bar {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 1rem 0;
        margin-top: 2rem;
    }
    .hero-stat-item {
        justify-content: flex-start;
        padding: 8px 10px;
        background: rgba(255,255,255,.08);
        border-radius: 8px;
    }
    .hero-stat-number { font-size: 20px; }
    .hero-stat-label  { font-size: 13px; }
    .hero-stat-icon   { width: 38px; height: 38px; }
    .stat-icon-img    { width: 28px; }
}

@media (max-width: 575px) {
    .hero-content-col h1 { font-size: 1.9rem; }
    .hero-content-col p  { font-size: 1rem; }
    .hero-container { padding-top: 2.5rem; padding-bottom: 2.5rem; }
    .hero-container .btn-outline-gold,
    .hero-container .btn-gold { font-size: 14px; padding: 9px 16px; }
    .logo-img { height: 52px; }
}



/*About us*/
.about-us-section {

}

.home-about-items.row {
    align-items: stretch;
}
.home-about-items .col-md-3,
.home-about-items .col-6 {
    display: flex;
}
.home-about-item{
    width: 100%;
    border-radius: 23px;
    background: #EEE;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 3rem;
    text-decoration: none;
    color: inherit;
}

.home-about-item--ic{
    width: 89px;
    height: 80px;
    border-radius: 10px;
    background: #DCEEF1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-about-item h3{
    color: #000;
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    margin: 0;
 }
.home-about-item p{
    color: #000;
    text-align: center;
     font-size: 20px;
    font-style: normal;
    font-weight: 400;
    margin: 0;

 }

.about-us-section{
    padding: 50px 0;
    background: #fff;
}

.home-about-item {
    transition: background 0.28s cubic-bezier(0.4,0,0.2,1),
                transform  0.28s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.28s cubic-bezier(0.4,0,0.2,1);
}
.home-about-item h3,
.home-about-item p {
    transition: color 0.28s ease;
}
.home-about-item--ic {
    transition: background 0.28s ease;
}
.home-about-item--ic img {
    transition: filter 0.28s ease;
}
.home-about-item:hover {
    background: #00adca;
    cursor: pointer;
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,173,202,0.22);
}
.home-about-item:hover h3,
.home-about-item:hover p {
    color: #fff;
}
.home-about-item:hover .home-about-item--ic {
    background: rgba(255, 255, 255, 0.25);
}
.home-about-item:hover .home-about-item--ic img {
    filter: brightness(0) invert(1);
}

.sec-header {

}
.sec-header h2 {
    color: #000;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 57.6px; /* 120% */
    margin: 0;
}

/* About + sec-header – تجاوب */
@media (max-width: 549px) {
    .home-about-items .col-md-3,
    .home-about-items .col-6 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    .home-about-item {
        padding: 1.5rem;
    }
    .sec-header h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .home-about-items .col-md-3,
    .home-about-items .col-6 {
        width: 33.333%;
        max-width: 33.333%;
        flex: 0 0 33.333%;
    }
}

/* ========================================================
   سكشن البحث عن البرامج
   ======================================================== */
.research-section {
    padding: 50px 0;
}

/* الصندوق الرئيسي */
.research-box {
    display: flex;
    flex-direction: column;
    gap: 18px;
    border: 1px solid #757575;
    border-radius: 23px;
    padding: 28px 32px;
    background: #fff;
}

/* السطر الأول: العنوان وحده */
.research-box-title {
    font-family: 'Noor', 'Droid Arabic Kufi', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    text-align: right;
}

/* السطر الثاني: بحث + راديو + زر */
.research-box-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* حقل البحث */
.research-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid rgba(143, 143, 143, 0.2);
    border-radius: 20px;
    background: #fff;
    padding: 0 16px;
    height: 58px;
    flex: 0 0 47%;
    max-width: 47%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.research-input-wrap:focus-within {
    border-color: #00a2b2;
    box-shadow: 0 0 0 3px rgba(0,162,178,0.12);
}

.research-search-icon {
    color: #8f8f8f;
    font-size: 1.1rem;
    flex-shrink: 0;
    order: -1; /* أيقونة على اليسار في RTL */
}

.research-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Noor', 'Droid Arabic Kufi', sans-serif;
    font-size: 15px;
    color: #1e293b;
    background: transparent;
    text-align: right;
    direction: rtl;
    padding: 0 12px;
}

.research-input::placeholder {
    color: #adb5bd;
}

/* الراديو باتونز */
.research-radios {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.research-radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Noor', 'Droid Arabic Kufi', sans-serif;
    font-size: 15px;
    color: #1e293b;
    cursor: pointer;
    margin: 0;
    user-select: none;
    transition: color 0.2s ease;
}
.research-radio-item:hover {
    color: #00a2b2;
}

.research-radio-item input[type="radio"] {
    width: 17px;
    height: 17px;
    accent-color: #00a2b2;
    cursor: pointer;
    flex-shrink: 0;
}

/* زر البحث */
.research-btn {
    background: #00a2b2;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 14px 36px;
    font-family: 'Noor', 'Droid Arabic Kufi', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    height: 58px;
}

.research-btn:hover {
    background: #008fa0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,162,178,0.28);
}
.research-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ─── تجاوب ─────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
    .research-box-title { font-size: 1.6rem; }
    .research-radios { gap: 16px; }
}

@media (max-width: 991.98px) {
    .research-box { padding: 22px 18px; gap: 16px; }
    .research-box-title { font-size: 1.35rem; }
    .research-box-row { flex-wrap: wrap; gap: 14px; }
    .research-input-wrap { order: 1; width: 100%; max-width: 100%; flex: 0 0 100%; }
    .research-radios { order: 2; gap: 14px; width: 100%; }
    .research-btn { order: 3; width: 100%; justify-content: center; }
}

@media (max-width: 575.98px) {
    .research-radios { flex-direction: column; align-items: flex-start; gap: 10px; }
    .research-radio-item { font-size: 14px; }
}

/* إلغاء الحركات لمن يفضل ذلك (إمكانية الوصول) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.colages-section {
    padding: 60px 0;
    background: #fff;
}

.colg-item {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.28s cubic-bezier(0.4,0,0.2,1);
    height: 100%;
}

.colg-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.colg-item .img {
    display: block;
    overflow: hidden;
}

.colg-item .img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.38s ease;
    height: auto;
}

.colg-item:hover .img img {
    transform: scale(1.05);
}

.colg-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 12px;
    direction: rtl;
}

.colg-titles {
    flex: 1;
    min-width: 0;
}

.colg-titles h3 {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.colg-titles h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.colg-titles h3 a:hover {
    color: #00a2b2;
}

.colg-titles h4 {
    font-size: 13px;
    color: #888;
    font-weight: 400;
    margin: 0;
}

.colg-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: #DCEEF1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}

.colg-item:hover .colg-icon {
    background: #b3e6ee;
}

.colg-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Colleges – responsive grid */
.colages-section .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
}
@media (min-width: 550px) {
    .colages-section .col-md-3 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 768px) {
    .colages-section .col-md-3 { flex: 0 0 33.333%; max-width: 33.333%; }
}
@media (min-width: 992px) {
    .colages-section .col-md-3 { flex: 0 0 25%; max-width: 25%; }
}

/* ========================================================
   سكشن الحقائق والأرقام
   ======================================================== */
.facts-section {
    background: #fff;
}

.facts-header {
    padding: 40px 0 28px;
    text-align: right;
}

.facts-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.facts-band {
    background: #00adca;
    padding: 48px 0;
}

.facts-items {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    direction: rtl;
    flex-direction: row-reverse;
}

.facts-item {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    justify-content: center;
}

.facts-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.facts-texts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.facts-number {
    color: #fff;
    font-family: 'Droid Arabic Kufi', 'Noor', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.facts-label {
    color: #fff;
    font-family: 'Droid Arabic Kufi', 'Noor', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.9;
}

@media (max-width: 767.98px) {
    .facts-items {
        flex-wrap: wrap;
        justify-content: center;
        gap: 32px 48px;
    }
    .facts-item {
        flex: 0 0 calc(50% - 24px);
        justify-content: flex-start;
    }
}

/* ========================================================
   سكشن الفعاليات والانشطة
   ======================================================== */
.events-section {
    padding: 60px 0;
    background: #F8F8F8;
}

/* الكارت البارز */
.event-featured {
    position: relative;
    background-image: url('images/events.png');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 28px;
}

.event-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 155, 175, 0.78);
    border-radius: inherit;
}

.event-featured > * {
    position: relative;
    z-index: 1;
}

/* الشارة - فوق العنوان مباشرة */
.event-badge {
    display: inline-block;
    background: #D0A968;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* التاريخ + الخط + المحتوى */
.event-featured-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    direction: rtl;
}

.event-featured-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    flex-shrink: 0;
}

.ev-day {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.ev-month {
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 2px;
}

.ev-year {
    font-size: 1.1rem;
    font-weight: 400;
}

.event-featured-divider {
    width: 2px;
    height: 90px;
    background: rgba(255,255,255,0.5);
    flex-shrink: 0;
}

.event-featured-info h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.event-featured-info h3 a {
    color: inherit;
    text-decoration: none;
}

.event-featured-info p {
    color: rgba(255,255,255,0.88);
    font-size: 1rem;
    margin: 0;
}

/* الزر والنقاط */
.event-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: rtl;
}

.event-featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.event-featured-btn:hover {
    opacity: 0.85;
}

.ev-btn-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #D0A968;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #fff;
}

/* بانلات التبويبات */
.ev-panel {
    display: none;
}
.ev-panel.active {
    display: block;
}

/* Owl Carousel wrapper */
.ev-carousel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

/* Owl Dots داخل الكارت */
.ev-carousel .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 24px;
    display: flex;
    gap: 6px;
    margin: 0;
    line-height: 1;
}

.ev-carousel .owl-dot span {
    width: 10px !important;
    height: 10px !important;
    background: rgba(255,255,255,0.4) !important;
    border-radius: 50% !important;
    margin: 0 !important;
    transition: background 0.25s ease !important;
    display: block;
}

.ev-carousel .owl-dot.active span,
.ev-carousel .owl-dot:hover span {
    background: #fff !important;
}

/* التبويبات */
.events-tabs {
    display: flex;
    gap: 24px;
    direction: rtl;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 28px;
    padding-bottom: 0;
}

.ev-tab {
    background: none;
    border: none;
    padding: 10px 4px 14px;
    font-family: 'Noor', 'Droid Arabic Kufi', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #aaa;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.ev-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    left: 0;
    height: 2px;
    background: #00a2b2;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.ev-tab.active {
    color: #00a2b2;
}

.ev-tab.active::after {
    transform: scaleX(1);
}

.ev-tab:hover {
    color: #00a2b2;
}

/* قائمة الفعاليات */
.events-list {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    margin-top: 0;
}

.ev-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    direction: rtl;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.ev-list-item:last-child {
    border-bottom: none;
}

.ev-list-item:hover {
    background: #f8fcfd;
}

.ev-list-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.ev-list-date {
    font-size: 12px;
    color: #aaa;
    font-weight: 400;
}

.ev-list-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ev-list-title a {
    color: inherit;
    text-decoration: none;
}

.ev-list-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #D0A968;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.ev-list-arrow:hover {
    background: #b8923f;
    transform: translateX(-3px);
}

@media (max-width: 991.98px) {
    .event-featured { min-height: 300px; }
    .ev-day { font-size: 3rem; }
}

/* ====================================================
   سكشن الأخبار / الأبحاث العلمية / الجوائز العلمية
   ==================================================== */
.nrs-section {
    background: #fff;
    padding: 52px 0 44px;
    border-top: 1px solid #e8ecef;
}

.nrs-col {
    padding: 0 28px;
}

.nrs-col-bordered {
    border-inline-start: 1px solid #e0e4e8;
}

.nrs-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.nrs-col-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #10355c;
    margin: 0;
}

.nrs-nav-btn {
    background: #00adca;
    border: none;
    color: #fff;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.22s, transform 0.22s;
    display: flex;
    align-items: center;
}
.nrs-nav-btn:hover {
    color: #10355c;
    transform: translateX(-3px);
}

/* ----- News Wrapper (shared background) ----- */
.nrs-news-wrapper {
    background: #f4f4f4;
    border-radius: 18px;
    padding: 20px 16px 24px;
}

/* ----- News Cards (transparent inside wrapper) ----- */
.nrs-news-card {
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 6px 4px;
}

.nrs-news-img img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.nrs-news-body {
    padding: 10px 4px 14px;
    text-align: center;
}

.nrs-date {
    color: #000;
    font-size: 13px;
    font-weight: 400;
 }

.nrs-text {
    color: #000;
    font-size: 16px;
     font-weight: 700;
    margin: 0;
}

.nrs-text-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.nrs-text-link:hover {
    color: #00adca;
}
.nrs-col-gold .nrs-text-link:hover {
    color: #D0A968;
}

.nrs-news-img a,
.nrs-h-card-img a {
    /*display: block;*/
}
.nrs-news-img a img,
.nrs-h-card-img a img {
    transition: opacity 0.2s;
}
.nrs-news-img a:hover img,
.nrs-h-card-img a:hover img {
    opacity: 0.88;
}

/* ----- Horizontal Cards (Research / Awards) ----- */
.nrs-h-card {
    display: flex;
    align-items: stretch;
    background: #eee;
    border-radius: 30px;
    overflow: hidden;
    margin: 0 4px 4px;
    border: 1px solid #e8ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-height: 350px;
    flex-direction: row-reverse;
}

.nrs-h-card-body {
    flex: 1;
    padding: 14px 14px 14px 8px;
    direction: rtl;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nrs-h-card-img {
    width: 45%;
    flex-shrink: 0;
    order: 1;
}

.nrs-h-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 30px;
}

/* ----- Owl Dots Override ----- */
.nrs-news-owl .owl-dots,
.nrs-h-owl .owl-dots {
    text-align: center;
    margin-top: 16px;
    line-height: 1;
}

/* dots داخل الـ wrapper يظهر بدون margin إضافي */
.nrs-news-wrapper .nrs-news-owl .owl-dots {
    margin-top: 14px;
    margin-bottom: 2px;
}

.nrs-news-owl .owl-dot span,
.nrs-h-owl .owl-dot span {
    width: 9px !important;
    height: 9px !important;
    background: #ccd4da !important;
    border-radius: 50% !important;
    margin: 0 4px !important;
    transition: background 0.3s !important;
    display: block !important;
}

/* الأبحاث العلمية: teal */
.nrs-h-owl .owl-dot.active span {
    background: #00adca !important;
}

/* الأخبار والجوائز: gold */
.nrs-col-gold .nrs-nav-btn { background-color: #D0A968; }
.nrs-col-gold .nrs-nav-btn:hover { background-color: #b8923f; }

#nrs-news-carousel .owl-dot.active span,
#nrs-awards-carousel .owl-dot.active span {
    background: #D0A968 !important;
}

@media (max-width: 991.98px) {
    .nrs-col { padding: 0 16px; margin-bottom: 36px; }
    .nrs-col-bordered { border-inline-start: none; border-top: 1px solid #e0e4e8; padding-top: 32px; }
}

/* ====================================================
   سكشن ابق على تواصل
   ==================================================== */
.social-feed-section {
    background: #fff;
    padding: 48px 0 52px;
    border-top: 1px solid #e8ecef;
}
.social-feed-section--bg{

}
/* Header */
.social-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.social-feed-title {
    font-size: 2rem;
    font-weight: 700;
    color: #10355c;
    margin: 0;
}

.sfi-hashtag {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.01em;
}

/* Tabs */
.sfc-tabs-wrap {
    margin-bottom: 28px;
}

.sfc-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sfc-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    border: 2px solid #e0e6ee;
    background: #f7f9fc;
    color: #7a8da0;
    font-size: 1.35rem;
    cursor: pointer;
    transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.18s, box-shadow 0.22s;
}

.sfc-tab:hover {
    border-color: var(--sfc-tab-color, #10355c);
    color: var(--sfc-tab-color, #10355c);
    background: #fff;
    transform: translateY(-2px);
}

.sfc-tab.active {
    background: var(--sfc-tab-color, #10355c);
    border-color: var(--sfc-tab-color, #10355c);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    transform: translateY(-2px);
}

.sfc-tab-ext-link {
    position: absolute;
    top: -7px;
    left: -7px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #dde1ea;
    color: #7a8da0;
    font-size: .6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.18s;
    z-index: 2;
    text-decoration: none;
}

.sfc-tab:hover .sfc-tab-ext-link,
.sfc-tab.active .sfc-tab-ext-link {
    opacity: 1;
}

/* Panels */
.sfc-panels {
    position: relative;
}

.sfc-panel {
    display: none;
}

.sfc-panel.sfc-panel--active {
    display: block;
}

.sfc-empty-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    color: #aab4be;
    font-size: .95rem;
}

.sfc-empty-panel i {
    font-size: 2.2rem;
}

/* Cards */
.sfc-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f2f2f2;
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: background 0.25s, transform 0.25s;
}
.sfc-card:hover {
    background: #e6e6e6;
    transform: scale(1.02);
    color: inherit;
}
.sfc-card:hover .sfc-text {
    color: #00adca;
}

.sfc-body {
    flex: 1;
    text-align: right;
}

.sfc-date {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.sfc-text {
    font-size: 14px;
    font-weight: 600;
    color: #1c1c1c;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: calc(14px * 1.7 * 3);
}

.sfc-img {
    flex-shrink: 0;
    width: 105px;
}

.sfc-img img {
    width: 105px;
    height: 95px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* Owl dots — sfc carousel */
.sfc-carousel .owl-dots {
    text-align: center;
    margin-top: 20px;
    line-height: 1;
}
.sfc-carousel .owl-dot span {
    width: 9px !important;
    height: 9px !important;
    background: #ccd4da !important;
    border-radius: 50% !important;
    margin: 0 4px !important;
    transition: background 0.3s !important;
    display: block !important;
}
.sfc-carousel .owl-dot.active span {
    background: #10355c !important;
}

/* كل سلايد يأخذ padding جانبي */
.sfc-carousel .owl-item {
    padding: 0 6px;
}

@media (max-width: 549px) {
    .social-feed-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .sfc-tab { width: 44px; height: 44px; font-size: 1.2rem; }
}

/* ====================================================
   SFC Popup (بوب أب تفاصيل الخبر)
   ==================================================== */
.sfc-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sfc-popup[hidden] { display: none; }

body.sfc-popup-open { overflow: hidden; }

.sfc-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 12, 25, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

/* زر الإغلاق – خارج الكارد في الزاوية العلوية */
.sfc-popup-close {
    position: absolute;
    top: 18px;
    left: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: .9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, border-color 0.18s;
    z-index: 2;
}
.sfc-popup-close:hover {
    background: #e53e3e;
    border-color: #e53e3e;
}

/* Wrap – يحتوي السهمين + الكارد */
.sfc-popup-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 1120px;
    height: 86vh;
    z-index: 1;
    padding: 0 22px;
}

/* أزرار التنقل */
.sfc-popup-nav {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.18s;
}
.sfc-popup-nav:hover:not(:disabled) {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.45);
    transform: scale(1.08);
}
.sfc-popup-nav:disabled { opacity: 0.18; cursor: default; }

/* الكارد الداخلي – صورة + تفاصيل */
.sfc-popup-inner {
    flex: 1;
    display: flex;
    direction: ltr;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 28px 80px rgba(0,0,0,0.65);
    animation: sfcPopIn 0.25s cubic-bezier(0.34,1.4,0.64,1) both;
}

@keyframes sfcPopIn {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}

/* عمود الصورة */
.sfc-popup-img-col {
    flex: 0 0 56%;
    position: relative;
    background: linear-gradient(160deg, #0d1f35 0%, #1a3a5c 100%);
    overflow: hidden;
}

.sfc-popup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sfc-popup-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255,255,255,0.08);
}

/* عداد الصور – overlay على الصورة */
.sfc-popup-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0,0,0,0.52);
    backdrop-filter: blur(4px);
    color: #fff;
    border-radius: 20px;
    padding: 4px 13px;
    font-size: .75rem;
    font-variant-numeric: tabular-nums;
    direction: ltr;
    letter-spacing: 0.04em;
}

/* عمود التفاصيل */
.sfc-popup-detail-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    direction: rtl;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* هيدر التفاصيل: أفاتار المنصة + اسم + تاريخ */
.sfc-popup-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 22px 16px;
    flex-shrink: 0;
}

.sfc-popup-badge-avatar {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--badge-color, #10355c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.sfc-popup-badge-icon { line-height: 1; }

.sfc-popup-badge-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sfc-popup-badge-label {
    font-size: .9rem;
    font-weight: 800;
    color: #0d1f35;
    line-height: 1.2;
}

.sfc-popup-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .75rem;
    color: #94a3b8;
}

.sfc-popup-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0 22px 18px;
    flex-shrink: 0;
    border: none;
}

/* العنوان */
.sfc-popup-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0d1f35;
    line-height: 1.65;
    margin: 0 0 14px;
    padding: 0 22px;
    flex-shrink: 0;
}

/* المحتوى الكامل */
.sfc-popup-excerpt {
    font-size: .92rem;
    color: #334155;
    line-height: 1.9;
    margin: 0;
    padding: 0 22px 24px;
    flex: 1;
}

/* تنسيق عناصر HTML داخل محتوى البوب أب */
.sfc-popup-excerpt p {
    margin: 0 0 1em;
}
.sfc-popup-excerpt p:last-child { margin-bottom: 0; }

.sfc-popup-excerpt h1,
.sfc-popup-excerpt h2,
.sfc-popup-excerpt h3,
.sfc-popup-excerpt h4,
.sfc-popup-excerpt h5 {
    color: #0d1f35;
    font-weight: 700;
    line-height: 1.45;
    margin: 1.3em 0 .5em;
}
.sfc-popup-excerpt h2 { font-size: 1.1rem; }
.sfc-popup-excerpt h3 { font-size: 1rem; }
.sfc-popup-excerpt h4 { font-size: .95rem; }

.sfc-popup-excerpt ul,
.sfc-popup-excerpt ol {
    padding-right: 1.5em;
    margin: 0 0 1em;
}
.sfc-popup-excerpt li { margin-bottom: .4em; }

.sfc-popup-excerpt img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: .8em 0;
    display: block;
}

.sfc-popup-excerpt a {
    color: #D0A968;
    text-decoration: none;
}
.sfc-popup-excerpt a:hover { text-decoration: underline; }

.sfc-popup-excerpt strong,
.sfc-popup-excerpt b {
    font-weight: 700;
    color: #0d1f35;
}

.sfc-popup-excerpt blockquote {
    border-right: 3px solid #D0A968;
    border-left: none;
    padding-right: 14px;
    padding-left: 0;
    margin: 1em 0;
    color: #64748b;
    font-style: italic;
}

.sfc-popup-excerpt table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    font-size: .87rem;
}
.sfc-popup-excerpt th,
.sfc-popup-excerpt td {
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    text-align: right;
}
.sfc-popup-excerpt th {
    background: #f8fafc;
    font-weight: 700;
    color: #0d1f35;
}

.sfc-popup-excerpt figure { margin: .8em 0; }
.sfc-popup-excerpt figcaption {
    font-size: .78rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 5px;
}

.sfc-popup-excerpt hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1.2em 0;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .sfc-popup-img-col { flex: 0 0 46%; }
}

@media (max-width: 767px) {
    .sfc-popup-wrap { padding: 0 8px; height: 90vh; gap: 8px; }
    .sfc-popup-nav  { width: 34px; height: 34px; font-size: 1rem; }

    .sfc-popup-inner { flex-direction: column; border-radius: 14px; }

    .sfc-popup-img-col { flex: 0 0 200px; width: 100%; }

    .sfc-popup-close { top: 12px; left: 12px; width: 32px; height: 32px; }
}

@media (max-width: 480px) {
    .sfc-popup-wrap  { padding: 0 4px; }
    .sfc-popup-nav   { width: 28px; height: 28px; font-size: .85rem; }
    .sfc-popup-title { font-size: 1rem; }
    .sfc-popup-img-col { flex: 0 0 160px; }
}

/* ====================================================
   الفوتر
   ==================================================== */
.site-footer {
    background: #000000;
    color: #fff;
}

/* --- الجزء الرئيسي --- */
.footer-main {
    padding: 52px 0 40px;
}

.footer-logo-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.footer-logo-col img{
    max-width: 95px;
    height: auto;

}

.footer-col-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00adca;
    display: inline-block;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 11px;
}

.footer-nav-list a {
    color: #8fa3bb;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-nav-list a:hover {
    color: #00adca;
}

.footer-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(208, 169, 104, 0.18);
    border: 1.5px solid rgba(208, 169, 104, 0.4);
    color: #fff;
    font-size: 13.5px;
    padding: 9px 12px 9px 14px;
    border-radius: 10px;
    margin-top: 22px;
    transition: background 0.22s, border-color 0.22s;
}

.footer-whatsapp-btn i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-whatsapp-btn:hover {
    background: rgba(208, 169, 104, 0.3);
    border-color: rgba(208, 169, 104, 0.65);
    color: #fff;
}

/* --- شريط النشرة والتواصل --- */
.footer-mid {
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 22px 0;
}

.footer-contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #8fa3bb;
}

.footer-contact-info i {
    color: #00adca;
}

.fci-sep {
    color: rgba(255,255,255,0.2);
}

.footer-nl-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.footer-nl-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    overflow: hidden;
    padding: 4px;
}

.footer-nl-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    padding: 8px 14px;
    font-family: inherit;
}

.footer-nl-input::placeholder {
    color: #6b849e;
}

.footer-nl-btn {
    background: #00adca;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-family: inherit;
    transition: background 0.2s;
    flex-shrink: 0;
}

.footer-nl-btn:hover {
    background: #0095ae;
}

/* --- الشريط السفلي --- */
.footer-bottom {
    padding: 16px 0;
}

.footer-copy {
    font-size: 13px;
    color: #6b849e;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-bottom-links a {
    color: #6b849e;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #fff;
}

.fbl-sep {
    color: rgba(255,255,255,0.15);
}

@media (max-width: 991.98px) {
    .footer-main { padding: 36px 0 28px; }
    .footer-nav-col { margin-bottom: 24px; }
    .footer-logo-col { flex-direction: row; align-items: center; gap: 24px; justify-content: flex-start; }
    .footer-mid .row { flex-direction: column; gap: 20px; }
    .footer-contact-info { justify-content: center; }
    .footer-bottom .row { flex-direction: column; gap: 10px; text-align: center; }
    .footer-bottom-links { justify-content: center; }
    .footer-bottom .text-end { text-align: center !important; }
}

/* ======== About Hero ======== */
.about-hero {
    position: relative;
    overflow: hidden;
}

.aho-slide {
    height: 100vh;
    min-height: 520px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.aho-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #00ADCA 0%, rgba(0, 0, 0, 0) 65%);
    z-index: 1;
}

.aho-slide-content {
    position: relative;
    z-index: 2;
    padding-bottom: 56px;
    text-align: start;
}

.aho-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 18px;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.aho-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.45);
    margin-bottom: 16px;
}

.aho-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.aho-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.65);
    background: transparent;
    display: inline-block;
    transition: background 0.25s, border-color 0.25s;
}

.aho-dot--active {
    background: #fff;
    border-color: #fff;
}

.college-hero-slider {
    position: relative;
}
.college-hero-static-content {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 3;
    pointer-events: none;
}
.college-hero-slider.owl-carousel .owl-dots {
    position: absolute;
    z-index: 3;
    right: max(12px, calc((100% - 1320px) / 2 + 12px));
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.college-hero-slider.owl-carousel .owl-dot {
    width: 20px;
    height: 20px;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 50%;
    background: transparent !important;
    transition: background-color .2s ease, border-color .2s ease;
}
.college-hero-slider.owl-carousel .owl-dot.active {
    border-color: #e7b45c !important;
    background: #e7b45c !important;
}
.college-hero-slider.owl-carousel .owl-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

/* تجنب رسم الأقسام البعيدة عن الشاشة قبل الوصول إليها */
.single-college .college-nabza,
.single-college .college-dean,
.single-college .college-values,
.single-college .college-programs,
.single-college .college-gallery,
.single-college .college-news {
    content-visibility: auto;
    contain-intrinsic-size: auto 720px;
}

@media (max-width: 991.98px) {
    .aho-slide { height: 60vh; min-height: 320px; }
}

@media (max-width: 767.98px) {
    .aho-title { font-size: 2.8rem; }
    .aho-slide-content { padding-bottom: 48px; }
}

@media (max-width: 575.98px) {
    .aho-title { font-size: 2.2rem; }
}

/* ======== About Intro Section ======== */
.about-intro {
    background: #ffffff;
    padding: 50px 0;
}

.ai-text-col {
    padding-inline-end: 8px;
}

.ai-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0c0d10;
    margin-bottom: 28px;
    line-height: 1.2;
}

.ai-body {
    color: #0c0d10;
    font-size: 15.5px;
    line-height: 2;
    margin-bottom: 44px;
}

.ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #00adca;
    color: #fff;
    padding: 11px 22px 11px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
}

.ai-btn:hover {
    background: #0096b0;
    color: #fff;
    transform: translateY(-2px);
}

.ai-btn i {
    font-size: 1.2rem;
}

.ai-img-col {
    display: flex;
    align-items: center;
}

.ai-img-wrap {
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    /*box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);*/
}

.ai-img-wrap img {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 22px;
}

@media (max-width: 991.98px) {
    .about-intro { padding: 40px 0; }
    .ai-title { font-size: 1.8rem; }
    .ai-img-col { order: -1; margin-top: 0; margin-bottom: 8px; }
    .ai-text-col { order: 1; }
    .ai-img-wrap { margin-bottom: 25px; }
}

/* ======== Nabza Section ======== */
.nabza-section {
    background: #fff;
    padding: 50px 0;
}

.nabza-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111;
    padding: 44px 0 28px;
    margin: 0;
}

/* Base card */
.nabza-card {
    position: relative;
    height: 480px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 32px 32px;
}

/* Background image layer – زومable via transform */
.nabza-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--card-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.nabza-card:hover::after {
    transform: scale(1.08);
}

.nabza-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.09) 50%, rgba(17, 17, 17, 0.58) 100%);
    z-index: 1;
}

.nabza-card--links::before {
    background: linear-gradient(to top left, rgba(0, 0, 0, 0.92) 0%, transparent 62%);
}

.nabza-card-title {
    position: relative;
    z-index: 2;
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

/* Button cards */


.nabza-btn-wrap {
    position: relative;
    z-index: 2;
 }

.nabza-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 173, 202, 0.82);
    color: #fff;
    padding: 10px 22px 10px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(3px);
    transition: background 0.25s;
}

.nabza-btn:hover {
    background: #00adca;
    color: #fff;
}

.nabza-btn i {
    font-size: 1.15rem;
}



.nabza-links-panel {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    padding: 14px 18px 20px;
    min-width: 200px;
}

.nabza-lp-active {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 2px;
    transition: color 0.2s;
}

.nabza-lp-active i {
    color: #00adca;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nabza-lp-active:hover {
    color: #00adca;
}

.nabza-lp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nabza-lp-list li + li {
    margin-top: 6px;
}

.nabza-lp-list a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 14.5px;
    transition: color 0.2s;
    display: block;
}

.nabza-lp-list a:hover {
    color: #00adca;
}

@media (max-width: 767.98px) {
    .nabza-grid { grid-template-columns: 1fr; }
    .nabza-card { height: 380px; }
    .nabza-card-title { font-size: 1.5rem; }
    .nabza-title { font-size: 1.8rem; }
}

/* ======== Enhanced Interactions – About Page ======== */

/* --- Hero dots --- */
.aho-dot {
    cursor: pointer;
    transition: transform 0.2s ease-out, background 0.22s ease-out, border-color 0.22s ease-out;
}
.aho-dot:hover {
    transform: scale(1.35);
    border-color: rgba(255,255,255,0.95);
}

/* --- Intro image zoom --- */
.ai-img-wrap {
    transition: box-shadow 0.35s ease-out;
}
.ai-img-wrap img {
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ai-img-wrap:hover img {
    transform: scale(1.04);
}
.ai-img-wrap:hover {
    /*box-shadow: 0 28px 72px rgba(0, 0, 0, 0.62);*/
}

/* --- Intro button: lift + glow + arrow slide --- */
.ai-btn {
    transition: background 0.22s ease-out, transform 0.22s ease-out, box-shadow 0.22s ease-out;
}
.ai-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 173, 202, 0.38);
}
.ai-btn i {
    transition: transform 0.22s ease-out;
}
.ai-btn:hover i {
    transform: translateX(-4px);
}

/* --- Nabza card overlay: darken on hover --- */
.nabza-card::before {
    transition: filter 0.35s ease-out;
}
.nabza-card:hover::before {
    filter: brightness(0.7);
}

/* --- Nabza card title: float up on hover --- */
.nabza-card-title {
    transition: transform 0.3s ease-out;
}
.nabza-card:hover .nabza-card-title {
    transform: translateY(-6px);
}

/* --- Nabza button: lift + glow + arrow slide --- */
.nabza-btn {
    cursor: pointer;
    transition: background 0.22s ease-out, transform 0.22s ease-out, box-shadow 0.22s ease-out;
}
.nabza-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 173, 202, 0.42);
}
.nabza-btn i {
    transition: transform 0.22s ease-out;
}
.nabza-btn:hover i {
    transform: translateX(-4px);
}

/* --- Links panel: slide on hover --- */
.nabza-lp-list a {
    transition: color 0.2s ease-out, transform 0.2s ease-out;
}
.nabza-lp-list a:hover {
    transform: translateX(-5px);
}
.nabza-lp-active {
    transition: color 0.2s ease-out;
}
.nabza-lp-active i {
    transition: transform 0.22s ease-out;
}
.nabza-lp-active:hover i {
    transform: translateX(-5px);
}

/* ======== صور سابقة ======== */
.prev-photos-section {
    padding: 72px 0 80px;
    background: #fff;
}

.prev-photos-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 36px;
    text-align: start;
}

.prev-photo-card {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #eee;
}

.prev-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.prev-photo-card:hover img {
    transform: scale(1.05);
}

/* ======== أعضاء مجلس الخريجين ======== */
.council-section {
    padding: 72px 0 80px;
    background: #f8f9fa;
}

.council-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 40px;
    text-align: start;
}

.council-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #cce8ee;
}

.council-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.council-card:hover img {
    transform: scale(1.05);
}

.council-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #00adca 0%, rgba(0,173,202,0.55) 30%, transparent 60%);
    z-index: 1;
}

.council-label {
    position: absolute;
    bottom: 22px;
    right: 22px;
    z-index: 2;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    border-right: 3px solid #fff;
    padding-right: 10px;
    line-height: 1.3;
}

/* ======== قصص النجاح ======== */
.success-section {
    padding: 72px 0 88px;
    background: #fff;
}

.success-section-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #111;
    text-align: center;
    margin-bottom: 48px;
}

.success-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.success-card-img {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #eee;
}

.success-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.success-card:hover .success-card-img img {
    transform: scale(1.05);
}

.success-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
}

.success-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.success-card-text {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.75;
    margin: 0;
}

.success-card-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 4px;
    transition: gap 0.22s ease-out;
}

.success-card-more:hover {
    gap: 14px;
    color: #00adca;
}

.success-more-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #00adca;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background 0.22s ease-out, transform 0.22s ease-out;
}

.success-card-more:hover .success-more-icon {
    background: #0096b0;
    transform: translateX(-4px);
}

/* ======== Council Owl Dots ======== */
.council-owl .owl-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
}

.council-owl .owl-dot span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    transition: background 0.25s ease-out, transform 0.25s ease-out, width 0.25s ease-out;
    margin: 0;
}

.council-owl .owl-dot.active span {
    background: #00adca;
    width: 28px;
    border-radius: 5px;
}

.council-owl .owl-dot:hover span {
    background: #00adca;
    transform: scale(1.2);
}

/* ======== الجوائز والتكريمات ======== */
.awt-section {
    padding: 72px 0 80px;
    background: #fff;
}

.awt-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.awt-col-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.awt-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.awt-nav-btn:hover { transform: scale(1.1); opacity: 0.85; }
.awt-nav-btn--teal { background: #00adca; }
.awt-nav-btn--gold { background: #c9992a; }

.awt-card {
    background: #f4f5f6;
    border-radius: 16px;
    padding: 28px 24px 24px;
    text-align: center;
}

.awt-card-img {
    margin: 0 auto 20px;
    max-width: 65%;
    border-radius: 10px;
    overflow: hidden;
}

.awt-card-img img {
    width: auto;
    height: 250px;
    display: block;
    margin: 0 auto;
}

.awt-date {
    display: block;
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 10px;
}

.awt-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    line-height: 1.6;
    margin: 0;
}

.awt-title a,
.awt-card-img a {
    color: inherit;
    text-decoration: none;
}

.awt-title a:hover {
    text-decoration: underline;
}

/* Dots */
.awt-carousel .owl-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
}

.awt-carousel .owl-dot span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    margin: 0;
    transition: background 0.25s, width 0.25s, border-radius 0.25s;
}

.awt-carousel--teal .owl-dot.active span {
    background: #00adca;
    width: 26px;
    border-radius: 5px;
}

.awt-carousel--gold .owl-dot.active span {
    background: #c9992a;
    width: 26px;
    border-radius: 5px;
}

/* ======== الأنشطة الطلابية ======== */
.stact-section {
    padding: 50px 0 ;
    background: #fff;
}

.stact-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #111;
    text-align: start;
    margin-bottom: 36px;
}

.stact-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.stact-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--card-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.stact-card:hover::after {
    transform: scale(1.07);
}

.stact-card::before {
    content: '';
    position: absolute;
    inset: 0;

    z-index: 1;

     opacity: 0.85;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 42.41%, #000 100%);
}

.stact-card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
}

.stact-label {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

.stact-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #00adca;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    text-decoration: none;
    transition: background 0.22s ease-out, transform 0.22s ease-out;
}

.stact-card:hover .stact-arrow {
    background: #0096b0;
    transform: translateX(-3px);
}

/* ======== مرافق الجامعة ======== */
.facilities-section {
    padding: 50px 0;
    background: #fff;
}

.facilities-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #111;
    text-align: start;
    margin-bottom: 24px;
}

.facilities-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.fac-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 10px 24px 14px;
    font-size: 1rem;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    transition: color 0.22s ease-out, border-color 0.22s ease-out;
    white-space: nowrap;
}

.fac-tab:hover { color: #555; }

.fac-tab.active {
    color: #00adca;
    border-bottom-color: #00adca;
    font-weight: 700;
}

.fac-panel { display: none; }
.fac-panel.active { display: block; }

.fac-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 0 40px 48px;
}

.fac-text-col .ai-btn {
    align-self: flex-start;
}

@media (max-width: 991.98px) {
    .fac-text-col { padding: 0 calc(var(--bs-gutter-x) * .5); }
}

.fac-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 14px;
}

.fac-body {
    font-size: 0.97rem;
    color: #444;
    line-height: 1.85;
    margin-bottom: 20px;
}

.fac-img-wrap {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    border-radius: 0 16px 16px 0;
}

[dir="rtl"] .fac-img-wrap {
    border-radius: 16px  ;
}

.fac-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fac-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0.85;
    background: linear-gradient(to left, #00ADCA 0%, rgba(0, 173, 202, 0) 100%);
}

.fac-img-wrap--reverse::after {
    background: linear-gradient(to right, #00ADCA 0%, rgba(0, 173, 202, 0) 100%);
}

/* ============================================================
   Research Stories Section (قصص بحثية)
   ============================================================ */
.rss-section {
    background: #fff;
}

.rss-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a2a3a;
    text-align: right;
}

.rss-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rss-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.rss-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.rss-card:hover .rss-img-wrap img {
    transform: scale(1.04);
}

.rss-quote a {
    color: inherit;
    text-decoration: none;
}

.rss-quote {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2a3a;
    line-height: 1.7;
    text-align: right;
    margin: 0;
}

/* ============================================================
   Admission Path Section (ابحث عن مسارك)
   ============================================================ */
.path-section {
    background: #fff;
}

.path-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a2a3a;
    text-align: right;
}

.path-card {
    display: block;
    background: #f5f6f8;
    border-radius: 16px;
    padding: 22px 24px;
    min-height: 130px;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    transition: box-shadow 0.35s ease, background 0.35s ease, transform 0.25s ease;
}

/* خط تيل سفلي يمتد عند الهوفر */
.path-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: #00ADCA;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s ease;
    border-radius: 0 0 16px 16px;
}

.path-card:hover {
    background: #eef9fb;
    box-shadow: 0 10px 32px rgba(0, 173, 202, 0.18);
    transform: translateY(-3px);
}

.path-card:hover::after {
    transform: scaleX(1);
}

.path-icon-wrap {
    width: 48px;
    height: 48px;
    background: #00ADCA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.path-card:hover .path-icon-wrap {
    transform: scale(1.1);
}

.path-bottom {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.path-label {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2a3a;
    transition: color 0.25s ease;
}

.path-card:hover .path-label {
    color: #00ADCA;
}

.path-arrow-btn {
    width: 36px;
    height: 36px;
    background: #00ADCA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.path-card:hover .path-arrow-btn {
    background: #0096b0;
    transform: translateX(-5px);
}

@media (max-width: 767.98px) {
    .path-card { padding: 16px; min-height: 110px; }
    .path-label { font-size: 0.875rem; }
}

/* ============================================================
   Career / Employment Section
   ============================================================ */
.career-section {
    background: #fff;
}

.career-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a2a3a;
    text-align: right;
}

.career-card {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.career-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--card-bg);
    background-size: cover;
    background-position: center;
    transition: transform 0.45s ease;
    border-radius: 18px;
}

.career-card:hover::after {
    transform: scale(1.05);
}

.career-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(196, 196, 196, 0.00) 0%, rgba(95, 184, 199, 0.51) 68.27%, rgba(0, 173, 202, 0.75) 100%);
    z-index: 1;
    border-radius: 18px;
}

.career-label {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 3px solid #fff;
    padding-right: 12px;
}

.career-label span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

/* ============================================================
   Admission Student Types Grid (adm-grid)
   ============================================================ */
.adm-grid-section {
    background: #F0F0F0;
}

.adm-card {
    display: block;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.25s ease;
}

.adm-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.adm-card-img {
    margin: 10px 10px 0;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.adm-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.adm-card:hover .adm-card-img img {
    transform: scale(1.05);
}

.adm-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 18px;
}

.adm-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #00ADCA;
    text-align: right;
    line-height: 1.45;
}

.adm-arrow {
    width: 36px;
    height: 36px;
    background: #00ADCA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 1rem;
    transition: background 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.adm-card:hover .adm-arrow {
    background: #0096b0;
    transform: translateX(-5px);
}

/* ============================================================
   Colleges Grid Section (colg)
   ============================================================ */
.colg-section {
    background: #fff;
}

.colg-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: #F7F7F7;
    border-radius: 20px;
    padding: 32px 24px;
    text-decoration: none;
    transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.28s ease;
}

.colg-card:hover {
    background: #00ADCA;
    box-shadow: 0 16px 40px rgba(0, 173, 202, 0.38);
    transform: translateY(-5px);
}

.colg-icon-wrap {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #D4EFF5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.35s ease;
}

.colg-card:hover .colg-icon-wrap {
    background: rgba(255, 255, 255, 0.22);
}

.colg-icon-wrap img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    transition: filter 0.35s ease;
}

.colg-card:hover .colg-icon-wrap img {
    filter: brightness(0) invert(1);
}

.colg-label {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2a3a;
    text-align: center;
    line-height: 1.45;
    transition: color 0.35s ease;
}

.colg-card:hover .colg-label {
    color: #fff;
}

@media (max-width: 767.98px) {
    .colg-card { padding: 20px 12px; gap: 12px; }
    .colg-icon-wrap { width: 80px; height: 80px; }
    .colg-icon-wrap img { width: 40px; height: 40px; }
    .colg-label { font-size: 0.875rem; }
}

/* ============================================================
   Colleges Vision Section (colg-vision)
   ============================================================ */
.colg-vision-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 80px 0;
}

.colg-vision-section::before {
    content: '';
    position: absolute;
    inset: 0;
    /*background: linear-gradient(to right,*/
    /*    rgba(0, 15, 28, 0.58) 0%,*/
    /*    rgba(0, 90, 130, 0.78) 38%,*/
    /*    rgba(0, 155, 185, 0.92) 62%,*/
    /*    rgba(0, 140, 172, 0.97) 100%);*/
    z-index: 1;


    background: linear-gradient(to right, rgba(0, 0, 0, 0.00) -0.99%, #00ADCA 99.01%);


}

.colg-vision-content {
    position: relative;
    z-index: 2;
}

.colg-vision-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 28px;
    line-height: 1.3;
}

.colg-vision-body {
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.85;
    margin-bottom: 16px;
}

.colg-vision-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #C9A84C;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 12px;
    transition: background 0.25s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.colg-vision-btn:hover {
    background: #b8953f;
    color: #fff;
    transform: translateX(-5px);
}

.colg-vision-btn i {
    font-size: 1.2rem;
}

.colg-vision-logo {
    margin-top: 52px;
}

.colg-vision-logo img {
    height: 52px;
    opacity: 0.80;
}

/* ============================================================
   Department Events Section (dept-events)
   ============================================================ */
.dept-events-section {
    background: #fff;
    overflow: hidden;
}

.dept-events-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a2a3a;
    text-align: right;
    margin-bottom: 32px;
}

.de-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 8px;
}

.de-card-img {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.de-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.de-card:hover .de-card-img img {
    transform: scale(1.04);
}

.de-card-text {
    font-size: 0.88rem;
    font-weight: 500;
    color: #1a2a3a;
    line-height: 1.7;
    text-align: right;
}

.de-arrow {
    width: 38px;
    height: 38px;
    background: #C9A84C;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    flex-shrink: 0;
    align-self: flex-start;
    transition: background 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.de-arrow:hover {
    background: #b8953f;
    color: #fff;
    transform: translateX(-5px);
}

/* ============================================================
   Programs Section (prog)
   ============================================================ */
.prog-section {
    background: #fff;
}

.prog-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a2a3a;
    text-align: right;
}

.prog-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: #F5F6F8;
    border-radius: 18px;
    padding: 28px 24px;
    text-decoration: none;
    height: 100%;
    transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.28s ease;
}

.prog-card:hover {
    background: #00ADCA;
    box-shadow: 0 16px 40px rgba(0, 173, 202, 0.38);
    transform: translateY(-5px);
}

.prog-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: #D4EFF5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.35s ease;
}

.prog-card:hover .prog-icon-wrap {
    background: rgba(255, 255, 255, 0.22);
}

.prog-icon-wrap img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: filter 0.35s ease;
}

.prog-card:hover .prog-icon-wrap img {
    filter: brightness(0) invert(1);
}

.prog-label {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2a3a;
    text-align: right;
    line-height: 1.5;
    transition: color 0.35s ease;
}

.prog-card:hover .prog-label {
    color: #fff;
}

@media (max-width: 767.98px) {
    .prog-card { padding: 18px 12px; gap: 12px; }
    .prog-label { font-size: 0.875rem; }
}

/* --- Respect reduced-motion preference --- */
@media (prefers-reduced-motion: reduce) {
    .aho-dot,
    .ai-img-wrap,
    .ai-img-wrap img,
    .ai-btn, .ai-btn i,
    .nabza-card::before,
    .nabza-card-title,
    .nabza-btn, .nabza-btn i,
    .nabza-lp-list a,
    .nabza-lp-active i {
        transition: none !important;
        transform: none !important;
    }
}
/* ========================================================
   WPBakery Frontend Editor – إلغاء تأثيرات AOS
======================================================== */
body.vc_editor [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* ========================================================
   Single Post – تفاصيل الخبر
======================================================== */

/* هيرو الخبر */
.post-hero {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding-bottom: 0;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,20,40,.85) 40%, rgba(10,20,40,.35) 100%);
}

.post-hero-content {
    position: relative;
    z-index: 1;
    padding: 60px 0 40px;
    color: #fff;
}

.post-hero-cat {
    display: inline-block;
    background: var(--un-gold, #c9992a);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-decoration: none;
    margin-bottom: 16px;
}

.post-hero-title {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 900;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 16px;
    max-width: 800px;
}

.post-hero-meta {
    display: flex;
    gap: 24px;
    font-size: .9rem;
    color: rgba(255,255,255,.8);
}

.post-hero-meta i { margin-left: 6px; }

/* قسم المحتوى */
.post-body-section { padding: 60px 0 80px; }

/* مسار التنقل */
.post-breadcrumb { margin-bottom: 28px; }
.post-breadcrumb .breadcrumb { background: none; padding: 0; margin: 0; font-size: .88rem; }
.post-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: '/'; color: #aaa; }
.post-breadcrumb .breadcrumb-item a { color: var(--un-gold, #c9992a); text-decoration: none; }
.post-breadcrumb .breadcrumb-item.active { color: #666; }

/* الصورة المميزة */
.post-featured-img {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 36px;
}
.post-featured-img img { width: 100%; height: auto; display: block; }

/* محتوى المقال */
.post-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333;
    margin-bottom: 40px;
}
.post-content h2,
.post-content h3 { color: #1a2a3a; font-weight: 700; margin: 32px 0 16px; }
.post-content p { margin-bottom: 20px; }
.post-content img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.post-content a { color: var(--un-gold, #c9992a); }
.post-content ul,
.post-content ol { padding-right: 24px; margin-bottom: 20px; }

/* الوسوم */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}
.post-tags > i { color: #888; margin-left: 4px; }
.post-tag {
    background: #f0f0f0;
    color: #444;
    font-size: .82rem;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.post-tag:hover { background: var(--un-gold, #c9992a); color: #fff; }

/* مشاركة */
.post-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}
.post-share-label { font-weight: 700; color: #333; font-size: .9rem; }
.post-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: opacity .2s;
}
.post-share-btn:hover { opacity: .85; color: #fff; }
.post-share-fb { background: #1877f2; }
.post-share-tw { background: #000; }
.post-share-wa { background: #25d366; }
.post-share-li { background: #0a66c2; }

/* تنقل بين الأخبار */
.post-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid #eee;
    padding-top: 32px;
}
.post-nav-item {
    flex: 1;
    min-width: 220px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 18px 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background .2s;
}
.post-nav-item:hover { background: #f0f0f0; }
.post-nav-dir { font-size: .8rem; color: var(--un-gold, #c9992a); font-weight: 700; }
.post-nav-ttl { font-size: .9rem; color: #1a2a3a; font-weight: 600; line-height: 1.5; }
.post-nav-prev { text-align: left; }

/* الشريط الجانبي */
.post-sidebar { position: sticky; top: 100px; }

.post-sb-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1a2a3a;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--un-gold, #c9992a);
    display: inline-block;
}

/* بيانات الخبر */
.post-meta-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
}
.post-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.post-meta-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: #444;
}
.post-meta-list i { color: var(--un-gold, #c9992a); font-size: 1rem; flex-shrink: 0; }
.post-meta-list a { color: #444; text-decoration: none; }
.post-meta-list a:hover { color: var(--un-gold, #c9992a); }

/* أخبار ذات صلة */
.post-related-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
}
.post-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.post-related-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    align-items: flex-start;
}
.post-related-img {
    width: 72px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}
.post-related-img img { width: 100%; height: 100%; object-fit: cover; }
.post-related-info { flex: 1; }
.post-related-date { font-size: .75rem; color: #888; display: block; margin-bottom: 4px; }
.post-related-ttl {
    font-size: .88rem;
    font-weight: 600;
    color: #1a2a3a;
    line-height: 1.5;
    margin: 0;
    transition: color .2s;
}
.post-related-item:hover .post-related-ttl { color: var(--un-gold, #c9992a); }

@media (max-width: 991px) {
    .post-hero { min-height: 320px; }
    .post-sidebar { position: static; }
    .post-nav-prev { text-align: right; }
}

/* ========================================================
   Archive / Category / Tag
======================================================== */

/* هيرو */
.archive-hero {
    position: relative;
    min-height: 280px;
    background: #1a2a3a;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}
.archive-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,20,40,.88) 50%, rgba(10,20,40,.5) 100%);
}
.archive-hero-content {
    position: relative;
    z-index: 1;
    padding: 50px 0 36px;
    color: #fff;
}
.archive-hero-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}
.archive-hero-title span { font-weight: 400; }
.archive-hero-desc {
    font-size: .95rem;
    color: rgba(255,255,255,.75);
    max-width: 600px;
    margin: 0;
}

/* قسم المنشورات */
.archive-body { padding: 60px 0 80px; }

/* بطاقة المنشور */
.arch-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow .25s, transform .25s;
}
.arch-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.13);
    transform: translateY(-4px);
}
.arch-card-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #eee;
}
.arch-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.arch-card:hover .arch-card-img-wrap img { transform: scale(1.05); }

.arch-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ccc;
}

.arch-card-cat {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--un-gold, #c9992a);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
}

.arch-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.arch-card-date {
    font-size: .8rem;
    color: #888;
}
.arch-card-date i { margin-left: 5px; }

.arch-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
}
.arch-card-title a {
    color: #1a2a3a;
    text-decoration: none;
    transition: color .2s;
}
.arch-card-title a:hover { color: var(--un-gold, #c9992a); }

.arch-card-excerpt {
    font-size: .88rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.arch-card-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--un-gold, #c9992a);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
}
.arch-card-more i { font-size: 1.1rem; }
.arch-card-more:hover { color: #a07820; }

/* ترقيم الصفحات */
.archive-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}
.archive-pagination a,
.archive-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
    background: #fff;
    transition: background .2s, color .2s, border-color .2s;
}
.archive-pagination a:hover {
    background: var(--un-gold, #c9992a);
    color: #fff;
    border-color: var(--un-gold, #c9992a);
}
.archive-pagination .current {
    background: var(--un-gold, #c9992a);
    color: #fff;
    border-color: var(--un-gold, #c9992a);
}

/* لا توجد منشورات */
.archive-empty {
    text-align: center;
    padding: 80px 0;
    color: #aaa;
}
.archive-empty i { font-size: 3rem; display: block; margin-bottom: 16px; }
.archive-empty p { font-size: 1.1rem; }

@media (max-width: 767px) {
    .archive-hero { min-height: 220px; }
}

/* ============================================================
   COLLEGE CPT – single-college.php
============================================================ */

/* ── College Hero ── */
.clg-hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 0;
}
.clg-hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
}
.clg-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a1f3c 0%, #0d3a47 60%, #0f5c6e 100%);
    z-index: 1;
}
.clg-hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 44px;
    padding-top: 20px;
}
.clg-hero-bc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 14px;
}
.clg-hero-bc a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
}
.clg-hero-bc a:hover { color: #fff; }
.clg-bc-sep { font-size: 0.7rem; opacity: 0.5; }
.clg-hero-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 10px;
}
.clg-hero-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.clg-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.25;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

@media (max-width: 767.98px) {
    .clg-hero { min-height: 200px; padding-top: 100px; }
    .clg-hero-content { padding-bottom: 32px; }
}

/* ── Section title ── */
.college-sec-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: #0d3a47;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 14px;
}
.college-sec-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--un-teal, #0f8fa0);
    border-radius: 2px;
}
.college-sec-title.text-center::after { right: 50%; transform: translateX(50%); }

/* ── النبذة ── */
.college-nabza { padding: 70px 0; background: #fff; }
.college-nabza-body { color: #444; line-height: 1.9; margin-bottom: 28px; }
.college-nabza-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    object-fit: cover;
    max-height: 420px;
}

/* الرؤية والرسالة */
.college-vm-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}
.college-vm-card {
    position: relative;
     border-radius: 10px;
    padding: 22px 20px 20px;
    background: #fff;
    overflow: visible;
    border: 3px solid #D9D9D9;
}
.college-vm-icon {
    position: absolute;
    top: -22px;
    right: -16px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--un-teal, #0f8fa0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 14px rgba(15,143,160,.25);
    flex-shrink: 0;
}

.college-vm-icon img{
    width: 35px;
}
.college-vm-card h3 {
    color: #D0A968;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 30.8px; /* 140% */
}
.college-vm-card p { font-size: .9rem; color: #444; line-height: 1.85; margin: 0; }

/* ── القيم ── */
.college-values { padding: 70px 0; background: #f4f8fa; }
.college-val-card { padding: 24px 12px; transition: transform .25s; }
.college-val-card:hover { transform: translateY(-4px); }
.college-val-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.college-val-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.college-val-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--un-teal, #0f8fa0);
    margin-bottom: 8px;
}
.college-val-desc { font-size: .85rem; color: #555; line-height: 1.7; margin: 0; }

/* ── البرامج ── */
.college-programs { padding: 70px 0; background: #fff; }
.college-prog-img {
    height: 100%;
    min-height: 500px;
    position: sticky;
    top: 90px;
}
.college-prog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px ;
}
.college-prog-inner { padding: 10px 0 10px 0; }

/* ── أكورديون البرامج ── */
.college-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.college-acc-item {
    border: 1px solid #d8edf1;
    border-radius: 10px;
    overflow: hidden;
}

/* زر الأكورديون */
.college-acc-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px 15px 14px;
    background: var(--un-teal, #0f8fa0);
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-align: right;
    cursor: pointer;
    transition: background .2s, color .2s;
    box-shadow: none !important;
    gap: 12px;
}
.college-acc-btn:not(.collapsed) {
    background: #fff;
    color: #0d3a47;
    border-bottom: 1px solid #d8edf1;
}
.college-acc-btn::after { display: none; }

/* أيقونة التبديل */
.college-acc-chevron {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.45rem;
    line-height: 1;
    transition: background .2s;
}
/* مغلق: شفاف + سهم أبيض */
.college-acc-btn.collapsed .acc-icon-open  { display: none; }
.college-acc-btn.collapsed .acc-icon-closed { display: flex; color: #fff; }
.college-acc-btn.collapsed .college-acc-chevron { background: transparent; }
/* مفتوح: دائرة تيل + سهم أعلى */
.college-acc-btn:not(.collapsed) .acc-icon-open  { display: flex; color: #fff; }
.college-acc-btn:not(.collapsed) .acc-icon-closed { display: none; }
.college-acc-btn:not(.collapsed) .college-acc-chevron { background: var(--un-teal, #0f8fa0); }

/* جسم الأكورديون */
.college-acc-body { padding: 26px 22px 22px; background: #fff; }

/* وصف البرنامج */
.college-prog-desc {
    color: #444;
    font-size: .95rem;
    line-height: 1.85;
    margin-bottom: 22px;
}

/* الرؤية والرسالة */
.college-prog-vm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 26px;
    border-top: 1px solid #eef2f4;
    border-bottom: 1px solid #eef2f4;
    padding: 20px 0;
}
.college-prog-vm-item { text-align: center; padding: 0 20px; }
.college-prog-vm-item + .college-prog-vm-item { border-right: 1px solid #d8edf1; }
.college-prog-vm-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--un-teal, #0f8fa0);
    margin-bottom: 10px;
    display: block;
}
.college-prog-vm-item h4 i { display: none; }
.college-prog-vm-item p { font-size: .88rem; color: #444; line-height: 1.8; margin: 0; }

/* أهداف البرنامج */
.college-prog-goals { margin-bottom: 22px; }
.college-prog-goals h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--un-teal, #0f8fa0);
    margin-bottom: 14px;
}
.college-prog-goals ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.college-prog-goals ul li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .9rem;
    color: #333;
    line-height: 1.65;
    border: none;
    padding: 0;
}
.college-prog-goals ul li i {
    color: var(--un-teal, #0f8fa0);
    flex-shrink: 0;
    font-size: .65rem;
    margin-top: 6px;
}

/* زر الخطة الدراسية */
.college-prog-plan-wrap { margin-top: 22px; }
.college-prog-plan-btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--un-teal, #0f8fa0);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    transition: background .2s;
    overflow: hidden;
    padding: 0;
}
.college-prog-plan-btn:hover { background: #0a7080; color: #fff; }
.college-prog-plan-btn > span:not(.college-prog-plan-icon) { padding: 11px 20px; }
.college-prog-plan-btn .college-prog-plan-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    background: rgba(0,0,0,.18);
    font-size: 1.4rem;
}

/* Responsive */
@media (max-width: 991px) {
    .college-prog-vm { grid-template-columns: 1fr; }
    .college-prog-inner { padding: 0; }
}
@media (max-width: 575px) {
    .college-vm-cards { grid-template-columns: 1fr; margin-top: 40px; }
    .college-prog-goals ul { grid-template-columns: 1fr; }
}

/* ============================================================
   COLLEGE DEAN
============================================================ */
.college-dean { padding: 70px 0; background: #f4f8f9; }
.college-dean-img {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(15,143,160,.18);
}
.college-dean-img img {
    width: 100%;
    display: block;
    object-fit: cover;
}
.college-dean-content {
    color: #444;
    font-size: .97rem;
    line-height: 2;
    margin-bottom: 24px;
    border-right: 4px solid var(--un-teal, #0f8fa0);
    padding-right: 18px;
}
.college-dean-content p { margin-bottom: 1em; }
.college-dean-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    color: #0d3a47;
}
.college-dean-name::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 3px;
    background: var(--un-teal, #0f8fa0);
    border-radius: 2px;
}

/* ============================================================
   COLLEGE GALLERY
============================================================ */
.college-gallery { padding: 60px 0; background: #f4f8f9; }
.college-gal-thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
}
.college-gal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
    display: block;
}
.college-gal-thumb:hover img { transform: scale(1.06); }

/* ============================================================
   COLLEGE NEWS
============================================================ */
.college-news { padding: 60px 0; }
.college-news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,.07);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.college-news-img { aspect-ratio: 16 / 9; overflow: hidden; flex-shrink: 0; }
.college-news-img a { display: block; height: 100%; }
.college-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
    display: block;
}
.college-news-img:hover img { transform: scale(1.05); }
.college-news-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.college-news-date {
    font-size: .78rem;
    color: var(--un-teal, #0f8fa0);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}
.college-news-body h3 {
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #0d3a47;
}
.college-news-body h3 a { color: inherit; text-decoration: none; }
.college-news-body h3 a:hover { color: var(--un-teal, #0f8fa0); }
.college-news-body p {
    font-size: .86rem;
    color: #555;
    line-height: 1.75;
    margin: 0;
    flex: 1;
}

/* ============================================================
   COLLEGE PLAN – single-college_plan.php
============================================================ */

/* تبويبات البرامج أعلى الصفحة */
/* مسار الكلية والخطة */
.cp-breadcrumb {
    background: #f7f9fa;
    border-bottom: 1px solid #e3eaed;
}
.cp-breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    font-size: .9rem;
}
.cp-breadcrumb-item a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d3a47;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}
.cp-breadcrumb-item a:hover,
.cp-breadcrumb-item a:focus-visible {
    color: var(--un-teal, #0f8fa0);
}
.cp-breadcrumb-item a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 2px;
}
.cp-breadcrumb-item a i { color: var(--un-teal, #0f8fa0); }
.cp-breadcrumb-separator { color: #8b9ba1; font-size: .72rem; }
.cp-breadcrumb-current {
    color: #64757b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-tabs-bar {
    background: #0d3a47;
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
}
.cp-tabs-nav {
    display: flex;
    gap: 0;
    min-width: max-content;
}
.cp-tab-link {
    display: inline-block;
    padding: 16px 24px;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all .2s;
    white-space: nowrap;
}
.cp-tab-link:hover { color: #fff; border-bottom-color: rgba(255,255,255,.4); }
.cp-tab-link.active {
    color: #fff;
    border-bottom-color: var(--un-teal, #0f8fa0);
    background: rgba(255,255,255,.06);
}

/* محتوى الخطة */
.cp-body { padding: 60px 0; background: #f7f9fa; }
.cp-program-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d3a47;
    margin-bottom: 36px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--un-teal, #0f8fa0);
}

/* الفصل الدراسي */
.cp-semester {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    margin-bottom: 36px;
    overflow: hidden;
}
.cp-semester-header {
    background: var(--un-teal, #0f8fa0);
    padding: 14px 22px;
}
.cp-semester-header h3 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

/* جدول المقررات */
.cp-table {
    width: 100%;
    border-collapse: collapse;
}
.cp-table thead tr { background: #e8f4f6; }
.cp-table th {
    padding: 12px 18px;
    font-size: .88rem;
    font-weight: 700;
    color: #0d3a47;
    text-align: right;
    border-bottom: 2px solid #cce4ea;
}
.cp-table td {
    padding: 11px 18px;
    font-size: .92rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
}
.cp-table tbody tr:nth-child(even) td { background: #f9fbfc; }
.cp-table tbody tr:hover td { background: #eef7f9; }
.cp-code { font-family: monospace; color: var(--un-teal, #0f8fa0); font-weight: 600; }
.cp-hours { font-weight: 700; text-align: center !important; color: #0d3a47; }
.cp-prereq { color: #666; }

/* ذيل الفصل */
.cp-semester-footer {
    padding: 10px 18px;
    text-align: left;
    font-size: .88rem;
    color: #555;
    background: #f4f8fa;
    border-top: 1px solid #e8edf0;
    font-weight: 600;
}

/* لا توجد خطة */
.cp-empty {
    text-align: center;
    padding: 80px 0;
    color: #aaa;
}
.cp-empty i { font-size: 3rem; display: block; margin-bottom: 16px; }
.cp-empty p { font-size: 1.1rem; }

@media (max-width: 767px) {
    .cp-breadcrumb-list { min-height: 46px; font-size: .82rem; }
    .cp-table th, .cp-table td { padding: 9px 10px; font-size: .82rem; }
    .cp-body { padding: 36px 0; }
}

/* ================================================
   Mobile – عناوين الأقسام (توحيد الخط)
   ================================================ */
@media (max-width: 767.98px) {
    .sec-header h2,
    .facts-header h2,
    .social-feed-title,
    .ai-title,
    .nabza-title,
    .council-title,
    .facilities-title,
    .rss-title,
    .path-title,
    .career-title,
    .colg-vision-title,
    .prog-title,
    .dept-events-title,
    .stact-title,
    .success-section-title,
    .awt-col-title,
    .prev-photos-title {
        font-size: 1.5rem !important;
        line-height: 1.35;
    }
}

/* ============================================================
   INDEPENDENT ACADEMIC PROGRAM
============================================================ */
.academic-program-page { background: #fdfefe; color: #142f38; }
.ap-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    background-color: #173e48;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.ap-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 170, 198, .96) 0%, rgba(0, 124, 150, .55) 38%, rgba(5, 35, 49, .28) 76%);
}
.ap-hero-content { position: relative; z-index: 1; padding-bottom: clamp(52px, 7vw, 94px); }
.ap-hero h1 {
    max-width: 1000px;
    margin: 0;
    color: #f7fcfd;
    font-size: clamp(2.15rem, 4.6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.15;
}
.ap-hero p { margin: 12px 0 0; color: rgba(247, 252, 253, .88); font-size: 1rem; }
.ap-intro-section { padding: clamp(70px, 9vw, 130px) 0 55px; }
.ap-mission-section { padding: 55px 0 clamp(70px, 9vw, 120px); }
.ap-split {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: clamp(48px, 8vw, 120px);
}
.ap-split--copy-first .ap-split-copy { order: 1; }
.ap-split--copy-first .ap-split-media { order: 2; }
.ap-split-media { position: relative; min-height: 400px; border-radius: 16px; overflow: hidden; }
.ap-split-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(0, 166, 193, .52), rgba(0, 166, 193, .08));
    pointer-events: none;
}
.ap-split-media img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; display: block; }
.ap-split-copy h2, .ap-section-title {
    margin: 0 0 24px;
    color: #102f39;
    font-size: clamp(1.75rem, 3vw, 2.7rem);
    font-weight: 800;
    line-height: 1.25;
}
.ap-richtext { max-width: 62ch; color: #29444c; font-size: 1rem; line-height: 2; }
.ap-richtext > :last-child { margin-bottom: 0; }
.ap-mission-text { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.9; }
.ap-events-section { padding: 0 0 clamp(75px, 9vw, 125px); }
.ap-events-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ap-event-card { min-width: 0; }
.ap-event-image { display: block; aspect-ratio: 1.46; overflow: hidden; border-radius: 12px; background: #d9e5e8; }
.ap-event-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.ap-event-card:hover .ap-event-image img { transform: scale(1.035); }
.ap-event-card h3 { margin: 16px 0 8px; font-size: 1.02rem; font-weight: 800; line-height: 1.55; }
.ap-event-card h3 a { color: #15343d; text-decoration: none; }
.ap-event-card h3 a:hover { color: var(--un-teal, #0f8fa0); }
.ap-event-card p { margin: 0; color: #52676d; font-size: .9rem; line-height: 1.7; }
.ap-plan-section { padding-top: 10px; }
.ap-plan-tabs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: thin; }
.ap-plan-tab {
    flex: 0 0 auto;
    padding: 15px 25px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #344e56;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.ap-plan-tab:hover { color: #009fba; }
.ap-plan-tab.active { color: #17343d; border-bottom-color: #d5a84e; font-weight: 800; }
.ap-plan-tab:focus-visible { outline: 2px solid #009fba; outline-offset: -3px; }
.ap-plan-tables { padding: clamp(44px, 6vw, 75px) 0 55px; background: #f1f3f4; border-top: 1px solid #e1e6e8; }
.ap-plan-panel { display: none; }
.ap-plan-panel.active { display: block; }
.ap-plan-table { width: 100%; min-width: 760px; border-collapse: collapse; background: #f9fbfb; }
.ap-plan-table th { padding: 20px 18px; background: #09a9c4; color: #f5fcfd; text-align: right; font-size: .92rem; font-weight: 700; }
.ap-plan-table td { padding: 20px 18px; border: 1px solid #dfe4e6; color: #294249; font-size: .9rem; }
.ap-plan-table tbody tr:nth-child(even) td { background: #e7e9ea; }
.ap-course-code-cell { color: #03a4c0 !important; font-weight: 800; direction: ltr; text-align: right; }
.ap-course-type-cell { color: #b68a34 !important; }
.ap-plan-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 30px; padding: 25px 4px 0; color: #304950; font-weight: 600; }
.ap-plan-summary span:first-child { color: #08a5c0; }

@media (max-width: 991.98px) {
    .ap-hero { min-height: 500px; }
    .ap-split { grid-template-columns: 1fr; gap: 34px; }
    .ap-split--image-first .ap-split-media, .ap-split--copy-first .ap-split-media { order: 1; }
    .ap-split--image-first .ap-split-copy, .ap-split--copy-first .ap-split-copy { order: 2; }
    .ap-split-media, .ap-split-media img { min-height: 340px; }
}
@media (max-width: 767.98px) {
    .ap-hero { min-height: 420px; }
    .ap-events-grid { grid-template-columns: 1fr; gap: 36px; }
    .ap-split-media, .ap-split-media img { min-height: 270px; }
    .ap-plan-tab { padding: 13px 18px; }
    .ap-plan-table th, .ap-plan-table td { padding: 14px 12px; }
}

/* ================================================
   Program Search Results Page (psr)
   ================================================ */

/* ── Hero Strip ── */
.psr-hero {
    position: relative;
    min-height: 220px;
    padding-top: 140px;
    padding-bottom: 36px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.psr-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a6e 55%, #0d2a52 100%);
}

.psr-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 90% 50%, rgba(255,255,255,.04) 0%, transparent 70%),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgba(255,255,255,.02) 40px,
            rgba(255,255,255,.02) 41px
        );
}

.psr-hero-content {
    position: relative;
    z-index: 2;
}

.psr-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.6);
    margin-bottom: 14px;
}

.psr-breadcrumb a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: color .2s;
}

.psr-breadcrumb a:hover { color: #fff; }

.psr-bc-sep { font-size: 11px; color: rgba(255,255,255,.35); }

.psr-hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.psr-hero-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.12);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    backdrop-filter: blur(6px);
}

.psr-hero-sub {
    font-size: 14px;
    color: rgba(255,255,255,.65);
    margin: 0;
}

.psr-hero-sub strong { color: rgba(255,255,255,.9); }

@media (max-width: 767.98px) {
    .psr-hero { padding-top: 110px; padding-bottom: 24px; min-height: 180px; }
    .psr-hero-title { font-size: 1.4rem; }
    .psr-hero-icon { width: 36px; height: 36px; font-size: 1.1rem; }
}

.psr-page {
    min-height: 70vh;
    background: #f8fafc;
}

/* Search bar at top */
.psr-search-bar {
    background: #fff;
    border-bottom: 1px solid #e8ecef;
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.psr-search-form {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.psr-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 280px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 0 14px;
    height: 52px;
    background: #f8fafc;
    transition: border-color .2s;
}
.psr-input-wrap:focus-within {
    border-color: #00adca;
    box-shadow: 0 0 0 3px rgba(0,173,202,.1);
}
.psr-input-wrap i {
    color: #9ca3af;
    margin-left: 8px;
    flex-shrink: 0;
}
.psr-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    color: #1e293b;
    text-align: right;
    direction: rtl;
}

.psr-radios {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.psr-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    user-select: none;
}
.psr-radio input[type="radio"] {
    accent-color: #00adca;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.psr-btn {
    background: #00adca;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .2s, transform .2s;
}
.psr-btn:hover {
    background: #0096b0;
    color: #fff;
    transform: translateY(-1px);
}

/* Results section */
.psr-results-section {
    padding: 40px 0 60px;
}

.psr-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    font-size: 15px;
    color: #6b7280;
}
.psr-count { font-weight: 700; color: #1e293b; }
.psr-query strong { color: #00adca; }

/* Degree badges */
.psr-badge, .psr-degree-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.psr-badge-bachelor, .psr-degree-badge.psr-badge-bachelor {
    background: #dbeafe; color: #1d4ed8;
}
.psr-badge-masters, .psr-degree-badge.psr-badge-masters {
    background: #ede9fe; color: #6d28d9;
}
.psr-badge-general, .psr-degree-badge.psr-badge-general {
    background: #dcfce7; color: #15803d;
}

/* Result card */
.psr-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s;
}
.psr-card:hover {
    box-shadow: 0 12px 40px rgba(0,173,202,.18);
    transform: translateY(-4px);
}
.psr-card-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.psr-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.psr-card:hover .psr-card-img img {
    transform: scale(1.04);
}
.psr-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #0a1f3c 0%, #0d3a47 100%);
    min-height: 90px;
}
.psr-card-icon img {
    max-height: 56px;
    max-width: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.psr-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.psr-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
}
.psr-card-college {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.psr-card-desc {
    font-size: 13px;
    color: #4b5563;
    margin: 0;
    line-height: 1.6;
    flex: 1;
}
.psr-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.psr-link-college, .psr-link-plan {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background .2s, color .2s;
}
.psr-link-college {
    color: #00adca;
    background: #e8f7fa;
}
.psr-link-college:hover { background: #00adca; color: #fff; }
.psr-link-plan {
    color: #6b7280;
    background: #f3f4f6;
}
.psr-link-plan:hover { background: #e5e7eb; color: #374151; }

/* Empty state */
.psr-empty {
    text-align: center;
    padding: 80px 0;
    color: #9ca3af;
}
.psr-empty i { font-size: 3rem; display: block; margin-bottom: 16px; }
.psr-empty p { font-size: 1.1rem; margin-bottom: 20px; }

@media (max-width: 767.98px) {
    .psr-search-form { flex-direction: column; align-items: stretch; }
    .psr-input-wrap { flex: 1 1 auto; }
    .psr-radios { gap: 12px; }
    .psr-btn { width: 100%; justify-content: center; }
}


/* ============================================================
   search.php
   ============================================================ */

/* -- Hero -- */
.srch-hero {
    position: relative;
    background-color: #0d1f35;
    background-image: linear-gradient(135deg, #0d1f35 0%, #1a3a5c 50%, #0d2e47 100%);
    overflow: hidden;
    min-height: 320px;
    /*background: linear-gradient(to bottom, rgba(10,20,40,.55) 0%, rgba(10,20,40,.85) 100%);*/

}

.srch-hero .container {
    position: relative;
    z-index: 1;
    padding-top: 160px;
    padding-bottom: 50px;
}
.srch-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 28px;
    direction: rtl;
}
.srch-breadcrumb a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: color .2s;
}
.srch-breadcrumb a:hover { color: #D0A968; }
.srch-breadcrumb i { font-size: .75rem; }
.srch-breadcrumb span { color: rgba(255,255,255,.9); }
.srch-hero-content { margin-bottom: 32px; }
.srch-hero-label {
    font-size: .85rem;
    font-weight: 600;
    color: #D0A968;
    margin-bottom: 10px;
    direction: rtl;
}
.srch-hero-term {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.25;
    direction: rtl;
}
.srch-hero-count {
    font-size: 1rem;
    color: rgba(255,255,255,.75);
    margin: 0;
    direction: rtl;
}
.srch-hero-count strong { color: #D0A968; font-weight: 700; }
.srch-hero-count--empty { color: rgba(255,255,255,.55); }
.srch-hero-form { max-width: 660px; }
.srch-hero-form-inner {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .25s;
}
.srch-hero-form-inner:focus-within { border-color: #D0A968; }
.srch-form-icon {
    color: rgba(255,255,255,.5);
    padding: 0 14px 0 0;
    font-size: 1.1rem;
    flex-shrink: 0;
    pointer-events: none;
}
.srch-hero-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    padding: 16px 18px 16px 0;
    direction: rtl;
}
.srch-hero-input::placeholder { color: rgba(255,255,255,.45); }
.srch-hero-btn {
    background: #D0A968;
    color: #fff;
    border: none;
    padding: 0 26px;
    height: 100%;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    min-height: 54px;
    transition: background .2s;
}
.srch-hero-btn:hover { background: #b88f50; }

/* -- Body -- */
.srch-body { padding: 50px 0 80px; }
.srch-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eef0f3;
}
.srch-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 30px;
    border: 1.5px solid #e0e4ea;
    background: #fff;
    color: #4a5568;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .22s;
}
.srch-filter-btn:hover { border-color: #D0A968; color: #D0A968; }
.srch-filter-btn.active { background: #D0A968; border-color: #D0A968; color: #fff; }
.srch-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 20px;
    background: rgba(0,0,0,.12);
    font-size: .75rem;
    font-weight: 700;
    padding: 0 6px;
}
.srch-filter-btn.active .srch-filter-count { background: rgba(255,255,255,.25); }

/* -- Cards -- */
.srch-results { display: flex; flex-direction: column; gap: 20px; }
.srch-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,.06);
    border: 1px solid #eef0f4;
    transition: box-shadow .25s, transform .25s;
    direction: rtl;
}
.srch-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.12); transform: translateY(-2px); }
.srch-card-img-wrap {
    width: 220px;
    flex-shrink: 0;
    display: block;
    overflow: hidden;
    background: #e8ecf2;
}
.srch-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
.srch-card:hover .srch-card-img-wrap img { transform: scale(1.04); }
.srch-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8ecf2, #d4dae6);
}
.srch-card-img-placeholder i { font-size: 2.8rem; color: #b0bac8; }
.srch-card-body {
    flex: 1;
    padding: 24px 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.srch-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.srch-card-type {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    background: #1a3a5c;
    color: #fff;
}
.srch-type-post             { background: #1a3a5c; }
.srch-type-page             { background: #4a6278; }
.srch-type-academic_program { background: #065f46; }
.srch-type-college          { background: #7c3aed; }
.srch-card-cat {
    font-size: .8rem;
    font-weight: 600;
    color: #D0A968;
    border: 1px solid #D0A968;
    padding: 2px 10px;
    border-radius: 20px;
}
.srch-card-date {
    font-size: .8rem;
    color: #8a95a3;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: auto;
}
.srch-card-title { font-size: 1.15rem; font-weight: 800; margin: 0; line-height: 1.45; }
.srch-card-title a { color: #1e293b; text-decoration: none; transition: color .2s; }
.srch-card-title a:hover { color: #D0A968; }
.srch-card-excerpt {
    font-size: .9rem;
    color: #5a6475;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.srch-card-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #D0A968;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    transition: color .2s, gap .2s;
}
.srch-card-more:hover { color: #b88f50; gap: 11px; }
.srch-card-more i { font-size: 1.15rem; }

/* -- Filter empty -- */
.srch-filter-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 50px 0;
    color: #aab;
    font-size: 1rem;
    text-align: center;
}
.srch-filter-empty i { font-size: 2.5rem; }

/* -- Pagination -- */
.srch-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}
.srch-pagination a,
.srch-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid #dde1e8;
    color: #333;
    background: #fff;
    padding: 0 10px;
    transition: background .2s, color .2s, border-color .2s;
}
.srch-pagination a:hover { background: #D0A968; color: #fff; border-color: #D0A968; }
.srch-pagination .current { background: #D0A968; color: #fff; border-color: #D0A968; }

/* -- No results -- */
.srch-empty {
    text-align: center;
    padding: 80px 20px;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.srch-empty-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f4fa, #e4e9f5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.srch-empty-icon i { font-size: 2.4rem; color: #8a95a8; }
.srch-empty-title { font-size: 1.5rem; font-weight: 800; color: #1e293b; margin: 0; }
.srch-empty-desc { color: #5a6475; font-size: 1rem; margin: 0; }
.srch-empty-desc strong { color: #1e293b; }
.srch-empty-tips {
    list-style: none;
    padding: 18px 22px;
    margin: 0;
    text-align: right;
    color: #6a7585;
    font-size: .9rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: stretch;
    background: #f7f8fb;
    border-radius: 12px;
}
.srch-empty-tips li { display: flex; align-items: center; gap: 8px; }
.srch-empty-tips i { color: #00a2b2; font-size: 1rem; }
.srch-empty-form {
    display: flex;
    border: 1.5px solid #dde1e8;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}
.srch-empty-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px 18px;
    font-family: inherit;
    font-size: .95rem;
    color: #1e293b;
    background: #fff;
    direction: rtl;
}
.srch-empty-btn {
    background: #1a3a5c;
    color: #fff;
    border: none;
    padding: 0 22px;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background .2s;
}
.srch-empty-btn:hover { background: #D0A968; }
.srch-back-home {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #8a95a8;
    font-size: .9rem;
    text-decoration: none;
    transition: color .2s;
}
.srch-back-home:hover { color: #D0A968; }

/* -- Responsive -- */
@media (max-width: 767px) {
    .srch-hero .container { padding-top: 120px; padding-bottom: 36px; }
    .srch-hero-term { font-size: 1.7rem; }
    .srch-hero-btn { padding: 0 16px; font-size: .85rem; min-height: 48px; }
    .srch-card { flex-direction: column; }
    .srch-card-img-wrap { width: 100%; height: 200px; order: 0; }
    .srch-card-body { padding: 18px; }
    .srch-card-date { margin-right: 0; }
}
@media (max-width: 480px) {
    .srch-filters { gap: 8px; }
    .srch-filter-btn { padding: 6px 14px; font-size: .82rem; }
}

/* ============================================================
   Search Modal
   ============================================================ */

body.srch-modal-open { overflow: hidden; }

/* Overlay */
.srch-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 16px 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
}
.srch-modal.is-open {
    opacity: 1;
    pointer-events: all;
}
.srch-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.50);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Wrap */
.srch-modal-wrap {
    position: relative;
    width: 100%;
    max-width: 700px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0,0,0,.16), 0 0 0 1px rgba(208,169,104,.10);
    padding: 0;
    direction: rtl;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(-20px) scale(.98);
    transition: transform .30s cubic-bezier(.22,.9,.36,1);
}
.srch-modal.is-open .srch-modal-wrap { transform: translateY(0) scale(1); }
.srch-modal-wrap::-webkit-scrollbar { width: 4px; }
.srch-modal-wrap::-webkit-scrollbar-track { background: transparent; }
.srch-modal-wrap::-webkit-scrollbar-thumb { background: #D0A968; border-radius: 4px; }

/* Header row — يحتوي زر الإغلاق */
.srch-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #f1f5f9;
}
.srch-modal-title {
    font-size: .9rem;
    font-weight: 700;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 7px;
}
.srch-modal-title i { color: #D0A968; }

/* Close */
.srch-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .9rem;
    flex-shrink: 0;
    transition: background .2s, color .2s, border-color .2s;
}
.srch-modal-close:hover {
    background: #fef3e2;
    border-color: #D0A968;
    color: #D0A968;
}

/* Input area */
.srch-modal-input-area { padding: 18px 22px 0; }

/* Input row */
.srch-modal-input-row {
    display: flex;
    align-items: center;
    background: #f4f6fb;
    border: 1.5px solid #dde1ea;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .22s, box-shadow .22s;
}
.srch-modal-input-row:focus-within {
    border-color: #D0A968;
    box-shadow: 0 0 0 3px rgba(208,169,104,.12);
    background: #fff;
}
.srch-modal-search-icon {
    color: #94a3b8;
    font-size: 1.15rem;
    padding: 0 14px 0 8px;
    flex-shrink: 0;
    pointer-events: none;
}
.srch-modal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #1e293b;
    font-family: inherit;
    font-size: 1.05rem;
    padding: 16px 4px 16px 0;
    min-width: 0;
}
.srch-modal-input::placeholder { color: #b0bac8; }
.srch-modal-go-btn {
    background: #1a3a5c;
    color: #fff;
    border: none;
    padding: 0 22px;
    align-self: stretch;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s;
}
.srch-modal-go-btn:hover { background: #D0A968; }

/* Body */
.srch-modal-body { padding: 16px 22px 20px; display: flex; flex-direction: column; gap: 4px; }

/* Section head */
.srch-modal-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.srch-modal-sec-label {
    font-size: .78rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: .06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}
.srch-modal-sec-label i { font-size: .85rem; }
.srch-hist-clear {
    font-size: .76rem;
    color: #b0bac8;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    transition: color .2s;
}
.srch-hist-clear:hover { color: #D0A968; }

/* History chips */
.srch-hist-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
}
.srch-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-family: inherit;
    font-size: .82rem;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
    white-space: nowrap;
}
.srch-chip:hover { background: #fef3e2; border-color: #D0A968; color: #b88f50; }
.srch-chip i:first-child { font-size: .75rem; color: #94a3b8; }
.srch-chip-del {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #e2e8f0;
    font-size: .65rem;
    color: #64748b;
    transition: background .2s, color .2s;
}
.srch-chip-del:hover { background: #D0A968; color: #fff; }

/* Spinner */
.srch-modal-spinner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    color: #94a3b8;
    font-size: .88rem;
}
.srch-spin-ring {
    width: 20px;
    height: 20px;
    border: 2.5px solid #e2e8f0;
    border-top-color: #D0A968;
    border-radius: 50%;
    animation: srchSpin .7s linear infinite;
    flex-shrink: 0;
}
@keyframes srchSpin { to { transform: rotate(360deg); } }

/* Results */
.srch-res-total { font-size: .76rem; color: #D0A968; font-weight: 700; }
.srch-res-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.srch-res-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .18s, border-color .18s;
}
.srch-res-item:hover { background: #faf8f4; border-color: rgba(208,169,104,.2); }
.srch-res-thumb {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}
.srch-res-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.srch-res-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}
.srch-res-thumb--empty i { font-size: 1.3rem; color: #cbd5e1; }
.srch-res-info { flex: 1; min-width: 0; }
.srch-res-title {
    font-size: .93rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .18s;
}
.srch-res-item:hover .srch-res-title { color: #D0A968; }
.srch-hl { background: rgba(208,169,104,.18); color: #a8772c; border-radius: 3px; padding: 0 2px; font-style: normal; }
.srch-res-meta { display: flex; align-items: center; gap: 8px; }
.srch-res-badge {
    font-size: .68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(208,169,104,.12);
    color: #b88f50;
    letter-spacing: .03em;
}
.srch-res-date { font-size: .72rem; color: #94a3b8; display: flex; align-items: center; gap: 4px; }
.srch-res-arrow { font-size: 1.4rem; color: #cbd5e1; flex-shrink: 0; transition: color .18s, transform .18s; }
.srch-res-item:hover .srch-res-arrow { color: #D0A968; transform: translateX(-3px); }

/* View all */
.srch-view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    border-radius: 12px;
    background: #fef9f0;
    border: 1.5px solid rgba(208,169,104,.35);
    color: #b88f50;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.srch-view-all-btn:hover { background: rgba(208,169,104,.14); border-color: #D0A968; color: #9a7540; }
.srch-view-all-btn i { font-size: 1.15rem; }

/* Empty */
.srch-modal-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 0 8px;
    text-align: center;
}
.srch-modal-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.srch-modal-empty-icon i { font-size: 1.5rem; color: #94a3b8; }
.srch-modal-empty p { color: #64748b; font-size: .93rem; margin: 0; }
.srch-modal-empty strong { color: #1e293b; }
.srch-modal-empty small { color: #b0bac8; font-size: .8rem; }

/* Keyboard hint */
.srch-modal-hint {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: .73rem;
    color: #cbd5e1;
}
.srch-modal-hint kbd {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-family: inherit;
    font-size: .7rem;
    color: #94a3b8;
}

/* Search button in header */
button.search-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #fff;
    line-height: 1;
}

/* Responsive */
@media (max-width: 575px) {
    .srch-modal { padding: 60px 10px 16px; }
    .srch-modal-wrap { padding: 22px 16px 16px; border-radius: 18px; }
    .srch-modal-input { font-size: 1rem; }
    .srch-modal-go-btn { padding: 0 16px; }
    .srch-modal-hint { display: none; }
}