/* ===== NAVBAR CONTENT TAKES 75% WIDTH ===== */
@media (min-width: 992px) {
    #navbarContent {
        min-width: 75%;
        flex-grow: 1;
    }
}

/* ===== NAV ITEMS CLOSER TOGETHER ===== */
#navbarContent .navbar-nav {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: visible;
    width: 100%;
    justify-content: flex-start; /* items sit close together from the start */
    gap: 4px;                    /* tight but breathable spacing */
}

#navbarContent .navbar-nav > li {
    flex: 0 0 auto;             /* don't stretch, sit naturally */
    text-align: center;
}

/* ===== NAV LINKS ===== */
#navbarContent .navbar-nav .nav-link {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    padding: 10px 20px;         /* horizontal padding controls spacing between items */
    position: relative;
    transition: color 0.2s ease;
}

#navbarContent .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.25s ease;
}

#navbarContent .navbar-nav .nav-link:hover {
    color: var(--primary);
}

#navbarContent .navbar-nav .nav-link:hover::after {
    width: 60%;
}

/* ===== DROPDOWN CATEGORY ITEMS ===== */
.menu-category > ul > li {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    padding: 10px 20px;
    transition: color 0.2s ease;
    cursor: pointer;
}

.menu-category > ul > li:hover {
    color: var(--primary);
}
.logo{
    height: calc(50px + 2vw) !important;
    width: calc(60px + 5vw);
}


/* ===== TRENDING CATEGORIES - CIRCLE DESIGN ===== */

/* الدائرة الرئيسية للبطاقة */
.trending-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px;
    transition: transform 0.3s ease;
}

.trending-card:hover {
    transform: translateY(-6px);
}

/* صورة/أيقونة الدائرة */
.trending-image {
    /*width: 120px !important;*/
    /*height: 120px !important;*/
    width: calc(120px + 2vw)!important;
    height: calc(120px + 2vw)!important;
    border-radius: 50% !important;        /* الشكل الدائري */
    margin: 0 auto 12px auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.trending-card:hover .trending-image {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

/* الأيقونة داخل الدائرة */
.trending-image .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

.trending-image .icon img {
    width: calc(48px + 2vw) !important;
    height: calc(48px + 2vw) !important;
    object-fit: contain;
    /*filter: brightness(0) invert(1); !* أيقونة بيضاء *!*/
}

/* عدد الدورات */
.trending-card .item-count {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    background: #f4f4f4;
    border-radius: 20px;
    padding: 3px 12px !important;
    margin-bottom: 6px;
    text-align: center;
}

/* اسم المجال */
.trending-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin: 0;
    max-width: 130px;
    line-height: 1.4;
}

/* الـ swiper slide محاذاة مركزية */
.trend-categories-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* رابط البطاقة */
.trend-categories-swiper .swiper-slide a {
    display: flex;
    justify-content: center;
    text-decoration: none;
}



/* ===== STATS SECTION ===== */
.stats-section {
    padding: 0 0 60px;
    position: relative;
}

/*.stats-section-inner {*/
/*    !*background: linear-gradient(135deg, #0f1923 0%, #1a2a3a 60%, #0f1923 100%);*!*/
/*    background: linear-gradient(135deg, #006aa3 0%, #006aa3 60%, #006aa3 100%);*/
/*    border-radius: 24px;*/
/*    margin: 0 auto;*/
/*    max-width: 1200px;*/
/*    padding: 56px 48px;*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*}*/

/*!* Background decorative dots *!*/
/*.stats-section-inner::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    inset: 0;*/
/*    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);*/
/*    background-size: 28px 28px;*/
/*    pointer-events: none;*/
/*}*/

/*!* Glow blob *!*/
/*.stats-section-inner::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    width: 400px;*/
/*    height: 400px;*/
/*    background: radial-gradient(circle, rgba(var(--primary-rgb, 24,144,255), 0.12) 0%, transparent 70%);*/
/*    top: -100px;*/
/*    left: 50%;*/
/*    transform: translateX(-50%);*/
/*    pointer-events: none;*/
/*    border-radius: 50%;*/
/*}*/

.stats-section-inner {
    background: #006aa3;
    border-radius: 24px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 56px 48px;
    position: relative;
    overflow: hidden;
}

/* Keep the dot pattern but make it suit the solid color */
.stats-section-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* Update glow blob to match */
.stats-section-inner::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    border-radius: 50%;
}
/* ===== GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    z-index: 1;
}

/* Vertical divider between cards */
.stat-card:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== STAT CARD ===== */
.stat-card {
    padding: 20px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: background 0.3s ease;
}

