:root {
    --primary: #524FA0;
    --secondary: #4CAE97;
    --light: #F8F9FA;
    --dark: #212529;
}

:root {
    --primary: #524FA0;
    --secondary: #4CAE97;
    --light: #F8F9FA;
    --dark: #212529;
}

/* إخفاء شريط التمرين بالكامل */
html, body {
    overflow-x: hidden;
    height: 100%;
    margin: 0;
    padding: 0;
}

body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* تطبيق خط Greta Arabic للعربية */
body[dir="rtl"] {
    font-family: 'Greta Arabic', 'Tajawal', sans-serif;
    background-color: #f8f9fa;
    direction: rtl;
    text-align: right;
}
body[dir="ltr"] {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: ltr;
    text-align: left;
}


/* تأكد أن الاتجاه صحيح */
body[dir="rtl"] .row {
    flex-direction: row !important;
}
/* === تحديث روابط الـ Navbar === */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}



.navbar-brand img {
    height: 50px;
}

/* روابط الـ Navbar بالمواصفات المطلوبة */
.nav-link {
    color: #495057;
    font-family: 'Greta Arabic', 'Tajawal', sans-serif;
    font-weight: 500;        /* ← Medium */
    font-size: 16px;
    line-height: 24px;       /* ← 24px كما طلب التصميم */
    letter-spacing: 0%;      /* ← إضافتها للدقة */
    padding: 0.5rem 0.8rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    text-align: right;       /* ← اختياري (عادةً يُطبّق على الحاوية) */
    text-decoration: none;   /* ← لتجنب الخط تحت الرابط */
}

.nav-link:hover,
.nav-link.active {
    color: #5B4B9A;
    background-color: #f8f9fa;
}

/* زر English في القائمة */
.btn-link {
    color: #495057;
    font-family: 'Greta Arabic', 'Tajawal', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    padding: 0.5rem 0.8rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
}
.btn-link:hover {
    color: #5B4B9A;
    background-color: #f8f9fa;
}

/* عناصر القائمة المنسدلة */
.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-family: 'Greta Arabic', 'Tajawal', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #495057;
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: #f8f9fa;
    color: #5B4B9A;
}

/* أيقونة البحث */
.search-icon {
    cursor: pointer;
    color: #495057;
    font-family: 'Greta Arabic', 'Tajawal', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    padding: 0.5rem 0.8rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-icon:hover {
    color: #5B4B9A;
    background-color: #f8f9fa;
}

/* تخصيص قائمة اللغة */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

/* باقي الأنماط العامة */
.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    font-family: 'IBM Plex Sans Arabic';
}
.btn-primary:hover {
    background-color: #6aae8d;
    border-color: #6aae8d;
}

.card {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: none;
    font-family: 'IBM Plex Sans Arabic';

}
.card-title {
    color: var(--primary);
    text-align: right;
}
.card-text {
    color: #555;
    text-align: right;
}
.text-md-end {
    text-align: right !important;

}
.logofooter{
    margin-right: 35rem;
}
.footer .form-control::placeholder {
    color: white !important;
    opacity: 1;
}
.footer {
    background-color: var(--primary);
    color: white;
    padding: 2rem 0;
    font-family: 'IBM Plex Sans Arabic';
}
.footer a {
    color: white;
    text-decoration: none;
}
.footer a:hover {
    color: var(--secondary);
}
/*
.stat-card {
    background: var(--primary);
    color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
}
.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}
.event-card {
    transition: transform 0.3s ease;
}
.event-card:hover {
    transform: translateY(-5px);
}*/
/* === Hero Section - الإصدار النهائي (أقصى اليمين) === */
.hero-section {
    position: relative;
    height: 60vh;
    overflow: hidden;
    color: white;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* طبقة التغميم */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(91, 75, 154, 0.85), rgba(97, 116, 163, 0.86));
    z-index: 1;
}

/* المحتوى - في أقصى اليمين */
.slide-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* ← توسيط عمودي */
    text-align: right;
    max-width: 800px;
    z-index: 2;
    padding: 2rem;
}

.hero-title {
    font-family: 'IBM Plex Sans Arabic';
    font-weight: 600;
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--secondary);
    margin-bottom: 1rem;
    /*text-shadow: 2px 2px 4px rgba(0,0,0,0.3);*/
}

.hero-subtitle {
    font-family: 'IBM Plex Sans Arabic';
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    /*text-shadow: 2px 2px 4px rgba(0,0,0,0.3);*/
}

.hero-button {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
    font-family: 'IBM Plex Sans Arabic';
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
   /* box-shadow: 0 4px 8px rgba(0,0,0,0.2);*/
    display: inline-block;
    text-decoration: none;
}

.hero-button:hover {
    background-color: #6aae8d;
    border-color: #6aae8d;
    transform: translateY(-2px);
}

