/* Turki code file ^.^ */

/*---------------------( المتغيرات والثوابت الأساسية )---------------------*/
:root {
    --bg: #fff;
    --ink: #10142a;
    --muted: #8386ac;
    --line: #e9eef6;
    --brand: #1f2e63;
    --panel: #f6f8ff;
}

/*---------------------( الإعدادات الأساسية للصفحة )---------------------*/
* {
    box-sizing: border-box;
}

html,


body { height: 100;}
body {
    margin: 0;
    padding-block: 40px;
    font-family: 'DIN Next LT Arabic Medium', "Cairo", system-ui, Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(to bottom, #b5c8ce, #09494D);
    background-attachment: fixed;
    height: 100vh;
}

a {
    color: #ebebeb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-size: 2rem;
  font-size: clamp(2rem,0.7179487179487178rem + 5.47008547008547vw,4rem)
}

p {
    margin: 0 0 12px;
    line-height: 1.9;
}

ul,
ol {
    margin: 0 0 12px 0;
    padding: 0 18px;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 16px;
}

/*---------------------( الهيدر - الشريط العلوي )---------------------*/
header.top {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(45deg, #c9d7d8, #09494D, #c9d7d8);
    background-size: 200% 200%;
    animation: gradientMove 5s linear infinite;
    color: #fff;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 800;
}

.brand img {
    width: 28px;
    height: 28px;
}

.logo {
    width: 100px;
    height: auto;
}

header.top .topbar img.logo {
    width: 60px;
    height: auto;
    margin-right: 8px;
    vertical-align: middle;
}

header.top .topbar .brand span {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

header.top .topbar .burger {
    background-color: rgba(255, 255, 255, 0.205);
    color: #09494D;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

header.top .topbar .burger:hover {
    background-color: #fff;
}

/*---------------------( القائمة الجانبية )---------------------*/
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 360px;
    background: #f0e8e2;
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: .25s ease;
    z-index: 30;
    overflow: auto;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.drawer.open {
    transform: none;
}

.drawer .head {
    background: linear-gradient(45deg, #c9d7d8, #09494D, #c9d7d8);
    background-size: 200% 200%;
    animation: gradientMove 5s linear infinite;
    color: #fff;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.drawer nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.drawer nav a {
    background-color: #c9d7d8;
    color: #09494D;
    padding: 12px 14px;
    border-radius: 12px;
    transition: background-color 0.3s ease;
    border: 1px solid var(--line);
}

.drawer nav a:hover {
    background-color: #09494D;
    color: #fff;
}

/*---------------------( الأقسام الرئيسية )---------------------*/
main section {
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}

.main-content {
    padding-top: 100px;
}

/*---------------------( قسم الأبطال )---------------------*/
.hero {
    padding: -16px 0 -2px;
}

.hero h1 {
    color: #fff;
    font-size: 28px;
}

.hero p {
    color: #d6ddf3;
}
.containerBanner{
    width: 100%;
    height:500px;
    background-image: url('IMG_0433.PNG');
    background-position:center;
    /* background-size: contain; */
    background-size: cover;
    background-repeat: no-repeat;
    
}
/* .my_cover {
    width: 100%;
    height: 500px;
    position: relative;
    object-fit: cover;
} */

/*---------------------( قسم المربعات المتحركة )---------------------*/
.motion-box {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.motion-box.visible {
    opacity: 1;
    transform: translateY(0);
}

.box {
    background-color: #f0e8e2;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.box:hover {
    transform: scale(1.025);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.box p,
.box ol {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    text-align: center;
}

.box p,
.box ol {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
}

.box ol {
    padding-left: 20px;
}

.box li {
    margin-bottom: 10px;
}
/*---------------------( قسم الإحصائيات )---------------------*/
.stats {
    display: grid;
    /* تعديل: جعلها عمودين متساويين مع مسافة 10px */
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat {
    background: #f0e8e2;
    border: 1px solid var(--line);
    border-radius: 12px;
    /* تعديل: تقليل المسافات الداخلية */
    padding: 12px;
    text-align: center;
}

.stat b {
    display: block;
    /* تعديل: تصغير حجم الخط قليلاً */
    font-size: 22px;
    margin-bottom: 4px; /* تقليل المسافة أسفل الرقم */
}

.stats .stat b::before {
    content: "+";
}

/*---------------------( قسم المبادرات )---------------------*/
.cards {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: #f0e8e2;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    transition: .12s;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 20, 60, .06);
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.card img,
.thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    background: #f0e8e2;
}

.card .name {
    font-weight: bold;
    font-size: 20px;
    color: #09494D;
    margin-bottom: 12px;
    text-align: center;
}

.card p {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    text-align: center;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/*---------------------( قسم أبرز الأعمال )---------------------*/
#featured {
    padding: 40px 0;
    text-align: center;
}

#featured .cards {
    /* display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 30px auto;
    max-width: 1200px; */
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#featured .card {
    /* background-color: #f0e8e2;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 250px;
    flex: 1 1 200px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column; */
    background: #f0e8e2;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    transition: .12s;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
}

#featured .card .name {
    font-size: 1.25rem;
    font-weight: bold;
    color: #000000;
    padding: 15px;
    text-align: center;
}

#featured .card p {
    padding: 0 20px;
    text-align: right;
    line-height: 1.6;
    color: #000000c4;
    flex-grow: 1;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container .thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.card img.thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
}

.card:hover {
    transform: translateY(-8px);
    transition: transform 0.3s ease-in-out;
}

/*---------------------( قسم إنجازاتنا )---------------------*/
#achievements {
    text-align: center;
    padding: 40px 0;
}

#achievements h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #f5f5dc;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

#achievements p {
    padding: 20px 0;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    color: #f5f5dc;
    font-family: 'DIN Next LT Arabic Medium', sans-serif;
}

.video-container-wide {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.video-container-wide .wide-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/*---------------------( قسم انضم معنا )---------------------*/
#join {
    text-align: center;
    padding: 40px 0;

}

#join h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #f5f5dc;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.join-btn {
    display: inline-block;
    background-color: #f0e8e2;
    color: #000000d3;
    padding: 25px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.join-btn:hover {
    background-color: #7ba2b1;
}

/*---------------------( الفوتر - النهاية )---------------------*/
footer {
    text-align: center;
    padding: 18px;
    color: var(--muted);
}

.socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.socials a {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-decoration: none;
}

.verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.verified .check {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1da1f2;
    color: #fff;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
}

.site-footer hr {
    border: none;
    border-top: 1px solid #738b94;
    width: 100%;
    margin: 0;
    padding: 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex-grow: 1;
    flex-basis: 250px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
    text-align: right;
}

.credits-section {
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.credit-cards-column {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.credit-card {
    display: block;
    background-color: #6a9ea8;
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    max-width: 250px;
}

.credit-card:hover {
    transform: translateY(-5px);
    background-color: #5c848e;
}

.credit-card .name {
    font-weight: bold;
}

.credit-card .role {
    font-size: 0.9em;
    color: #e0eaf1;
    margin-top: 5px;
}

.credit-card .cta {
    font-size: 0.8em;
    color: #65bfcf;
    margin-top: 10px;
}

.contact-section {
    order: 2;
    text-align: center;
}

.contact-section .section-title {
    text-align: center;
}

.contact-section a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.2s;
}

.contact-section a:hover {
    color: #b0d4da;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: none;
    color: #c9d7d8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-bottom small {
    font-size: 0.9em;
}

.footer-bottom a {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: #5b68a1;
}

.footer-bottom .check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #3B979F;
    color: #fff;
    font-size: 0.8em;
    font-weight: bold;
}

/*---------------------( التنسيقات العامة )---------------------*/
section h2 {
    text-align: center;
    font-size: 34px;
    color: #000000;
    margin-bottom: 20px;
    font-weight: bold;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

h2 .section-icon {
    width: 90px;
    height: 90px;
    margin-left: 0px;
    vertical-align: middle;
}

#initiatives h2,
#numbers h2 , #featured h2{
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
     color: #f5f5dc;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

#initiatives h2 {
    margin-bottom: 15px;
    padding: 5px;
    border-right-style: 12px;
     color: #f5f5dc;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

html {
    scroll-padding-top: 80px;
}

.full-width-line {
    border: none;
    border-top: 1px solid #738b94;
    width: 100%;
    margin: 20px 0;
}

/*---------------------( تنسيقات الأكورديون )---------------------*/
.accordion {
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    background-color: #f1f1f1;
    border: 2px solid #ccc;
    border-radius: 15px;
    text-align: center;
    width: 100%;
    transition: background-color 0.3s, border 0.3s;
}

.accordion:hover {
    background-color: #ddd;
    border-color: #aaa;
}

.arrow {
    float: left;
    margin-left: 10px;
    transition: transform 0.3s;
}

.panel {
    display: none;
    padding: 10px;
    margin-top: 10px;
    background-color: #dee2e2;
    border: 2px solid #c9d7d8;
    border-radius: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s, border 0.3s;
}

.panel:hover {
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
}

.panel ul {
    list-style-type: none;
    padding: 0;
}

.panel ul li {
    padding: 5px 0;
}

.accordion-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

/*---------------------( تنسيقات الشركاء )---------------------*/
.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #f9f9f9;
    border: 3px solid #ccc;
    border-radius: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s, border-color 0.3s;
    text-align: center;
    margin: 0 auto;
}

.partner-logos:hover {
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
    border-color: #aaa;
}

.partner-logos img {
    width: 30%;
    height: auto;
    border-radius: 8px;
}

/*---------------------( تنسيقات فريق العمل )---------------------*/
#contact {
    text-align: center;
    background-color: #f0f8ff;
    padding: 20px;
    animation: fadeIn 1s ease-in-out;
}

#credits {
    background-color: #e0f7fa;
    padding: 20px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.team {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.member {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    text-align: center;
    opacity: 0;
    animation: slideUp 0.5s forwards;
}

.member h3 {
    font-size: 1.2rem;
    color: #00796b;
    margin-bottom: 10px;
}

.member p {
    font-size: 1rem;
    color: #00796b;
}

.member a {
    color: #00796b;
    text-decoration: none;
    font-weight: bold;
}

.member a:hover {
    text-decoration: underline;
}

/*---------------------( الرسوم المتحركة )---------------------*/
@keyframes gradientMove {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 70% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/*---------------------( التنسيقات الخاصة بالشاشات الصغيرة )---------------------*/
@media (max-width: 768px) {
    header.top {
        height: auto;
    }

    .topbar {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .containerBanner{
        /*height:60vh;*/
        background-size: contain; 
    }

    .brand {
        /* flex-direction: column; */
        text-align: center;
        margin-bottom: 5px;
    }

    .brand img .logo {
        width: 50px;
        height: auto;
        margin-right: 0;
    }

    .brand span {
        font-size: 18px;
        line-height: 1.2;
    }

    .hero-text {
        display: none !important;
    }

    .burger {
        margin-top: 10px;
        font-size: 14px;
        padding: 8px 12px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-section {
        flex-basis: auto;
        width: 100%;
        order: unset;
    }

    .credits-section .section-title {
        text-align: center;
    }

    .credits-section,
    .contact-section {
        margin-bottom: 20px;
    }
}

/* @media (max-width: 768px) {
    header.top {
        height: auto;
    }

    .topbar {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .brand {
        flex-direction: column;
        text-align: center;
        margin-bottom: 5px;
    }

    .brand img.logo {
        width: 50px;
        height: auto;
        margin-right: 0;
    }

    .brand span {
        font-size: 18px;
        line-height: 1.2;
    }

    .hero-text {
        display: none !important;
    }

    .burger {
        margin-top: 10px;
        font-size: 14px;
        padding: 8px 12px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-section {
        flex-basis: auto;
        width: 100%;
        order: unset;
    }

    .credits-section .section-title {
        text-align: center;
    }

    .credits-section,
    .contact-section {
        margin-bottom: 20px;
    }
} */

/* هذا هو التعديل المطلوب */
/* تنسيق العناوين الفرعية لتكون أصغر وأكثر تناسقًا */
.panel h3 {
    font-size: 24px; /* حجم مناسب للعناوين الفرعية */
    margin: 16px 0 8px; /* مسافة أعلى وأسفل */
    font-weight: bold;
    color: #09494D; /* لون يتناسق مع تصميمك */
}

.panel h4 {
    font-size: 20px; /* حجم أصغر للعناوين الفرعية الداخلية */
    font-weight: bold;
    color: #09494D;
    margin: 12px 0 6px;
}

/* ==== كاروسيل أفقي للمبادرات وأبرز الأعمال (موبايل) ==== */
@media (max-width: 768px) {
  /* نحول الشبكة إلى صف قابل للتمرير */
  #initiatives .cards,
  #featured .cards {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    overflow-x: auto !important;              /* سحب بالإصبع */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 10px 8px 14px !important;
    /*  تدرّج أطراف لطيف */
    mask-image: linear-gradient(to left, transparent, black 10%, black 90%, transparent);
  }

  /* عرض كل بطاقة في الشريط */
  #initiatives .card,
  #featured .card {
    flex: 0 0 82% !important;   /*  */
    max-width: 82% !important;
    scroll-snap-align: center;
  }

  /* تصحيح صور/فيديو داخل البطاقة */
  #initiatives .card img,
  #featured .card img,
  #initiatives .card .thumb,
  #featured .card .thumb {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
  }
 
  #initiatives .cards, #featured .cards { grid-template-columns: none !important; }
}

/* في الديسكتوب يبقى التخطيط كما هو  */

/*    iframe مباشرة */
#featured .card iframe,
#initiatives .card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 10px;
}
/* =====[ Carousel Override - مبادرات + أبرز الأعمال ]===== */
/* موبايل/تابلت: نحول الشبكة إلى صف أفقي قابل للتمرير */
@media (max-width: 768px) {
  #initiatives .cards,
  #featured .cards {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    overflow-x: auto !important;         /* سحب بالإصبع */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 10px 8px 14px !important;

    /* تعطيل أي Grid سابق */
    grid-template-columns: none !important;
  }

  /* كل بطاقة تأخذ عرض جزئي من الشاشة لخلق التمرير */
  #initiatives .card,
  #featured .card {
    flex: 0 0 82% !important;            /*  */
    max-width: 82% !important;
    scroll-snap-align: center;
  }

  /* صور/فيديو داخل البطاقة */
  #initiatives .card img,
  #featured  .card img,
  #initiatives .card .thumb,
  #featured  .card .thumb,
  #initiatives .card iframe,
  #featured  .card iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    border: 0;
    display: block;
  }

  /* شريط التمرير (اختياري: إخفاء) */
  #initiatives .cards::-webkit-scrollbar,
  #featured .cards::-webkit-scrollbar { display: none; }
  #initiatives .cards,
  #featured .cards { scrollbar-width: none; } /* Firefox */
}

