﻿/* Arabic font */
@font-face {
    font-family: 'DroidArabicKufi';
    src: url('../font/Droid Arabic Kufi Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* English font */
@font-face {
    font-family: 'Roboto-VariableFont_wdth,wght';
    src: url('../font/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Arabic pages */
html[lang="ar"] {
    --body-font: 'DroidArabicKufi', Arial, sans-serif;
    --heading-font: 'DroidArabicKufi', Arial, sans-serif;
    direction: rtl;
}

/* English pages */
html[lang="en"] {
    --body-font: 'Roboto-VariableFont_wdth,wght', Arial, sans-serif !important;
    --heading-font: 'Roboto-VariableFont_wdth,wght', Arial, sans-serif !important;
    font-weight: 400 !important;
    direction: ltr;
}

body[lang="en"] {
    --body-font: 'Roboto-VariableFont_wdth,wght', Arial, sans-serif !important;
    --heading-font: 'Roboto-VariableFont_wdth,wght', Arial, sans-serif;
    direction: ltr;
}

/* Apply fonts */
body {
    font-family: var(--body-font);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
}

/* Color and Font Variables */
:root {
    --primary-color-1: #2e6c8d;
    --primary-color-4: #2e6c8d; /* Dark blue */
    --body-font: 'DroidArabicKufi', Arial, sans-serif !important;
    --heading-font: 'DroidArabicKufi', Arial, sans-serif !important;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    -webkit-font-smoothing: antialiased;
}
/* Disable native smooth when Lenis is active (prevents double-easing) */
html.lenis {
    height: auto;
    overflow-x: hidden; /* بس على الـ x */
    overflow-y: auto;
}

    html.lenis, html.lenis body {
        scroll-behavior: auto !important;
    }

    html.lenis body {
        overflow: visible;
    }
/* Fixed-header offset + reduced motion */
:root {
    --header-h: 72px;
}

[id] {
    scroll-margin-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.header__area-menubar-center-menu a i {
    margin-left: 0; /* remove LTR gap */
    vertical-align: middle;
}


.rtl-mode .header__area-menubar-center-menu a i {
    position: relative;
    top: 4px;
}

.fa-angle-left:after {
    content: " \f104";
}

.fa-angle-left:before {
    content: none;
}


.section-padding {
    padding: 120px 0px;
}

h1, h2, h3, h4, h5, h6 {
    color: #323232;
}

.footer__two {
    padding-top: 40px;
}

.footer__top-item-info-icon i {
    border: 1px solid var(--text-white);
}

.testimonial__two-title .btn-one {
    background: var(--primary-color-1);
}

    .testimonial__two-title .btn-one::after, .testimonial__two-title .btn-one::before {
        background: var(--bg-heading-color);
    }

/* Usage Example */
body {
    font-family: 'DroidArabicKufi', Arial, sans-serif !important;
}

h2 {
    margin-top: 20px !important;
}

.header__area-menubar-right-contact-info-number {
    font-family: "Outfit" !important;
    font-size: 18px;
}
/* Button styling */
.btn-one {
    position: relative; /* Prevent duplication artifacts */
    z-index: 2;
}

.blog__two {
    background-image: url('../img/shape/testimonial.png');
    background-color: #F8F8F8;
}

.blog__standard-left-item-content-meta ul li a i {
    color: var(--primary-color-4);
}

.blog__standard-left-item-content-meta ul li a:hover {
    color: var(--primary-color-4);
}

.blog__two-item-content {
    background-color: white;
}

.blog__two-item-btn a {
    background-color: white;
}

.rtl-mode .blog__standard-left-item-content-meta ul li {
    margin-left: 4px;
}
/* NEWS CARDS – move date badge to right */
.ltr-mode .blog__two-item-content {
    position: relative;
}

.ltr-mode .blog__two-item-content-date {
    right: 20px !important;
    left: auto !important;
    padding:5px;
}

/* MEMBER NEWS (testimonial slider) – give avatar room and align date text */
.ltr-mode .testimonial__two-item-inner {
    position: relative;
    padding-right: 110px; /* space for avatar so texts don't collide */
}

@media (max-width: 576px) {
    .ltr-mode .testimonial__two-item-inner {
        padding-right: 84px;
    }
}

/* Place avatar top-right with a clean gap from the bottom ribbon */
.ltr-mode .testimonial__two-item-inner-avatar {
    position: absolute !important;
    top: 24px; /* keep it away from ribbon */
    right: 24px;
}
/*.ltr-mode .testimonial__two-item-bottom {
    text-align: left;
}*/
.ltr-mode .news-date {
    text-align: left;
    display: inline-block;
    float: left; /* force left positioning */
    padding-left: 10px;
}

.ltr-mode.testimonial__two-item-inner-avatar img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
/* Place avatar top-right with a clean gap from the bottom ribbon */
.rtl-mode .testimonial__two-item-inner-avatar {
    position: absolute !important;
    top: 24px; /* keep it away from ribbon */
    left: -38px;
}

    .rtl-mode .testimonial__two-item-inner-avatar img {
        width: 72px;
        height: 72px;
        object-fit: cover;
        border-radius: 50%;
        border: 3px solid #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,.12);
    }

/* Bottom ribbon/date: align right and avoid avatar overlap */
/*.ltr-mode .testimonial__two-item-bottom {
    text-align: right;
    padding-right: 396px;*/ /* same offset as inner padding */
/*}*/

/*@media (max-width: 576px) {
    .ltr-mode .testimonial__two-item-bottom {
        padding-right: 84px;
    }
}*/
/* Base */
.ltr-mode body {
    direction: ltr;
    text-align: left;
}

/* Top bar spacing/icons */
.ltr-mode .top__bar-four-left ul li a i,
.ltr-mode .top__bar-four-right-social ul li a i {
    margin-right: .45rem;
    margin-left: 0;
}

/* Header nav (desktop) */
.ltr-mode .header__area-menubar-center-menu ul li a {
    font-weight: 400 !important;
}

.ltr-mode .header__area-menubar-center-menu #mobilemenu > li {
    float: left;
}

.ltr-mode .header__area-menubar-center-menu ul li > a {
    text-align: left;
}

.ltr-mode .header__area-menubar-center-menu .sub-menu {
    left: 0;
    right: auto;
    text-align: left;
}

.ltr-mode .menu-item-has-children > a i { /* caret spacing */
    margin-left: .4rem;
    margin-right: 0;
    transform: none;
}

/* Search box */
.ltr-mode .header__area-menubar-right-search-box form input {
    text-align: left;
}

.header__area-menubar-right-search-box {
    background: #1212129c;
}
/*


    .header__area-menubar-right-search-box input[type='search'] {
        z-index:1;
        position:relative
    }*/
/* Header right cluster spacing (search / burger / buttons) */
.rtl-mode .header__area-menubar-center-menu ul li:last-child {
    margin-right: 10px;
    margin-left: 0;
}

.rtl-mode .menu-item-has-children > a i {
    margin-left: .4rem;
    margin-right: 0;
    transform: none;
}

.ltr-mode .header__area-menubar-right .btn-one + .btn-one {
    margin-left: .5rem;
    margin-right: 0;
}

/* Mobile menu (meanmenu) alignment */
.rtl-mode .ltr-mode .mean-nav ul li a {
    text-align: left;
}

.ltr-mode .meanmenu-reveal {
    right: 0;
    left: auto;
}

/* Banner arrows: prev left, next right */

.ltr-mode .banner__one-arrow-prev {
    left: 30px;
    right: auto;
    transform: none;
}

.ltr-mode .banner__one-arrow-next {
    right: 30px;
    left: auto;
    transform: none;
}

/* “Features” row keeps left alignment in LTR */
.ltr-mode .features .features-area,
.ltr-mode .features-area-item-content {
    text-align: left;
}

/* About section text blocks */
@media (max-width: 480px) {
    .ltr-mode .benefits__area-left-image-from {
        padding: 0px 21px;
        right: 242px !important;
    }
}

.ltr-mode .benefits__area-right-title,
.ltr-mode .benefits__area-right-bottom,
.ltr-mode .signature {
    text-align: left;
}

    .ltr-mode .signature p {
        text-align: right;
    }
/* signature stays at block end */

/* News cards: date badge to left, button arrow spacing to right */
.ltr-mode .blog__two-item-content {
    text-align: left;
}

/*.ltr-mode .blog__two-item-content-date {
    left: 20px;
    right: auto;
}*/

.ltr-mode .blog__two-item-btn a i {
    margin-left: .45rem;
    margin-right: 0;
    transform: none;
}

/* Activities cards: meta icons and buttons */
.ltr-mode .blog__standard-left-item-content {
    text-align: left;
}

.ltr-mode .blog__standard-left-item-content-meta .list-inline-item i {
    margin-right: .35rem;
    margin-left: 0;
}

.ltr-mode .blog__standard-left-item .btn i {
    margin-left: .4rem;
    margin-right: 0;
}

/* Testimonial/Member news: pagination & text */
.ltr-mode .testimonial__two-title,
.ltr-mode .testimonial__two-item-inner {
    text-align: left;
}

/* Partners grid */
.ltr-mode .contact__page .contact__page-item {
    text-align: center;
}

/* Footer top tiles */
.ltr-mode .footer__top-item-info {
    text-align: left;
}

.ltr-mode .footer__top-item-info-icon {
    margin-right: .6rem;
    margin-left: 0;
}

/* Footer columns text direction & icons */
.ltr-mode .footer__two-widget,
.ltr-mode .footer__two-widget-about,
.ltr-mode .footer__area-widget-menu {
    text-align: left;
}

.ltr-mode .footer__two-widget-info p i {
    margin-right: .45rem;
    margin-left: 0;
}

.ltr-mode .footer__two-widget-subscribe .form-container input {
    text-align: left;
}

/* Numbers/phones always LTR */
/*.ltr-mode .header__area-menubar-right-contact-info-number a,
.ltr-mode a[href^="tel:"],
.ltr-mode .news-date,
.ltr-mode .day {
    direction: ltr;
    unicode-bidi: embed;
}*/

/* Misc arrow icons that themes sometimes mirror in RTL */
.ltr-mode .fa-long-arrow-left,
.ltr-mode .fa-arrow-left {
    transform: scaleX(1);
}
/* keep normal in LTR */

/*--------------Header-----------------------*/
/* Manage the UL without changing visuals */
.header__area-menubar-center-menu .auto-menu-ul {
    display: flex;
    align-items: center;
    gap: 16px; /* normal spacing */
    flex-wrap: nowrap; /* single line by default */
    overflow-x: auto;
    padding: 0;
    margin: 0;
    list-style: none;
    /* Reserve space for the phone widget on the left (RTL-safe) */
    padding-inline-start: var(--reserve-left, 0px);
}

/* Slight tightening when cramped */
.header__area-menubar-center-menu.menu--tight .auto-menu-ul {
    gap: 10px;
}

/* If still cramped, wrap to a new line and remove the left reserve */
.header__area-menubar-center-menu.menu--wrap .auto-menu-ul {
    flex-wrap: wrap;
    row-gap: 8px;
    padding-inline-start: 0;
    justify-content: center; /* keep it neat when wrapping */
    width: 100%;
}
/* Pill button, same height as your round header icons (≈40px) */
.header__area-menubar-right-contact.lang-switch .lang-switch__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px; /* match other header icon blocks */
    padding: 0 12px; /* compact width */
    min-width: 74px; /* keeps it readable */
    border: 1px solid var(--primary-color-1); /* uses existing theme color */
    border-radius: 999px; /* pill shape */
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color-1);
    line-height: 1;
    text-decoration: none; /* inherit header colors */
}

    .header__area-menubar-right-contact.lang-switch .lang-switch__btn:hover {
        background: var(--primary-color-1);
        color: white;
    }
/* Slightly smaller on very small screens */
@media (max-width:576px) {
    .header__area-menubar-right-contact.lang-switch .lang-switch__btn {
        height: 36px;
        padding: 0 10px;
        min-width: auto;
        font-size: 12px;
    }
}

/* Ensure parent grows in height when wrapping (prevents overlap) */
.header__area-menubar-center-menu {
    height: auto;
    overflow: visible;
}

    /* Submenu Styling */
    .header__area-menubar-center-menu .sub-menu {
        background: #fff;
    }

.header__area {
    font-size: 15px;
    position: relative;
    z-index: 999;
}

.header__area-menubar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
    /*padding: 15px 0;*/
}

.header__area.one {
    background: #fff;
}
/* Keep list items positioned */
.mean-container .mean-nav ul li {
    position: relative;
}

/* Main link text: aligned right, leave space on left for expand button */
.rtl-mode .mean-container .mean-nav ul li > a:not(.mean-expand) {
    display: block;
    text-align: right;
    padding: 12px 18px 12px 48px; /* top | right | bottom | left */
    box-sizing: border-box;
}

/* Expand button: compact square on the left */
/*.mean-container .mean-nav ul li a.mean-expand {
        position: absolute !important;
        left: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 28px !important;
        height: 28px !important;
        line-height: 28px !important;
        text-align: center;
        padding: 0 !important;*/ /* your requested padding */
/*margin: 0 250px!important;
        font-size: 16px !important;
        display: inline-block !important;
        background:var(--primary-color-1);
        box-sizing: border-box !important;
        border: none !important;
        z-index: 5;
    }*/

/* Prevent meanmenu inline overrides */
/*  .mean-container .mean-nav ul li a.mean-expand[style] {
            width: 28px !important;
            height: 28px !important;
            left: 10px !important;
            top: 50% !important;
            transform: translateY(-50%) !important;
        }*/


/*=========Preloader==============*/
.theme-loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #f7f7f7;
    z-index: 9999999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-bounce.one {
    /* Remove any margin or other properties that might affect the image */
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-bounce {
    width: 150px; /* Original size as requested */
    height: 150px;
    object-fit: contain;
    animation: expandShrink 2s ease-in-out infinite;
}

@keyframes expandShrink {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Countdown indicator */
/*.theme-loader::after {
    content: '';
    position: absolute;
    bottom: 40px;
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.theme-loader::before {
    content: '';
    position: absolute;
    bottom: 40px;
    width: 0;
    height: 4px;
    background: #e74c3c;
    border-radius: 2px;
    animation: countdown 5s linear forwards;
}
*/
@keyframes countdown {
    0% {
        width: 0;
    }

    100% {
        width: 100px;
    }
}
/* ===== LOGO SECTION ===== */
.header__area-menubar-left {
    flex: 0 0 auto;
    max-width: 140px; /* CHANGED from 150px */
}

/* ===== MAIN NAVIGATION ===== */
.header__area-menubar-left {
    flex: 0 0 auto;
    max-width: 140px;
}

.header__area-menubar-left-logo a img {
    max-width: 111px;
    height: auto;
}

.header__area-menubar-center {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.92em;
}

.header__area-menubar-center-menu > ul {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
}

    .header__area-menubar-center-menu > ul > li {
        position: relative;
        white-space: nowrap;
        margin: 0 10px;
    }

        .header__area-menubar-center-menu > ul > li > a {
            /*padding: 8px 5px;*/
            display: block;
        }
/* Remove dropdown arrow - UNCHANGED */
.header__area-menubar-center-menu ul li.menu-item-has-children > a::before {
    content: none !important;
}

.header__area-menubar-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.88em;
}

/* Contact Info - UNCHANGED structure */
.header__area-menubar-right-contact {
    display: flex;
    align-items: center;
    gap: 6px; /* CHANGED from 8px */
}

/* Button - UNCHANGED structure */
.header__area-menubar-right-btn .btn-one {
    padding-right: 20px;
    padding-left: 20px;
}

/* Search - UNCHANGED structure */
.header__area-menubar-right-search {
    font-size: 0.95em; /* CHANGED from 0.9em */
}

@media (max-width: 555px) {
    .benefits__area-left-image-from {
        padding: 10px 50px;
    }
}
/* ===== DROPDOWN MENUS ===== */
.header__area-menubar-center-menu .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.header__area-menubar-center-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
}

.header__area-menubar-right-contact-info h6 {
    margin: 0; /* Optional: removes default h6 margin for better alignment */
}

/* CSS ONLY FOR YOUR ADDED ELEMENTS */
/* Targets ONLY the h3 with organization-title class in banner */
.page__banner-content ul li {
    color: var(--text-white);
}


    .page__banner-content ul li a {
        color: #c7e2ff;
        margin-right: 15px;
        transition: 0.4s;
    }

.page__banner-image {
    background: linear-gradient(135deg, rgb(0, 96, 136) 0%, rgb(118, 145, 173) 100%), radial-gradient(circle at 80% 20%, var(--primary-color-1), transparent 30%);
    /**/
}
/*.banner__one-arrow{
    z-index:0;
}*/


/* خلفية موحدة للنص داخل السلايد */
.banner__one .banner-text-group {
    display: inline-block; /* يلف النص فقط */
    background: rgba(0,0,0,.55); /* اختر ما يناسب الهوية (يمكنك استبدالها بأزرق شفاف) */
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    max-width: min(900px, 92%); /* لا تتجاوز العرض */

    margin-bottom: 10px;
}

    .banner__one .banner-text-group * {
        color: #fff;
    }

.rtl-mode .banner__two-arrow, .rtl-mode .banner__one-arrow {
    right: unset !important;
    left: 0 !important;
    width: 50%
}

.ltr-mode .banner__two-arrow, .ltr-mode .banner__one-arrow {
    right: 0 !important;
    left: unset !important;
    width: 50%
}

/* ===== Banner Text Group as Shadow Box ===== */
.banner-text-group {
    position: relative; /* عشان العناصر الداخلية */
    background: rgba(0, 0, 0, 0.55); /* التظليل */
    color: #fff;
    display: inline-block; /* ياخذ حجم المحتوى فقط */
    padding: 1.5rem 2rem;
    border-radius: 10px;
    max-width: 800px;
    pointer-events: none; /* ما يمنع الكلكات خارج النص */
    z-index: 3; /* فوق الصورة وتحت الأسهم */
}

    .banner-text-group * {
        pointer-events: auto; /* النصوص/الأزرار داخلها قابلة للنقر */
    }

    /* العنوان */
    .banner-text-group .organization-title {
        margin: 0 0 .6rem;
        font-weight: 800;
        font-size: clamp(20px, 4vw, 42px);
        line-height: 1.2;
        color: #fff;
    }

    /* الوصف */
    .banner-text-group .banner-description {
        margin: 0;
        font-size: clamp(14px, 1.6vw, 18px);
        line-height: 1.6;
        color: #f1f1f1;
    }

    /* مثال للزر داخل المجموعة */
    .banner-text-group .btn-one {
        margin-top: 1rem;
        display: inline-block;
        background: #6ac3ee;
        color: #fff;
        padding: .8rem 1.4rem;
        border-radius: 999px;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 6px 15px rgba(0,0,0,.25);
        transition: background .3s ease;
    }

        .banner-text-group .btn-one:hover {
            background: #4da9d6;
        }


.blog__two-item-content-date {
    color: var(--primary-color-4);
    left: 20px;
    right: auto;
}

.day {
    color: var(--primary-color-4);
}

.blog__two-item-content {
    text-align: right;
}

.blog__two-item-btn i {
    margin-right: 5px;
    margin-left: 0;
}

.features-area-item {
    text-align: right;
}

.portfolio__two-item-image-content {
    text-align: right;
}

/* RTL Text Justification for News Items */
.testimonial__two[dir="rtl"] .news-title,
.testimonial__two[dir="rtl"] .news-desc {
    text-align: justify;
    text-align-last: right;
    word-spacing: -0.1em;
    line-height: 1.6;
}

.testimonial__two[dir="rtl"] .news-title {
    margin-bottom: 10px;
    font-weight: 600;
}

.testimonial__two[dir="rtl"] .news-desc {
    margin-bottom: 15px;
    hyphens: auto;
}

.testimonial__two-item-bottom {
    height: 30px; /* Increased height */
    background-color: var(--primary-color-4); /* Light background */
    border-top: 1px solid #e0e0e0; /* Subtle border */
    margin-top: 10px; /* Space above the bottom section */
    border-radius: 0 0 8px 8px; /* Rounded bottom corners */
}

.testimonial__two-item-inner-avatar img {
    width: 100px;
    height: 100px;
    max-width: 100px;
}
/* Text limiting with ellipsis */
.text-limited {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--max-lines, 3);
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-spacer {
    font-size: 1rem;
    position: relative;
    top: 1px;
}

/* RTL Adjustments */
[dir="rtl"] .benefits__area-right-list {
    display: none; /* Removed checkmarks section */
}

.text-justify {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 15px;
}

.benefits__area-right-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.signature {
    font-style: italic;
    color: #555;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .benefits__area-right-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .benefits__area-right-bottom-btn {
        margin-bottom: 15px;
    }
}
/* Overlay Styles */
.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.03);
    z-index: 0;
    pointer-events: none;
}
/* Text cutoff styles */
.two-line-cutoff {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3em;
    line-height: 1.5em;
}