/* المؤشرات */
.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: var(--secondary);
}

/* الجوال */
@media (max-width: 991.98px) {
    .slide-content {
        right: 5%;
        left: 5%;
        max-width: none;
        text-align: center;
        transform: translateY(-50%);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* === About Section - مع خط رأسي خارجي يربط بين النقاط === */

.about-wrapper {
    position: relative;
    padding-right: 2rem; /* مساحة للخط */
}

/* الخط الرأسي الخارجي */
.about-wrapper::before {
    content: '';
    position: absolute;
    right: 27px;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 1px;
    background-color: #5b4b9a;
    opacity: 0.2;
}


.section-header {
    color: var(--primary);
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-right: 1.5rem;
    text-align: right;
    font-family: 'IBM Plex Sans Arabic';
}

.section-header::after {
    content: '';
    position: absolute;
    right: -8px; /* على يمين الخط */
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #5b4b9a;
    border-radius: 50%;
}

.section-subheader {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-right: 1.5rem;
    text-align: right;
    font-family: 'IBM Plex Sans Arabic';
}

.section-subheader::after {
    content: '';
    position: absolute;
    right: -8px; /* على يمين الخط */
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #5b4b9a;
    border-radius: 50%;
}

.about-content {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    text-align: right;
    margin-bottom: 2rem;
    padding-right: 1.5rem;
    position: relative;
}

.about-content::before {
    content: '•';
    position: absolute;
    right: 7px; /* على يمين الخط */
    top: 0.2rem;
    color: #5b4b9a;
    font-weight: bold;
    font-size: 0.8rem;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.about-list li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.2;
    color: #555;
}

.about-list li::before {
    content: '•';
    position: absolute;
    right: 7px; /* على يمين الخط */
    top: 0.2rem;
    color: #5b4b9a;
    font-weight: bold;
    font-size: 0.8rem;
}

/* === Section: الجمعية في أرقام - 3 أعمدة === */

.stats-section {
    background-color: #f8f9fa;
    padding: 2rem 0;
}

.stats-container {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    direction: rtl;
    height: 100%;
}

/* العمود الأول: العنوان */
.stats-title-column {
    display: flex;
    align-items: center;
    /*justify-content: center;*/
    padding: 1rem;
    /*background: rgba(91, 75, 154, 0.1);*/
    border-radius: 0.5rem;
    min-width: 400px;
    text-align: right;
}

.stats-title {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--primary);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    writing-mode: horizontal-tb; /* أفقي */
}

/* العمود الثاني: مربعين (علوي صغير، سفلي كبير) */
.stats-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.stat-card {
    background: var(--primary);
    color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /*align-items: center;*/
    text-align:right;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    direction: ltr;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.stat-label {
    font-family: 'IBM Plex Sans Arabic';
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    font-weight: 400;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number-m {

    font-family: 'IBM Plex Sans Arabic';
    font-weight: bold;
    font-size: 2.5rem;

    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2.5rem;
}

.stat-label-m {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    direction: ltr;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    margin-top: 2.5rem;
}

/* العمود الثاني: المربع العلوي (أقل ارتفاعًا) */
.column-2 .stat-card:first-child {
    min-height: 250px;
}

/* العمود الثاني: المربع السفلي (أكبر ارتفاعًا) */
.column-2 .stat-card:last-child {
    min-height: 300px;
}

/* العمود الثالث: المربع العلوي (أكبر ارتفاعًا) */
.column-3 .stat-card:first-child {
    min-height: 300px;
}

/* العمود الثالث: المربع السفلي (أقل ارتفاعًا) */
.column-3 .stat-card:last-child {
    min-height: 250px;
}

/* التصميم المتجاوب */
@media (max-width: 991px) {
    .stats-container {
        flex-direction: column;
        gap: 1rem;
    }

    .stats-title-column {
        min-width: auto;
        padding: 1rem;
    }

    .stat-icon {
    position: absolute;
    top: 0.5rem;
    width: 40px;
    height: 40px;

;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

    .column-2,
    .column-3 {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .column-2 .stat-card,
    .column-3 .stat-card {
        min-height: 150px !important;
        flex: 1 1 45%;
    }
}

/* تخصيص كروت الأخبار */
.news-card {
    /*transition: transform 0.3s ease, box-shadow 0.3s ease;*/
    display: flex;
    flex-direction: column;
    padding: 15px 15px 15px 18px;
    border: 1px solid #d2d0d0 !important;
    border-radius: 1rem;
}

.news-card:hover {
    /* transform: translateY(-5px);
   box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;*/
}

.news-card .card-img-top {
    /*transition: transform 0.3s ease;*/
}

.news-card:hover .card-img-top {
    /*transform: scale(1.05);*/
}

.news-card .badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    font-weight: 600;
}

/* تنسيق النصوص داخل الكارت */
.news-card .card-title {
    line-height: 1.4;
    word-wrap: break-word;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.news-card .card-text {
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    min-height: 3.6em;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

/* زر "قراءة المزيد" */
.news-card .btn-primary {
    background-color: #5B4B9A;
    border-color: #5B4B9A;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0.3rem;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.news-card .btn-primary:hover {
    background-color: #4A3D7F;
    border-color: #4A3D7F;
}

/* زر "عرض الكل" */
.btn-outline-secondary {
    color: #495057;
    border-color: #dee2e6;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0.3rem;
    font-family: 'IBM Plex Sans Arabic', sans-serif;

}
/* إخفاء النقطة بعد عنوان قسم الأخبار فقط */
.section-header--no-dot::after {
    display: none !important;
}


@media (max-width: 768px) {
    .events-scroll-container {
        max-height: 300px;
    }
}






.events-scroll-container {
    scrollbar-width: thin;
    scrollbar-color: #5B4B9A #f8f9fa;
}

.events-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.events-scroll-container::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 10px;
}

.events-scroll-container::-webkit-scrollbar-thumb {
    background-color: #5B4B9A;
    border-radius: 10px;
}

.events-scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: #4A3D7F;
}

.event-card{
display: flex
;
    flex-direction: column;
    padding: 15px 15px 15px 18px;
    border: 1px solid #d2d0d0 !important;
    border-radius: 1rem;
    box-shadow: none;
 }
/* تنسيق الكروت الصغيرة */
.event-card .card-body {
    padding: 1rem;
    text-align: left !important;
direction: ltr !important;
}

.event-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-family: 'IBM Plex Sans Arabic';
    font-weight: 600; color: #333;
    text-align: right;
}

.event-card .card-text {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    font-family: 'IBM Plex Sans Arabic';
    text-align: right;
}

.event-card .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    font-family: 'IBM Plex Sans Arabic';
}


/* تنسيق المربع الرمادي */
.bg-light {
    background-color: #EEEEF7 !important;
}

/* تنسيق المربع الأبيض للتاريخ */
.bg-white {
    background-color: #ffffff !important;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* تنسيق المربع الأبيض للتاريخ */
/* تنسيق المربع الأبيض للتاريخ */
.event-card .bg-white {
    background-color: #EEEEF7 !important;
    border: 1px solid #EEEEF7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-height: 90px;
    padding-top: 1.5rem !important;
    text-align: center;
    font-family: 'IBM Plex Sans Arabic';
}

/* تنسيق الحالة */
.event-card .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    font-family: 'IBM Plex Sans Arabic';
    font-weight: 500;
}

/* تنسيق العنوان والوصف */
.event-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-family: 'IBM Plex Sans Arabic';
    font-weight: 600;
    color: #333;
}

.event-card .card-text {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    font-family: 'IBM Plex Sans Arabic';
}

/* تنسيق الأيقونة */
.fa-clock {
    font-size: 0.8rem;
    color: #6c757d;
}

/* تنسيق الأزرار */
.btn-primary {
    background-color: #5B4B9A;
    border-color: #5B4B9A;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0.3rem;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.btn-primary:hover {
    background-color: #4A3D7F;
    border-color: #4A3D7F;
}

.btn-outline-primary {
    color: #5B4B9A;
    border-color: #5B4B9A;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0.3rem;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.btn-outline-primary:hover {
    background-color: #5B4B9A;
    color: white;
    border-color: #5B4B9A;
}
/* تنسيق الكرت */
.event-card {
    display: flex;
    flex-direction: column;
    padding: 15px 15px 15px 18px;
    border: 1px solid #d2d0d0 !important;
    border-radius: 1rem;
    box-shadow: none;
}

.event-card .card-body {
    padding: 1rem;
}

.event-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-family: 'IBM Plex Sans Arabic';
}

.event-card .card-text {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    font-family: 'IBM Plex Sans Arabic';
    text-align: right;
    direction: rtl;
}

.event-card .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    font-family: 'IBM Plex Sans Arabic';
}

.text-end {
    text-align: right !important;
}

.align-items-center-m {
    align-items:initial !important;
    margin: -35px -23px 0 0;
}



/* الكرت العادي (أقصر) */
.membership-card--basic {
    height: auto; /* أو حدد ارتفاع ثابت إذا أردت */
    max-height: 500px; /* مثال */
    display: flex;
    flex-direction: column;
}

.membership-card--basic .card-body {
    flex: 1;
    overflow: hidden;
}

/* الكرت الشائع (أطول) */
.membership-card--popular {
    height: auto;
    min-height: 550px; /* أطول من العادي */
    display: flex;
    flex-direction: column;
}

.membership-card--popular .card-body {
    flex: 1;
    overflow: hidden;
}


.text-right{
text-align: right;
}
.highlight-association {
    color: #000 !important;
}
