/******************
    User custom CSS
    ---------------

    In this file you can add your own custom CSS
    It will be loaded last, so you can override any other property.
    Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/


/******************
    User custom CSS
    ---------------

    In this file you can add your own custom CSS
    It will be loaded last, so you can override any other property.
    Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/

/* --- تنسيقات الترويسة (Hero Header) --- */
.custom-hero-header {
    background: linear-gradient(135deg, #003366 0%, #00509e 100%);
    color: #ffffff;
    padding: 50px 20px 80px 20px;
    text-align: center;
}
.custom-hero-header h1 {
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.custom-hero-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* --- تنسيقات حاوية المحتوى الرئيسية --- */
.main-content-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.08);
    margin-top: -50px;
    padding: 30px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
    overflow: hidden; 
}

/* --- إصلاح مشكلة الصور والشعارات الكبيرة (مثل شعار IMAS) --- */
.main-content-card img, 
.outerframe img,
.survey-description img {
    max-width: 100% !important; 
    height: auto !important;
    max-height: 250px !important; /* سيمنع الشعار من أن يصبح عملاقاً */
    object-fit: contain; 
    display: block;
    margin: 15px auto !important; 
}

/* تكبير وتوسيط اسم النظام */
.main-content-card span {
    display: block;
    text-align: center;
    font-size: 1.4rem;
    color: #003366;
    font-weight: bold;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* --- تحويل قائمة الاستبيانات إلى بطاقات (Cards) احترافية --- */
.main-content-card ul {
    list-style: none !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.main-content-card ul li {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    width: 100%;
    max-width: 320px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.main-content-card ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    border-color: #3498db;
}
.main-content-card ul li a {
    display: block;
    padding: 30px 20px;
    text-align: center;
    color: #1a252f;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
}
.main-content-card ul li a::before {
    content: '\f044'; /* أيقونة القلم بجانب كل استبيان */
    font-family: 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    display: block;
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

/* --- تصميم الفوتر الاحترافي --- */
.professional-footer {
    background-color: #1a252f;
    color: #ecf0f1;
    padding: 60px 0 0 0;
    margin-top: auto; 
}
.professional-footer .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}
.professional-footer .col-custom {
    flex: 1 1 300px; 
    padding: 0 15px;
    margin-bottom: 30px;
}
.professional-footer h4 {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}
.professional-footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0; 
    width: 40px;
    height: 3px;
    background-color: #3498db;
}
html[dir="ltr"] .professional-footer h4::after {
    left: 0;
    right: auto;
}
.footer-logo {
    max-width: 100px !important;
    height: auto;
    margin-bottom: 15px;
    background: #ffffff;
    padding: 5px;
    border-radius: 6px;
}
.professional-footer p, .professional-footer ul li a {
    line-height: 1.8;
    color: #bdc3c7;
    font-size: 0.95rem;
    text-decoration: none;
}
.professional-footer ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}
.professional-footer ul li { 
    margin-bottom: 12px; 
}
.professional-footer ul li a:hover { 
    color: #3498db; 
}
.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #bdc3c7;
}
.feature-item i { 
    margin-left: 15px; 
    font-size: 1.2rem; 
    color: #3498db; 
}
html[dir="ltr"] .feature-item i { 
    margin-left: 0; 
    margin-right: 15px; 
}

/* شريط الحقوق السفلي */
.footer-bottom {
    background-color: #11181f;
    padding: 20px 0;
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid #2c3e50;
}
.footer-bottom p { 
    margin: 0; 
    color: #7f8c8d; 
}





/* =========================================================
   IMES PROFESSIONAL FOOTER
   Emirates International University
   ========================================================= */

.professional-footer {
    position: relative;
    overflow: visible;

    background: #022055;
    color: #ffffff;

    /*
       هذه المسافة تسمح للشعار بأن يتداخل
       بين محتوى الصفحة والفوتر
    */
    margin-top: 90px;
}


/* =========================================================
   الخط الذهبي أعلى الفوتر
   ========================================================= */

.professional-footer::before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: linear-gradient(
        90deg,
        #8C6A12 0%,
        #C9A227 30%,
        #E6C65C 50%,
        #C9A227 70%,
        #8C6A12 100%
    );

    z-index: 1;
}


/* =========================================================
   الشعار المتداخل بين الصفحة والفوتر
   ========================================================= */

.footer-floating-logo {
    position: absolute;

    /*
       نصف الشعار تقريباً فوق الفوتر
       ونصفه داخله
    */
    top: -72px;

    left: 50%;
    transform: translateX(-50%);

    z-index: 20;

    width: 144px;
    height: 144px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;

    border: 4px solid #C9A227;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.24),
        0 0 0 7px rgba(255, 255, 255, 0.95),
        0 0 0 9px rgba(201, 162, 39, 0.25);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* دائرة داخلية للشعار */

.footer-floating-logo-inner {
    width: 124px;
    height: 124px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #ffffff;
}


/* صورة الشعار */

.footer-floating-logo img {
    display: block;

    width: 112px !important;
    height: 112px !important;

    max-width: 112px !important;
    max-height: 112px !important;

    object-fit: contain;

    padding: 4px;

    margin: 0 !important;

    background: transparent !important;
}


/* تأثير Hover بسيط */

.footer-floating-logo:hover {
    transform: translateX(-50%) translateY(-4px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.30),
        0 0 0 7px rgba(255, 255, 255, 1),
        0 0 0 10px rgba(201, 162, 39, 0.32);
}


/* =========================================================
   الجزء الرئيسي للفوتر
   ========================================================= */

.footer-main {
    position: relative;

    padding: 105px 0 45px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(201, 162, 39, 0.10) 0%,
            rgba(201, 162, 39, 0.00) 28%
        ),
        linear-gradient(
            135deg,
            #022055 0%,
            #032B6C 50%,
            #022055 100%
        );
}


/* =========================================================
   الأعمدة الثلاثة
   ========================================================= */

.professional-footer .row {
    display: flex;
    flex-wrap: wrap;

    margin-right: -15px;
    margin-left: -15px;
}


.professional-footer .col-custom {
    flex: 1 1 33.333%;

    min-width: 280px;

    padding: 0 30px;
    margin-bottom: 25px;
}


/*
   حدود خفيفة بين الأعمدة
   في الشاشات الكبيرة
*/

.professional-footer .col-custom:not(:last-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.10);
}


/* اتجاه LTR */

html[dir="ltr"]
.professional-footer
.col-custom:not(:last-child) {
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.10);
}


/* =========================================================
   عناوين الأعمدة
   ========================================================= */

.professional-footer h4 {
    position: relative;

    color: #ffffff;

    font-size: 1.13rem;
    font-weight: 700;

    line-height: 1.6;

    margin: 0 0 25px;

    padding-bottom: 13px;
}


.professional-footer h4::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;

    width: 50px;
    height: 3px;

    border-radius: 3px;

    background: linear-gradient(
        90deg,
        #C9A227,
        #E6C65C
    );
}


html[dir="ltr"] .professional-footer h4::after {
    right: auto;
    left: 0;
}


/* =========================================================
   اسم IMES الإنجليزي في العمود الأول
   ========================================================= */

.footer-system-name-en {
    color: #E6C65C;

    font-size: 0.80rem;
    font-weight: 700;

    line-height: 1.6;

    margin-top: -14px;
    margin-bottom: 18px;
}


/* =========================================================
   وصف النظام
   ========================================================= */

.footer-description {
    color: #D9E2EF !important;

    font-size: 0.91rem !important;

    line-height: 2 !important;

    margin: 0 !important;
}


/* =========================================================
   مميزات النظام
   ========================================================= */

.feature-item {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 18px;
}


.feature-icon {
    flex: 0 0 44px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(201, 162, 39, 0.12);

    border:
        1px solid rgba(230, 198, 92, 0.40);
}


.feature-icon i {
    margin: 0 !important;

    color: #E6C65C;

    font-size: 1.12rem;
}


.feature-text {
    flex: 1;
}


.feature-text strong {
    display: block;

    color: #ffffff;

    font-size: 0.94rem;
    font-weight: 700;

    margin-bottom: 3px;
}


.feature-text small {
    display: block;

    color: #AFC0D5;

    font-size: 0.77rem;

    line-height: 1.6;
}


/* =========================================================
   الروابط المهمة
   ========================================================= */

.footer-links ul {
    list-style: none;

    padding: 0;
    margin: 0;
}


.footer-links ul li {
    margin-bottom: 9px;
}


.footer-links ul li a {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 10px 12px;

    border-radius: 9px;

    color: #D9E2EF;

    font-size: 0.91rem;

    text-decoration: none;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.footer-link-icon {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: rgba(201, 162, 39, 0.12);

    color: #E6C65C;
}


.footer-links ul li a:hover {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.07);

    transform: translateX(-4px);
}


html[dir="ltr"]
.footer-links ul li a:hover {
    transform: translateX(4px);
}


/* =========================================================
   شريط الحقوق السفلي
   ========================================================= */

.footer-bottom {
    padding: 18px 15px;

    text-align: center;

    background: #011536;

    border-top:
        1px solid rgba(255, 255, 255, 0.11);
}


.footer-bottom p {
    margin: 0 0 5px;

    color: #ffffff;

    font-size: 0.84rem;
}


.footer-bottom p strong {
    color: #E6C65C;
}


.footer-bottom span {
    display: block;

    color: #91A5BE;

    font-size: 0.76rem;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 991px) {

    .professional-footer .col-custom {
        flex: 1 1 100%;

        border: none !important;

        padding: 0 25px;

        margin-bottom: 35px;
    }

}


@media (max-width: 768px) {

    .professional-footer {
        margin-top: 75px;
    }


    .footer-floating-logo {
        width: 124px;
        height: 124px;

        top: -62px;
    }


    .footer-floating-logo-inner {
        width: 106px;
        height: 106px;
    }


    .footer-floating-logo img {
        width: 96px !important;
        height: 96px !important;

        max-width: 96px !important;
        max-height: 96px !important;
    }


    .footer-main {
        padding-top: 90px;
        padding-bottom: 25px;
    }


    .professional-footer h4 {
        text-align: center;
    }


    .professional-footer h4::after {
        right: 50% !important;
        left: auto !important;

        transform: translateX(50%);
    }


    html[dir="ltr"]
    .professional-footer h4::after {
        left: 50% !important;
        right: auto !important;

        transform: translateX(-50%);
    }


    .footer-system-name-en,
    .footer-description {
        text-align: center;
    }

}






/* =====================================================
   IMES - Primary Buttons
   اللون الرئيسي للأزرار
   ===================================================== */

.btn-primary {
    background-color: #022055 !important;
    border-color: #022055 !important;
    color: #ffffff !important;
}

/* عند تمرير الماوس */
.btn-primary:hover {
    background-color: #031A45 !important;
    border-color: #031A45 !important;
    color: #ffffff !important;
}

/* عند التركيز */
.btn-primary:focus,
.btn-primary:focus-visible {
    background-color: #022055 !important;
    border-color: #022055 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.25rem rgba(2, 32, 85, 0.25) !important;
}

/* عند الضغط على الزر */
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background-color: #01183F !important;
    border-color: #01183F !important;
    color: #ffffff !important;
}

/* الزر المعطل */
.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #022055 !important;
    border-color: #022055 !important;
    color: #ffffff !important;
    opacity: 0.65;
}







/* ==========================================================
   IMES HOME / SURVEY PAGE
   Emirates International University
   ========================================================== */

:root {
    --imes-navy: #022055;
    --imes-blue: #022E77;

    --imes-gold: #C9A227;
    --imes-gold-light: #E6C65C;

    --imes-red: #EF0D17;

    --imes-bg: #F6F8FC;
    --imes-border: #E2E8F0;
    --imes-text: #27364A;
    --imes-muted: #738096;

    --imes-white: #FFFFFF;
}


/* ==========================================================
   General Page
   ========================================================== */

body {
    background: var(--imes-bg);
}

.imes-page {
    flex: 1 0 auto;
    overflow: hidden;
}



/* ==========================================================
   BRAND AREA
   ========================================================== */

.imes-brand-section {
    background: #ffffff;

    padding: 25px 20px 18px;

    position: relative;

    border-bottom: 1px solid #EDF0F5;
}


.imes-brand-image {
    text-align: center;
}


.imes-brand-image img {
    display: block;

    width: 950px;

    max-width: 95% !important;

    height: auto !important;

    max-height: none !important;

    margin: 0 auto !important;

    object-fit: contain;
}


/* IMES Badge */

.imes-acronym {
    text-align: center;
    margin-top: 0px;
    position: relative;
    z-index: 2;
}

.imes-acronym span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 118px;

    padding: 7px 24px;

    border-radius: 50px;

    background:
        linear-gradient(
            135deg,
            #022055,
            #022E77
        );

    color: #ffffff;

    font-size: 1.05rem;

    font-weight: 900;

    letter-spacing: 4px;

    box-shadow:
        0 8px 20px rgba(2, 32, 85, 0.18);

    border-bottom: 3px solid var(--imes-gold);
}



/* ==========================================================
   HERO
   ========================================================== */

.imes-hero {
    position: relative;

    overflow: visible;

    padding:
        65px 20px
        95px;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(230, 198, 92, 0.16),
            transparent 30%
        ),

        radial-gradient(
            circle at 90% 100%,
            rgba(255,255,255,0.09),
            transparent 25%
        ),

        linear-gradient(
            135deg,
            #01183F 0%,
            #022055 45%,
            #022E77 100%
        );
}


/* Gold Line */

.imes-hero::before {
    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            #8C6A12,
            #C9A227,
            #E6C65C,
            #C9A227,
            #8C6A12
        );
}



/* Background decorations */

.imes-hero-decoration {
    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.08);
}


.imes-decoration-one {
    width: 380px;
    height: 380px;

    top: -210px;
    right: -110px;
}


.imes-decoration-two {
    width: 240px;
    height: 240px;

    bottom: -130px;
    left: -60px;

    border-color:
        rgba(201,162,39,0.15);
}



/* Hero Content */

.imes-hero-content {
    position: relative;

    z-index: 2;

    max-width: 1050px;

    margin: 0 auto;

    text-align: center;
}