.three-line-cutoff {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.5em;
    line-height: 1.5em;
}

/* Date box styling */
.news-date-box {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    color: #666;
    font-size: 13px;
    border-top: 1px solid #eee;
}

    .news-date-box i {
        margin-left: 8px;
        color: #888;
        font-size: 12px;
    }



/* Testimonial News Layout */
/* Ensure the testimonial item has proper height */
.testimonial__two-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 25px 45px 0px 45px;
}

/* Make the inner content grow to fill space */
.testimonial__two-item-inner {
    flex-grow: 1;
}

.testimonial__two-item-inner-avatar {
    background: none;
    gap: 10px;
    bottom: -30px;
    padding: 0px;
}
/* Style for the bottom date section */
.testimonial__two-item-bottom {
    padding: 6px 0;
    padding-right: 10px;
    height: 100px;
    text-align: right;
    border-top: 1px solid #eee;
    font-size: 20px;
    background-color: var(--primary-color-4);
}


/* Swiper Navigation */
.testimonial__two-left {
    position: relative;
    padding-left: 40px; /* Space for pagination */
}

.testimonial-pagination {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ddd;
    opacity: 1;
    margin: 0;
    display: block;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* RTL Adjustments */
[dir="rtl"] .testimonial__two-left {
    padding-left: 0;
    padding-right: 40px;
}

[dir="rtl"] .testimonial-pagination {
    left: auto;
    right: 0;
}


.text-overlay {
    background: rgba(0, 0, 0, 0.6); /* Dark semi-transparent overlay */
    padding: 30px;
    border-radius: 5px;
    display: inline-block;
    max-width: 80%; /* Adjust based on your needs */
}



/* Date Container Styling */
.date-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto; /* Pushes to right */
    padding-right: 20px; /* Prevents image collision */
    position: relative;
}

/* Date Icon Styling */
.date-icon {
    width: 18px;
    height: 18px;
    min-width: 18px; /* Prevents icon shrinking */
    background-image: url('your-icon-path.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .date-container {
        padding-right: 10px;
        font-size: 0.9em;
    }

    .date-icon {
        width: 16px;
        height: 16px;
    }
}
/* Apply color to BOTH icons and text */
.subtitle-one,
.subtitle-six,
.subtitle-seven,
.subtitle-eight,
.subtitle-five {
    color: var(--primary-color-4) !important;
}

    /* Icons (::before) */
    .subtitle-one::before,
    .subtitle-six::before,
    .subtitle-seven::before,
    .subtitle-eight::before,
    .subtitle-five::before {
        background-image: none !important;
        font-weight: 900 !important;
        font-size: 18px !important;
        margin-right: 8px;
        /*        direction: rtl !important;
*/
    }

.subtitle-five,
.subtitle-six,
.subtitle-seven,
.subtitle-eight {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color-4);
}

    /* Icon styling for all three */
    .subtitle-five::before,
    .subtitle-six::before,
    .subtitle-seven::before,
    .subtitle-eight::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 18px;
        display: inline-block;
        margin-left: 10px; /* 👈 spacing between icon and Arabic text */
        color: var(--primary-color-4);
    }

    /* Individual icons */
    /*.subtitle-six::before {
        content: "\f0ae";*/ /* fa-tasks */
    /*}

    .subtitle-seven::before {
        content: "\f03e";*/ /* fa-image — for gallery or media */
    /*}

    .subtitle-eight::before {
        content: "\f0f6"
    }*/

/*    .subtitle-five::before {
        content: "\f2bb";
    }*/
/* Signature Styling */
.signature {
    font-style: italic;
    color: #555;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 20px;
}
/* Text Justification */
.text-justify {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 15px;
}
/* Button Styling */
.benefits__area-right-bottom-btn .btn-one {
    margin-left: 0;
    margin-right: 15px;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .benefits__area-left-image-from {
        padding: 0px 21px;
    }

    .year-sticker {
        transform: scale(0.7);
    }

    .year-sticker-content h2 {
        font-size: 50px;
    }

    .year-sticker-content h6 {
        font-size: 24px;
    }
}

@media (max-width: 375px) {
    .benefits__area-left-image-from {
        padding: 0px 21px;
        right: -74px !important;
    }
}

@media (max-width: 480px) {
    .benefits__area-left-image-from {
        padding: 0px 21px;
        right: -64px !important;
    }

    .year-sticker {
        transform: scale(0.6);
        padding: 10px;
    }

    .year-sticker-content h2 {
        font-size: 46px;
    }

    .year-sticker-content h6 {
        font-size: 20px;
    }
}
/* Add this CSS to ensure text doesn't exceed 2 lines */
.two-line-ellipsis {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 1em; /* Adjust based on your line-height */
}
/* Ensure equal height for all items */
.blog__two-item, .blog__standard-left-item {
    display: flex;
    flex-direction: column;
}

.blog__two-item-content, .blog__standard-left-item-content {
    flex: 1;
}

.fixed-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3em; /* Ensures two lines of text */
    line-height: 1.5em;
}
.fixed-description-ReadMore {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3em; /* Ensures two lines of text */
    line-height: 1.5em;
}