.stat-card:hover {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
}

/* Animated bottom accent line */
.stat-card-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 0;
    background: var(--primary, #1890ff);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.stat-card:hover .stat-card-line {
    width: 60%;
}

/* ===== ICON ===== */
.stat-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-card:hover .stat-card-icon {
    transform: scale(1.1);
    background: rgba(var(--primary-rgb, 24,144,255), 0.15);
}

.stat-card-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* ===== NUMBER ===== */
.stat-card-number {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

/* ===== TITLE ===== */
.stat-card-title {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 8px;
}

/* ===== DESC ===== */
.stat-card-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card:not(:last-child) {
        border-right: none;
    }

    .stat-card:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    .stat-card:nth-child(1),
    .stat-card:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .stats-section-inner {
        padding: 40px 24px;
    }
}

@media (max-width: 575px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card-number {
        font-size: 32px;
    }

    .stats-section-inner {
        border-radius: 16px;
        padding: 32px 16px;
    }
}


/* ===== EVENTS SECTION ===== */
.events-section {
    padding: 60px 0 80px;
}

/* --- Header --- */
.events-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
}

.events-section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #006aa3;
    background: rgba(0, 106, 163, 0.08);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.events-section-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f1923;
    margin: 0;
    line-height: 1.2;
}

/* --- Grid --- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 991px) {
    .events-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .events-grid { grid-template-columns: 1fr; }
}

/* --- Card --- */
.event-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.13);
}

/* --- Image --- */
.event-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

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

/* Status badge */
.event-status {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--status-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.event-status--ended {
    background: #f1f5f9;
    color: #64748b;
    box-shadow: none;
}

/* Pulsing dot for current */
.event-status-dot {
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.4s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.4); }
}

/* Date chip */
.event-date-chip {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: #fff;
    border-radius: 12px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    min-width: 44px;
}

.event-date-day {
    font-size: 18px;
    font-weight: 800;
    color: #006aa3;
    line-height: 1.1;
}

.event-date-month {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    margin-top: 2px;
}

/* --- Body --- */
.event-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-card-title-link {
    text-decoration: none;
}

.event-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f1923;
    margin: 0 0 10px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.event-card-title-link:hover .event-card-title {
    color: #006aa3;
}

.event-card-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta */
.event-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

/* CTA Button */
.event-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding: 9px 20px;
    background: rgba(0, 106, 163, 0.07);
    color: #006aa3;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.2s ease, color 0.2s ease;
}

.event-card-btn:hover {
    background: #006aa3;
    color: #fff;
}

/* ============================================
   FOOTER — DIRECTION-AWARE (LTR + RTL)
   Uses logical CSS properties so layout
   mirrors naturally without overrides.
   ============================================ */

.footer-new {
    position: relative;
    margin-top: 60px;
}

/* --- Wave --- */
.footer-wave { line-height: 0; overflow: hidden; }
.footer-wave svg { display: block; width: 100%; height: 60px; }

/* --- Main body --- */
.footer-main {
    background: #006aa3;
    padding: 56px 0 44px;
}

/* --- Grid --- */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.3fr 1.3fr 1.8fr;
    gap: 48px;
    align-items: start;
}