.imes-eyebrow {
    display: inline-block;

    padding: 8px 18px;

    margin-bottom: 18px;

    border-radius: 50px;

    background:
        rgba(255,255,255,0.08);

    border:
        1px solid rgba(255,255,255,0.16);

    color: var(--imes-gold-light);

    font-weight: 700;

    font-size: 0.92rem;
}


.imes-hero h1 {
    color: #ffffff;

    font-size: clamp(
        2rem,
        4vw,
        3.25rem
    );

    line-height: 1.55;

    font-weight: 900;

    margin: 0 auto 18px;

    max-width: 1050px;
}


.imes-hero h1 span {
    display: block;

    color: var(--imes-gold-light);
}


.imes-hero-en {
    max-width: 930px;

    margin:
        0 auto;

    color: rgba(255,255,255,0.88);

    font-size: 1rem;

    line-height: 1.8;

    font-weight: 600;
}



/* ==========================================================
   FEATURE STRIP
   ========================================================== */

.imes-feature-strip {
    position: relative;

    z-index: 3;

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 16px;

    max-width: 950px;

    margin:
        45px auto
        -145px;
}


.imes-feature-pill {
    flex: 1 1 240px;

    max-width: 290px;

    min-height: 92px;

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 17px 19px;

    border-radius: 15px;

    background:
        rgba(255,255,255,0.98);

    border:
        1px solid rgba(201,162,39,0.28);

    box-shadow:
        0 12px 35px rgba(0,0,0,0.15);

    color: var(--imes-navy);
}


.imes-feature-pill-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            rgba(201,162,39,0.14),
            rgba(230,198,92,0.08)
        );

    color: var(--imes-gold);

    font-size: 1.25rem;
}


.imes-feature-pill strong {
    display: block;

    color: var(--imes-navy);

    font-size: 0.97rem;

    font-weight: 800;

    margin-bottom: 3px;
}


.imes-feature-pill small {
    display: block;

    color: #738096;

    font-size: 0.77rem;

    line-height: 1.4;
}



/* ==========================================================
   WELCOME
   ========================================================== */

.imes-welcome-section {
    padding:
        110px 20px
        20px;

    background:
        linear-gradient(
            180deg,
            #F7F9FC,
            #FFFFFF
        );
}


.imes-welcome-card {
    display: flex;

    align-items: center;

    gap: 25px;

    max-width: 930px;

    margin: 0 auto;

    padding: 28px 35px;

    border-radius: 18px;

    background: #ffffff;

    border: 1px solid #E6EBF2;

    box-shadow:
        0 12px 35px rgba(2,32,85,0.08);

    position: relative;

    overflow: hidden;
}


.imes-welcome-card::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 5px;
    height: 100%;

    background:
        linear-gradient(
            var(--imes-gold),
            var(--imes-gold-light)
        );
}


html[dir="ltr"]
.imes-welcome-card::before {
    right: auto;
    left: 0;
}



/* Welcome icon */

.imes-welcome-icon {
    flex: 0 0 78px;

    width: 78px;
    height: 78px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #022055,
            #022E77
        );

    color: #ffffff;

    font-size: 1.8rem;

    box-shadow:
        0 8px 20px rgba(2,32,85,0.20);

    border:
        3px solid rgba(201,162,39,0.65);
}


.imes-welcome-content {
    flex: 1;
}


.imes-university-slogan {
    display: block;

    color: var(--imes-red);

    font-size: 0.9rem;

    font-weight: 800;

    margin-bottom: 4px;
}


.imes-welcome-content h2 {
    color: var(--imes-navy);

    font-size: 1.55rem;

    font-weight: 900;

    margin: 0 0 8px;
}


.imes-welcome-content p {
    color: var(--imes-text);

    font-size: 1.05rem;

    line-height: 1.9;

    margin: 0;
}



/* ==========================================================
   Progress bar
   ========================================================== */

.imes-progress-wrapper {
    max-width: 930px;

    margin:
        20px auto
        0;

    padding:
        12px 20px;

    border-radius: 12px;

    background: #ffffff;

    border:
        1px solid #E7EBF1;

    box-shadow:
        0 6px 18px rgba(2,32,85,0.05);
}



/* ==========================================================
   CONTENT
   ========================================================== */

.imes-content-section {
    padding:
        25px 20px
        55px;

    background: #ffffff;
}


.main-content-card {
    position: relative;

    overflow: hidden;

    background: #ffffff;

    border-radius: 20px;

    border:
        1px solid #E1E7EF;

    box-shadow:
        0 15px 45px rgba(2,32,85,0.08);

    padding:
        38px;

    margin:
        0 auto;

    max-width: 1120px;
}


/* Gold accent */

.imes-card-accent {
    position: absolute;

    top: 0;
    right: 0;

    width: 100%;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            #022055,
            #C9A227,
            #E6C65C,
            #C9A227,
            #022055
        );
}



/* ==========================================================
   LimeSurvey Buttons - IMES Identity
   ========================================================== */

.btn-primary,
#ls-button-submit {
    background:
        linear-gradient(
            135deg,
            #022055,
            #022E77
        ) !important;

    border-color:
        #022055 !important;

    color:
        #ffffff !important;

    font-weight: 700;

    border-radius: 9px;

    padding-left: 25px;
    padding-right: 25px;

    box-shadow:
        0 6px 15px
        rgba(2,32,85,0.16);

    transition:
        all 0.25s ease;
}


.btn-primary:hover,
#ls-button-submit:hover {
    background:
        linear-gradient(
            135deg,
            #C9A227,
            #E6C65C
        ) !important;

    border-color:
        #C9A227 !important;

    color:
        #022055 !important;

    transform:
        translateY(-2px);

    box-shadow:
        0 9px 20px
        rgba(201,162,39,0.23);
}



/* ==========================================================
   Input / Select
   ========================================================== */

.form-control,
.form-select,
select,
textarea {
    border-radius: 9px !important;

    border-color:
        #CBD5E1 !important;

    transition:
        all 0.2s ease;
}


.form-control:focus,
.form-select:focus,
select:focus,
textarea:focus {
    border-color:
        var(--imes-gold) !important;

    box-shadow:
        0 0 0 0.20rem
        rgba(201,162,39,0.13) !important;
}



/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 991px) {

    .imes-hero {
        padding-bottom: 115px;
    }

    .imes-feature-strip {
        margin-bottom: -170px;
    }

    .imes-welcome-section {
        padding-top: 150px;
    }

}


@media (max-width: 768px) {

    .imes-brand-section {
        padding-top: 18px;
    }


    .imes-brand-image img {
        width: 96%;
    }


    .imes-hero {
        padding:
            45px 14px
            80px;
    }


    .imes-hero h1 {
        font-size: 1.75rem;
    }


    .imes-hero-en {
        font-size: 0.86rem;
    }


    .imes-feature-strip {
        margin:
            35px auto
            -210px;

        display: block;
    }


    .imes-feature-pill {
        max-width: 100%;

        margin-bottom: 10px;
    }


    .imes-welcome-section {
        padding-top: 230px;
    }


    .imes-welcome-card {
        flex-direction: column;

        text-align: center;

        padding:
            28px 20px;
    }


    .imes-welcome-card::before {
        width: 100%;
        height: 4px;
    }


    .imes-welcome-content p {
        font-size: 0.96rem;
    }


    .main-content-card {
        padding:
            25px 18px;

        border-radius: 15px;
    }

}





/* ==========================================================
   IMES SURVEY LIST PAGE
   ========================================================== */


/* ==========================================================
   منطقة الترحيب
   ========================================================== */

.imes-list-welcome-section {
    position: relative;
    z-index: 1;

    padding:
        110px 20px
        25px;

    background:
        linear-gradient(
            180deg,
            #F6F8FC 0%,
            #FFFFFF 100%
        );
}


.imes-list-welcome-card {
    position: relative;

    max-width: 930px;

    margin: 0 auto;

    padding: 28px 35px;

    display: flex;
    align-items: center;

    gap: 24px;

    background: #ffffff;

    border:
        1px solid #E4E9F1;

    border-radius: 18px;

    box-shadow:
        0 12px 35px rgba(2,32,85,0.08);

    overflow: hidden;
}


/* خط ذهبي */

.imes-list-welcome-card::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 5px;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            #C9A227,
            #E6C65C
        );
}


html[dir="ltr"]
.imes-list-welcome-card::before {
    right: auto;
    left: 0;
}


/* أيقونة */

.imes-list-welcome-icon {
    flex: 0 0 76px;

    width: 76px;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    font-size: 1.65rem;

    background:
        linear-gradient(
            135deg,
            #022055,
            #022E77
        );

    border:
        3px solid rgba(201,162,39,0.75);

    box-shadow:
        0 8px 20px rgba(2,32,85,0.18);
}


.imes-list-welcome-content {
    flex: 1;
}


.imes-list-welcome-content h2 {
    color: #022055;

    font-size: 1.5rem;

    font-weight: 900;

    margin: 2px 0 7px;
}


.imes-list-welcome-content p {
    color: #4F5E72;

    font-size: 0.98rem;

    line-height: 1.9;

    margin: 0;
}



/* ==========================================================
   قائمة الاستبيانات
   ========================================================== */

.imes-survey-list-section {
    padding:
        15px 20px
        65px;

    background: #ffffff;
}


.imes-survey-list-card {
    position: relative;

    max-width: 1120px;

    margin: 0 auto;

    padding:
        42px 38px;

    background: #ffffff;

    border:
        1px solid #E1E7EF;

    border-radius: 20px;

    box-shadow:
        0 15px 45px rgba(2,32,85,0.08);

    overflow: hidden;
}



/* ==========================================================
   عنوان القائمة
   ========================================================== */

.imes-survey-list-heading {
    max-width: 820px;

    margin:
        0 auto
        30px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    text-align: start;
}


.imes-survey-list-heading-icon {
    flex: 0 0 58px;

    width: 58px;
    height: 58px;

    border-radius: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            rgba(201,162,39,0.16),
            rgba(230,198,92,0.08)
        );

    color: #C9A227;

    border:
        1px solid rgba(201,162,39,0.30);

    font-size: 1.35rem;
}


.imes-survey-list-heading > div:last-child {
    flex: 1;
}


.imes-survey-list-heading span {
    display: block;

    color: #EF0D17;

    font-size: 0.82rem;

    font-weight: 800;

    margin-bottom: 3px;
}


.imes-survey-list-heading h2 {
    color: #022055;

    font-size: 1.55rem;

    font-weight: 900;

    line-height: 1.5;

    margin:
        0 0 5px;
}


.imes-survey-list-heading p {
    color: #738096;

    font-size: 0.90rem;

    line-height: 1.7;

    margin: 0;
}



/* ==========================================================
   Language Switcher
   ========================================================== */

.imes-language-switcher {
    display: flex;

    justify-content: center;

    margin-bottom: 28px;
}



/* ==========================================================
   Survey Grid
   ========================================================== */

.imes-survey-grid {
    list-style: none !important;

    padding: 0 !important;

    margin:
        15px 0
        10px !important;

    display: grid !important;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(270px, 1fr)
        );

    gap: 18px !important;
}



/* ==========================================================
   Survey Item
   ========================================================== */

.imes-survey-item {
    width: auto !important;

    max-width: none !important;

    margin: 0 !important;

    padding: 0 !important;

    border: none !important;

    box-shadow: none !important;

    background: transparent !important;
}


.imes-survey-link {
    position: relative;

    min-height: 185px;

    height: 100%;

    display: flex !important;

    align-items: flex-start;

    gap: 17px;

    padding:
        25px !important;

    text-align: start !important;

    color: #022055 !important;

    text-decoration: none !important;

    background: #ffffff;

    border:
        1px solid #E3E8EF;

    border-radius: 16px;

    box-shadow:
        0 7px 22px rgba(2,32,85,0.06);

    overflow: hidden;

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}


/* إزالة الأيقونة القديمة
   الموجودة في CSS السابق */

.imes-survey-link::before {
    display: none !important;
}



/* الشريط العلوي */

.imes-survey-link::after {
    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #022055,
            #C9A227,
            #E6C65C
        );

    opacity: 0;

    transition:
        opacity 0.3s ease;
}


.imes-survey-link:hover {
    transform:
        translateY(-6px);

    border-color:
        rgba(201,162,39,0.65);

    box-shadow:
        0 16px 35px
        rgba(2,32,85,0.12);
}


.imes-survey-link:hover::after {
    opacity: 1;
}



/* ==========================================================
   Survey Icon
   ========================================================== */

.imes-survey-icon {
    flex: 0 0 54px;

    width: 54px;
    height: 54px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #022055,
            #022E77
        );

    color: #ffffff;

    font-size: 1.25rem;

    border:
        2px solid rgba(201,162,39,0.65);

    box-shadow:
        0 7px 15px rgba(2,32,85,0.15);
}



/* ==========================================================
   Survey Information
   ========================================================== */

.imes-survey-info {
    flex: 1;
}


.imes-survey-label {
    display: inline-block !important;

    margin-bottom: 7px !important;

    padding:
        3px 10px;

    border-radius: 50px;

    color: #8C6A12 !important;

    background:
        rgba(201,162,39,0.10);

    font-size:
        0.70rem !important;

    font-weight:
        800 !important;
}


.imes-survey-info h3 {
    color: #022055;

    font-size: 1.07rem;

    font-weight: 800;

    line-height: 1.65;

    margin:
        0 0
        18px;
}


.imes-survey-start {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #022E77;

    font-size: 0.81rem;

    font-weight: 800;

    margin-top: auto;
}


.imes-survey-start i {
    color: #C9A227;

    transition:
        transform 0.25s ease;
}


.imes-survey-link:hover
.imes-survey-start i {
    transform:
        translateX(-4px);
}


html[dir="ltr"]
.imes-survey-link:hover
.imes-survey-start i {
    transform:
        translateX(4px);
}



/* ==========================================================
   No Surveys
   ========================================================== */

.imes-no-survey {
    grid-column:
        1 / -1;

    text-align: center;

    padding:
        50px 25px;

    background:
        #F8FAFD;

    border:
        1px dashed #CBD5E1;

    border-radius:
        15px;
}


.imes-no-survey-icon {
    width: 70px;
    height: 70px;

    margin:
        0 auto
        15px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #C9A227;

    font-size: 1.7rem;

    background:
        rgba(201,162,39,0.10);
}