.blog__standard-left-item {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

    .blog__standard-left-item:hover {
        transform: translateY(-5px);
    }

.blog__standard-left-item-image img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog__standard-left-item:hover .blog__standard-left-item-image img {
    transform: scale(1.05);
}

.img-fluid {
    width: 100%;
    height: 200px; /* Fixed height for images */
    object-fit: cover;
}

@media (max-width: 1400px) {
    .testimonial__two-item-inner-avatar img {
        width: 100px;
        height: 100px;
        max-width: 100px;
        gap: 14px;
    }
}

@media (max-width: 1230px) {
    .testimonial__two-item-inner-avatar img {
        width: 50px;
        height: 50px;
        max-width: 50px;
        gap: 14px
    }
}

@media (max-width: 994px) {
    .testimonial__two-item-inner-avatar img {
        width: 100px;
        height: 100px;
        max-width: 100px;
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .testimonial__two-item-inner-avatar img {
        width: 80px;
        height: 80px;
        max-width: 800px;
        gap: 14px;
    }
}


@media (max-width: 540px) {
    .testimonial__two-item-inner-avatar img {
        width: 50px;
        height: 50px;
        max-width: 50px;
        gap: 14px;
    }

    .header__area-menubar-left-logo a img {
        max-width: 60px;
    }

    .testimonial__two-item {
        padding: 25px 45px 0px 45px;
    }
}


@media (max-width: 475) {


    .testimonial__two-item {
        padding: 35px 45px 0px 45px;
    }
}

.rtl-mode .header__area-menubar-center-menu ul li:first-child {
    margin-left: 10px;
}

.copyright__one p a, .copyright__two p a, .copyright__three p a, .copyright__four p a {
    color: whitesmoke;
    text-decoration: underline;
    margin: 0px 2px;
}


.border-radius-4 {
    border-radius: 4px;
}
/*-----------------Borders Page------------------*/

/* ========== Accordion Base ========== */
.country-accordion {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.1s ease;
}

    .country-accordion:hover {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

/* ========== Country Header ========== */
.country-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: var(--primary-color-1);
    color: #fff;
    transition: background-color 0.1s ease;
}

    .country-header:hover {
        background-color: var(--primary-color-4);
    }

    .country-header > div {
        display: flex;
        align-items: center;
        gap: 15px;
        font-weight: bold;
        font-size: 18px;
    }

.flag {
    width: 30px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
}

.toggle-icon {
    transition: transform 0.1s ease;
}

.country-header:not(.collapsed) .toggle-icon {
    transform: rotate(-90deg);
}

/* ========== Country Content ========== */
.country-content {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.08s ease-out, padding 0.08s ease-out;
}

    .country-content.show {
        max-height: 2000px; /* large enough */
        padding: 20px;
    }

/* ========== Border Type Accordion ========== */
.border-type-accordion {
    border-bottom: 1px solid #eee;
}

    .border-type-accordion:last-child {
        border-bottom: none;
    }

.border-type-header {
    background: var(--light-bg);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

    .border-type-header:hover {
        background-color: #e9ecef;
    }

    .border-type-header h3 {
        margin: 0;
        font-size: 1.2rem;
        font-weight: 400;
        display: flex;
        align-items: center;
        gap: 10px;
        color: #323232;
        transition: color 0.1s ease;
    }

        .border-type-header h3:hover {
            color: var(--primary-color-1);
        }

    .border-type-header .toggle-icon {
        transition: transform 0.1s ease;
    }

    .border-type-header:not(.collapsed) .toggle-icon {
        transform: rotate(-90deg);
    }

/* ========== Border Type Content ========== */
.border-type-content {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.08s ease-out, padding 0.08s ease-out;
}

    .border-type-content.show {
        max-height: 2000px;
        padding: 15px;
    }

/* ========== Border List ========== */
.border-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .border-list li {
        padding: 20px 0;
        border-bottom: 2px solid var(--primary-color-1);
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: background-color 0.08s;
    }

        .border-list li:last-child {
            border-bottom: none;
        }

        .border-list li:hover {
            background-color: #f9f9f9;
            cursor: pointer;
        }

.border-name {
    font-weight: bold;
    color: #323232;
}

.border-with {
    font-size: 0.95rem;
    color: #666;
    margin-right: 10px;
}

.border-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-open {
    background-color: #e6f4ea;
    color: #137333;
}

.status-closed {
    background-color: #fce8e6;
    color: #c5221f;
}

/* ========== Search + Filter ========== */
.search-container {
    margin-bottom: 30px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

    .search-input:focus {
        outline: none;
        border-color: var(--primary-color-1);
        box-shadow: 0 0 0 2px rgba(46, 108, 141, 0.2);
    }

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.08s ease;
}

    .filter-btn.active,
    .filter-btn:hover {
        background: var(--primary-color-1);
        color: #fff;
        border-color: var(--primary-color-1);
    }

/* ========== Misc ========== */
.country-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.country-code {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Scrollbar */
.country-content::-webkit-scrollbar {
    width: 6px;
}

.country-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.country-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

    .country-content::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* Headings inside border sections */
.border-type-accordion h1,
.border-type-accordion h2,
.border-type-accordion h3,
.border-type-accordion h4,
.border-type-accordion h5,
.border-type-accordion h6 {
    color: #2e6c8d;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    /*    .container {
        padding: 80px 15px;
    }*/

    .country-header > div {
        font-size: 16px;
    }

    .border-type-header h3 {
        font-size: 15px;
    }

    .border-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/*----------------------Project Page-------------------*/

/* Equalize Blog Item Widths */
.blog__two-page .row {
    display: flex;
    flex-wrap: wrap;
}

.blog__two-page .blog__two-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog__two-item-image {
    flex: 0 0 auto;
}

.blog__two-item-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.blog__two-item-excerpt {
    flex-grow: 1;
}

/* Ensure columns have equal height */
.equal-height {
    display: flex;
    flex-wrap: wrap;
}

    .equal-height > [class*='col-'] {
        display: flex;
        flex-direction: column;
    }


.transport-ministry h6 {
    font-weight: 400 !important;
}
/*-----------------Ministries---------------------*/
/* Ensure the row maintains proper flex behavior */
/* Ensure cards stretch properly */
.map-card, .info-card {
    overflow: hidden;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

    /* Specifically fix the info card content */
    .info-card .card-body {
        display: flex;
        flex-direction: column;
        background-color: #fff;
        color: #323232;
        height: 100%;
    }

/* Map styling with proper padding */
/*.map-container {
    height: 400px;
    width: 100%;
    padding: 15px;
}
*/
.map-container {
    width: 100%;
    height: 500px; /* or whatever height you want */
    border-radius: 12px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .row.mb-5.d-flex {
        flex-wrap: wrap;
    }

        .row.mb-5.d-flex > [class*="col-"] {
            flex: 0 0 100%;
            max-width: 100%;
        }

    .map-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }
}

/* تنسيقات إضافية */

.info-card {
    color: white;
}

.btn-light {
    background-color: white;
    color: var(--primary-color-1);
    border: none;
}

.card-header {
    background-color: #f8f9fa;
    font-weight: bold;
    text-align: center;
    border-bottom: none;
}
/*--------------Board---------------*/
.team__three .btn-sm {
    padding: 0.15rem 0.4rem;
    font-size: 1rem;
    border-radius: 0.15rem;
    min-width: unset;
    width: 118px;
    align-self: center;
}
/* تقييد النصوص في قسم الفريق لسطر واحد */
.team__three-item-content span,
.team__three-item-content label {
    display: block; /* لتطبيق القيود على العناصر */
    white-space: nowrap; /* منع الانتقال لسطر جديد */
    overflow: hidden; /* إخفاء النص الزائد */
    text-overflow: ellipsis; /* إضافة النقاط الثلاث */
}

.modal-team-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.text-truncate {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-primary {
    color: var(--primary-color-1) !important;
}

.team__three-item a {
    color: #323232;
}

    .team__three-item a:hover {
        color: white;
    }

.card-header:first-child {
/*    border-radius: unset;*/
    color: var(--primary-color-1);
}
/* If you're using a filter plugin that calculates positions dynamically,
   you might need to adjust its JavaScript or add more CSS to handle the layout */
/*-----------------News Page-------------------*/
.blog__two-item {
    position: relative; /* أساس للـoverlay */
    cursor: pointer;
}

    /* نخلي الكرت كله يوجّه لنفس لينك "اقرأ المزيد" */
    .blog__two-item .blog__two-item-btn a::before {
        content: "";
        position: absolute;
        inset: 0; /* يغطي الكرت كله */
        z-index: 2; /* فوق كل العناصر */
    }

.blog-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

@media (max-width: 575px) {

    .blog-header h1 {
        font-size: 33px;
    }
}

@media (max-width: 575px) {
    .page__banner-content h1 {
        font-size: 22px;
        line-height: 60px;
    }
}

@media (max-width: 410px) {
    .page__banner-content h1 {
        font-size: 25px;
        line-height: 60px;
    }
}

@media (max-width: 410px) {

    .blog-header h1 {
        font-size: 25px;
    }
}

.theme__pagination ul li a {
    font-family: var(--heading-font);
    border: 1px solid var(--border-color-1);
    display: block;
    /*    height: 50px;
    width: 30px;*/
    line-height: 50px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    transition: 0.4s;
    border-radius: 3px;
}

.blog-header h1 {
    font-size: 41px;
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

    .blog-header h1::after {
        content: '';
        position: absolute;
        bottom: -15px;
        right: 50%;
        transform: translateX(50%);
        width: 80px;
        height: 4px;
        background: linear-gradient(to right, var(--primary-color), var(--accent-color));
        border-radius: 2px;
    }

.blog-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Item Styles */
.blog__two-item {
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    background: #fff;
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
}

    .blog__two-item:hover {
        transform: translateY(-12px) scale(1.01);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

.blog__two-item-image {
    position: relative;
    z-index: 1;
    overflow: hidden;
    height: 280px;
}

    .blog__two-item-image::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
        opacity: 0;
        transition: opacity 0.5s ease;
        z-index: 2;
    }

    .blog__two-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: all 0.7s ease;
    }

.blog__two-item-content {
    position: relative;
    padding: 25px;
    background: #fff;
}

    .blog__two-item-content > span {
        color: var(--primary-color);
        font-weight: 700;
        font-size: 14px;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        display: inline-block;
        margin-bottom: 15px;
        position: relative;
        padding-right: 20px;
        padding: 1px 0px;
        border-radius: 30px;
    }
/* LTR only: left-align the hero text */
.ltr-mode .banner-text-group,
.ltr-mode .banner-text-group .organization-title,
.ltr-mode .banner-text-group .banner-description {
    text-align: left !important;
    direction: ltr !important;
    unicode-bidi: isolate;
}

/* Signature block – LTR only */
.ltr-mode .signature.mt-4 > p.text-end {
    text-align: left !important; /* force it to the visual end */
    direction: ltr !important; /* keep Latin names/numbers LTR */
    unicode-bidi: isolate; /* prevent parent bidi from interfering */
    margin: 0; /* optional: remove extra gap */
}

/* LTR only */
.ltr-mode .blog__two-item-content > span {
    color: var(--primary-color-4);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
    position: relative;
    padding-left: 0;
}


.blog__two-item-content h4 {
    margin: 0;
    font-size: 22px;
    line-height: 1.4;
    min-height: 62px;
}

    .blog__two-item-content h4 a {
        transition: all 0.3s ease;
        color: var(--dark-color);
        text-decoration: none;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

        .blog__two-item-content h4 a:hover {
            color: var(--primary-color);
            text-decoration: none;
        }

.blog-views {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 14px;
}

    .blog-views i {
        margin-left: 5px;
        color: var(--secondary-color);
    }


.blog__two-item-btn {
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

    .blog__two-item-btn a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 25px;
        color: var(--dark-color);
        font-weight: 700;
        font-size: 16px;
        position: relative;
        transition: var(--transition);
        z-index: 1;
        overflow: hidden;
        text-decoration: none;
        background: #f9fafb;
    }

        .blog__two-item-btn a::after {
            position: absolute;
            right: 0;
            top: 0;
            width: 100%;
            height: 0;
            /*            background:linear-gradient(135deg, rgb(155, 205, 185) 0%, rgb(0, 96, 136) 100%), radial-gradient(circle at 80% 20%, rgba(155, 205, 185, 0.25), transparent 30%);
*/ z-index: -1;
        }

.blog__two-page .blog__two-item:hover .blog__two-item-btn a {
    background: linear-gradient(135deg, rgb(155, 205, 185) 0%, rgb(0, 96, 136) 100%), radial-gradient(circle at 80% 20%, rgba(155, 205, 185, 0.25), transparent 30%);
}

.blog__two-item-btn a span:last-child {
    transition: transform 0.4s ease;
}

.blog__two-item:hover .blog__two-item-image img {
    transform: scale(1.1);
}

.blog__two-item:hover .blog__two-item-image::before {
    opacity: 1;
}

.blog__two-item:hover .blog__two-item-btn a {
    color: #fff;
}

    .blog__two-item:hover .blog__two-item-btn a::after {
        height: 100%;
    }

    .blog__two-item:hover .blog__two-item-btn a span:last-child {
        transform: translateX(-8px);
    }

/* Interactive elements */
.blog-interactive {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.blog-badge {
    background: var(--secondary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.4);
}

.blog-bookmark {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

    .blog-bookmark:hover {
        background: var(--accent-color);
        color: white;
        transform: translateY(-3px);
    }

/* Reading Progress Indicator */
.reading-progress {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transition: width 0.3s ease;
    z-index: 3;
}

/* Pagination */
/*.theme__pagination {
    display: inline-block;
    margin-top: 50px;
}

    .theme__pagination ul {
        display: flex;
        list-style: none;
        padding: 0;
        margin: 0;
        gap: 10px;
    }

    .theme__pagination li {
        margin: 0;
    }

    .theme__pagination a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: white;
        color: #6b7280;
        text-decoration: none;
        font-weight: 700;
        transition: var(--transition);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }

        .theme__pagination a.active,
        .theme__pagination a:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(44, 90, 160, 0.3);
        }*/
/* Pagination Styles */
.theme__pagination {
    display: block;
    margin-top: 50px;
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* منع أي overflow */
}

    .theme__pagination ul {
        display: flex;
        list-style: none;
        padding: 0;
        margin: 0;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
        max-width: 100%;
    }

    .theme__pagination li {
        margin: 0;
        flex-shrink: 0;
    }

    .theme__pagination a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: white;
        color: #6b7280;
        text-decoration: none;
        font-weight: 700;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }

        .theme__pagination a.active,
        .theme__pagination a:hover:not(.disabled) {
            background: var(--primary-color);
            color: #3e4043;
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(44, 90, 160, 0.3);
        }

        .theme__pagination a.disabled {
            opacity: 0.4;
            cursor: not-allowed;
            pointer-events: none;
        }

/* Tablet */
@media (max-width: 991px) {
    .theme__pagination {
        margin-top: 40px;
    }

        .theme__pagination ul {
            gap: 8px;
            row-gap: 10px;
        }

        .theme__pagination a {
            width: 44px;
            height: 44px;
            font-size: 15px;
        }
}

/* Mobile Large */
@media (max-width: 767px) {
    .theme__pagination {
        margin-top: 30px;
        padding: 0 10px; /* حماية من الجوانب */
    }

        .theme__pagination ul {
            gap: 6px;
            row-gap: 10px;
        }

        .theme__pagination a {
            width: 38px;
            height: 38px;
            font-size: 14px;
        }

            .theme__pagination a i {
                font-size: 12px;
            }
}

/* Mobile Medium */
@media (max-width: 575px) {
    .theme__pagination {
        padding: 0 5px;
    }

        .theme__pagination ul {
            gap: 5px;
            row-gap: 8px;
        }

        .theme__pagination a {
            width: 35px;
            height: 35px;
            font-size: 13px;
        }
}

/* Mobile Small */
@media (max-width: 399px) {
    .theme__pagination ul {
        gap: 4px;
        row-gap: 8px;
    }

    .theme__pagination a {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

        .theme__pagination a i {
            font-size: 10px;
        }
}

/* iPhone 12 Pro و أجهزة مشابهة (390px) */
@media (max-width: 390px) {
    .theme__pagination ul {
        gap: 3px;
        row-gap: 8px;
    }

    .theme__pagination a {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
}



/* Filter Buttons */
.blog-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    background: white;
    color: #6b7280;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .filter-btn.active,
    .filter-btn:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(44, 90, 160, 0.3);
    }

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog__two-item {
    animation: fadeIn 0.6s ease forwards;
}

    .blog__two-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .blog__two-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .blog__two-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .blog__two-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    .blog__two-item:nth-child(5) {
        animation-delay: 0.5s;
    }

    .blog__two-item:nth-child(6) {
        animation-delay: 0.6s;
    }

/* Hover effect for images */
.blog__two-item-image .img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(44, 90, 160, 0.7), rgba(78, 205, 196, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 3;
}

    .blog__two-item-image .img-overlay button {
        background: white;
        border: none;
        padding: 12px 25px;
        border-radius: 30px;
        color: var(--primary-color);
        font-weight: 700;
        cursor: pointer;
        transform: translateY(20px);
        transition: transform 0.5s ease;
    }

.blog__two-item-image:hover .img-overlay {
    opacity: 1;
}

    .blog__two-item-image:hover .img-overlay button {
        transform: translateY(0);
    }

/* Responsive */
@media (max-width: 992px) {
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .blog-header h1 {
        font-size: 2.2rem;
    }

    .blog-header p {
        font-size: 1rem;
    }

    .blog__two-item-content h4 {
        min-height: auto;
    }

    .blog__two-item-excerpt {
        min-height: auto;
    }
}

/* Dark mode toggle */
/*.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--dark-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

    .dark-mode-toggle:hover {
        transform: rotate(30deg) scale(1.1);
    }*/

/* Share button */
.blog-share {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
}

.blog-share-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

    .blog-share-btn:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-3px);
    }

.content-preview {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 10px;
    line-height: 1.5;
}

.blog__two-item-content h4 a {
    font-size: 18px;
    line-height: 1.4;
}

.blog__two-item-content span {
    color: var(--primary-color-4);
    font-weight: 500;
}

.blog__two-item-btn a {
    font-weight: 500;
}
/* Equal card heights with flexbox */
.noxiy__filter-active {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Adjust spacing as needed */
}

/* Card Grid Container */
.noxiy__filter-active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px; /* Clean spacing between cards */
    margin: 0;
    padding: 0;
}

/* Individual Cards */
.team__three-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff; /* Card background */
    border-radius: 8px; /* Rounded corners */
    overflow: hidden; /* Contain content */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Subtle shadow */
}

/* Image Section */
/*.team__three-item-image {
    height: 160px;*/ /* Fixed height */
/*overflow: hidden;
}*/

/*    .team__three-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }*/

/* Content Section */
.team__three-item-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 13px rgba(0, 0, 0, 0.1);
    font-size: 17px;
}

    .team__three-item-content label {
        font-weight: 600;
    }




.team__three-item:hover .team__three-item-content {
    color: var(--bs-body-bg) !important;
}
/* Date Text */
.team__three-item-date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 8px;
}

/* Read More Link */
.team__three-item-more {
    margin-top: auto;
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
    padding-top: 10px;
}

/* Hover Effects */
.team__three-item:hover .team__three-item-image img {
    transform: scale(1.05);
}

.btn-primary {
    background-color: var(--primary-color-1);
}

    .btn-primary:hover {
        background-color: #323232;
    }
/*------------SafetyDB-------------------*/

.safety-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* ===== علامات التبويب الرئيسية ===== */
.safety-nav-tabs {
    display: flex;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.safety-nav-tab {
    padding: 1.25rem 2rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    color: #323232;
    flex: 1;
    text-align: center;
    text-align: right
}

.ltr-mode .safety-nav-tab {
    text-align: left;
}

.safety-nav-tab:hover {
    background-color: #f8f9fa;
    color: #323232;
}

.safety-nav-tab.active {
    border-bottom: 3px solid var(--primary-color-1);
    color: var(--primary-color-1);
    background-color: #f8f9fa;
}

    .safety-nav-tab.active::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 4px;
        height: 100%;
        /*background-color: var(--primary-color-1);*/
    }

/* ===== محتوى علامات التبويب ===== */
.safety-tab-content {
    display: none;
    background-color: #fff !important;
    padding: 2.5rem !important;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    min-height: 600px;
}

    .safety-tab-content.active {
        display: block;
        animation: fadeIn 0.5s;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== البحث والتصفية ===== */
.safety-search-filter {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.safety-search-box {
    flex: 1;
    min-width: 320px;
    background-color: white;
    border-radius: 90px;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

    .safety-search-box:focus-within {
        box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.15);
        border-color: var(--primary-color-1);
    }

    .safety-search-box input {
        flex: 1;
        padding: 1rem 1.25rem;
        border: none;
        font-size: 1rem;
        background: transparent;
        width: 100%;
    }

        .safety-search-box input:focus {
            outline: none;
        }

    .safety-search-box button {
        background-color: var(--primary-color-1);
        color: white;
        border: none;
        padding: 1rem 3.75rem;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.3s ease;
        white-space: nowrap;
        border-radius: 90px;
    }

        .safety-search-box button:hover {
            background-color: #3a6cc8;
        }

.safety-filter-box {
    background-color: white;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    min-width: 100%;
}

    .safety-filter-box:focus-within {
        box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.15);
        border-color: var(--primary-color-1);
    }


/* ===== علامات التبويب الفرعية ===== */
.sub-tabs {
    display: flex;
    margin-bottom: 2.5rem;
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 0.5rem;
    gap: 0.5rem;
}

.sub-tab {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    font-weight: 500;
    color: #323232;
}

    .sub-tab:hover {
        background-color: rgba(44, 90, 160, 0.1);
        color: #323232;
    }

    .sub-tab.active {
        background-color: var(--primary-color-1);
        color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

/* ===== محتوى علامات التبويب الفرعية ===== */
.sub-tab-content {
    display: none;
}

    .sub-tab-content.active {
        display: block;
        animation: fadeIn 0.5s;
    }

/* ===== بطاقات التحليلات ===== */
.safety-analytics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.safety-analytics-card {
    background-color: white;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color-1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .safety-analytics-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #2c5aa0, #3a6cc8);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.3s ease;
    }

    .safety-analytics-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--primary-color-1);
    }

        .safety-analytics-card:hover::after {
            transform: scaleX(1);
        }

    .safety-analytics-card h3 {
        color: #323232;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid #e9ecef;
        font-size: 1.25rem;
    }

    .safety-analytics-card ul {
        list-style-type: none;
        flex-grow: 1;
    }

    .safety-analytics-card li {
        padding: 0.75rem 0;
        border-bottom: 1px solid #e9ecef;
        transition: all 0.3s ease;
    }

        .safety-analytics-card li:hover {
            background-color: #f8f9fa;
            /*padding-right: 0.5rem;*/
        }

        .safety-analytics-card li:last-child {
            border-bottom: none;
        }

    .safety-analytics-card a {
        color: #323232;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        transition: color 0.3s;
        font-weight: 500;
        direction: ltr;
    }

        .safety-analytics-card a:hover {
            color: var(--primary-color-1);
        }

    .safety-analytics-card i {
        color: var(--primary-color-1);
        font-size: 1.1rem;
        padding-left: 5px;
    }

/* ===== قسم المعلومات الإحصائية ===== */
.safety-statistical-info {
    background-color: white;
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    border-right: 4px solid var(--primary-color-1);
}

.ltr-mode .safety-statistical-info {
    background-color: white;
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    border-right: unset !important;
    border-left: 4px solid var(--primary-color-1);
}

.safety-statistical-info h2 {
    color: #323232;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    font-size: 1.75rem;
}

.safety-statistical-info h3 {
    color: #323232;
    margin: 2rem 0 1.25rem;
    font-size: 1.35rem;
    position: relative;
    padding-right: 1rem;
}

.ltr-mode .safety-statistical-info h3 {
    color: #323232;
    margin: 2rem 0 1.25rem;
    font-size: 1.35rem;
    position: relative;
    padding-right: unset !important;
    padding-left: 1rem;
}

.safety-statistical-info h3::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.25rem;
    background-color: var(--primary-color-1);
    border-radius: 2px;
}

.ltr-mode .safety-statistical-info h3::before {
    content: '';
    position: absolute;
    right: unset !important;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.25rem;
    background-color: var(--primary-color-1);
    border-radius: 2px;
}

.safety-statistical-info p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #323232;
}