@media (max-width: 991px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}
@media (max-width: 575px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* --- Column --- */
.footer-col {
    display: flex;
    flex-direction: column;
}

/* --- Title --- */
.footer-col-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    padding-bottom: 12px;
    position: relative;
    text-align: start;           /* natural start for both directions */
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;      /* left in LTR, right in RTL */
    width: 36px;
    height: 3px;
    background: rgba(255,255,255,0.4);
    border-radius: 2px;
}

/* --- About text --- */
.footer-about-text {
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: start;
}

/* --- Social --- */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.footer-social-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    color: #fff;
}

/* --- Links --- */
.footer-links {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-links li a {
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    text-align: start;
    transition: color 0.2s ease, padding-inline-start 0.2s ease;
}



.footer-links li a:hover {
    color: #fff;
    padding-inline-start: 6px;
}



/* --- Newsletter --- */
.footer-newsletter-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 14px;
    text-align: start;
}

.footer-newsletter-form { margin-bottom: 20px; }

.footer-newsletter-input {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

/* LTR: [Subscribe btn][___input___]  is wrong — keep natural order */
/* LTR: [___input___][Subscribe btn]  ← correct */
/* RTL: [Subscribe btn][___input___]  ← correct (reversed by flex-direction) */
html[dir="ltr"] .footer-newsletter-input {
    flex-direction: row;          /* input first, button last */
}

html[dir="rtl"] .footer-newsletter-input {
    flex-direction: row-reverse;  /* button on the right (end) in RTL */
}

.footer-newsletter-input input {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: none; outline: none;
    padding: 10px 14px;
    font-size: 13px;
    color: #fff;
    min-width: 0;
    text-align: start;
}

.footer-newsletter-input input::placeholder {
    color: rgba(255,255,255,0.45);
}

.footer-newsletter-input button {
    background: #fff;
    color: #006aa3;
    border: none;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.footer-newsletter-input button:hover { background: #e0f0fb; }

/* --- Contact items --- */
.footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    /* Icon always before text regardless of direction */
    flex-direction: row;
}

.footer-contact-item svg {
    stroke: rgba(255,255,255,0.6);
    flex-shrink: 0;
}

/* --- Payment --- */
.footer-payment img {
    max-width: 180px;
    border-radius: 8px;
    opacity: 0.92;
    display: block;
}

/* ============================================
   BOTTOM BAR
   ============================================ */
.footer-bottom {
    background: #005a8a;
    padding: 14px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    text-align: center;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;  /* text on start, arrow on end */
}


/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 72px 0 80px;
    direction: rtl;
}

/* Header */
.faq-header {
    text-align: center;
    margin-bottom: 48px;
}

.faq-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #006aa3;
    background: rgba(0, 106, 163, 0.08);
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.faq-title {
    font-size: 30px;
    font-weight: 800;
    color: #0f1923;
    margin: 0 0 10px;
}

.faq-subtitle {
    font-size: 15px;
    color: #94a3b8;
    margin: 0;
}

/* List */
.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Item */
.faq-item {
    background: #fff;
    border: 1.5px solid #e8f0f7;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.active {
    border-color: #006aa3;
    box-shadow: 0 4px 20px rgba(0, 106, 163, 0.1);
}

/* Question button */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: right;
}

.faq-question span:first-child {
    font-size: 15px;
    font-weight: 700;
    color: #0f1923;
    line-height: 1.5;
    flex: 1;
    transition: color 0.2s ease;
}

.faq-item.active .faq-question span:first-child {
    color: #006aa3;
}

/* Icon */
.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f7fc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease, transform 0.3s ease;
    color: #006aa3;
}

.faq-item.active .faq-icon {
    background: #006aa3;
    color: #fff;
    transform: rotate(180deg);
}

.faq-icon svg {
    stroke: currentColor;
}

/* Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.8;
    margin: 0;
    border-top: 1px solid #f0f7fc;
    padding-top: 16px;
}


/*new font*/