.imes-no-survey h3 {
    color: #022055;

    font-weight: 800;

    font-size: 1.2rem;

    margin-bottom: 7px;
}


.imes-no-survey p {
    color: #738096;

    margin: 0;
}



/* ==========================================================
   Support Area
   ========================================================== */

.imes-survey-support {
    max-width: 650px;

    margin:
        38px auto
        0;

    padding:
        17px 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 13px;

    text-align: start;

    border-top:
        1px solid #E7EBF1;

    color: #738096;
}


.imes-survey-support-icon {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #C9A227;

    background:
        rgba(201,162,39,0.10);
}


.imes-survey-support strong {
    display: block;

    color: #022055;

    font-size: 0.88rem;

    margin-bottom: 2px;
}


.imes-survey-support p {
    font-size: 0.78rem;

    margin: 0;
}


.imes-survey-support a {
    color: #022E77;

    font-weight: 700;
}



/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 768px) {

    .imes-list-welcome-section {
        padding-top: 230px;
    }


    .imes-list-welcome-card {
        flex-direction: column;

        text-align: center;

        padding:
            27px 20px;
    }


    .imes-list-welcome-card::before {
        width: 100%;
        height: 4px;
    }


    .imes-survey-list-card {
        padding:
            30px 18px;

        border-radius: 15px;
    }


    .imes-survey-list-heading {
        flex-direction: column;

        text-align: center;
    }


    .imes-survey-grid {
        grid-template-columns:
            1fr;
    }


    .imes-survey-link {
        min-height: auto;

        padding:
            21px !important;
    }


    .imes-survey-support {
        flex-direction: column;

        text-align: center;
    }

}


/* السطر الرئيسي */
.imes-eyebrow-main {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* السطر الثاني */
.imes-eyebrow-sub {
    color: #E6C65C;
    font-weight: 800;
    font-size: 0.78rem;
    line-height: 1.5;
    margin-top: 4px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .imes-eyebrow-sub {
        font-size: 0.68rem;
    }
}


.fruity .progress-bar {
    background: linear-gradient(
        135deg,
        #022055,
        #022E77
    ) !important;

    color: #ffffff !important;
}




/* ==========================================================
   IMES FOOTER - FIVE COLUMN LAYOUT
   ========================================================== */

.professional-footer .imes-footer-grid {
    display: grid !important;

    grid-template-columns:
        1.30fr
        1fr
        1fr
        1fr
        1.15fr;

    align-items: start;

    gap: 0;

    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* الأعمدة */

.professional-footer .imes-footer-grid .col-custom {
    min-width: 0 !important;

    width: auto !important;

    flex: none !important;

    padding: 0 20px;

    margin-bottom: 0;
}


/* فواصل الأعمدة */

.professional-footer
.imes-footer-grid
.col-custom:not(:last-child) {

    border-left: none !important;
    border-right: none !important;

    border-inline-end:
        1px solid rgba(255,255,255,0.10) !important;
}



/* ==========================================================
   عناوين الأعمدة
   ========================================================== */

.professional-footer
.imes-footer-grid h4 {

    font-size: 1.02rem;

    line-height: 1.55;

    margin-bottom: 25px;
}



/* ==========================================================
   العناصر داخل الأعمدة
   ========================================================== */

.professional-footer .feature-item {

    align-items: flex-start;

    gap: 11px;

    margin-bottom: 20px;
}


.professional-footer .feature-icon {

    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    border-radius: 11px;
}


.professional-footer .feature-icon i {

    font-size: 1rem;
}


/* العنوان */

.professional-footer .feature-text strong {

    color: #ffffff;

    font-size: 0.84rem;

    line-height: 1.55;

    margin-bottom: 4px;
}


/* Subtitle */

.professional-footer .feature-text small {

    color: #AFC0D5;

    font-size: 0.71rem;

    line-height: 1.7;
}



/* ==========================================================
   روابط العمود الخامس
   ========================================================== */

.professional-footer
.footer-important-links {

    list-style: none !important;

    padding: 0 !important;

    margin: 0 !important;
}


.professional-footer
.footer-important-links li {

    margin-bottom: 8px;
}



/* الرابط */

.professional-footer
.footer-rich-link {

    display: flex !important;

    align-items: flex-start !important;

    gap: 10px;

    width: 100%;

    padding: 10px !important;

    border-radius: 10px;

    color: #ffffff !important;

    text-decoration: none !important;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}


.professional-footer
.footer-rich-link:hover {

    background:
        rgba(255,255,255,0.07);

    transform:
        translateY(-2px);
}



/* أيقونة الرابط */

.professional-footer
.footer-rich-link
.footer-link-icon {

    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        rgba(201,162,39,0.12);

    border:
        1px solid rgba(230,198,92,0.25);

    color: #E6C65C;
}



/* النص */

.footer-link-text {

    flex: 1;

    min-width: 0;
}


.footer-link-text strong {

    display: block;

    color: #ffffff;

    font-size: 0.83rem;

    font-weight: 700;

    line-height: 1.5;

    margin-bottom: 3px;
}


.footer-link-text small {

    display: block;

    color: #AFC0D5;

    font-size: 0.70rem;

    line-height: 1.6;
}



/* ==========================================================
   Technical Support Expandable Area
   ========================================================== */

.footer-support-details {

    width: 100%;
}


/* إزالة السهم الافتراضي */

.footer-support-details summary {

    list-style: none;
}


.footer-support-details summary::-webkit-details-marker {

    display: none;
}



/* سهم الفتح */

.support-toggle-icon {

    flex: 0 0 20px;

    color: #E6C65C;

    font-size: 0.9rem;

    transition:
        transform 0.25s ease;
}


.footer-support-details[open]
.support-toggle-icon {

    transform:
        rotate(180deg);
}



/* مربع معلومات التواصل */

.footer-support-panel {

    margin:
        7px 8px
        0;

    padding:
        10px;

    border-radius:
        10px;

    background:
        rgba(0,0,0,0.14);

    border:
        1px solid rgba(255,255,255,0.08);
}



/* صف التواصل */

.support-contact-row {

    display: flex !important;

    align-items: center !important;

    gap: 9px !important;

    padding:
        8px !important;

    margin-bottom:
        4px;

    border-radius:
        8px !important;

    text-decoration:
        none !important;

    color:
        #ffffff !important;
}


.support-contact-row:hover {

    background:
        rgba(255,255,255,0.07) !important;

    transform:
        none !important;
}



/* Contact icon */

.support-contact-icon {

    flex:
        0 0 30px;

    width:
        30px;

    height:
        30px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        8px;

    background:
        rgba(201,162,39,0.13);

    color:
        #E6C65C;
}


.support-contact-row strong {

    display:
        block;

    color:
        #ffffff;

    font-size:
        0.72rem;

    margin-bottom:
        1px;
}


.support-contact-row small {

    display:
        block;

    color:
        #AFC0D5;

    font-size:
        0.67rem;

    line-height:
        1.5;
}



/* ==========================================================
   Responsive
   ========================================================== */

/* شاشات متوسطة كبيرة */

/* ==========================================================
   Desktop / Medium Screens - Five Columns
   ========================================================== */

@media (min-width: 992px) {

    /* توسيع مساحة الفوتر حتى تتنفس الأعمدة الخمسة */
    .professional-footer .footer-main > .container {
        width: 97% !important;
        max-width: 1700px !important;
    }


    /* خمسة أعمدة متساوية في صف واحد */
    .professional-footer
    .imes-footer-grid {

        grid-template-columns:
            repeat(5, 1fr) !important;

        gap: 0;
    }


    /* تقليل المسافات الداخلية */
    .professional-footer
    .imes-footer-grid
    .col-custom {

        padding:
            0 12px !important;

        min-width:
            0 !important;
    }


    /* عناوين الأعمدة */
    .professional-footer
    .imes-footer-grid h4 {

        font-size:
            0.94rem;

        line-height:
            1.5;

        margin-bottom:
            20px;

        padding-bottom:
            10px;
    }


    /* العناصر داخل الأعمدة */
    .professional-footer
    .imes-footer-grid
    .feature-item {

        gap:
            9px;

        margin-bottom:
            16px;
    }


    /* تصغير الأيقونة بشكل بسيط */
    .professional-footer
    .imes-footer-grid
    .feature-icon {

        flex:
            0 0 36px;

        width:
            36px;

        height:
            36px;

        border-radius:
            10px;
    }


    .professional-footer
    .imes-footer-grid
    .feature-icon i {

        font-size:
            0.92rem;
    }


    /* عنوان كل نقطة */
    .professional-footer
    .imes-footer-grid
    .feature-text strong {

        font-size:
            0.80rem;

        line-height:
            1.5;

        margin-bottom:
            3px;
    }


    /* النص التوضيحي */
    .professional-footer
    .imes-footer-grid
    .feature-text small {

        font-size:
            0.69rem;

        line-height:
            1.6;
    }


    /* العمود الأول - وصف النظام */
    .professional-footer
    .imes-footer-grid
    .footer-description {

        font-size:
            0.78rem !important;

        line-height:
            1.75 !important;
    }


    .professional-footer
    .imes-footer-grid
    .footer-system-name-en {

        font-size:
            0.70rem;

        line-height:
            1.5;

        margin-bottom:
            14px;
    }


    /* روابط العمود الأخير */
    .professional-footer
    .imes-footer-grid
    .footer-rich-link {

        gap:
            8px;

        padding:
            8px !important;
    }


    .professional-footer
    .imes-footer-grid
    .footer-rich-link
    .footer-link-icon {

        flex:
            0 0 34px;

        width:
            34px;

        height:
            34px;
    }


    .professional-footer
    .imes-footer-grid
    .footer-link-text strong {

        font-size:
            0.78rem;
    }


    .professional-footer
    .imes-footer-grid
    .footer-link-text small {

        font-size:
            0.67rem;

        line-height:
            1.55;
    }

}
/* Tablets */

@media (max-width: 991px) {

    .professional-footer
    .imes-footer-grid {

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

}


/* Mobile */

@media (max-width: 700px) {

    .professional-footer
    .imes-footer-grid {

        grid-template-columns:
            1fr;
    }


    .professional-footer
    .imes-footer-grid
    .col-custom {

        border:
            none !important;

        border-bottom:
            1px solid
            rgba(255,255,255,0.10) !important;

        padding:
            28px 8px;
    }


    .professional-footer
    .imes-footer-grid
    .col-custom:last-child {

        border-bottom:
            none !important;
    }


    .professional-footer
    .imes-footer-grid h4 {

        text-align:
            right;
    }


    html[dir="ltr"]
    .professional-footer
    .imes-footer-grid h4 {

        text-align:
            left;
    }

}


/* ==========================================================
   IMES PUBLIC LANDING PAGE
   Measurement & Evaluation Unit
   ========================================================== */

.imes-public-section {
    position: relative;
    padding: 75px 20px;
}


/* ==========================================================
   Section Heading
   ========================================================== */

.imes-public-heading {
    max-width: 850px;
    margin: 0 auto 42px;
    text-align: center;
}

.imes-public-heading > span,
.imes-section-kicker {
    display: inline-block;
    color: #EF0D17;
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.imes-public-heading h2 {
    color: #022055;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 900;
    line-height: 1.55;
    margin: 0 0 12px;
}

.imes-public-heading p {
    color: #65748A;
    font-size: 0.96rem;
    line-height: 1.9;
    margin: 0;
}


/* ==========================================================
   INTRO
   ========================================================== */

.imes-public-intro {
    padding: 110px 20px 35px;
    background:
        linear-gradient(
            180deg,
            #F6F8FC 0%,
            #FFFFFF 100%
        );
}

.imes-public-intro-card {
    position: relative;
    max-width: 1050px;
    margin: 0 auto;
    padding: 38px 42px;
    display: flex;
    align-items: center;
    gap: 28px;
    background: #ffffff;
    border: 1px solid #E1E7EF;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(2,32,85,0.08);
    overflow: hidden;
}

.imes-public-intro-card::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background:
        linear-gradient(
            180deg,
            #C9A227,
            #E6C65C
        );
}

html[dir="ltr"] .imes-public-intro-card::before {
    right: auto;
    left: 0;
}

.imes-public-intro-icon {
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    color: #ffffff;
    font-size: 2rem;
    background:
        linear-gradient(
            135deg,
            #022055,
            #022E77
        );
    border: 3px solid rgba(201,162,39,.60);
    box-shadow: 0 10px 25px rgba(2,32,85,.18);
}

.imes-public-intro-content {
    flex: 1;
}

.imes-public-intro-content h2 {
    color: #022055;
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0 0 12px;
}

.imes-public-intro-content p {
    color: #4E5D71;
    font-size: 0.98rem;
    line-height: 2;
    margin: 0 0 9px;
}

.imes-public-intro-content strong {
    color: #022055;
}


/* ==========================================================
   STRATEGY
   ========================================================== */

.imes-strategy-section {
    background: #ffffff;
}

.imes-strategy-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.imes-strategy-card {
    position: relative;
    padding: 30px 27px;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(2,32,85,.06);
    transition: all .28s ease;
    overflow: hidden;
}

.imes-strategy-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201,162,39,.55);
    box-shadow: 0 18px 40px rgba(2,32,85,.11);
}

.imes-strategy-card::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 4px;
    width: 100%;
    background:
        linear-gradient(
            90deg,
            #022055,
            #C9A227,
            #E6C65C
        );
}

.imes-strategy-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(201,162,39,.11);
    border: 1px solid rgba(201,162,39,.26);
    color: #C9A227;
    font-size: 1.25rem;
    margin-bottom: 17px;
}

.imes-strategy-card > span {
    color: #EF0D17;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.imes-strategy-card h3 {
    color: #022055;
    font-size: 1.22rem;
    font-weight: 900;
    margin: 3px 0 10px;
}

.imes-strategy-card p,
.imes-strategy-card li {
    color: #5D6B7D;
    font-size: .86rem;
    line-height: 1.85;
}

.imes-strategy-card ul {
    padding-right: 18px;
    margin: 7px 0 0;
}

html[dir="ltr"] .imes-strategy-card ul {
    padding-right: 0;
    padding-left: 18px;
}


/* ==========================================================
   ASSESSMENT OPERATIONS
   ========================================================== */

.imes-assessment-section {
    background:
        linear-gradient(
            180deg,
            #F7F9FC,
            #FFFFFF
        );
}