.safety-statistical-info ul, .safety-statistical-info ol {
    padding-right: 1.75rem;
    margin-bottom: 2rem;
}

.ltr-mode .safety-statistical-info ul,
.ltr-mode .safety-statistical-info ol {
    padding-right: unset !important;
    padding-left: 1.75rem;
    margin-bottom: 2rem;
}

.safety-statistical-info li {
    margin-bottom: 0.75rem;
    padding-right: 0.5rem;
    position: relative;
}

.ltr-mode .safety-statistical-info li {
    margin-bottom: 0.75rem;
    padding-right: unset !important;
    padding-left: 0.5rem;
    position: relative;
}

.safety-statistical-info ul li::marker {
    color: var(--primary-color-1);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-right: 0.5rem;
}

.ltr-mode .safety-statistical-info ul li::marker {
    color: var(--primary-color-1);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-right: unset !important;
    margin-left: 0.5rem;
}

.safety-statistical-info ol li {
    counter-increment: list-counter;
}


.note {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-right: 3px solid #ff6b6b;
    font-style: italic;
}

/* ===== حاويات الرسوم البيانية ===== */
.safety-chart-container {
    display: none;
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color-1);
}

    .safety-chart-container.active {
        display: block;
        animation: fadeIn 0.5s;
    }

    .safety-chart-container h3 {
        color: #323232;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid #e9ecef;
        font-size: 1.35rem;
    }

.safety-chart-placeholder {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #323232;
    font-weight: 500;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem;
    text-align: center;
}

    .safety-chart-placeholder i {
        font-size: 3.5rem;
        color: var(--primary-color-1);
        opacity: 0.7;
    }

/* ===== أنواع الرسوم البيانية ===== */
/*.safety-chart-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
    justify-items: center;
}*/

.safety-chart-type {
    background-color: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary-color-1);
    text-align: center;
    font-weight: 500;
    color: #323232;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 290px;
    max-width: 290px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .safety-chart-type:hover {
        background-color: #e9ecef;
        color: #323232;
        transform: translateY(-3px);
    }

    .safety-chart-type.active-chart {
        background-color: var(--primary-color-1);
        color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

.search-highlight {
    background-color: #ffeb3b;
    padding: 2px 0;
    border-radius: 3px;
    font-weight: bold;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}
/* ===== وسائط متجاوبة ===== */
@media (max-width: 992px) {
    .safety-analytics-cards {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .safety-chart-types {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .safety-container {
        padding: 0 1rem;
        margin: 1.5rem auto;
    }

    .safety-nav-tabs {
        flex-wrap: wrap;
    }

    .safety-nav-tab {
        padding: 1rem 1.25rem;
        flex: 1;
        text-align: center;
        font-size: 0.9rem;
    }

    .safety-tab-content {
        padding: 1.75rem;
    }

    .safety-search-filter {
        flex-direction: column;
        gap: 1rem;
    }

    .safety-search-box, .safety-filter-box {
        min-width: 100%;
        width: 100%;
    }

    .sub-tabs {
        flex-direction: column;
    }

    .safety-analytics-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .safety-chart-types {
        grid-template-columns: 1fr;
    }

    .safety-statistical-info {
        padding: 1.75rem;
    }

        .safety-statistical-info h2 {
            font-size: 1.5rem;
        }

        .safety-statistical-info h3 {
            font-size: 1.25rem;
        }
}

@media (max-width: 480px) {
    .safety-container {
        padding: 0 0.75rem;
    }

    .safety-tab-content {
        padding: 1.25rem;
    }

    .safety-nav-tab {
        padding: 0.85rem 0.75rem;
        font-size: 0.85rem;
    }

    .safety-analytics-card {
        padding: 0;
    }

    .safety-statistical-info {
        padding: 1.5rem;
    }

    .safety-chart-types {
        grid-template-columns: 1fr;
    }
}

/* Search results styling */
.search-highlight {
    background-color: #fff8e1;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

.country-select-wrapper {
    position: relative;
    width: 100%;
}

#country-search {
    width: 100%;
    padding: 0.75rem;
    /*margin-bottom: 0.5rem;*/
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

#country-select {
    width: 100%;
    height: auto;
    max-height: 200px;
    overflow-y: auto;
}

/* Hide the dropdown arrow for the select element */
#country-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/*-----------------------Blog Two----------------------------*/

.blog__two-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

    .blog__two-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-color-4));
        border-radius: 3px;
    }

.blog__two-item {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--bg-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

    .blog__two-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
    }