/* ديسكتوب: نترك التخطيط الشبكي كما هو  */
/* لو نبي الكاروسيل يشتغل بكل المقاسات، احذف الـ @media لفوق. */
/* إظهار شريط تمرير واضح لقسم "المبادرات" على الجوال */
@media (max-width: 768px) {
  #initiatives .cards {
    /* تأكد من التمرير أفقي */
    overflow-x: auto !important;

    /* ألغِ الماسك اللي يخفي الأطراف (قد يخفي الشريط) */
    mask-image: none !important;
    -webkit-mask-image: none !important;

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #7ba2b1 #e6ecef;

    /* يحجز حيز ثابت للسكرولبار على المتصفحات الداعمة */
    scrollbar-gutter: stable both-edges;
  }

  /* WebKit (Chrome/Edge/Opera/Android) */
  #initiatives .cards::-webkit-scrollbar {
    height: 10px;                 /* ارتفاع الشريط الأفقي */
  }
  #initiatives .cards::-webkit-scrollbar-track {
    background: #e6ecef;
    border-radius: 8px;
  }
  #initiatives .cards::-webkit-scrollbar-thumb {
    background: #7ba2b1;
    border-radius: 8px;
  }
  #initiatives .cards::-webkit-scrollbar-thumb:hover {
    background: #5c848e;
  }
}
/* === مبادرات: كروسل ثابت ومحاذاة مع شريط التمرير (موبايل) === */
@media (max-width: 768px) {
  #initiatives .cards {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;

    /* تمرير أفقي فقط */
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;

    /* إلغاء أي ماسك قد يخفي الشريط */
    mask-image: none !important;
    -webkit-mask-image: none !important;

    /* يمنع القفزة عند ظهور/اختفاء الشريط */
    scrollbar-gutter: stable both-edges;

    /* توفير مساحة أسفل للسكرولبار حتى ما يغطي البطاقات */
    padding-bottom: 14px !important;

    /* إبراز الحافة كاملة من اليمين لليسار (اختياري) */
    margin-inline: -16px;
    padding-inline: 16px;

    /* سناب سلس */
    scroll-snap-type: x mandatory;
  }

  /* بطاقة عريضة وثابتة العرض داخل الشريط */
  #initiatives .card {
    flex: 0 0 82% !important;
    max-width: 82% !important;
    scroll-snap-align: center;

    /* توحيد الارتفاع ومنع تغيّر الارتفاع أثناء السحب */
    display: flex;
    flex-direction: column;
  }
  #initiatives .card .thumb,
  #initiatives .card iframe,
  #initiatives .card img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 10px;
  }
  #initiatives .card p {
    flex-grow: 1; /* يملأ الفراغ ويثبت ارتفاع البطاقة */
  }

  /* شكل شريط التمرير (اختياري) */
  #initiatives .cards::-webkit-scrollbar { height: 10px; }
  #initiatives .cards::-webkit-scrollbar-track { background: #e6ecef; border-radius: 8px; }
  #initiatives .cards::-webkit-scrollbar-thumb { background: #7ba2b1; border-radius: 8px; }
  #initiatives .cards::-webkit-scrollbar-thumb:hover { background: #5c848e; }
  #initiatives .cards { scrollbar-width: thin; scrollbar-color: #7ba2b1 #e6ecef; }
}
/* === إظهار نص الهيدر على الجوال وتحجيمه === */
@media (max-width: 768px) {
  .hero-text { 
    display: block !important; 
    text-align: center;
  }
  .hero-text h1 {
    font-size: 18px;   /* كان 28px */
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
  }
  .hero-text p {
    font-size: 14px;
    margin: 0;
    opacity: .9;
  }

  /* تنظيم توزيع العناصر داخل الشريط العلوي */
  header.top .topbar {
    gap: 6px;
  }
}
/* === إصلاح كروسل "المبادرات" (موبايل) — إجبار overflow === */
@media (max-width: 768px) {
  /* حوّل الشبكة إلى صف قابل للتمرير */
  #initiatives .cards {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;

    /* خذ مساحة من حواف الـcontainer حتى البطاقة تآخذ كامل العرض */
    margin-inline: -16px;
    padding: 10px 16px 14px !important;

    scroll-snap-type: x mandatory;
    scrollbar-gutter: stable both-edges;
  }

  /* خَلِّ كل بطاقة تقريبًا بقدر عرض الشاشة */
  #initiatives .card {
    /* الشاشة - (حشوات اليمين/اليسار 16+16) */
    flex: 0 0 calc(100vw - 48px) !important;
    max-width: calc(100vw - 48px) !important;
    min-width: calc(100vw - 48px) !important;
    scroll-snap-align: center;
  }

  /* ثبّت ميديا/صور داخل البطاقة */
  #initiatives .card .thumb,
  #initiatives .card iframe,
  #initiatives .card img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 10px;
  }

  /* شريط تمرير لطيف (اختياري) */
  #initiatives .cards::-webkit-scrollbar { height: 10px; }
  #initiatives .cards::-webkit-scrollbar-track { background: #e6ecef; border-radius: 8px; }
  #initiatives .cards::-webkit-scrollbar-thumb { background: #7ba2b1; border-radius: 8px; }
  #initiatives .cards { scrollbar-width: thin; scrollbar-color: #7ba2b1 #e6ecef; }
}
/* ====== إصلاح كاروسيل "المبادرات" ليشتغل في كل المقاسات ====== */
#initiatives .cards{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:16px !important;
  overflow-x:auto !important;          /* لازم يكون فيه تمرير */
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
  padding: 8px 0 16px !important;
  mask-image: linear-gradient(to left, transparent, black 10%, black 90%, transparent);
}