.imes-assessment-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.imes-assessment-card {
    min-height: 160px;
    padding: 24px 20px;
    background: #ffffff;
    border: 1px solid #E3E8EF;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(2,32,85,.05);
    transition: all .25s ease;
}

.imes-assessment-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201,162,39,.55);
    box-shadow: 0 14px 30px rgba(2,32,85,.11);
}

.imes-assessment-card > i {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 12px;
    color: #E6C65C;
    background:
        linear-gradient(
            135deg,
            #022055,
            #022E77
        );
}

.imes-assessment-card strong {
    display: block;
    color: #022055;
    font-size: .91rem;
    font-weight: 900;
    line-height: 1.6;
    margin-bottom: 5px;
}

.imes-assessment-card small {
    display: block;
    color: #738096;
    font-size: .73rem;
    line-height: 1.65;
}


/* ==========================================================
   METHODS
   ========================================================== */

.imes-methods-section {
    background: #ffffff;
}

.imes-methods-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.imes-method-box {
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(2,32,85,.06);
}

.imes-method-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.imes-method-heading i {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #C9A227;
    background: rgba(201,162,39,.11);
}

.imes-method-heading h3 {
    margin: 0;
    color: #022055;
    font-size: 1.2rem;
    font-weight: 900;
}

.imes-method-item {
    padding: 17px 0;
    border-top: 1px solid #EDF0F4;
}

.imes-method-item:first-of-type {
    border-top: 0;
}

.imes-method-item strong {
    display: block;
    color: #022055;
    font-size: .9rem;
    margin-bottom: 5px;
}

.imes-method-item p {
    color: #68778A;
    font-size: .8rem;
    line-height: 1.8;
    margin: 0;
}


/* ==========================================================
   TOOLS
   ========================================================== */

.imes-tools-section {
    color: #ffffff;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(201,162,39,.13),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #01183F,
            #022055 50%,
            #022E77
        );
}

.imes-tools-section .imes-public-heading h2 {
    color: #ffffff;
}

.imes-tools-section .imes-public-heading p {
    color: rgba(255,255,255,.72);
}

.imes-tools-section .imes-public-heading > span {
    color: #E6C65C;
}

.imes-tools-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.imes-tool-card {
    padding: 23px 20px;
    border-radius: 15px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(6px);
    transition: all .25s ease;
}

.imes-tool-card:hover {
    background: rgba(255,255,255,.11);
    transform: translateY(-4px);
    border-color: rgba(230,198,92,.45);
}

.imes-tool-card i {
    color: #E6C65C;
    font-size: 1.25rem;
    margin-bottom: 13px;
}

.imes-tool-card strong {
    display: block;
    color: #ffffff;
    font-size: .88rem;
    margin-bottom: 5px;
}

.imes-tool-card small {
    display: block;
    color: rgba(255,255,255,.68);
    font-size: .72rem;
    line-height: 1.65;
}


/* ==========================================================
   CYCLE
   ========================================================== */

.imes-cycle-section {
    background: #F7F9FC;
}

.imes-cycle-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.imes-cycle-item {
    position: relative;
    padding: 24px 15px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #E1E7EF;
    border-radius: 16px;
}

.imes-cycle-item > span {
    position: absolute;
    top: 10px;
    right: 12px;
    color: #DDE3EC;
    font-size: 1.25rem;
    font-weight: 900;
}

html[dir="ltr"] .imes-cycle-item > span {
    right: auto;
    left: 12px;
}

.imes-cycle-item i {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #022055,
            #022E77
        );
    border: 2px solid #C9A227;
}

.imes-cycle-item strong {
    display: block;
    color: #022055;
    font-size: .86rem;
    margin-bottom: 4px;
}

.imes-cycle-item small {
    display: block;
    color: #738096;
    font-size: .68rem;
    line-height: 1.55;
}


/* ==========================================================
   BENEFICIARIES
   ========================================================== */

.imes-beneficiaries-section {
    background: #ffffff;
}

.imes-beneficiaries {
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.imes-beneficiaries > div {
    padding: 20px 10px;
    text-align: center;
    border-radius: 15px;
    border: 1px solid #E1E7EF;
    background: #ffffff;
}

.imes-beneficiaries i {
    display: block;
    color: #C9A227;
    font-size: 1.3rem;
    margin-bottom: 9px;
}

.imes-beneficiaries strong {
    color: #022055;
    font-size: .78rem;
    line-height: 1.5;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1100px) {

    .imes-assessment-grid,
    .imes-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .imes-cycle-grid,
    .imes-beneficiaries {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 768px) {

    .imes-public-section {
        padding: 55px 15px;
    }

    .imes-public-intro {
        padding: 225px 15px 25px;
    }

    .imes-public-intro-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .imes-public-intro-card::before {
        width: 100%;
        height: 4px;
    }

    .imes-public-intro-icon {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
        font-size: 1.55rem;
    }

    .imes-strategy-grid,
    .imes-methods-grid {
        grid-template-columns: 1fr;
    }

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

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

}


@media (max-width: 520px) {

    .imes-assessment-grid,
    .imes-tools-grid,
    .imes-cycle-grid,
    .imes-beneficiaries {
        grid-template-columns: 1fr;
    }

}


/* =====================================================================
   IMES MAIN SYSTEM HOME
   Emirates International University
   Measurement & Evaluation Unit
   Replace the previous compact/premium landing-page block with this one.
   ===================================================================== */

:root {
    --imes-system-navy: #022055;
    --imes-system-blue: #022E77;
    --imes-system-deep: #011536;
    --imes-system-gold: #C9A227;
    --imes-system-gold-light: #E6C65C;
    --imes-system-red: #EF0D17;
    --imes-system-text: #24364D;
    --imes-system-muted: #5E7088;
    --imes-system-line: #E1E7EF;
    --imes-system-soft: #F6F8FC;
    --imes-system-white: #FFFFFF;
    --imes-system-shadow: 0 18px 50px rgba(2,32,85,.10);
    --imes-system-shadow-soft: 0 9px 28px rgba(2,32,85,.07);
}

.imes-system-page {
    background: #fff;
    overflow-x: hidden;
}

.imes-system-page .container {
    width: 94%;
    max-width: 1420px;
}


/* =====================================================================
   HERO - SYSTEM HOME, NOT BLOG / NOT GATEWAY
   ===================================================================== */

.imes-system-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 78px 20px 68px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 0%, rgba(230,198,92,.15), transparent 27%),
        radial-gradient(circle at 90% 88%, rgba(255,255,255,.07), transparent 24%),
        linear-gradient(135deg, #010F28 0%, #022055 48%, #022E77 100%);
}

.imes-system-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #8C6A12, #C9A227, #E6C65C, #C9A227, #8C6A12);
}

.imes-system-grid-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .12;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 46px 46px;
}

.imes-system-glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    border: 1px solid rgba(230,198,92,.18);
    pointer-events: none;
}

.imes-system-glow-one {
    width: 410px;
    height: 410px;
    top: -235px;
    right: -180px;
}

.imes-system-glow-two {
    width: 260px;
    height: 260px;
    left: -120px;
    bottom: -150px;
    border-color: rgba(255,255,255,.10);
}

.imes-system-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1160px;
    margin: 0 auto;
    text-align: center;
}

.imes-system-identity-line,
.imes-system-unit-line {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.imes-system-identity-line {
    width: max-content;
    max-width: 100%;
    margin: 0 auto 8px;
    padding: 9px 17px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
}

.imes-system-identity-line i {
    color: var(--imes-system-gold-light);
    font-size: 1rem;
}

.imes-system-identity-line span {
    color: #fff;
    font-size: .97rem;
    font-weight: 900;
}

.imes-system-identity-line small {
    color: rgba(255,255,255,.73);
    font-size: .88rem;
    font-weight: 700;
}

.imes-system-unit-line {
    margin-bottom: 20px;
}

.imes-system-unit-line span {
    color: var(--imes-system-gold-light);
    font-size: .95rem;
    font-weight: 900;
}

.imes-system-unit-line small {
    color: rgba(255,255,255,.72);
    font-size: .87rem;
    font-weight: 700;
}

.imes-system-hero h1 {
    max-width: 1100px;
    margin: 0 auto;
    color: #fff;
    font-size: clamp(2.35rem, 4.1vw, 4rem);
    font-weight: 950;
    line-height: 1.35;
}

.imes-system-hero-en {
    max-width: 1040px;
    margin: 7px auto 20px;
    color: var(--imes-system-gold-light);
    font-size: clamp(1.16rem, 2vw, 1.58rem);
    font-weight: 850;
    line-height: 1.5;
}

.imes-system-hero-lead {
    max-width: 960px;
    margin: 0 auto;
    color: rgba(255,255,255,.84);
    font-size: 1.08rem;
    line-height: 2;
}


/* Hero actions */

.imes-system-actions {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.imes-system-primary-btn,
.imes-system-secondary-btn {
    border: 0;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.imes-system-primary-btn {
    min-width: 330px;
    max-width: 460px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    text-align: start;
    border-radius: 14px;
    background: linear-gradient(135deg, #D8B33D, #E6C65C);
    color: #022055;
    box-shadow: 0 13px 30px rgba(0,0,0,.19);
}

.imes-system-primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 17px 36px rgba(0,0,0,.24);
}

.imes-system-action-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(2,32,85,.11);
    font-size: 1.15rem;
}

.imes-system-action-text {
    flex: 1;
    min-width: 0;
}

.imes-system-action-text strong,
.imes-system-action-text small {
    display: block;
}

.imes-system-action-text strong {
    color: #022055;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.45;
    margin-bottom: 2px;
}

.imes-system-action-text small {
    color: rgba(2,32,85,.72);
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.45;
}

.imes-system-action-arrow {
    color: #022055;
    font-size: .95rem;
}

html[dir="ltr"] .imes-system-action-arrow {
    transform: rotate(180deg);
}

.imes-system-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 170px;
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    background: rgba(255,255,255,.07);
    color: #fff !important;
    font-size: .95rem;
    font-weight: 850;
}

.imes-system-secondary-btn:hover {
    color: #fff !important;
    background: rgba(255,255,255,.11);
    border-color: rgba(230,198,92,.45);
    transform: translateY(-2px);
}

.imes-system-secondary-btn i {
    color: var(--imes-system-gold-light);
}


/* Assurance row */

.imes-system-assurance-row {
    max-width: 1040px;
    margin: 34px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.imes-system-assurance-row > div {
    min-height: 86px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.10);
}

.imes-system-assurance-row i {
    color: var(--imes-system-gold-light);
    font-size: 1.08rem;
    margin-bottom: 6px;
}

.imes-system-assurance-row strong,
.imes-system-assurance-row small {
    display: block;
}

.imes-system-assurance-row strong {
    color: #fff;
    font-size: .91rem;
    font-weight: 900;
}

.imes-system-assurance-row small {
    color: rgba(255,255,255,.66);
    font-size: .82rem;
    font-weight: 650;
    margin-top: 2px;
}


/* =====================================================================
   SHARED SECTION TITLES
   ===================================================================== */

.imes-system-section-title,
.imes-system-framework-heading {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    max-width: 990px;
    margin: 0 auto 30px;
}

.imes-system-framework-heading {
    text-align: center;
}

.imes-system-framework-heading .imes-system-section-icon {
    display: none;
}

.imes-system-section-icon {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: var(--imes-system-gold);
    background: rgba(201,162,39,.10);
    border: 1px solid rgba(201,162,39,.25);
    font-size: 1.28rem;
}

.imes-system-section-title h2,
.imes-system-framework-heading h2,
.imes-system-impact-title h2 {
    margin: 0;
    color: var(--imes-system-navy);
    font-size: clamp(1.75rem, 2.7vw, 2.4rem);
    font-weight: 950;
    line-height: 1.45;
}

.imes-system-section-en,
.imes-system-card-en,
.imes-system-mini-en {
    color: var(--imes-system-gold);
    font-size: .96rem;
    font-weight: 850;
    line-height: 1.5;
    margin-top: 3px;
}

.imes-system-framework-heading p {
    margin: 9px 0 0;
    color: var(--imes-system-muted);
    font-size: 1rem;
    line-height: 1.9;
}


/* =====================================================================
   SYSTEM FLOW
   ===================================================================== */

.imes-system-flow-section {
    padding: 52px 20px 58px;
    background: #fff;
}

.imes-system-flow {
    max-width: 1300px;
    margin: 0 auto;
    padding: 17px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--imes-system-line);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #FAFBFD);
    box-shadow: var(--imes-system-shadow-soft);
}

.imes-system-flow > div {
    flex: 1;
    min-width: 0;
    position: relative;
    padding: 19px 10px 15px;
    text-align: center;
    border-radius: 13px;
    background: #fff;
    border: 1px solid #EDF1F6;
}

.imes-system-flow > div > span {
    position: absolute;
    top: 7px;
    right: 9px;
    color: #D8DFE8;
    font-size: .86rem;
    font-weight: 950;
}

html[dir="ltr"] .imes-system-flow > div > span {
    right: auto;
    left: 9px;
}

.imes-system-flow > div > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 8px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #022055, #022E77);
    border-bottom: 2px solid var(--imes-system-gold);
}

.imes-system-flow strong,
.imes-system-flow small {
    display: block;
}

.imes-system-flow strong {
    color: var(--imes-system-navy);
    font-size: .88rem;
    font-weight: 900;
    line-height: 1.45;
}

.imes-system-flow small {
    color: var(--imes-system-muted);
    font-size: .80rem;
    font-weight: 650;
    margin-top: 2px;
}

.imes-system-flow > i {
    align-self: center;
    color: #C8D1DD;
    font-size: 1.05rem;
}

html[dir="ltr"] .imes-system-flow > i {
    transform: rotate(180deg);
}


/* =====================================================================
   FRAMEWORK / ACCORDION
   ===================================================================== */

.imes-system-framework-section {
    padding: 64px 20px 68px;
    background:
        radial-gradient(circle at 50% 0%, rgba(201,162,39,.055), transparent 27%),
        var(--imes-system-soft);
}

.imes-system-accordion {
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    gap: 13px;
}

.imes-system-panel {
    overflow: hidden;
    border: 1px solid #DDE5EE;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(2,32,85,.045);
    transition: box-shadow .25s ease, border-color .25s ease;
}