.blog__two-item-image {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

    .blog__two-item-image::before {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: 2;
        display: block;
        content: "";
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 100%;
        transform: translate(-50%, -50%);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .blog__two-item-image img {
        width: 100%;
        border-radius: 12px 12px 0 0;
        transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
        filter: brightness(0.95);
    }

.blog__two-item-content {
    position: relative;
    padding: 30px 35px 25px;
    border: 1px solid var(--border-color-2);
    border-bottom: 0;
    border-top: 0;
    background: var(--bg-white);
}

.blog__two-item-content-date {
    position: absolute;
    border-radius: 6px;
    right: 35px;
    top: -60px;
    width: 80px;
    height: 80px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    color: var(--text-heading-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.blog__two-item:hover .blog__two-item-content-date {
    transform: scale(1.05) rotate(5deg);
    background: var(--primary-color-4);
    color: var(--text-white);
}

.blog__two-item-content-date p {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.blog__two-item-content:hover .blog__two-item-content-date p,
.blog__two-item-content:hover .blog__two-item-content-title h3 {
    color: white !important;
}
/* Apply hover to the container instead of individual elements */
.blog__two-item-content:hover .blog__two-item-content-date p,
.blog__two-item-content:hover .blog__two-item-content-title h3 {
    color: white;
}

.blog__two-item-content-date h3 {
    color: lightgrey;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

    .blog__two-item-content-date h3:hover {
        color: white;
    }

.blog__two-item-content > span {
    color: var(--primary-color-4);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

    .blog__two-item-content > span:before {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 12px;
        height: 2px;
        background: var(--primary-color-4);
    }

.blog__two-item-content h4 {
    margin: 0 0 0 0;
    font-size: 20px;
    line-height: 1.4;
}

    .blog__two-item-content h4 a {
        transition: all 0.3s ease;
        color: var(--text-heading-color);
        text-decoration: none;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

        .blog__two-item-content h4 a:hover {
            color: var(--primary-color-4);
            text-decoration: none;
        }

.blog__two-item-content-author {
    display: flex;
    align-items: center;
    margin-top: 25px;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color-2);
}

.blog__two-item-content-author-post {
    display: flex;
    align-items: center;
    gap: 15px;
}

.blog__two-item-content-author-post-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f3f4f6;
    transition: all 0.3s ease;
}

.blog__two-item:hover .blog__two-item-content-author-post-image {
    border-color: var(--primary-color-4);
}

.blog__two-item-content-author-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog__two-item:hover .blog__two-item-content-author-post-image img {
    transform: scale(1.1);
}

.blog__two-item-content-author-post-title span {
    font-size: 14px;
    line-height: 1.4;
    color: #6b7280;
    font-weight: 500;
}

.blog__two-item-content-author-post-right a {
    display: inline-flex;
    border: 1px solid var(--border-color-2);
    color: var(--primary-color-4);
    align-items: center;
    padding: 8px 16px;
    justify-content: center;
    gap: 8px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .blog__two-item-content-author-post-right a:hover {
        background: var(--primary-color-4);
        color: var(--text-white);
        border-color: var(--primary-color-4);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }

.blog__two-item-btn a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 35px;
    border: 1px solid var(--border-color-2);
    color: var(--text-heading-color);
    font-weight: 600;
    border-radius: 0 0 12px 12px;
    font-family: var(--heading-font);
    font-size: 15px;
    position: relative;
    transition: all 0.4s ease;
    z-index: 1;
    overflow: hidden;
    text-decoration: none;
}

    .blog__two-item-btn a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        border-radius: 0 0 12px 12px;
        height: 0;
        /*        background: linear-gradient(135deg, rgb(0 96 136) 0%, rgb(118 145 173) 100%), radial-gradient(circle at 80% 20%, var(--primary-color-1) 0%, transparent 30%);
*/ transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: -1;
    }

    .blog__two-item-btn a span:last-child {
        transition: transform 0.4s ease;
    }

    .blog__two-item-btn a:hover {
        border: none !important;
    }

.blog__two-item:hover .blog__two-item-image img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.blog__two-item:hover .blog__two-item-image::before {
    animation: circle 0.9s;
    opacity: 1;
}

.blog__two-item:hover .blog__two-item-btn a {
    color: var(--text-white);
    border-color: none !important;
}

.btn-primary {
    border: none;
}

.blog__two-item:hover .blog__two-item-btn a::after {
    height: 100%;
    top: 0;
    bottom: auto;
}

.blog__two-item:hover .blog__two-item-btn a span:last-child {
    transform: translateX(5px);
}

.blog__two-page .blog__two-item-btn a::after {
    /*background: linear-gradient(90deg, var(--primary-color-1), #3b82f6);*/
    /*background: linear-gradient(135deg, rgb(0, 96, 136) 0%, rgb(118, 145, 173) 100%), radial-gradient(circle at 80% 20%, var(--primary-color-1), transparent 30%);*/
}


.blog__two-page .blog__two-item-content > span,
.blog__two-page .blog__two-item-content h4 a:hover,
.blog__two-page .blog__two-item-content-author-post-right a {
    color: var(--primary-color-1);
}
/*.blog__two-item-btn {
    background: linear-gradient(135deg, rgb(0 96 136) 0%, rgb(118 145 173) 100%), radial-gradient(circle at 80% 20%, var(--primary-color-1) 0%, transparent 30%);
}*/

.blog__two-page .blog__two-item:hover .blog__two-item-content-author-post-right a:hover {
    background: var(--primary-color-1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

@keyframes circle {
    0% {
        opacity: 1;
        width: 0;
        height: 0;
    }

    40% {
        opacity: 0.5;
    }

    100% {
        width: 150%;
        height: 150%;
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog__two-item-content {
        padding: 25px 20px 20px;
    }

    .blog__two-item-content-date {
        right: 20px;
        top: -50px;
        width: 70px;
        height: 70px;
    }

        .blog__two-item-content-date h3 {
            font-size: 24px;
        }

    .blog__two-item-btn a {
        padding: 15px 20px;
    }

    .blog__two-item-content-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .blog__two-item-content-author-post-right {
        align-self: flex-end;
    }
}

/*-----------Partners--------------------*/
.btn-outline-primary {
    color: var(--primary-color-1);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* subtle shadow */
    transition: all 0.3s ease;
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); /* stronger shadow on hover */
        transform: translateY(-2px); /* small lift */
    }

    .btn-outline-primary:hover {
        background-color: var(--primary-color-1);
        border-color: var(--primary-color-1);
    }


.partners-section {
    direction: rtl;
}

.partner-title a:hover {
    color: var(--primary-color-1) !important;
}

.partners-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.partner-item {
    flex: 0 0 calc(25% - 20px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    transition: transform 0.3s ease;
}

    .partner-item:hover {
        transform: translateY(-5px);
    }

.partner-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    min-height: 150px;
}

.partner-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-title {
    margin: 10px 0 5px;
    font-weight: bold;
    font-size: 18px;
}

.partner-link {
    color: #323232;
    text-decoration: none;
    transition: color 0.2s;
}

.partner-type {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .partner-item {
        flex: 0 0 calc(33.333% - 20px);
    }

    .duplicate-item {
        display: none;
    }
}

@media (max-width: 768px) {
    .partner-item {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .partner-item {
        flex: 0 0 100%;
    }

    .partners-container {
        gap: 15px;
    }
}
/*------------Contact Page------------------*/
contact__two-right-form-item {
    text-align: end;
}

input[type=tel] {
    direction: rtl;
}
/* Stronger shadow only for the map & form cards in the contact section */
.row.mt-5 .card {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    border-radius: 0.75rem; /* rounded corners */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .row.mt-5 .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

.contact__page-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

    .contact__page-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

    .contact__page-item i {
        font-size: 2.5rem;
        margin-bottom: 20px;
        display: block;
    }

    .contact__page-item.location i {
        color: var(--primary-color-1);
    }

    .contact__page-item.email i {
        color: var(--primary-color-1);
    }

    .contact__page-item.phone i {
        color: var(--primary-color-1);
    }

    .contact__page-item h4 {
        font-weight: 700;
        margin-bottom: 15px;
        color: #2e3a59;
    }

    .contact__page-item p {
        margin-bottom: 0;
        color: #6c757d;
    }

    .contact__page-item a {
        color: #6c757d;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .contact__page-item a:hover {
            color: var(--primary-color-1);
        }

.contact__form2 {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact__form h3 {
    color: #2e3a59;
    font-weight: 700;
    margin-bottom: 25px;
}

.contact__form input,
.contact__form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .contact__form input:focus,
    .contact__form textarea:focus {
        border-color: #4e73df;
        box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
        outline: none;
    }

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact__map h3 {
    color: #2e3a59;
    font-weight: 700;
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .xl-mb-30, .md-mb-30 {
        margin-bottom: 30px;
    }
}
/*------------------Sign Up----------------*/

/* Checkbox بحجم مربع حرف */
/* جعل الـ checkbox صغير جداً مثل مربع حرف */
/* Tiny checkbox like a small letter "a" */
.tiny-check .form-check-input {
    width: 7px; /* عرض صغير جداً */
    height: 7px; /* ارتفاع صغير جداً */
    margin-top: 2px;
    cursor: pointer;
    transform: translateY(2px); /* لضبط المحاذاة مع النص */
}

/* الخط بجانب المربع */
.tiny-check label {
    font-size: 0.85rem;
    margin-right: 4px;
}


/* رابط إنشاء حساب جديد */
.contact__form p a {
    text-decoration: none;
}

    .contact__form p a:hover {
        text-decoration: underline;
    }

.pb-80 {
    padding-bottom: 80px;
}

.pt-20 {
    padding-top: 20px;
}

.contact__form {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

    .contact__form h3 {
        color: #2e3a59;
        font-weight: 700;
        margin-bottom: 30px;
        text-align: center;
    }

.form-group {
    position: relative;
    margin-bottom: 20px;
}

    .form-group .form-icon {
        position: absolute;
        top: 37%;
        transform: translateY(-50%);
        right: 15px;
        color: #6c757d;
        font-size: 1.1rem;
    }

/* Global form styles (applies everywhere) */
.contact__form input,
.contact__form select,
.contact__form textarea {
    width: 100%;
    padding: 9px 0px;
    padding-right: 19px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
}

/* Modal-specific overrides (affects ONLY membership modal form) */
.modal .contact__form input,
.modal .contact__form select,
.modal .contact__form textarea {
    padding-right: 39px; /* your special spacing */
}


.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
    border-color: var(--primary-color-1);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    outline: none;
}

.contact__form button {
    background: var(--primary-color-1);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
    width: 100%;
    font-size: 1.1rem;
    margin-top: 10px;
}

    .contact__form button:hover {
        background: #323232;
    }

.login-link {
    color: var(--primary-color-1);
    margin-top: 20px;
    text-align: center;
}

    .login-link a {
        color: #4e73df;
        text-decoration: none;
        font-weight: 600;
    }

        .login-link a:hover {
            text-decoration: underline;
        }

@media (max-width: 768px) {
    .contact__form {
        padding: 25px;
    }
}

.form-section-title {
    color: var(--primary-color-1);
    font-size: 1.2rem;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e3e6f0;
    font-weight: 600;
}

.form-note {
    font-size: 0.9rem;
    color: var(--primary-color-1);
    margin-top: -10px;
    margin-bottom: 15px;
}
/*----------------Activities Page-----------------*/
/* Section description (right column) */
.news-section-description {
    padding: 20px;
}

    .news-section-description .section-title {
        font-size: 26px;
        font-weight: bold;
        margin-bottom: 15px;
    }

    .news-section-description .section-subtitle {
        font-size: 15px;
        line-height: 1.8;
        color: #555;
    }

/* Pagination control for showing 2 items only */
/*.news-list > div {
    display: none;
}*/

/* Show page 1 items by default */
/*.news-list .page-1 {
    display: block;
}*/

/* Page 1 active */
/*#page-1:target .page-1 {
    display: block;
}

#page-1:target .page-2 {
    display: none;
}*/

/* Page 2 active */
/*#page-2:target .page-1 {
    display: none;
}

#page-2:target .page-2 {
    display: block;
}*/
/*-----------------Member News-------------------*/
.input-group .btn {
    transition: box-shadow 0.3s ease; /* smooth hover effect */
}
/* Button min-width */
.btn-min-160 {
    min-width: 160px;
}

.input-group .btn:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25); /* slightly stronger on hover */
}
/* Search box max-width */
.search-max-500 {
    max-width: 500px;
}

/* Exciting hover effect for button */
.hover-raise {
    transition: all 0.3s ease;
}

    .hover-raise:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

/* Focus effect on search input */
#newsSearch:focus, .news-search:focus {
    box-shadow: none;
    outline: none;
    border: 2px solid #0d6efd;
}

/* Section Description Styles */
.news-section__description {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.news-section__description-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

    .news-section__description-content h2 {
        margin-bottom: 20px;
        color: #333;
    }

    .news-section__description-content p {
        color: #666;
        line-height: 1.6;
    }

/*-----------------News Modal Styles--------------------*/
.news-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.news-modal__content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    position: relative;
    border-radius: 8px;
}

.news-modal__close {
    color: #aaa;
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

    .news-modal__close:hover {
        color: #000;
    }

.news-modal img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.news-modal__date {
    display: inline-block;
    background: #f5f5f5;
    padding: 10px;
    margin-right: 15px;
    text-align: center;
    border-radius: 4px;
}

.news-modal__category {
    color: #888;
    font-size: 14px;
}

.news-modal h2 {
    margin: 15px 0;
    color: #333;
}

.news-modal__text {
    line-height: 1.8;
    color: #555;
}

.news-modal__title {
    font-size: 1.5rem; /* حجم مناسب للعنوان */
    font-weight: bold; /* خط عريض */
    color: #333; /* لون النص */
    margin-bottom: 15px; /* مسافة أسفل */
    text-align: center; /* وسط المودال */
    /* الأهم لضبط الالتفاف */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/*.modal-header .btn-close {
    margin: revert-layer;
}*/
/*---------------Sidebar--------------------*/
.blog__sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.blog__sidebar-widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid var(--primary-color-1);
    padding-bottom: 10px;
}

.blog__sidebar-category {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .blog__sidebar-category li {
        margin-bottom: 10px;
    }

        .blog__sidebar-category li a {
            display: block;
            padding: 10px 15px;
            color: #555;
            text-decoration: none;
            border-right: 3px solid transparent;
            transition: all 0.3s ease;
        }

            .blog__sidebar-category li.active a,
            .blog__sidebar-category li a:hover {
                background-color: #e9ecef;
                color: var(--primary-color-1);
                border-right-color: var(--primary-color-1);
            }


.btn-check:focus + .btn-primary, .btn-primary:focus {
    background-color: var(--bs-dark);
    border-color: var(--bs-dark);
    box-shadow: none;
}


.form-check-input:checked {
    background-color: var(--primary-color-1);
    border-color: var(--primary-color-1) !important;
}

.btn-check:active + .btn-primary:focus, .btn-check:checked + .btn-primary:focus, .btn-primary.active:focus, .btn-primary:active:focus, .show > .btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 .25rem #323232
}


.section-pading-Header-footer, .section-padding {
    margin-top: 90px !important;
    margin-bottom: 90px !important;
    padding: 0;
}

.footer__two {
    margin-top: unset !important;
}

/* Mobile Responsive Styles */
@media (max-width: 991px) {
    .footer__top-area {
        flex-direction: column;
    }

    .footer__top-item {
        width: 89%;
        display: list-item;
        justify-content: flex-end;
    }

    .footer__top-item-info {
        justify-content: flex-end;
        margin-right: 0px;
    }

    .footer__top-item-logo {
        order: -1;
        margin-bottom: 15px;
    }

    .lg-t-left {
        margin-right: -50px;
    }
}

@media(max-width:768px) {
    .lg-t-left {
        margin-right: -60px;
    }
}

body.modal-open {
    overflow: hidden !important;
}
/* يمنع سكرول الصفحة */
.modal-dialog-scrollable .modal-body {
    max-height: 70vh; /* عدّلها حسب راحتك */
    overflow-y: auto !important;
    overscroll-behavior: contain; /* يمنع التسريب */
}

.modal {
    overscroll-behavior: contain;
}

.footer__top {
    margin-bottom: -40px;
}

.team__three-item {
    margin-top: 0;
}

padding-one {
    padding-bottom: 120px;
    padding-top: 120px;
}
/*----------------Responsive Edits-----------------------*/
@media (max-width: 376px) {
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
}
/* Responsive overrides ONLY */
@media (max-width: 992px) {
    .safety-chart-types {
        grid-template-columns: minmax(0, 1fr); /* عمود واحد يملأ العرض */
        justify-items: stretch;
        align-items: stretch;
    }

    .safety-chart-type {
        width: 100%;
        min-width: 0; /* إلغاء 290px */
        max-width: none; /* إلغاء 290px */
        white-space: normal; /* لفّ النص الطويل */
        overflow: visible;
        text-overflow: unset;
    }
}
/* وسّع حاوية فلتر البحث فقط على الشاشات الصغيرة */
@media (max-width: 992px) {
    .safety-search-filter > .container {
        max-width: 100% !important; /* أوسع من قيود Bootstrap (540/720px) */
    }
}

@media (max-width: 992px) {
    .safety-search-filter > .container {
        padding-left: 8px;
        padding-right: 8px;
    }
}


@media (max-width: 575px) {

    .input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
        margin-left: -25px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .px-5 {
        padding-right: 1rem !important;
        padding-left: 3rem !important;
    }

    .row {
        --bs-gutter-x: -0.5rem;
    }
}

@media (max-width: 410px) {
    .input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
        margin-left: -25px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .px-5 {
        padding-right: 1rem !important;
        padding-left: 3rem !important;
    }

    .row {
        --bs-gutter-x: -0.5rem;
    }
}
/* Mobile fixes only */
@media (max-width: 575px) {
    .border-list li {
        display: flex;
        flex-direction: row; /* status left, name right */
        justify-content: flex-start; /* align everything to right edge */
        align-items: center;
        flex-wrap: nowrap;
        overflow: hidden;
        font-size: 14px;
    }

    .border-name,
    .border-status {
        /*white-space: nowrap;*/
    }

    .border-name {
        flex: 0 1 auto; /* fixed width, doesn't stretch */
      /*  overflow: hidden;
        text-overflow: ellipsis;*/
        text-align: right; /* sit on the very right edge */
        margin: 0; /* no margin */
    }

    .border-status {
        flex: 0 0 auto;
        margin: 0 8px 0 0; /* only small gap to the left of name */
        text-align: left;
    }
}

/* Very small phones */
@media (max-width: 410px) {
    .border-list li {
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .page__banner-content ul li {
        font-size: 15px;
        line-height: 26px;
    }
}
/*-------------------Mobile Menu---------------------*/
/* leave space on the left so text doesn't clash with the fixed (+/–) */
.rtl-mode .menu__bar-popup-left .mean-nav ul li > a {
    padding-left: 56px; /* tweak if your text still touches the button */
}


.mean-container .mean-nav ul li a.mean-expand {
    background: var(--primary-color-1);
}



.rtl-mode .mean-container .mean-nav ul li a.mean-expand {
    left: 0 !important;
    right: unset !important;
}



.input-group input[type='text'] {
    background-color: #376c8d14;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}


.input-group input[type='button'], .input-group button {
    border-bottom-right-radius: 0px;
    border-top-right-radius: 0px;
}




input[type=text], input[type=file], input[type=email], input[type=url], input[type=password], input[type=search], input[type=number], input[type=tel], input[type=range], input[type=date], input[type=month], input[type=week], input[type=time], input[type=datetime], input[type=datetime-local], input[type=color], textarea {
    padding: 0 30px;
}


.safety-filter-box select {
    padding: 1rem 1.25rem;
    border: none;
    color: #323232;
    width: 100%;
    cursor: pointer;
}

    .safety-filter-box select:focus {
        outline: none;
    }



[dir="rtl"] .form-select {
    background-position: left .75rem center;
    background-size: 20px 16px;
}


.footer__two-widget-info p {
    color: var(--color-2);
    transition: 0.4s;
    font-weight: 500;
    position: relative;
}


[dir="rtl"] .form-check {
    padding-right: 1.5em;
    padding-left: unset;
}



.contact__form2 {
    background: var(--color-4);
}





.contact-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
/*    padding: 0px 16px;*/
    min-height: 56px; /* نفس ارتفاع الحقول */
    transition: border-color .15s, box-shadow .15s;
}

    .contact-item > span {
        flex: 0 0 24px;
        width: 24px;
        text-align: center;
        color: #29627a; /* لون الأيقونة */
        opacity: .85;
        font-size: 18px;
    }

    /* حقول الإدخال */
    .contact-item input,
    .contact-item textarea,
    .contact-item select {
        border: 0 !important;
        outline: 0 !important;
        background: transparent !important;
        width: 100%;
        font-size: 16px;
        padding: 8px 0;
        color: inherit;
        direction: rtl; /* نص عربي يمين */
        text-align: right;
    }

    /* خصوصية الـ select */
    .contact-item select {
        appearance: none; /* إلغاء السهم الافتراضي */
        -webkit-appearance: none;
        -moz-appearance: none;
        text-align-last: right; /* بعض المتصفحات */
        padding-inline-end: 0; /* لأن عندنا أيقونة يمين */
        padding-inline-start: 30px; /* مساحة للسهم المخصص يسار */
        line-height: 1.5;
    }

    /* فوكَس أنيق على الغلاف كله */
/*    .contact-item:focus-within {
        border-color: #0d6efd;
        box-shadow: 0 0 0 .2rem rgba(13,110,253,.12);
    }*/

    /* سهم مخصص لليسار مع RTL */
    .contact-item.has-select::after {
        content: "";
        position: absolute;
        top: 50%;
        inset-inline-start: 12px; /* يسار في RTL */
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 7px solid #2f3b46; /* لون السهم */
        transform: translateY(-50%);
        pointer-events: none;
        left: 0;
    }

    /* تعطيل ظلّ الفوكس الأزرق لبعض المتصفحات على الـ select */
    .contact-item select:focus {
        box-shadow: none !important;
        outline: none !important;
    }

.btn-one-cancel {
    background-color: var(--body-color)
}



/*=============Member Directory======================*/
/*=============Member Directory======================*/
#countryDropdown::after {
    display: none !important;
}
/* remove BS default caret */

/* section spacing */


/* ========== RTL fix + beautify for the specific dropdown ========== */

/* Make the menu open from the right and sit under the full-width toggle */
#countryDropdown + .dropdown-menu {
    right: 0 !important; /* pin to the right edge */
    left: auto !important; /* ignore default left positioning */
    width: 100%; /* match the toggle width */
    text-align: right; /* Arabic alignment */
    transform-origin: top right; /* for any scale/fade animations */
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    direction: rtl; /* ensure markers/padding behave RTL */
}

/* Toggle button look (keeps your markup) */
#countryDropdown {
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 12px !important;
    padding: 10px 16px !important;
    font-weight: 600;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all .25s ease;
}

    #countryDropdown:hover,
    #countryDropdown:focus {
        border-color: var(--primary-color-1, #4aa3df) !important;
        color: var(--primary-color-1, #4aa3df) !important;
    }

    /* Animate chevron */
    #countryDropdown .chev {
        transition: transform .25s ease;
    }

    #countryDropdown[aria-expanded="true"] .chev {
        transform: rotate(180deg);
    }

    /* Items */
    #countryDropdown + .dropdown-menu .dropdown-item {
        padding: 10px 16px;
        font-weight: 500;
        color: #333;
        border-radius: 10px; /* rounded highlight */
        margin: 4px 6px; /* so the highlight shows rounded ends */
        transition: background .2s, color .2s;
        text-align: right;
    }

        /* Hover/active colors use your theme variable */
        #countryDropdown + .dropdown-menu .dropdown-item:hover,
        #countryDropdown + .dropdown-menu .dropdown-item:focus,
        #countryDropdown + .dropdown-menu .dropdown-item.active,
        #countryDropdown + .dropdown-menu .dropdown-item:active {
            background: var(--primary-color-1, #4aa3df);
            color: #fff;
        }


    /* rotate our chevron when open (no JS needed) */
    #countryDropdown .chev {
        transition: transform .2s ease;
    }

    #countryDropdown[aria-expanded="true"] .chev {
        transform: rotate(180deg);
    }

/* card cosmetics */
.member-card {
    border: 1px solid #e9edf2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

    .member-card p {
        margin-bottom: .45rem;
        display: flex;
        gap: .5rem;
    }

        .member-card p > strong {
            min-width: 140px;
            color: #6b7280;
        }

.company-logo {
    max-height: 64px;
    width: auto;
    object-fit: contain;
}

/*-------------Goals----------------------*/
/* Card */
.goals-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: clamp(18px,2.5vw,28px);
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

/* Title & text */
.goals-title {
    margin: 0 0 .75rem 0;
    font-size: clamp(22px,3vw,32px);
    font-weight: 800;
    color: #111;
    text-align: right;
}

.goals-intro,
.goals-cont {
    margin: 0;
    line-height: 2;
    font-size: clamp(15px,2.1vw,19px);
    color: #1f2937;
    text-align: right;
}

/* Links */
.goals-more,
.goals-back {
    display: inline-block;
    margin-top: .6rem;
    font-weight: 700;
    color: var(--primary-color-1, #0e1735);
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

    .goals-more:hover,
    .goals-back:hover {
        opacity: .85;
        transform: translateY(-1px);
    }

/* The part that expands inline, directly under the intro */
.goals-extra {
    display: none; /* no layout gap when hidden */
    margin-top: .6rem;
}

/* List */
.goals-list {
    list-style: none;
    padding: 0;
    margin: .5rem 0 0 0;
    text-align: right;
}

    .goals-list li {
        font-size: clamp(15px,2.1vw,19px);
        line-height: 2.1;
        color: #111;
        margin: 0 0 12px 0;
    }

@media(min-width:768px) {
    .goals-list li + li {
        border-top: 1px dashed rgba(0,0,0,.08);
        padding-top: 10px;
    }
}

/* bottom actions wrapper */
.goals-actions {
    display: flex;
    justify-content: flex-start; /* RTL: shows on the right visually */
    margin-top: .25rem;
}
/* ===== Card container ===== */
#goals-card.gi-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 16px rgba(0,0,0,.06);
    text-align: right;
}

/* Title */
#goals-card .gi-title {
    margin: 0 0 12px;
    font-weight: 800;
    font-size: clamp(22px,3vw,32px);
    color: #111;
}

/* Hide default summary marker */
#goals-card .gi summary {
    list-style: none;
    cursor: pointer;
}

    #goals-card .gi summary::-webkit-details-marker {
        display: none;
    }

/* Paragraph (one connected line) */
#goals-card .gi-text {
    margin: 0;
    line-height: 2;
    font-size: clamp(15px,2.1vw,19px);
    color: #222;
}