/* نعطي كل بطاقة عرض أكبر شوي عشان يطلع شريط التمرير */
#initiatives .card{
  flex: 0 0 clamp(320px, 40vw, 420px) !important;  /* حد أدنى 320px وعلى الشاشات الكبيرة 40vw */
  max-width: none !important;
  scroll-snap-align:center;
}

/* على الشاشات الكبيرة نخليها أعرض شوي لثلاث بطاقات أو أكثر */
@media (min-width: 1024px){
  #initiatives .card{
    flex-basis: clamp(360px, 33vw, 460px) !important;
  }
}

/* شكل شريط التمرير (خياري للتناسق) */
#initiatives .cards::-webkit-scrollbar{ height: 10px; }
#initiatives .cards::-webkit-scrollbar-thumb{
  background: #09494D55; border-radius: 8px;
}
#initiatives .cards:hover::-webkit-scrollbar-thumb{
  background: #09494D99;
}

/* ====== إظهار نص الهيدر على الجوال (كان مخفي) ====== */
@media (max-width: 768px){
  .hero-text{
    display:block !important;
    order: 2;           /* تحت الشعار زر القائمة */
    text-align:center;
    margin-top:6px;
    line-height:1.3;
  }
  .hero-text h1{ font-size:22px; font-weight:700; margin:0; }
  .hero-text p { font-size:14px; opacity:.9; margin:0; }
}
/* جعل القسم مرجعًا لوضع الأزرار */
#initiatives { position: relative; }