.imes-system-panel[open] {
    border-color: rgba(201,162,39,.45);
    box-shadow: 0 16px 38px rgba(2,32,85,.09);
}

.imes-system-panel > summary {
    list-style: none;
    min-height: 88px;
    display: grid;
    grid-template-columns: 50px minmax(260px, 1.6fr) minmax(200px, 1fr) 28px;
    align-items: center;
    gap: 14px;
    padding: 17px 20px;
    cursor: pointer;
    user-select: none;
}

.imes-system-panel > summary::-webkit-details-marker {
    display: none;
}

.imes-system-panel > summary:hover {
    background: #FBFCFE;
}

.imes-system-panel-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: var(--imes-system-gold);
    background: rgba(201,162,39,.10);
    border: 1px solid rgba(201,162,39,.23);
    font-size: 1.15rem;
}

.imes-system-panel-title strong,
.imes-system-panel-title small,
.imes-system-panel-brief {
    display: block;
}

.imes-system-panel-title strong {
    color: var(--imes-system-navy);
    font-size: 1.03rem;
    font-weight: 950;
    line-height: 1.5;
}

.imes-system-panel-title small {
    color: var(--imes-system-gold);
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.45;
    margin-top: 2px;
}

.imes-system-panel-brief {
    color: #718096;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.6;
}

.imes-system-panel-toggle {
    color: var(--imes-system-navy);
    font-size: 1rem;
    transition: transform .25s ease;
}

.imes-system-panel[open] .imes-system-panel-toggle {
    transform: rotate(180deg);
}

.imes-system-panel-body {
    padding: 24px;
    border-top: 1px solid #EDF1F5;
    background: linear-gradient(180deg, #fff, #FCFDFE);
}


/* Generic grids */

.imes-system-two-grid,
.imes-system-three-grid,
.imes-system-four-grid {
    display: grid;
    gap: 16px;
}

.imes-system-two-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.imes-system-three-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.imes-system-four-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.imes-system-info-card,
.imes-system-mini-block,
.imes-system-value-card {
    border: 1px solid #E2E8F0;
    border-radius: 15px;
    background: #fff;
}

.imes-system-info-card {
    position: relative;
    padding: 22px 20px;
    overflow: hidden;
}

.imes-system-info-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #022055, #C9A227, #E6C65C);
}

.imes-system-card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: var(--imes-system-gold);
    background: rgba(201,162,39,.10);
    margin-bottom: 12px;
}

.imes-system-info-card h3 {
    margin: 0;
    color: var(--imes-system-navy);
    font-size: 1.08rem;
    font-weight: 950;
}

.imes-system-info-card p,
.imes-system-info-card li,
.imes-system-mini-block p,
.imes-system-mini-block li,
.imes-system-value-card p {
    color: #566980;
    font-size: .95rem;
    line-height: 1.85;
}

.imes-system-info-card p,
.imes-system-mini-block p,
.imes-system-value-card p {
    margin: 10px 0 0;
}

.imes-system-info-card ul,
.imes-system-mini-block ul {
    margin: 10px 0 0;
    padding-inline-start: 20px;
}

.imes-system-info-card li,
.imes-system-mini-block li {
    margin-bottom: 6px;
}

.imes-system-mini-block {
    padding: 20px;
}

.imes-system-mini-block h4 {
    margin: 0;
    color: var(--imes-system-navy);
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.5;
}

.imes-system-mini-block h4 i {
    color: var(--imes-system-gold);
    margin-inline-end: 6px;
}


/* Nested accordion */

.imes-system-subaccordion {
    display: grid;
    gap: 10px;
}

.imes-system-subpanel {
    overflow: hidden;
    border: 1px solid #E3E9F1;
    border-radius: 13px;
    background: #fff;
}

.imes-system-subpanel-standalone {
    margin-top: 16px;
}

.imes-system-subpanel > summary {
    list-style: none;
    min-height: 64px;
    display: grid;
    grid-template-columns: 40px 1fr 24px;
    align-items: center;
    gap: 11px;
    padding: 12px 15px;
    cursor: pointer;
    background: #FBFCFE;
}

.imes-system-subpanel > summary::-webkit-details-marker {
    display: none;
}

.imes-system-subpanel > summary > span:first-child {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--imes-system-gold);
    background: rgba(201,162,39,.09);
}

.imes-system-subpanel > summary strong,
.imes-system-subpanel > summary small {
    display: block;
}

.imes-system-subpanel > summary strong {
    color: var(--imes-system-navy);
    font-size: .96rem;
    font-weight: 900;
    line-height: 1.45;
}

.imes-system-subpanel > summary small {
    color: #78889A;
    font-size: .83rem;
    font-weight: 700;
    margin-top: 2px;
}

.imes-system-subpanel > summary > i {
    color: var(--imes-system-navy);
    transition: transform .22s ease;
}

.imes-system-subpanel[open] > summary > i {
    transform: rotate(180deg);
}

.imes-system-subpanel-body {
    padding: 16px;
    border-top: 1px solid #EDF1F5;
}


/* Topic grids */

.imes-system-topic-grid,
.imes-system-quality-grid,
.imes-system-tools-grid {
    display: grid;
    gap: 11px;
}

.imes-system-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.imes-system-quality-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.imes-system-tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.imes-system-topic-grid > div,
.imes-system-quality-grid > div {
    padding: 15px;
    border-radius: 12px;
    background: #F9FBFD;
    border: 1px solid #E7ECF2;
}

.imes-system-topic-grid b,
.imes-system-quality-grid b {
    display: block;
    color: var(--imes-system-navy);
    font-size: .92rem;
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 4px;
}

.imes-system-topic-grid span,
.imes-system-quality-grid span {
    display: block;
    color: #617389;
    font-size: .88rem;
    line-height: 1.75;
}

.imes-system-tools-grid > div {
    padding: 18px;
    border-radius: 13px;
    background: #fff;
    border: 1px solid #E3E9F0;
}

.imes-system-tools-grid > div > i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #022055, #022E77);
    border-bottom: 2px solid var(--imes-system-gold);
    margin-bottom: 10px;
}

.imes-system-tools-grid strong,
.imes-system-tools-grid small {
    display: block;
}

.imes-system-tools-grid strong {
    color: var(--imes-system-navy);
    font-size: .95rem;
    font-weight: 900;
}

.imes-system-tools-grid small {
    color: var(--imes-system-gold);
    font-size: .82rem;
    font-weight: 750;
    margin-top: 2px;
}

.imes-system-tools-grid p {
    color: #617389;
    font-size: .88rem;
    line-height: 1.75;
    margin: 8px 0 0;
}


/* Notes */

.imes-system-data-note,
.imes-system-assurance-note {
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 17px;
    border-radius: 12px;
}

.imes-system-data-note {
    color: #3B506B;
    background: #F4F7FB;
    border: 1px solid #DCE5EF;
}

.imes-system-assurance-note {
    color: #715A13;
    background: rgba(201,162,39,.08);
    border: 1px solid rgba(201,162,39,.24);
}

.imes-system-data-note i,
.imes-system-assurance-note i {
    margin-top: 5px;
    color: var(--imes-system-gold);
}

.imes-system-data-note p,
.imes-system-assurance-note p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.8;
}


/* Value cards and cycle */

.imes-system-value-card {
    padding: 18px;
}

.imes-system-value-card > i {
    color: var(--imes-system-gold);
    font-size: 1.15rem;
    margin-bottom: 9px;
}

.imes-system-value-card strong,
.imes-system-value-card small {
    display: block;
}

.imes-system-value-card strong {
    color: var(--imes-system-navy);
    font-size: .95rem;
    font-weight: 900;
}

.imes-system-value-card small {
    color: #7A899B;
    font-size: .82rem;
    font-weight: 700;
    margin-top: 2px;
}

.imes-system-cycle {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.imes-system-cycle > div {
    position: relative;
    min-height: 90px;
    padding: 18px 9px 13px;
    text-align: center;
    border: 1px solid #E6EBF1;
    border-radius: 12px;
    background: #F9FBFD;
}

.imes-system-cycle > div > span {
    position: absolute;
    top: 6px;
    right: 8px;
    color: #D6DEE8;
    font-size: .80rem;
    font-weight: 950;
}

html[dir="ltr"] .imes-system-cycle > div > span {
    right: auto;
    left: 8px;
}

.imes-system-cycle strong,
.imes-system-cycle small {
    display: block;
}

.imes-system-cycle strong {
    color: var(--imes-system-navy);
    font-size: .86rem;
    font-weight: 900;
    margin-top: 9px;
}

.imes-system-cycle small {
    color: #738397;
    font-size: .79rem;
    margin-top: 2px;
}


/* =====================================================================
   INSTITUTIONAL IMPACT
   ===================================================================== */

.imes-system-impact-section {
    padding: 53px 20px 58px;
    background: #fff;
}

.imes-system-impact-title {
    text-align: center;
    margin-bottom: 26px;
}

.imes-system-impact-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.imes-system-impact-grid > div {
    padding: 17px 9px;
    text-align: center;
    border: 1px solid #E3E9F0;
    border-radius: 13px;
    background: #fff;
}

.imes-system-impact-grid i {
    display: block;
    color: var(--imes-system-gold);
    font-size: 1.18rem;
    margin-bottom: 8px;
}

.imes-system-impact-grid strong,
.imes-system-impact-grid small {
    display: block;
}

.imes-system-impact-grid strong {
    color: var(--imes-system-navy);
    font-size: .90rem;
    font-weight: 900;
    line-height: 1.45;
}

.imes-system-impact-grid small {
    color: #78889B;
    font-size: .80rem;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 3px;
}


/* =====================================================================
   AVAILABLE ASSESSMENTS DIALOG
   ===================================================================== */

.imes-surveys-dialog {
    width: min(760px, calc(100vw - 30px));
    max-height: min(82vh, 760px);
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: transparent;
    box-shadow: 0 28px 80px rgba(0,0,0,.35);
    overflow: visible;
}

.imes-surveys-dialog::backdrop {
    background: rgba(1, 15, 40, .72);
    backdrop-filter: blur(5px);
}

.imes-surveys-dialog-fallback {
    position: fixed;
    z-index: 99999;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
}

.imes-surveys-dialog-shell {
    max-height: min(82vh, 760px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(201,162,39,.32);
}

.imes-surveys-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 19px 20px;
    color: #fff;
    background:
        radial-gradient(circle at 15% 0%, rgba(230,198,92,.15), transparent 30%),
        linear-gradient(135deg, #011536, #022055 55%, #022E77);
    border-bottom: 3px solid var(--imes-system-gold);
}

.imes-surveys-dialog-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.imes-surveys-dialog-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(201,162,39,.14);
    border: 1px solid rgba(230,198,92,.33);
    color: var(--imes-system-gold-light);
    font-size: 1.16rem;
}

.imes-surveys-dialog-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 950;
    line-height: 1.4;
}

.imes-surveys-dialog-en {
    color: var(--imes-system-gold-light);
    font-size: .86rem;
    font-weight: 750;
    margin-top: 2px;
}

.imes-surveys-dialog-close {
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    color: #fff;
    cursor: pointer;
}

.imes-surveys-dialog-close:hover {
    background: rgba(255,255,255,.13);
}

.imes-surveys-dialog-intro {
    padding: 15px 20px 12px;
    background: #F8FAFC;
    border-bottom: 1px solid #E7ECF2;
}

.imes-surveys-dialog-intro p {
    margin: 0;
    color: #5A6D83;
    font-size: .92rem;
    line-height: 1.75;
}

.imes-surveys-dialog-list {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: grid;
    gap: 9px;
}

.imes-surveys-dialog-item {
    display: grid;
    grid-template-columns: 45px 1fr auto;
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    border: 1px solid #E0E7EF;
    border-radius: 13px;
    background: #fff;
    color: inherit !important;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.imes-surveys-dialog-item:hover {
    transform: translateY(-2px);
    border-color: rgba(201,162,39,.55);
    box-shadow: 0 9px 22px rgba(2,32,85,.08);
}

.imes-surveys-item-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #022055, #022E77);
    border-bottom: 2px solid var(--imes-system-gold);
}

.imes-surveys-item-content small,
.imes-surveys-item-content strong {
    display: block;
}

.imes-surveys-item-content small {
    color: var(--imes-system-gold);
    font-size: .80rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.imes-surveys-item-content strong {
    color: var(--imes-system-navy);
    font-size: .96rem;
    font-weight: 900;
    line-height: 1.5;
}

.imes-surveys-item-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--imes-system-blue);
    font-size: .86rem;
    font-weight: 900;
}

.imes-surveys-dialog-empty {
    padding: 38px 20px;
    text-align: center;
    border: 1px dashed #CBD5E1;
    border-radius: 14px;
    background: #F8FAFC;
}

.imes-surveys-dialog-empty > i {
    color: var(--imes-system-gold);
    font-size: 2rem;
    margin-bottom: 10px;
}

.imes-surveys-dialog-empty strong {
    display: block;
    color: var(--imes-system-navy);
    font-size: 1rem;
    font-weight: 900;
}

.imes-surveys-dialog-empty p {
    color: #6B7B8E;
    font-size: .90rem;
    line-height: 1.7;
    margin: 6px 0 0;
}

.imes-surveys-dialog-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    background: #F8FAFC;
    border-top: 1px solid #E7ECF2;
    color: #687A8F;
    font-size: .83rem;
    font-weight: 700;
    line-height: 1.5;
}

.imes-surveys-dialog-footer i {
    color: var(--imes-system-gold);
}