#goals-card .gi-tail {
    display: none;
}
/* hidden by default */
#goals-card .gi[open] .gi-tail {
    display: inline;
}

#goals-card .gi[open] .gi-dots {
    display: none;
}

/* “more” / “back” links */
#goals-card .gi-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
    color: var(--primary-color-1, #0e1735);
    text-decoration: none;
}

#goals-card .gi .gi-back {
    display: none;
}

#goals-card .gi[open] .gi-more {
    display: none;
}

#goals-card .gi[open] .gi-back {
    display: inline-block;
}

/* List appears only when open */
#goals-card .gi-list {
    display: none;
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}

#goals-card .gi[open] .gi-list {
    display: block;
}

#goals-card .gi-list li {
    margin-bottom: 10px;
    line-height: 2.05;
    color: #111;
}

@media (min-width:768px) {
    #goals-card .gi-list li + li {
        border-top: 1px dashed rgba(0,0,0,.08);
        padding-top: 10px;
    }
}
/*--------------Advantages-------------------------*/
#benefits-widget.bw-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 16px rgba(0,0,0,.06);
    text-align: right;
}

#benefits-widget .bw-title {
    margin: 0 0 12px;
    font-weight: 800;
    font-size: clamp(22px,3vw,32px);
    color: #111
}

#benefits-widget .bw-text {
    margin: 0;
    line-height: 2;
    font-size: clamp(15px,2.1vw,19px);
    color: #222
}

/* روابط "المزيد/عودة" */
#benefits-widget .bw-link {
    border: 0;
    background: transparent;
    color: var(--primary-color-1,#0e1735);
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    padding: 0
}

/* القوائم */
#benefits-widget .bw-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0
}

    #benefits-widget .bw-list li {
        margin: 0 0 12px;
        line-height: 2.05;
        color: #111
    }

#benefits-widget .bw-subtitle {
    margin: 14px 0 8px;
    font-weight: 800
}

#benefits-widget .bw-sublist {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0
}

    #benefits-widget .bw-sublist li {
        margin: 0 0 10px;
        line-height: 2.05
    }

        #benefits-widget .bw-sublist li span {
            display: inline-block;
            min-width: 1.5em
        }

/* ملاحظات داخل العناصر */
#benefits-widget .bw-note {
    margin-top: 6px;
    opacity: .95
}

/* حالة الإغلاق (افتراضي) */
#benefits-widget .bw-tail {
    display: none
}

#benefits-widget .bw-extra {
    display: none
}

/* حالة الفتح */
#benefits-widget[data-expanded="true"] .bw-tail {
    display: inline
}

#benefits-widget[data-expanded="true"] .bw-dots {
    display: none
}

#benefits-widget[data-expanded="true"] .bw-extra {
    display: block
}

#benefits-widget[data-expanded="true"] .bw-more {
    display: none
}