/* أزرار يمين/يسار للتحريك */
.row-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  border: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(9,73,77,.85);
  color: #fff; font-size: 22px; font-weight: 700;
  box-shadow: 0 8px 16px rgba(0,0,0,.25);
  cursor: pointer;
}
.row-btn.prev{ right: 8px; }
.row-btn.next{ left: 8px; }

.row-btn:active{ transform: translateY(-50%) scale(.96); }

/* تحسين ظهور/سلوك الشريط قدر الإمكان */
#initiatives .cards{
  scrollbar-width: thin;                 /* Firefox */
  scrollbar-color: #09494D88 transparent;
  scrollbar-gutter: stable both-edges;   /* يحجز مساحة للشريط */
}
#initiatives .cards::-webkit-scrollbar{ height: 10px; }
#initiatives .cards::-webkit-scrollbar-thumb{
  background: #09494D55; border-radius: 8px;
}
#initiatives .cards:hover::-webkit-scrollbar-thumb{ background:#09494D99; }

/* نضمن إنه صف أفقي مع عرض بطاقات كافي لظهور التمرير */
#initiatives .cards{
  display:flex !important; flex-wrap:nowrap !important;
  gap:16px !important; overflow-x:auto !important;
  -webkit-overflow-scrolling:touch; scroll-snap-type:x mandatory;
  padding:8px 0 16px !important;
  mask-image: linear-gradient(to left, transparent, black 10%, black 90%, transparent);
}
#initiatives .card{
  flex: 0 0 clamp(320px, 40vw, 420px) !important;
  max-width: none !important; scroll-snap-align:center;
}
@media (min-width:1024px){
  #initiatives .card{ flex-basis: clamp(360px, 33vw, 460px) !important; }
}

/* على الشاشات الصغيرة نزحلق الأزرار شوي لتجنب تغطية المحتوى */
@media (max-width:768px){
  .row-btn{ top: 44%; }
}