/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 1180px) {

    .imes-system-topic-grid,
    .imes-system-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .imes-system-quality-grid,
    .imes-system-four-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .imes-system-impact-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .imes-system-flow {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .imes-system-flow > i {
        display: none;
    }

}


@media (max-width: 900px) {

    .imes-system-hero {
        padding: 62px 15px 56px;
    }

    .imes-system-assurance-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .imes-system-panel > summary {
        grid-template-columns: 48px 1fr 28px;
    }

    .imes-system-panel-brief {
        display: none;
    }

    .imes-system-three-grid,
    .imes-system-two-grid {
        grid-template-columns: 1fr;
    }

    .imes-system-cycle {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 700px) {

    .imes-system-page .container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .imes-system-hero {
        padding: 48px 12px 48px;
    }

    .imes-system-identity-line {
        border-radius: 16px;
    }

    .imes-system-identity-line,
    .imes-system-unit-line {
        flex-direction: column;
        gap: 2px;
    }

    .imes-system-hero h1 {
        font-size: 2rem;
        line-height: 1.45;
    }

    .imes-system-hero-en {
        font-size: 1.05rem;
    }

    .imes-system-hero-lead {
        font-size: .98rem;
        line-height: 1.9;
    }

    .imes-system-actions {
        flex-direction: column;
    }

    .imes-system-primary-btn,
    .imes-system-secondary-btn {
        min-width: 0;
        width: 100%;
        max-width: none;
    }

    .imes-system-assurance-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .imes-system-flow-section,
    .imes-system-framework-section,
    .imes-system-impact-section {
        padding-left: 0;
        padding-right: 0;
    }

    .imes-system-section-title,
    .imes-system-framework-heading {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .imes-system-section-title .imes-system-section-icon {
        margin: 0 auto;
    }

    .imes-system-flow {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px;
    }

    .imes-system-panel > summary {
        min-height: 78px;
        grid-template-columns: 44px 1fr 22px;
        gap: 10px;
        padding: 14px;
    }

    .imes-system-panel-icon {
        width: 43px;
        height: 43px;
    }

    .imes-system-panel-title strong {
        font-size: .96rem;
    }

    .imes-system-panel-title small {
        font-size: .82rem;
    }

    .imes-system-panel-body {
        padding: 14px;
    }

    .imes-system-topic-grid,
    .imes-system-quality-grid,
    .imes-system-tools-grid,
    .imes-system-four-grid {
        grid-template-columns: 1fr;
    }

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

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

    .imes-surveys-dialog {
        width: calc(100vw - 18px);
        max-height: 88vh;
    }

    .imes-surveys-dialog-shell {
        max-height: 88vh;
        border-radius: 16px;
    }

    .imes-surveys-dialog-header {
        padding: 15px;
    }

    .imes-surveys-dialog-icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
    }

    .imes-surveys-dialog-header h2 {
        font-size: 1.12rem;
    }

    .imes-surveys-dialog-en {
        font-size: .78rem;
    }

    .imes-surveys-dialog-item {
        grid-template-columns: 42px 1fr;
    }

    .imes-surveys-item-action {
        grid-column: 2;
        justify-self: start;
    }

}


@media (max-width: 470px) {

    .imes-system-assurance-row,
    .imes-system-flow,
    .imes-system-cycle,
    .imes-system-impact-grid {
        grid-template-columns: 1fr;
    }

    .imes-system-assurance-row > div {
        min-height: 74px;
    }

}


/* ==========================================================
   IMES - Assessment Access Link Field
   ========================================================== */

.imes-access-link-box {
    margin: 18px 0 4px;
    padding: 18px;
    border: 1px solid rgba(2, 32, 85, .10);
    border-radius: 16px;
    background:
        linear-gradient(
            135deg,
            rgba(2, 32, 85, .035),
            rgba(201, 162, 39, .045)
        );
}

.imes-access-link-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.imes-access-link-heading-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, #022055, #022E77);
    color: #E6C65C;
    box-shadow: 0 7px 18px rgba(2, 32, 85, .14);
}

.imes-access-link-heading strong {
    display: block;
    color: #022055;
    font-size: .94rem;
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 3px;
}

.imes-access-link-heading small {
    display: block;
    color: #68778A;
    font-size: .78rem;
    line-height: 1.65;
}

.imes-access-link-input-wrap {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #D9E1EB;
    border-radius: 13px;
    background: #FFFFFF;
    box-shadow: 0 5px 16px rgba(2, 32, 85, .05);
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.imes-access-link-input-wrap:focus-within {
    border-color: rgba(2, 46, 119, .55);
    box-shadow:
        0 0 0 3px rgba(2, 46, 119, .08),
        0 7px 20px rgba(2, 32, 85, .07);
}

.imes-access-link-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8C6A12;
    background: #F8FAFC;
    border-inline-end: 1px solid #E4E9F0;
}

.imes-access-link-input {
    width: 100%;
    min-width: 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #24354D;
    font-size: .84rem;
    line-height: 1.4;
    padding: 13px 14px !important;
    direction: ltr;
    text-align: left;
}

.imes-access-link-input::placeholder {
    color: #9AA6B6;
}

.imes-access-link-submit {
    min-width: 148px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    padding: 11px 17px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #022055, #022E77);
    font-size: .79rem;
    font-weight: 900;
    cursor: pointer;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.imes-access-link-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(2, 32, 85, .16);
}

.imes-access-link-submit i {
    color: #E6C65C;
    font-size: .78rem;
}

html[dir="ltr"] .imes-access-link-submit i {
    transform: rotate(180deg);
}

.imes-access-link-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 8px 3px 0;
    color: #7B8798;
    font-size: .72rem;
    line-height: 1.5;
}

.imes-access-link-meta > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.imes-access-link-meta > span:first-child i {
    color: #067F3F;
}

.imes-access-link-message {
    font-weight: 800;
}

.imes-access-link-message.is-error {
    color: #D90511;
}

.imes-access-link-message.is-success {
    color: #067F3F;
}