#benefits-widget[data-expanded="false"] .bw-back {
    display: none
}

/* روابط إنجليزية/روابط خارجية داخل RTL */
#benefits-widget a[dir="ltr"] {
    direction: ltr;
    unicode-bidi: bidi-override
}
/*----------------------Main System--------------------------*/
/* ====== PDF Card (scoped) ====== */
#pdf-card.pdf-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 6px 16px rgba(0,0,0,.06);
}

#pdf-card .pdf-card-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

#pdf-card .pdf-title {
    margin: 0;
    font-weight: 800;
    color: #111;
    font-size: clamp(18px,2.8vw,24px);
}

#pdf-card .pdf-actions {
    display: flex;
    gap: 8px;
}

#pdf-card .pdf-btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--primary-color-1, #0e1735);
}

    #pdf-card .pdf-btn.fill {
        background: var(--primary-color-1, #0e1735);
        color: #fff;
    }

    #pdf-card .pdf-btn.outline {
        color: var(--primary-color-1, #0e1735);
        background: #fff;
    }

#pdf-card .pdf-frame-wrap {
    margin-top: 12px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
}

/* Make the viewer tall and responsive */
#pdf-card .pdf-frame {
    width: 100%;
    height: 75vh;
    border: 0;
    display: block;
    background: #f7f7f8;
}

/* Fallback note — hidden when iframe loads OK */
#pdf-card .pdf-fallback {
    display: none;
    padding: 14px;
    text-align: right;
    background: #fff;
}

@supports not (aspect-ratio: 1 / 1) {
    /* no special handling needed; iframe height used */
}

/* If the iframe fails (blocked), show fallback */
#pdf-card .pdf-frame:unsupported ~ .pdf-fallback {
    display: block;
}
/* harmless if unsupported */
/*---------------------Menu Active---------------------------*/
#mobilemenu a.active {
    color: var(--primary-color-1); /* غيّر اللون حسب تصميمك */
    font-weight: bold;
}

/*---------------------Details Pages--------------------------*/
/* تنسيق البطاقات */
/* === Recommended news cards: force one consistent look (like 2nd card) === */
.newsdetail__more .col-md-4 {
    display: flex;
}
    /* equal heights */
    .newsdetail__more .col-md-4 > .newsdetail__more-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        margin: 0;
        background: #fff !important;
        border: 1px solid #e6eaf0;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 2px 6px rgba(0,0,0,.04);
        transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
        text-decoration: none;
        color: inherit;
    }

/* image: same crop for all */
.newsdetail__more .newsdetail__more-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16/9; /* consistent height */
    object-fit: cover;
    background: #f6f7f9;
}

/* title area: identical background + spacing */
.newsdetail__more .newsdetail__more-text {
    margin: 0;
    background: #fff !important;
    padding: 14px 16px;
    text-align: center;
    font-weight: 600;
    color: #111827;
    min-height: 64px; /* align different title lengths */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* hover: Primary-1 accent */
.newsdetail__more .newsdetail__more-card:hover {
    border-color: var(--primary-color-1);
    box-shadow: 0 6px 18px rgba(106,195,238,.25);
    transform: translateY(-4px);
}

    .newsdetail__more .newsdetail__more-card:hover .newsdetail__more-text {
        color: var(--primary-color-1);
    }


.newsdetail__body {
    margin-inline: auto;
    transition: max-height .4s ease;
}

    .newsdetail__body.is-collapsed {
        --clip-h: 560px;
        max-height: var(--clip-h);
        overflow: hidden;
        position: relative;
    }

        .newsdetail__body.is-collapsed::after {
            content: "";
            position: absolute;
            inset-block-end: 0;
            inset-inline: 0;
            height: 6rem;
            background: linear-gradient(to top, #fff, rgba(255,255,255,0));
        }
/* ===== News detail (scoped) ===== */
.newsdetail__card {
    border: 1px solid rgba(0,0,0,.05);
}

.newsdetail__hero {
    margin: 0;
    aspect-ratio: 16/9;
    background: #f4f6f8;
}

    .newsdetail__hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.newsdetail__meta {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 14px 18px 0 18px;
    color: #6b7280;
    font-size: .95rem;
}

.newsdetail__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsdetail__header {
    padding: 6px 18px 2px 18px;
}

.newsdetail__title {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    line-height: 1.5;
    margin: 0;
    color: #0f172a;
    font-weight: 800;
}

.newsdetail__body {
    padding: 10px 18px 20px;
}

    .newsdetail__body p {
        margin: 0 0 1.1rem;
        font-size: 1.05rem;
        line-height: 1.9;
    }

.newsdetail__sub {
    margin: 1.6rem 0 .8rem;
    font-weight: 800;
    color: var(--primary-1, #2f6b87);
}

.newsdetail__back {
    margin-top: 1.2rem;
}

.btn-one--ghost {
    background: transparent;
    color: var(--primary-1, #2f6b87);
    border: 1px solid currentColor;
    padding: .6rem 1rem;
    border-radius: 999px;
}

    .btn-one--ghost:hover {
        background: var(--primary-1, #2f6b87);
        color: #fff;
    }

/* Read also */
.newsdetail__more-title {
    font-weight: 800;
    margin-bottom: 1rem;
}

.newsdetail__more-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #f7f7f9;
    text-decoration: none;
    color: #0f172a;
    border: 1px solid rgba(0,0,0,.05);
}

    .newsdetail__more-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
    }

.newsdetail__more-text {
    padding: 12px 14px;
    font-weight: 700;
    line-height: 1.6;
}

/* tiny screens: widen tap targets */
@media (max-width:575.98px) {
    .newsdetail__meta {
        font-size: .9rem;
    }

    .newsdetail__more-card img {
        height: 180px;
    }
}

/*------------------Bank Details------------------------------*/
/* ================================
   Bank Details – RTL polished
   ================================ */
#bank-details {
    padding-block: var(--section-padding,60px);
}

    #bank-details .bd-title {
        font-weight: 800;
        font-size: clamp(22px,2.4vw,32px);
        margin: 0 0 16px;
    }

    #bank-details .bd-subtitle {
        margin: 22px 0 12px;
        font-weight: 800;
    }

    /* Top info table */
    #bank-details .bd-info {
        margin-bottom: 18px;
    }

    #bank-details .bd-row {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 6px 14px;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px dashed #e9ecef;
    }

        #bank-details .bd-row:last-child {
            border-bottom: 0;
        }

    #bank-details .bd-label {
        text-align: right;
        color: #6b7280;
        font-weight: 700;
    }

    #bank-details .bd-value {
        /* align all values at the seam next to labels */
        text-align: right;
        font-weight: 700;
        color: #101828;
    }

    #bank-details .bd-link {
        color: var(--primary-color-1,#276c8d);
        text-decoration: none;
        font-weight: 800;
    }

        #bank-details .bd-link:hover {
            text-decoration: underline;
        }

    /* Cards container */
    #bank-details .bd-accounts {
        display: grid;
        gap: 14px;
    }

    /* Card as mini table (each row = label | value) */
    #bank-details .bd-card {
        background: #f6f4ff;
        border-radius: 16px;
        padding: 14px 12px;
        box-shadow: 0 2px 10px rgba(16,24,40,.04);
    }

    #bank-details .bd-card-row {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 6px 14px;
        align-items: center;
        padding: 10px 0;
    }

        #bank-details .bd-card-row + .bd-card-row {
            border-top: 1px dashed rgba(0,0,0,.06);
        }

    /* Reuse label/value styles */
    #bank-details .bd-card .bd-label {
        text-align: right;
        color: #6b7280;
        font-weight: 700;
    }

    #bank-details .bd-card .bd-value {
        text-align: right;
        font-weight: 800;
        color: #0e1735;
    }

    /* Numbers/IBAN: keep LTR reading but still right-aligned */
    #bank-details .bd-mono {
        direction: ltr;
        unicode-bidi: plaintext;
        word-break: break-word;
        letter-spacing: .3px;
    }

/* Mobile tighten */
@media (max-width:480px) {
    #bank-details .bd-row,
    #bank-details .bd-card-row {
        grid-template-columns: 100px 1fr;
    }
}
/*-----------------------------Change Password-----------------------------*/
/* ===== Change Password (scoped) ===== */
#change-password {
    padding-block: clamp(24px, 4vw, 48px);
}

    #change-password .cp-head {
        position: relative;
        margin-bottom: clamp(16px,2.5vw,28px);
    }

    #change-password .cp-title {
        text-align: center;
        font-weight: 900;
        font-size: clamp(24px, 3.8vw, 40px);
        margin: 0;
    }

    #change-password .cp-back {
        position: absolute;
        inset-inline-end: 0;
        top: 4px;
        font-size: 26px;
        color: #111;
        text-decoration: none;
    }

    #change-password .cp-form {
        max-width: 760px;
        margin-inline: auto;
    }

    #change-password .cp-field {
        margin-bottom: clamp(16px, 3vw, 28px);
    }

        #change-password .cp-field label {
            display: block;
            font-weight: 800;
            margin-bottom: 10px;
            color: #222;
            text-align: right;
        }

    #change-password .cp-input {
        position: relative;
    }

        /* input with eye button (eye sits on the LEFT in RTL) */
        #change-password .cp-input input.form-control {
            border-radius: 22px;
            padding: 16px 18px 16px 56px; /* room for eye at left */
            background: #fff;
            border: 1px solid #e5e7eb;
            box-shadow: none;
        }

            #change-password .cp-input input.form-control:focus {
                border-color: var(--primary-color-1);
            }

    /* eye button (use fa-solid to avoid empty squares) */
    #change-password .cp-eye {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        border: 0;
        background: transparent;
        padding: 6px;
        font-size: 22px;
        color: #444;
    }

        #change-password .cp-eye:hover {
            color: var(--primary-color-1, #255f7b);
            cursor: pointer;
        }

    /* submit */
    #change-password .cp-submit {
        margin-top: clamp(8px,2vw,16px);
        border-radius: 18px;
        background: var(--primary-color-1, #255f7b);
        color: #fff;
        font-weight: 800;
        padding: 14px 18px;
        border: none;
    }

/* small screens */
@media (max-width: 480px) {
    #change-password .cp-input input.form-control {
        padding-inline-start: 56px;
    }
}

/*-----------------------------Gallery------------------------------------*/
/* ---- Gallery fixes (scoped) ---- */
#gallery {
    text-align: right;
    padding-top: 12px;
}
    /* space under banner */
    #gallery .gal-title {
        margin: 0 0 18px;
    }

    /* 1) Force a real grid; stop theme overrides */
    #gallery .gal-grid {
        display: grid !important;
        grid-auto-flow: row dense;
        gap: 22px;
        /* large, comfy cards */
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        align-items: stretch;
    }

    /* 2) Card size & shape (big like your screenshot) */
    #gallery .g-card {
        position: relative;
        display: block;
        width: 100%;
        overflow: hidden;
        border-radius: 22px;
        isolation: isolate;
        aspect-ratio: 4 / 3; /* desktop/tablet */
    }

/* phones: two tall columns */
@media (max-width: 640px) {
    #gallery .gal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    #gallery .g-card {
        aspect-ratio: 7 / 8;
        border-radius: 20px;
    }
}

/* very large screens: keep cards large (3 columns max) */
@media (min-width: 1200px) {
    #gallery .gal-grid {
        grid-template-columns: repeat(3, minmax(360px, 1fr));
        gap: 24px;
    }
}

/* 3) Image fit + readable overlay */
#gallery .g-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    filter: brightness(.78);
    transition: transform .35s ease, filter .25s ease;
    filter: grayscale(70%);
}

#gallery .g-card:hover img {
    transform: scale(1.04);
    filter: brightness(.88);
}

/* Overlay + title */
#gallery .g-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    padding: 14px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%);
}

#gallery .g-title {
    margin: 0;
    color: #fff;
    font-weight: 800;
    font-size: clamp(16px,2.8vw,22px);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/*-------------Announcements--------------*/
#announcements .ann-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 8px 0;
}

#announcements .ann-thumb {
    flex: 0 0 200px;
    height: 140px;
    border-radius: 18px;
    overflow: hidden;
    background: #f3f4f6;
}

    #announcements .ann-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

#announcements .ann-info {
    flex: 1;
    min-width: 0;
}

#announcements .ann-title {
    margin: 0 0 8px;
    font-weight: 800;
    color: #111;
    font-size: clamp(22px,3.2vw,34px);
    line-height: 1.2;
}

    #announcements .ann-title a {
        color: inherit;
        text-decoration: none;
    }

        #announcements .ann-title a:hover {
            text-decoration: underline;
        }

#announcements .ann-meta {
    display: flex;
    gap: 20px;
    color: #6b7280;
    font-weight: 700;
    font-size: clamp(13px,1.6vw,16px);
}

    #announcements .ann-meta i {
        margin-left: 6px;
    }

#announcements .ann-divider {
    border: 0;
    height: 1px;
    background: rgba(0,0,0,.08);
    margin: 14px 0 10px;
}

/* Sticky rounded button at bottom (like screenshot) */
#announcements .ann-add-wrap {
    position: sticky;
    bottom: 18px;
    display: flex;
    justify-content: center;
    margin-top: 28px;
    pointer-events: none; /* only the button is clickable */
}

#announcements .ann-add-btn {
    pointer-events: auto;
    background: var(--primary-color-1,#0e1735);
    color: #fff;
    font-weight: 800;
    padding: 16px 28px;
    border-radius: 22px;
    min-width: min(560px,92%);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

/* Mobile tweaks */
@media (max-width:576px) {
    #announcements .ann-thumb {
        flex-basis: 180px;
        height: 120px;
        border-radius: 16px;
    }

    #announcements .ann-add-btn {
        min-width: 92%;
    }
}
/*---------------Add Announcements---------------*/

/* ===== Add Announcement – scoped ===== */
#addAnnouncement .field-label {
    display: block;
    text-align: right;
    font-weight: 800;
    color: #0f172a;
    font-size: clamp(18px,2.6vw,26px);
    margin-bottom: 13px !important;
}

#addAnnouncement .form-control {
    background: #fff;
    border: 1px solid #e6e7ea;
    box-shadow: none;
    padding: 14px 16px;
}

#addAnnouncement textarea.form-control {
    min-height: 180px;
}

#addAnnouncement .date-group .input-group-text i {
    color: #9aa0a6;
}

#addAnnouncement .date-group .input-group-text {
    border-radius: 0 12px 12px 0;
}

/* switch size/color */
#addAnnouncement .ann-switch {
    width: 52px;
    height: 28px;
    cursor: pointer;
    accent-color: var(--primary-color-1, #0e1735);
    transform: scale(1.05);
}

/* inline upload "رفع الصورة +" */
#addAnnouncement .upload-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    color: var(--primary-color-1, #0e1735);
    font-weight: 800;
    font-size: clamp(16px,2.2vw,20px);
}

#addAnnouncement .upload-plus {
    font-size: 20px;
    color: #2eae6b; /* أخضر قريب من الصورة */
}

/* primary button uses theme variable */
#addAnnouncement .btn-one {
    background: var(--primary-color-1,#0e1735);
    color: #fff;
    font-weight: 800;
    padding: 16px 20px;
    border-radius: 22px;
    border: 0;
}

    #addAnnouncement .btn-one:hover {
        opacity: .92;
    }

/* small radius harmony */
#addAnnouncement .rounded-4 {
    border-radius: 18px !important;
}
/* ========== User Menu ========== */
.user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* زر الأفاتار */
.user-avatar-btn {
    width: 44px !important;
    height: 44px !important;
    aspect-ratio: 1 / 1; /* يضمن تساوي العرض والارتفاع */
    padding: 0 !important; /* منع أي حشوات تضخّم العرض */
    border: 0 !important;
    border-radius: 50% !important; /* دائرة */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    overflow: hidden; /* لو في أي أثر داخلي */
    background: linear-gradient(135deg,#2e6c8d,#1b3f54);
    color: #fff;
    font-weight: 700;
    line-height: 1; /* يمنع تمدّد رأسي */
    text-decoration: none !important; /* لو كانت <a> */
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.header__area-menubar-right-btn .user-avatar-btn {
    min-width: 0 !important;
    max-width: none !important;
}

/* حجم الأيقونة داخلها */
.user-avatar-btn i {
    font-size: 18px;
    line-height: 1;
}

.user-avatar-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0,0,0,.18);
}

/* اللوحة */
.user-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    min-width: 220px;
    max-width: 280px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,.15);
    overflow: hidden;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
    z-index: 9999;
}

/* اتجاه الموضع حسب RTL/LTR */
body.ltr-mode .user-menu-panel {
    right: 0;
    left: auto;
}

body.rtl-mode .user-menu-panel {
    left: 0;
    right: auto;
}

/* السهم */
.user-menu-panel::before {
    content: "";
    position: absolute;
    top: -7px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #e8e8e8;
    border-top: 1px solid #e8e8e8;
    transform: rotate(45deg);
}

body.ltr-mode .user-menu-panel::before {
    right: 14px;
    left: auto;
}

body.rtl-mode .user-menu-panel::before {
    left: 14px;
    right: auto;
}

/* إظهار */
.user-menu.open .user-menu-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* رأس القائمة */
.user-menu-header {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    background: #f9fbfd;
}

    .user-menu-header .mini-avatar {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #2e6c8d;
        color: #fff;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .user-menu-header .name {
        font-weight: 700;
        font-size: 14px;
        color: #0f172a;
        line-height: 1.2;
    }

    .user-menu-header .email {
        font-size: 12px;
        color: #64748b;
    }

/* العناصر */
.user-menu-list {
    padding: 6px;
    display: grid;
    gap: 4px;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 8px;
    color: #0f172a;
    text-decoration: none;
    font-size: 14px;
    transition: background .12s ease, transform .12s ease;
}

    .user-menu-item i {
        opacity: .85;
    }

    .user-menu-item:hover {
        background: #f3f6f9;
        transform: translateY(-1px);
    }

/* فواصل */
.user-menu-divider {
    height: 1px;
    background: #eef2f7;
    margin: 4px 8px;
}

/* زر تسجيل/دخول أنيق */
.user-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 5px 5px;
    /*margin: 0;*/
    /*border-radius: 10px;*/
    /*border: 1px solid #2e6c8d;*/
    color: #2e6c8d;
    background: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background .12s ease, color .12s ease, transform .12s ease;
}

    .user-login-btn:hover {
        background: #2e6c8d;
        color: #fff;
        transform: translateY(-1px);
    }





.copyright__one, .copyright__two, .copyright__three, .copyright__four {
    margin-top: 20px;
}










@media (max-width: 1450px) {
    .header__area-menubar-right-btn {
        display: unset;
    }
}

@media (max-width: 1299px) {
    .header__area-menubar-right-btn {
        display: unset;
    }
}

@media (max-width: 1020px) {
    .menu__bar {
        display: block;
    }
}

@media (max-width: 1200px) {
    .menu__bar {
        display: block;
    }
}

.top__bar-four-right-social ul li a span::after {
    right: unset !important;
    left: unset !important;
    content: unset !important;
}

/*--------------Add News------------------------*/
/* خاص بصفحة news-form فقط */
.news-form .contact-item {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: .75rem;
    padding: .6rem .9rem;
    border: 1px solid #e9ecef;
    border-radius: .75rem;
    background: #fff;
    margin-bottom: .5rem;
}

    .news-form .contact-item > span {
        display: inline-grid;
        place-items: center;
        min-width: 32px;
        font-size: 1rem;
        opacity: .8;
    }

    .news-form .contact-item input,
    .news-form .contact-item textarea,
    .news-form .contact-item select {
        border: none;
        outline: none;
        width: 100%;
        background: transparent;
        font-size: 1rem;
    }

    .news-form .contact-item textarea {
        resize: vertical;
    }

.news-form .contact-item-switch {
    border: 1px solid #e9ecef;
    border-radius: .75rem;
    padding: .6rem .9rem;
    background: #fff;
    margin-bottom: .5rem;
}

.news-form .upload-tile {
    height: 160px;
    border: 1px dashed #cfd4da;
    background: #f8f9fa;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    transition: border-color .2s, background .2s;
}

    .news-form .upload-tile:hover {
        border-color: var(--primary-color-1);
        background: #f3f9fd;
    }
/* ===== Fixes only for this page ===== */
.news-form {
    --nf-h: 56px;
    --nf-radius: 12px;
    --nf-focus: 0 0 0 .25rem rgba(106,195,238,.18);
}

    /* الحقول العامة داخل contact-item */
    .news-form .contact-item {
        display: flex;
        align-items: center;
        gap: .75rem;
        border: 1px solid #e9ecef;
        border-radius: var(--nf-radius);
        background: #fff;
        padding: .4rem .9rem;
        box-shadow: none;
        min-height: var(--nf-h);
    }

        .news-form .contact-item:focus-within {
            border-color: var(--primary-color-1);
            box-shadow: var(--nf-focus);
        }

        .news-form .contact-item > span {
            min-width: 32px;
            display: inline-grid;
            place-items: center;
            color: #6b93a0;
        }

        /* إدخالات النص والـ textarea */
        .news-form .contact-item input,
        .news-form .contact-item textarea,
        .news-form .contact-item select {
            width: 100%;
            border: none !important;
            outline: 0 !important;
            box-shadow: none !important;
            background: transparent;
            font-size: 1rem;
            padding: .4rem 0;
        }

    .news-form .publish-dt {
        display: flex;
        align-items: center;
        gap: .75rem;
        border: 1px solid #e9ecef;
        border-radius: .75rem;
        padding: .6rem .9rem;
        background: #fff;
        cursor: pointer; /* حتى السطر كله يبان قابل للنقر */
    }

        .news-form .publish-dt:focus-within {
            border-color: var(--primary-color-1);
            box-shadow: 0 0 0 .25rem rgba(106,195,238,.18);
        }

        .news-form .publish-dt input[type="datetime-local"] {
            flex: 1;
            border: none;
            outline: none;
            background: transparent;
            font-size: 1rem;
            direction: rtl; /* التاريخ/الوقت يبدأ يمين */
            text-align: right;
            cursor: pointer; /* المؤشر يظهر كأنه قابل للنقر */
        }

[dir="rtl"] .news-form .contact-item input,
[dir="rtl"] .news-form .contact-item textarea {
    text-align: right;
}

/* تاريخ النشر (رجّعناه RTL مع placeholder يبدأ يمين) */
.news-form .contact-item input[type="date"] {
    direction: rtl; /* يرجّع المؤشر والبداية لليمين */
    text-align: right;
    padding: .4rem 0; /* يمنع تضارب الحشوات الافتراضية */
    line-height: 1.2;
    min-height: calc(var(--nf-h) - .8rem);
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}
    /* تعديل عناصر WebKit الداخلية */
    .news-form .contact-item input[type="date"]::-webkit-datetime-edit {
        direction: rtl;
    }

    .news-form .contact-item input[type="date"]::-webkit-calendar-picker-indicator {
        opacity: .9;
        cursor: pointer;
        margin-inline-start: .4rem;
        margin-inline-end: 0;
    }
    /* في فايرفوكس، ألغِ أسهم الأرقام إن ظهرت */
    .news-form .contact-item input[type="date"]::-webkit-inner-spin-button {
        display: none;
    }

/* البلاطة تبع الرفع */
.news-form .upload-tile {
    height: 160px;
    border: 1px dashed #cfd4da;
    background: #f8f9fa;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    border-radius: var(--nf-radius);
    transition: border-color .2s, background .2s;
}

    .news-form .upload-tile:hover {
        border-color: var(--primary-color-1);
        background: #f3f9fd;
    }

/* سطر (التعليق متاح) داخل الحدود – بدون “خروج” */
.news-form .contact-item-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border: 1px solid #e9ecef;
    border-radius: var(--nf-radius);
    background: #fff;
    padding: .6rem .9rem;
    min-height: var(--nf-h);
    box-shadow: none;
}

    .news-form .contact-item-switch:focus-within {
        border-color: var(--primary-color-1);
        box-shadow: var(--nf-focus);
    }

    /* ضبط حجم وتموضع السويتش نفسه داخل الحاوية */
    .news-form .contact-item-switch .form-check {
        margin: 0;
    }

    .news-form .contact-item-switch .form-check-input {
        float: none;
        margin: 0;
        box-shadow: none !important;
        width: 2.5rem;
        height: 1.3rem;
        cursor: pointer;
    }

    .news-form .contact-item-switch label {
        margin: 0;
        font-weight: 600;
    }
/*-----------Add Advertisement----------------*/
/* ===== تنسيقات مقيّدة بهذه الصفحة فقط ===== */
.announcement-form {
    --nf-h: 56px;
    --nf-radius: 12px;
    --nf-focus: 0 0 0 .25rem rgba(106,195,238,.18);
}

    .announcement-form .field-label {
        font-weight: 600;
        color: #333;
    }

    .announcement-form .contact-item {
        display: flex;
        align-items: center;
        gap: .75rem;
        border: 1px solid #e9ecef;
        border-radius: var(--nf-radius);
        background: #fff;
        padding: .6rem .9rem;
        min-height: var(--nf-h);
        box-shadow: none;
    }

        .announcement-form .contact-item:focus-within {
            border-color: #6ac3ee;
            box-shadow: var(--nf-focus);
        }

        .announcement-form .contact-item > span {
            min-width: 32px;
            display: inline-grid;
            place-items: center;
            color: #6b93a0;
        }

        .announcement-form .contact-item input,
        .announcement-form .contact-item textarea,
        .announcement-form .contact-item select {
            width: 100%;
            border: none !important;
            outline: 0 !important;
            background: transparent;
            font-size: 1rem;
            padding: .35rem 0;
            box-shadow: none !important;
        }

[dir="rtl"] .announcement-form .contact-item input,
[dir="rtl"] .announcement-form .contact-item textarea {
    text-align: right;
}

/* datetime-local */
.announcement-form .publish-dt {
    cursor: pointer;
}

    .announcement-form .publish-dt input[type="datetime-local"] {
        direction: rtl;
        text-align: right;
        cursor: pointer;
        min-height: calc(var(--nf-h) - .8rem);
        -webkit-appearance: none;
        appearance: none;
    }

        .announcement-form .publish-dt input[type="datetime-local"]::-webkit-datetime-edit {
            direction: rtl;
        }

        .announcement-form .publish-dt input[type="datetime-local"]::-webkit-calendar-picker-indicator {
            opacity: .9;
            cursor: pointer;
            margin-inline-start: .4rem;
            margin-inline-end: 0;
        }

/* سويتش التعليقات */
.announcement-form .contact-item-switch {
    border: 1px solid #e9ecef;
    border-radius: var(--nf-radius);
    background: #fff;
    padding: .6rem .9rem;
    min-height: var(--nf-h);
}

    .announcement-form .contact-item-switch:focus-within {
        border-color: #6ac3ee;
        box-shadow: var(--nf-focus);
    }

    .announcement-form .contact-item-switch .form-check {
        margin: 0;
    }

    .announcement-form .contact-item-switch .form-check-input {
        float: none;
        margin: 0;
        width: 2.5rem;
        height: 1.3rem;
        box-shadow: none !important;
        cursor: pointer;
    }

/* تايل الرفع */
.announcement-form .upload-tile {
    height: 160px;
    border: 1px dashed #cfd4da;
    background: #f8f9fa;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    border-radius: var(--nf-radius);
    transition: border-color .2s, background .2s;
}

    .announcement-form .upload-tile:hover {
        border-color: #6ac3ee;
        background: #f3f9fd;
    }
/*-------------------No Login member news----------------------------*/
/* Remove border bottom from modal header */
#loginPrompt .modal-header {
    border-bottom: none;
}

/* Remove border top from modal footer */
#loginPrompt .modal-footer {
    border-top: none;
}

.manager-img {
    height: 400px !important;
}

.rtl-mode .safety-analytics-card a {
    direction: rtl;
}

#AlbumDiv .blog__two-item .blog__two-item-image {
    filter: grayscale(70%);
}

#AlbumDiv .blog__two-item:hover .blog__two-item-image {
    transform: scale(1.04);
    filter: brightness(.88);
}