@media (max-width: 700px) {

    .imes-access-link-box {
        padding: 14px;
    }

    .imes-access-link-input-wrap {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .imes-access-link-submit {
        grid-column: 1 / -1;
        min-width: 0;
        width: 100%;
        min-height: 44px;
        border-top: 1px solid rgba(255,255,255,.12);
    }

    .imes-access-link-heading strong {
        font-size: .91rem;
    }

    .imes-access-link-heading small,
    .imes-access-link-input {
        font-size: .77rem;
    }

    .imes-access-link-meta {
        font-size: .70rem;
    }
}


/* =====================================================================
   IMES ACCESS DIALOG — FULL RESPONSIVE OVERRIDES
   Added last intentionally so it overrides earlier dialog rules.
   No Twig text/content changes are required.
   ===================================================================== */

.imes-surveys-dialog {
    box-sizing: border-box;
    width: min(820px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    height: auto !important;
    max-height: none !important;
    margin: auto !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    border-radius: 20px;
}

.imes-surveys-dialog::backdrop {
    background: rgba(1, 15, 40, .74);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

/* Fallback mode for browsers where showModal() is not available */
.imes-surveys-dialog-fallback {
    position: fixed !important;
    z-index: 99999 !important;
    inset: 50% auto auto 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(820px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
}

/* One scroll area for the whole dialog: avoids nested scrolling on phones/tablets */
.imes-surveys-dialog-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    border-radius: 20px;
}

/* Keep close control visible while the content scrolls */
.imes-surveys-dialog-header {
    position: sticky;
    top: 0;
    z-index: 12;
    flex: 0 0 auto;
}

.imes-surveys-dialog-title-wrap {
    min-width: 0;
    flex: 1 1 auto;
}

.imes-surveys-dialog-title-wrap > div {
    min-width: 0;
}

.imes-surveys-dialog-header h2,
.imes-surveys-dialog-en,
.imes-surveys-dialog-intro p,
.imes-surveys-item-content,
.imes-surveys-dialog-empty,
.imes-access-link-heading > div,
.imes-surveys-dialog-footer span {
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Remove the nested list scroller; the shell itself handles scrolling */
.imes-surveys-dialog-list {
    flex: 0 0 auto !important;
    min-height: 0;
    overflow: visible !important;
}

/* Give the pasted-link panel balanced margins inside the dialog */
.imes-access-link-box {
    margin: 14px 16px 6px !important;
    box-sizing: border-box;
}

/* Footer remains part of the natural scroll flow */
.imes-surveys-dialog-footer {
    flex: 0 0 auto;
}


/* ---------------------------------------------------------------------
   Laptops / small desktop screens
   --------------------------------------------------------------------- */
@media (max-width: 900px) {

    .imes-surveys-dialog {
        width: min(760px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
    }

    .imes-surveys-dialog-fallback {
        width: min(760px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 24px) !important;
        max-height: calc(100dvh - 24px) !important;
    }

    .imes-surveys-dialog-shell {
        max-height: calc(100vh - 24px) !important;
        max-height: calc(100dvh - 24px) !important;
    }
}


/* ---------------------------------------------------------------------
   Tablets / large phones
   --------------------------------------------------------------------- */
@media (max-width: 700px) {

    .imes-surveys-dialog {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        border-radius: 17px;
    }

    .imes-surveys-dialog-fallback {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100vh - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
    }

    .imes-surveys-dialog-shell {
        max-height: calc(100vh - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        border-radius: 17px !important;
    }

    .imes-surveys-dialog-header {
        gap: 10px;
        padding: 13px 14px !important;
    }

    .imes-surveys-dialog-title-wrap {
        gap: 9px;
    }

    .imes-surveys-dialog-icon {
        flex: 0 0 40px !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 11px;
        font-size: 1rem;
    }

    .imes-surveys-dialog-header h2 {
        font-size: 1.04rem !important;
        line-height: 1.45;
    }

    .imes-surveys-dialog-en {
        font-size: .76rem !important;
        line-height: 1.45;
    }

    .imes-surveys-dialog-close {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }

    .imes-surveys-dialog-intro {
        padding: 12px 14px 11px !important;
    }

    .imes-surveys-dialog-intro p {
        font-size: .86rem !important;
        line-height: 1.7;
    }

    .imes-surveys-dialog-list {
        padding: 10px 12px !important;
        gap: 8px;
    }

    .imes-surveys-dialog-item {
        grid-template-columns: 39px minmax(0, 1fr) !important;
        gap: 9px;
        padding: 10px 11px !important;
        border-radius: 12px;
    }

    .imes-surveys-item-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .imes-surveys-item-content small {
        font-size: .74rem !important;
    }

    .imes-surveys-item-content strong {
        font-size: .88rem !important;
        line-height: 1.55;
    }

    .imes-surveys-dialog-empty {
        padding: 22px 14px !important;
    }

    .imes-surveys-dialog-empty > i {
        font-size: 1.55rem;
        margin-bottom: 7px;
    }

    .imes-surveys-dialog-empty strong {
        font-size: .92rem !important;
    }

    .imes-surveys-dialog-empty p {
        font-size: .82rem !important;
        line-height: 1.65;
    }

    .imes-access-link-box {
        margin: 10px 12px 5px !important;
        padding: 13px !important;
        border-radius: 14px;
    }

    .imes-access-link-heading {
        gap: 9px;
        margin-bottom: 11px;
    }

    .imes-access-link-heading-icon {
        flex: 0 0 36px !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px;
    }

    .imes-access-link-heading strong {
        font-size: .88rem !important;
    }

    .imes-access-link-heading small {
        font-size: .75rem !important;
        line-height: 1.6;
    }

    .imes-access-link-input-wrap {
        grid-template-columns: 38px minmax(0, 1fr) !important;
        border-radius: 11px;
    }

    .imes-access-link-input {
        font-size: .78rem !important;
        padding: 12px 10px !important;
    }

    .imes-access-link-submit {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 43px;
        padding: 10px 13px !important;
        font-size: .77rem !important;
        border-top: 1px solid rgba(255,255,255,.12);
    }

    .imes-access-link-meta {
        display: block !important;
        padding-top: 7px !important;
        font-size: .69rem !important;
        line-height: 1.55;
    }

    .imes-access-link-message {
        display: block;
        margin-top: 5px;
    }

    .imes-surveys-dialog-footer {
        align-items: flex-start;
        padding: 10px 13px !important;
        font-size: .75rem !important;
        line-height: 1.55;
    }
}


/* ---------------------------------------------------------------------
   Phones
   --------------------------------------------------------------------- */
@media (max-width: 480px) {

    .imes-surveys-dialog {
        width: calc(100vw - 10px) !important;
        max-width: calc(100vw - 10px) !important;
        border-radius: 14px;
    }

    .imes-surveys-dialog-fallback {
        width: calc(100vw - 10px) !important;
        max-width: calc(100vw - 10px) !important;
        max-height: calc(100vh - 10px) !important;
        max-height: calc(100dvh - 10px) !important;
    }

    .imes-surveys-dialog-shell {
        max-height: calc(100vh - 10px) !important;
        max-height: calc(100dvh - 10px) !important;
        border-radius: 14px !important;
    }

    .imes-surveys-dialog-header {
        padding: 11px 12px !important;
    }

    .imes-surveys-dialog-title-wrap {
        gap: 8px;
    }

    .imes-surveys-dialog-icon {
        flex-basis: 35px !important;
        width: 35px !important;
        height: 35px !important;
        font-size: .9rem;
    }

    .imes-surveys-dialog-header h2 {
        font-size: .96rem !important;
    }

    .imes-surveys-dialog-en {
        font-size: .70rem !important;
    }

    .imes-surveys-dialog-close {
        flex-basis: 33px;
        width: 33px;
        height: 33px;
    }

    .imes-surveys-dialog-intro {
        padding: 10px 12px !important;
    }

    .imes-surveys-dialog-intro p {
        font-size: .80rem !important;
    }

    .imes-surveys-dialog-list {
        padding: 8px 10px !important;
    }

    .imes-surveys-dialog-item {
        grid-template-columns: 35px minmax(0, 1fr) !important;
        padding: 9px 10px !important;
    }

    .imes-surveys-item-icon {
        width: 34px;
        height: 34px;
        font-size: .88rem;
    }

    .imes-surveys-item-content small {
        font-size: .70rem !important;
    }

    .imes-surveys-item-content strong {
        font-size: .82rem !important;
    }

    .imes-surveys-dialog-empty {
        padding: 18px 11px !important;
    }

    .imes-surveys-dialog-empty strong {
        font-size: .87rem !important;
    }

    .imes-surveys-dialog-empty p {
        font-size: .77rem !important;
    }

    .imes-access-link-box {
        margin: 8px 10px 4px !important;
        padding: 11px !important;
    }

    .imes-access-link-heading-icon {
        display: none;
    }

    .imes-access-link-heading strong {
        font-size: .84rem !important;
    }

    .imes-access-link-heading small {
        font-size: .72rem !important;
    }

    .imes-access-link-input-wrap {
        grid-template-columns: 34px minmax(0, 1fr) !important;
    }

    .imes-access-link-input {
        font-size: .75rem !important;
        padding: 11px 8px !important;
    }

    .imes-access-link-submit {
        min-height: 42px;
        font-size: .75rem !important;
    }

    .imes-access-link-meta {
        font-size: .66rem !important;
    }

    .imes-surveys-dialog-footer {
        padding: 9px 11px !important;
        font-size: .70rem !important;
    }
}


/* ---------------------------------------------------------------------
   Very small phones
   --------------------------------------------------------------------- */
@media (max-width: 360px) {

    .imes-surveys-dialog-title-wrap {
        gap: 6px;
    }

    .imes-surveys-dialog-icon {
        display: none;
    }

    .imes-surveys-dialog-header h2 {
        font-size: .90rem !important;
    }

    .imes-surveys-dialog-en {
        font-size: .66rem !important;
    }

    .imes-surveys-dialog-intro p,
    .imes-surveys-item-content strong {
        font-size: .76rem !important;
    }

    .imes-surveys-dialog-item {
        grid-template-columns: 31px minmax(0, 1fr) !important;
        gap: 7px;
        padding: 8px !important;
    }

    .imes-surveys-item-icon {
        width: 31px;
        height: 31px;
    }

    .imes-access-link-box {
        margin-inline: 8px !important;
        padding: 10px !important;
    }
}


/* ---------------------------------------------------------------------
   Short-height displays / landscape phones / small laptop windows
   --------------------------------------------------------------------- */
@media (max-height: 650px) {

    .imes-surveys-dialog {
        max-height: none !important;
    }

    .imes-surveys-dialog-shell {
        max-height: calc(100vh - 12px) !important;
        max-height: calc(100dvh - 12px) !important;
    }

    .imes-surveys-dialog-header {
        padding-top: 9px !important;
        padding-bottom: 9px !important;
    }

    .imes-surveys-dialog-icon {
        width: 36px !important;
        height: 36px !important;
        flex-basis: 36px !important;
    }

    .imes-surveys-dialog-header h2 {
        font-size: .98rem !important;
    }

    .imes-surveys-dialog-intro {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .imes-surveys-dialog-list {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .imes-surveys-dialog-item {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .imes-surveys-dialog-empty {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    .imes-access-link-box {
        margin-top: 8px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .imes-surveys-dialog-footer {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
}


/* ---------------------------------------------------------------------
   Extremely short landscape screens
   --------------------------------------------------------------------- */
@media (max-height: 480px) {

    .imes-surveys-dialog-shell {
        max-height: calc(100vh - 6px) !important;
        max-height: calc(100dvh - 6px) !important;
        border-radius: 12px !important;
    }

    .imes-surveys-dialog-en {
        display: none;
    }

    .imes-surveys-dialog-intro p {
        line-height: 1.5;
    }

    .imes-surveys-dialog-empty {
        padding: 10px !important;
    }

    .imes-access-link-heading {
        margin-bottom: 8px;
    }

    .imes-surveys-dialog-footer {
        font-size: .67rem !important;
    }
}


/* ---------------------------------------------------------------------
   Safe areas on modern mobile devices
   --------------------------------------------------------------------- */
@supports (padding: max(0px)) {

    @media (max-width: 700px) {

        .imes-surveys-dialog {
            width: calc(
                100vw
                - max(8px, env(safe-area-inset-left))
                - max(8px, env(safe-area-inset-right))
            ) !important;
            max-width: calc(
                100vw
                - max(8px, env(safe-area-inset-left))
                - max(8px, env(safe-area-inset-right))
            ) !important;
        }

        .imes-surveys-dialog-shell {
            max-height: calc(
                100dvh
                - max(8px, env(safe-area-inset-top))
                - max(8px, env(safe-area-inset-bottom))
            ) !important;
        }

    }
}


/* ==========================================================
   IMES - إزالة المسافات الرأسية الزائدة داخل أسئلة LimeSurvey
   Added: 2026-09-09
   ملاحظة: هذا الكود لا يغير تنسيق خلايا بدائل الإجابة.
   ========================================================== */

/* الحاوية الرئيسية للسؤال */
.question-container.row {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;

    margin-top: 4px !important;
    margin-bottom: 8px !important;

    padding-top: 8px !important;
    padding-bottom: 8px !important;

    row-gap: 0 !important;
    column-gap: 0 !important;

    align-content: flex-start !important;
}

/* توحيد عرض مكونات السؤال ومنع أي ارتفاعات غير ضرورية */
.question-container.row > .question-title-container,
.question-container.row > .question-help-container,
.question-container.row > .question-valid-container,
.question-container.row > .answer-container {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;

    min-height: 0 !important;
    height: auto !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* عنوان السؤال */
.question-container.row > .question-title-container {
    margin-top: 0 !important;
    margin-bottom: 2px !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* تعليمات / مساعدة السؤال */
.question-container.row > .question-help-container {
    margin-top: 0 !important;
    margin-bottom: 2px !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* رسالة التحقق مثل: اختر إحدى الإجابات التالية */
.question-container.row > .question-valid-container {
    margin-top: 0 !important;
    margin-bottom: 3px !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* حقل الإجابة */
.question-container.row > .answer-container {
    margin-top: 4px !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* إزالة المسافات الداخلية التي يضيفها القالب */
.question-container .question-text,
.question-container .ls-label-question,
.question-container .ls-questionhelp,
.question-container .ls-question-message {
    min-height: 0 !important;
    height: auto !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* توحيد لون رسائل المساعدة/التحقق بما يتناسب مع هوية IMES */
.question-container .ls-question-message,
.question-container .ls-em-tip,
.question-container .ls-em-success {
    color: #34435C !important;
}


/* ==========================================================
   IMES - إزالة الفراغ الكبير أعلى المجموعة الأولى
   بناءً على HTML الفعلي لـ LimeSurvey:
   #group-0 > .group-container > .group-title + .group-description
   ========================================================== */

/*
 * المجموعة الأولى تحتوي عنوانًا غير مرئي (Zero-width space)،
 * لكن LimeSurvey يترك له مساحة بسبب:
 * group-title + h3 + space-col
 * لذلك نخفي حاوية العنوان نفسها بالكامل.
 */
#group-0.group-outer-container > .group-container > .group-title,
#group-0 .group-title.text-center.h3.space-col {
    display: none !important;
    visibility: hidden !important;

    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 0 !important;
    border: 0 !important;
}

/* إزالة spacing الذي تضيفه space-col على المجموعة الأولى */
#group-0.group-outer-container,
#group-0.group-outer-container.space-col,
#group-0 > .group-container,
#group-0 > .group-container.space-col {
    min-height: 0 !important;
    height: auto !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* وصف المجموعة الذي يحتوي ترويسة IMES */
#group-0 > .group-container > .group-description,
#group-0 > .group-container > .group-description.row,
#group-0 > .group-container > .group-description.row.space-col {
    min-height: 0 !important;
    height: auto !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* الحاوية الداخلية well حول ترويسة IMES */
#group-0 > .group-container > .group-description > .col-12.well,
#group-0 .group-description .well {
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;
}

/* إزالة أي فراغ إضافي قبل المجموعة الأولى داخل الفورم */
#limesurvey > #group-0,
.survey-form-container > #group-0 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* تقليل الفراغ الخارجي للحاويات الأم دون التأثير على الأسئلة أو بدائل الإجابة */
#outerframeContainer,
#main-row,
#main-col {
    padding-top: 0 !important;
}

#outerframeContainer {
    margin-top: 0 !important;
}

/*
 * ملاحظة:
 * لا نستخدم .space-col بشكل عام حتى لا نتسبب في إزالة المسافات
 * من أزرار التنقل أو بقية أقسام LimeSurvey.
 */


/* ==========================================================
   IMES - إصلاح إظهار الأسئلة الشرطية + إزالة فراغات المجموعات
   Added: 2026-09-09
   لا يغير تنسيق خلايا بدائل الإجابة.
   ========================================================== */

/*
 * مهم:
 * في LimeSurvey الأسئلة TARGET_* غير المطابقة للجهة المختارة تحمل:
 * .ls-hidden و .ls-irrelevant
 *
 * قاعدة سابقة:
 * .question-container.row { display:block !important; }
 * كانت تتغلب على display:none الخاص بـ LimeSurvey،
 * ولذلك ظهرت جميع أسئلة "اسم المستهدف من التقييم".
 *
 * هذه القاعدة تعيد احترام منطق relevance وتخفي غير المطابق منها.
 */
#limesurvey .question-container.row.ls-hidden,
#limesurvey .question-container.row.ls-irrelevant,
#limesurvey .question-container.ls-hidden,
#limesurvey .question-container.ls-irrelevant {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

/*
 * إزالة الفراغات الرأسية من جميع مجموعات الاستبيان،
 * وليس group-0 فقط.
 */
#limesurvey .group-outer-container,
#limesurvey .group-outer-container.space-col,
#limesurvey .group-container,
#limesurvey .group-container.space-col {
    min-height: 0 !important;
    height: auto !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/*
 * قوالب النسخة المطورة تستخدم عنوان مجموعة غير مرئي
 * (Zero-width space) لأغراض بنيوية فقط.
 * LimeSurvey يعرض الحاوية h3 رغم أن النص غير مرئي،
 * فتنتج المسافة الكبيرة قبل السؤال في القسم الثاني.
 *
 * نلغي ارتفاع هذه الحاوية بالكامل.
 */
#limesurvey .group-container > .group-title.text-center.h3.space-col,
#limesurvey .group-container > .group-title.h3.space-col,
#limesurvey .group-container > .group-title.space-col {
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 0 !important;
    font-size: 0 !important;

    border: 0 !important;
    overflow: hidden !important;
}

/* وصف المجموعة لا يضيف فراغًا قبل أول سؤال */
#limesurvey .group-container > .group-description,
#limesurvey .group-container > .group-description.row,
#limesurvey .group-container > .group-description.row.space-col {
    min-height: 0 !important;
    height: auto !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/*
 * عندما يكون وصف المجموعة مجرد CSS داخلي ولا يحتوي محتوى بصريًا،
 * لا نسمح لحاوية .well بإنشاء مسافة رأسية.
 */
#limesurvey .group-description > .col-12.well,
#limesurvey .group-description .well {
    min-height: 0 !important;
    height: auto !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* أول سؤال في كل مجموعة يبدأ مباشرة بعد محتوى المجموعة */
#limesurvey .group-container > .question-container:first-of-type {
    margin-top: 4px !important;
}

/* لا نلمس .space-col بصورة عامة حتى لا تتأثر منطقة التنقل */


/* ==========================================================
   IMES - ضبط شريط التقدم + زر السابق + أيقونات المساعدة
   Added: 2026-09-09
   ========================================================== */

/* ----------------------------------------------------------
   1) إزالة الفراغ الكبير حول شريط التقدم
   HTML:
   .imes-progress-wrapper
      .top-container.space-col
         .top-content.container-fluid
            .progress
   ---------------------------------------------------------- */

.imes-progress-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

.imes-progress-wrapper > .top-container,
.imes-progress-wrapper > .top-container.space-col {
    margin: 0 !important;
    padding: 4px 0 !important;

    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
}

.imes-progress-wrapper .top-content,
.imes-progress-wrapper .top-content.container-fluid {
    margin: 0 !important;
    padding: 0 12px !important;

    min-height: 0 !important;
    height: auto !important;
}

.imes-progress-wrapper .progress {
    margin: 2px 0 6px 0 !important;
    padding: 0 !important;

    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;

    border-radius: 4px !important;
    overflow: hidden !important;

    background-color: #E7ECF3 !important;
    box-shadow: none !important;
}

/* لون نسبة التقدم وفق هوية IMES */
.imes-progress-wrapper .progress-bar {
    height: 16px !important;
    line-height: 16px !important;

    background-color: #022055 !important;
    color: #FFFFFF !important;

    font-size: .78rem !important;
    font-weight: 700 !important;

    border-radius: 0 !important;
}


/* ----------------------------------------------------------
   2) زر السابق - توحيده مع الهوية الكحلية / الذهبية
   LimeSurvey عادة يستخدم:
   .ls-move-previous-btn
   وقد يكون btn-outline-secondary أو btn-primary حسب القالب
   ---------------------------------------------------------- */

#navigator-container .ls-move-previous-btn,
#navigator-container .action--ls-button-submit.ls-move-previous-btn,
button.ls-move-previous-btn {
    background-color: #FFFFFF !important;
    color: #022055 !important;

    border: 1.5px solid #022055 !important;
    border-radius: 8px !important;

    font-weight: 700 !important;
    box-shadow: none !important;

    transition:
        background-color .18s ease,
        color .18s ease,
        border-color .18s ease !important;
}

#navigator-container .ls-move-previous-btn:hover,
#navigator-container .ls-move-previous-btn:focus,
#navigator-container .ls-move-previous-btn:active,
button.ls-move-previous-btn:hover,
button.ls-move-previous-btn:focus,
button.ls-move-previous-btn:active {
    background-color: #022055 !important;
    color: #FFFFFF !important;

    border-color: #022055 !important;
    box-shadow: 0 0 0 .15rem rgba(2, 32, 85, .12) !important;
}

/* Disabled state */
#navigator-container .ls-move-previous-btn:disabled,
#navigator-container .ls-move-previous-btn.disabled {
    background-color: #F5F7FA !important;
    color: #8A94A6 !important;
    border-color: #CCD4DF !important;
    opacity: 1 !important;
}


/* ----------------------------------------------------------
   3) أيقونة علامة الاستفهام / المساعدة
   تحويل الأخضر إلى الذهبي، مع Hover كحلي
   ---------------------------------------------------------- */

/* Font Awesome / LimeSurvey help icons */
.question-help-container .fa-question-circle,
.question-help-container .fa-question-circle-o,
.questionhelp .fa-question-circle,
.questionhelp .fa-question-circle-o,
.ls-questionhelp .fa-question-circle,
.ls-questionhelp .fa-question-circle-o,
.ls-questionhelp .fa,
.question-help-container .fa,
.fa-question-circle,
.fa-question-circle-o {
    color: #C9A227 !important;
}

/* بعض نسخ LimeSurvey تستخدم text-success على الأيقونة نفسها */
.question-help-container .text-success,
.ls-questionhelp .text-success,
.questionhelp.text-success,
.questionhelp .text-success {
    color: #C9A227 !important;
}

/* عند المرور */
.question-help-container .fa-question-circle:hover,
.question-help-container .fa-question-circle-o:hover,
.ls-questionhelp .fa-question-circle:hover,
.ls-questionhelp .fa-question-circle-o:hover,
.questionhelp .fa:hover,
.fa-question-circle:hover,
.fa-question-circle-o:hover {
    color: #022055 !important;
}

/* الروابط التي تغلف أيقونة المساعدة إن وجدت */
.question-help-container a,
.ls-questionhelp a,
.questionhelp a {
    color: #C9A227 !important;
}

.question-help-container a:hover,
.ls-questionhelp a:hover,
.questionhelp a:hover {
    color: #022055 !important;
}


/* ==========================================================
   IMES - توسيط شريط التقدم وإضافة فاصل علوي منضبط
   Added: 2026-09-09
   ========================================================== */

/*
 * الحاوية الكاملة لشريط التقدم:
 * - مسافة علوية صغيرة تفصله عن بطاقة الترحيب.
 * - توسيط أفقي كامل.
 * - بدون فراغ سفلي زائد.
 */
.imes-progress-wrapper {
    width: 100% !important;
    max-width: 100% !important;

    margin: 14px auto 6px auto !important;
    padding: 0 !important;

    min-height: 0 !important;
    height: auto !important;

    display: block !important;
}

/* إلغاء تأثير space-col الزائد مع إبقاء الفاصل العلوي على الـ wrapper فقط */
.imes-progress-wrapper > .top-container,
.imes-progress-wrapper > .top-container.space-col {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 auto !important;
    padding: 0 !important;

    min-height: 0 !important;
    height: auto !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/*
 * نحدد عرض المحتوى نفسه حتى يظهر الشريط في منتصف الصفحة
 * ولا يلتصق بحافتي الشاشة.
 */
.imes-progress-wrapper .top-content,
.imes-progress-wrapper .top-content.container-fluid {
    width: 82% !important;
    max-width: 1380px !important;

    margin: 0 auto !important;
    padding: 0 !important;

    min-height: 0 !important;
    height: auto !important;

    display: block !important;
}

/* الشريط نفسه */
.imes-progress-wrapper .progress {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 auto !important;
    padding: 0 !important;

    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;

    border-radius: 6px !important;
    overflow: hidden !important;

    background-color: #E7ECF3 !important;
    box-shadow: none !important;
}

/* شريط النسبة */
.imes-progress-wrapper .progress-bar {
    height: 16px !important;
    line-height: 16px !important;

    background-color: #022055 !important;
    color: #FFFFFF !important;

    font-size: .78rem !important;
    font-weight: 700 !important;
}

/* استجابة الشاشات الصغيرة */
@media (max-width: 900px) {
    .imes-progress-wrapper {
        margin-top: 10px !important;
        margin-bottom: 5px !important;
    }

    .imes-progress-wrapper .top-content,
    .imes-progress-wrapper .top-content.container-fluid {
        width: 92% !important;
        max-width: 92% !important;
    }
}


/* ==========================================================
   IMES - اللون الذهبي لأيقونة الاستفهام بجانب وصف السؤال
   Added: 2026-09-09
   ========================================================== */

/*
 * في قالب LimeSurvey الحالي قد تكون علامة الاستفهام:
 * 1) Font Awesome element
 * 2) text-success element
 * 3) pseudo-element ::before / ::after على ls-questionhelp
 * لذلك نستهدف الحالات الثلاث دون تغيير لون نص المساعدة نفسه.
 */

/* Font Awesome / icon elements */
.question-help-container .ls-questionhelp .fa,
.question-help-container .ls-questionhelp .fas,
.question-help-container .ls-questionhelp .far,
.question-help-container .ls-questionhelp .fa-question-circle,
.question-help-container .ls-questionhelp .fa-question-circle-o,
.question-help-container [class*="fa-question"],
.ls-questionhelp [class*="fa-question"],
.questionhelp [class*="fa-question"] {
    color: #C9A227 !important;
    -webkit-text-fill-color: #C9A227 !important;
    border-color: #C9A227 !important;
}

/* Bootstrap/LimeSurvey success class when applied to the help icon */
.question-help-container .ls-questionhelp .text-success,
.question-help-container .questionhelp .text-success,
.ls-questionhelp .text-success {
    color: #C9A227 !important;
    -webkit-text-fill-color: #C9A227 !important;
}

/* Icon generated as pseudo-element by the theme */
.question-help-container .ls-questionhelp::before,
.question-help-container .ls-questionhelp::after,
.question-help-container .questionhelp::before,
.question-help-container .questionhelp::after {
    color: #C9A227 !important;
    -webkit-text-fill-color: #C9A227 !important;
    border-color: #C9A227 !important;
}

/* SVG icon fallback */
.question-help-container .ls-questionhelp svg,
.question-help-container .questionhelp svg {
    color: #C9A227 !important;
    fill: #C9A227 !important;
    stroke: #C9A227 !important;
}

/* Hover: كحلي */
.question-help-container .ls-questionhelp .fa:hover,
.question-help-container [class*="fa-question"]:hover,
.ls-questionhelp [class*="fa-question"]:hover,
.questionhelp [class*="fa-question"]:hover {
    color: #022055 !important;
    -webkit-text-fill-color: #022055 !important;
}


/* ==========================================================
   IMES - زر الصفحة الرئيسية بعد إتمام الاستبيان
   Elegant Institutional Design
   ========================================================== */

/* مساحة أنيقة أسفل رسالة نجاح الإرسال */
.imes-completion-home {
    width: 100% !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    margin: 28px 0 10px 0 !important;
    padding: 24px 0 6px 0 !important;

    position: relative !important;
}

/* خط زخرفي خفيف فوق الزر */
.imes-completion-home::before {
    content: "" !important;

    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    width: 92px !important;
    height: 3px !important;

    border-radius: 999px !important;

    background: linear-gradient(
        90deg,
        transparent 0%,
        #C9A227 20%,
        #E6C65C 50%,
        #C9A227 80%,
        transparent 100%
    ) !important;
}

/* الزر */
.imes-home-button {
    position: relative !important;
    overflow: hidden !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 12px !important;

    min-width: 290px !important;
    min-height: 54px !important;

    padding: 12px 26px !important;

    background:
        linear-gradient(
            135deg,
            #022055 0%,
            #022E77 58%,
            #022055 100%
        ) !important;

    color: #FFFFFF !important;

    border: 1px solid rgba(201, 162, 39, .72) !important;
    border-radius: 12px !important;

    text-decoration: none !important;

    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: .1px !important;
    line-height: 1.35 !important;

    box-shadow:
        0 10px 24px rgba(2, 32, 85, .15),
        0 2px 6px rgba(2, 32, 85, .08),
        inset 0 1px 0 rgba(255, 255, 255, .10) !important;

    transition:
        transform .20s ease,
        box-shadow .20s ease,
        border-color .20s ease,
        background .20s ease !important;
}

/* لمعة ذهبية خفيفة */
.imes-home-button::before {
    content: "" !important;

    position: absolute !important;
    top: 0 !important;
    left: -120% !important;

    width: 80% !important;
    height: 100% !important;

    transform: skewX(-18deg) !important;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(230, 198, 92, .14),
        transparent
    ) !important;

    transition: left .45s ease !important;

    pointer-events: none !important;
}

/* الأيقونة داخل دائرة ذهبية ناعمة */
.imes-home-button .fa-home {
    width: 34px !important;
    height: 34px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 34px !important;

    border-radius: 50% !important;

    background: rgba(201, 162, 39, .16) !important;
    border: 1px solid rgba(230, 198, 92, .60) !important;

    color: #E6C65C !important;

    font-size: 1rem !important;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .03) !important;
}

/* نص الزر */
.imes-home-button span {
    color: #FFFFFF !important;
    white-space: nowrap !important;
}

/* Hover */
.imes-home-button:hover,
.imes-home-button:focus-visible {
    transform: translateY(-2px) !important;

    background:
        linear-gradient(
            135deg,
            #022E77 0%,
            #03418F 55%,
            #022055 100%
        ) !important;

    border-color: #E6C65C !important;

    box-shadow:
        0 14px 30px rgba(2, 32, 85, .20),
        0 4px 10px rgba(2, 32, 85, .10),
        0 0 0 3px rgba(201, 162, 39, .08) !important;

    text-decoration: none !important;
}

.imes-home-button:hover::before,
.imes-home-button:focus-visible::before {
    left: 140% !important;
}

.imes-home-button:hover .fa-home,
.imes-home-button:focus-visible .fa-home {
    background: rgba(230, 198, 92, .22) !important;
    color: #FFF4C7 !important;
    border-color: #E6C65C !important;
}

/* Active */
.imes-home-button:active {
    transform: translateY(0) !important;

    box-shadow:
        0 7px 18px rgba(2, 32, 85, .16) !important;
}

/* إمكانية الوصول */
.imes-home-button:focus {
    outline: none !important;
}

.imes-home-button:focus-visible {
    outline: 3px solid rgba(201, 162, 39, .26) !important;
    outline-offset: 3px !important;
}

/* الهاتف */
@media (max-width: 600px) {
    .imes-completion-home {
        margin-top: 22px !important;
        padding-top: 20px !important;
    }

    .imes-home-button {
        width: calc(100% - 24px) !important;
        max-width: 360px !important;
        min-width: 0 !important;

        min-height: 52px !important;

        padding: 11px 18px !important;

        border-radius: 10px !important;

        font-size: .96rem !important;
    }

    .imes-home-button .fa-home {
        width: 32px !important;
        height: 32px !important;
        flex-basis: 32px !important;
    }
}


/* ==========================================================
   IMES - تحسين محاذاة زر الصفحة الرئيسية
   النص ذهبي ومقابل الأيقونة مباشرة
   Added: 2026-09-09
   ========================================================== */

.imes-home-button {
    direction: rtl !important;
    flex-direction: row !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 10px !important;

    text-align: center !important;
}

/* اسم الزر باللون الذهبي وعلى نفس السطر مع الأيقونة */
.imes-home-button span {
    display: inline-flex !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #E6C65C !important;

    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;

    white-space: nowrap !important;
}

/* الأيقونة ملاصقة بصرياً للنص وعلى نفس المحور */
.imes-home-button .fa-home {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;

    flex: 0 0 34px !important;

    color: #FFF4C7 !important;
}

/* في حالة المرور يبقى النص ذهبياً */
.imes-home-button:hover span,
.imes-home-button:focus-visible span,
.imes-home-button:active span {
    color: #D4AF37 !important;
}

/* منع أي التفاف أو انتقال بين الأيقونة والنص */
.imes-home-button > i,
.imes-home-button > span {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    vertical-align: middle !important;
}

/* الهاتف */
@media (max-width: 600px) {
    .imes-home-button {
        gap: 8px !important;
    }

    .imes-home-button span {
        font-size: .95rem !important;
    }
}


/* ==========================================================
   IMES - تكبير خط زر الصفحة الرئيسية
   Added: 2026-09-09
   ========================================================== */

.imes-home-button span {
    font-size: 1.18rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

/* تكبير بسيط ومتوازن للأيقونة لتتناسب مع حجم النص */
.imes-home-button .fa-home {
    font-size: 1.08rem !important;
}

/* الهاتف */
@media (max-width: 600px) {
    .imes-home-button span {
        font-size: 1.08rem !important;
    }

    .imes-home-button .fa-home {
        font-size: 1rem !important;
    }
}


/* ==========================================================
   IMES - جعل دائرة اختيار الراديو باللون الذهبي
   Added: 2026-09-09
   ========================================================== */

/* المتصفحات الحديثة */
input[type="radio"] {
    accent-color: #C9A227 !important;
}

/* حالة الاختيار */
input[type="radio"]:checked,
.form-check-input[type="radio"]:checked {
    background-color: #C9A227 !important;
    border-color: #C9A227 !important;
}

/* LimeSurvey / Bootstrap radio custom rendering */
.radio-item input[type="radio"]:checked + label::before,
.radio-item input[type="radio"]:checked + label:before,
.radio-item input[type="radio"]:checked ~ label::before,
.radio-item input[type="radio"]:checked ~ label:before,
.form-check-input[type="radio"]:checked + label::before,
.custom-control-input[type="radio"]:checked ~ .custom-control-label::before {
    border-color: #C9A227 !important;
    background-color: #FFFFFF !important;
}

/* النقطة الداخلية للراديو */
.radio-item input[type="radio"]:checked + label::after,
.radio-item input[type="radio"]:checked + label:after,
.radio-item input[type="radio"]:checked ~ label::after,
.radio-item input[type="radio"]:checked ~ label:after,
.form-check-input[type="radio"]:checked + label::after,
.custom-control-input[type="radio"]:checked ~ .custom-control-label::after {
    background-color: #C9A227 !important;
    border-color: #C9A227 !important;
}

/* Hover / Focus */
input[type="radio"]:focus,
input[type="radio"]:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 .15rem rgba(201, 162, 39, .18) !important;
}

/* إبقاء النص المحيط دون تغيير */
.radio-item label,
.form-check-label {
    color: inherit !important;
}

/* ==========================================================
   IMES - FIX ONLY: continuous visible question numbering
   Scope: numbering only
   Result: 1, 2, 3, 4... continuously across all sections
   ========================================================== */

/* عداد واحد للاستبيان كاملًا؛ لا يعاد ضبطه عند بداية أي Section. */
#limesurvey {
    counter-reset: imesVisibleQuestion !important;
}

/* احتساب الأسئلة الظاهرة/ذات الصلة فقط. */
#limesurvey .question-container:not(.ls-hidden):not(.ls-irrelevant) {
    counter-increment: imesVisibleQuestion !important;
}

/* الأسئلة المخفية أو غير ذات الصلة لا تدخل في العد. */
#limesurvey .question-container.ls-hidden,
#limesurvey .question-container.ls-irrelevant {
    counter-increment: none !important;
}

/* إخفاء رقم LimeSurvey الأصلي وعرض العداد المستمر بدلًا منه. */
#limesurvey .question-container .question-number {
    font-size: 0 !important;
}

#limesurvey .question-container .question-number::after {
    content: counter(imesVisibleQuestion) !important;
    font-size: 1.55rem !important;
    font-weight: 700 !important;
    color: #7A8491 !important;
    line-height: 1 !important;
}

