
/* العنوان */

#impact-heading .title {
    margin: 0;
    font-weight: 700;
}

/* الجملة */
#impact-heading .subtitle {
    position: relative;
    display: inline-block;
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
}

/* الخط يتمدد من اليمين */
#impact-heading .subtitle::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 0;
    height: 3px;
    background: #dc3545;
    border-radius: 2px;
    opacity: .85;
    transition: width 0.6s ease;
}

#impact-heading[data-aos="fade-down"].aos-animate .subtitle::after {
    width: 160px;
}

@media (max-width: 576px) {
    #impact-heading[data-aos="fade-down"].aos-animate .subtitle::after {
        width: 120px;
    }
}

/* Hover على البطاقات */
.counter-item {
    background: white !important;
    border: 1px solid #eee !important;
    transition: all 0.35s ease;
}

.counter-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(220, 53, 69, 0.15) !important;
    border-color: #dc3545 !important;
}

/* نبض خفيف للأرقام الكبيرة */
.text-danger .timer {
    animation: pulse-danger 2s infinite;
}

@keyframes pulse-danger {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}


/******services****/

/* الخط يتمدد من اليمين */
#services-heading .subtitle-line::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 0;
    height: 3px;
    background: #dc3545;
    border-radius: 2px;
    opacity: .85;
    transition: width 0.6s ease;
}

#services-heading[data-aos="fade-right"].aos-animate .subtitle-line::after {
    width: 160px;
}

@media (max-width: 576px) {
    #services-heading[data-aos="fade-right"].aos-animate .subtitle-line::after {
        width: 120px;
    }
}

/* Hover */
.service-card {
    transition: all 0.35s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(220, 53, 69, 0.15) !important;
    border-color: #dc3545 !important;
}

.service-card img {
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}


/* نبض خفيف على زر البلاي */
@keyframes pulse-play {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Hover على الصورة */
#video-section a:hover img {
    transform: scale(1.03);
}

@keyframes pulse-play {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes pulse-play {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

#video-section a:hover img {
    transform: scale(1.03);
}

#video-section a:hover > div[style*="background: rgba(220"] {
    background: #dc3545 !important;
    transform: translate(-50%, -50%) scale(1.15);
}

#close-video-popup:hover {
    background: #c82333 !important;
    transform: scale(1.1);
}


.donate-btn {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3) !important;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.donate-btn::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.donate-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(220, 53, 69, 0.45) !important;
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
}

.donate-btn:hover::before {
    opacity: 1;
}

.donate-btn:active {
    transform: translateY(-2px);
}

/* تحسين الأيقونة */
.donate-btn i {
    transition: transform 0.3s ease;
}

.donate-btn:hover i {
    transform: scale(1.2) rotate(10deg);
}

.site-header{ border-bottom: 0 !important; }
.site-header .container{ margin: 0 auto; }

/* ===== Menu Side Area - Spacing Between Buttons ===== */
.menu_side_area {
    display: flex;
    align-items: center;
    gap: 12px !important; /* مسافة بين الأزرار */
}

/* ===== Donate Button - Reduce Height ===== */
.donate-btn-epic {
    padding: 8px 20px !important; /* تقليل من 12px 28px */
    font-size: 0.9rem !important; /* تقليل حجم الخط قليلاً */
    height: 36px !important; /* ارتفاع ثابت */
    display: inline-flex !important;
    align-items: center !important;
}

.donate-btn-content {
    gap: 6px !important; /* تقليل المسافة بين الأيقونة والنص */
}

.donate-btn-content i {
    font-size: 1rem !important; /* تقليل حجم الأيقونة */
}

/* إصلاح السكرول الأفقي والفراغ تحت الـ footer */
html {
    overflow-x: hidden;
    max-width: 100%;
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    max-width: 100%;
    min-height: 100%;
}

#wrapper {
    overflow-x: hidden;
    max-width: 100%;
    min-height: 100vh;
}

/* إصلاح الـ footer - يظل في آخر الصفحة */
html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

#wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
    margin-bottom: 0 !important;
    width: 100%;
    flex-shrink: 0;
}

/* إصلاح أي عنصر يتجاوز العرض */
* {
    box-sizing: border-box;
}

.container-fluid,
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* ===== Header Search ===== */
.header-search-mini {
    position: relative;
    margin-inline-end: 12px;
}

.header-search-mini__trigger {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ff7d1a, #ff5c00);
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 14px 32px rgba(255, 107, 0, 0.32);
}

.header-search-mini__trigger:hover,
.header-search-mini__trigger:focus {
    transform: translateY(-1px) scale(1.04);
    outline: none;
    filter: brightness(1.05);
}

.header-search-mini__icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.header-search-mini__popover {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    width: min(320px, 80vw);
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 107, 0, 0.15);
    display: none;
    z-index: 1200;
}

.header-search-mini__popover.is-visible {
    display: block;
}

.header-search-mini__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.header-search-mini__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff6b00;
    margin: 0;
    text-align: center;
}

.header-search-mini__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.header-search-mini__input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 44px 10px 16px;
    font-size: 0.9rem;
    color: #0f172a;
    direction: rtl;
}

.header-search-mini__input:focus {
    outline: none;
}

.header-search-mini__input::placeholder {
    color: rgba(100, 116, 139, 0.75);
}

.header-search-mini__submit {
    position: absolute;
    inset-inline-start: 6px;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ff6b00, #ff8500);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(255, 107, 0, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0.6;
    pointer-events: none;
}

.header-search-mini__submit:hover,
.header-search-mini__submit:focus {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 16px 30px rgba(255, 107, 0, 0.42);
    outline: none;
}

.header-search-mini__submit svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.header-search-mini__submit:hover svg,
.header-search-mini__submit:focus svg {
    transform: scale(1.05);
}

.header-search-mini__message {
    margin: 0;
    font-size: 0.8rem;
    color: #475569;
    min-height: 18px;
}

.header-search-mini__message.is-error {
    color: #dc2626;
}

.header-search-mini__message.is-success {
    color: #16a34a;
}

.header-search-mini__results {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.9);
    display: none;
    scrollbar-width: thin;
    direction: rtl;
}

.header-search-mini__results.is-visible {
    display: block;
}

.header-search-mini__result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    text-align: right;
    user-select: none;
}

.header-search-mini__result:hover,
.header-search-mini__result:focus,
.header-search-mini__result.is-active {
    background: rgba(255, 107, 0, 0.08);
    color: #cf3f00;
    outline: none;
}

.header-search-mini__result-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f172a;
    flex: 1;
}

.header-search-mini__result-meta {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ff6b00;
    background: rgba(255, 107, 0, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    margin-inline-start: 12px;
}

.header-search-mini__results::-webkit-scrollbar {
    width: 6px;
}

.header-search-mini__results::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 0, 0.45);
    border-radius: 999px;
}

.header-search-mini__results::-webkit-scrollbar-track {
    background: transparent;
}

.header-search-mini__results.is-wheel-active {
    cursor: grabbing;
}

.mobile-search-panel {
    padding: 4px 0 0;
    border-bottom: none;
    background: transparent;
    text-align: center;
}

.mobile-search-form {
    gap: 12px;
    position: relative;
}

.mobile-search-form .header-search-mini__input-wrap {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(148, 163, 184, 0.35);
}

.mobile-search-form .header-search-mini__input {
    color: #0f172a;
}

.mobile-search-form .header-search-mini__input::placeholder {
    color: rgba(100, 116, 139, 0.75);
}

.mobile-search-form .header-search-mini__results {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(148, 163, 184, 0.25);
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-start: 0;
    z-index: 1400;
    width: 100%;
    margin-top: 0;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
}

.mobile-search-form .header-search-mini__message {
    color: rgba(255, 255, 255, 0.75);
    min-height: 0;
}

@media (max-width: 991px) {
    .header-search-mini {
        margin-inline-end: 10px;
    }
}

/* ================================================== */
/* Swiper Custom Animations */
/* Merged from swiper-custom-1.css */
/* ================================================== */
.anim-order-1, .anim-order-2 {
    opacity: 0;
}

.swiper-slide.swiper-slide-active .swiper-inner,
.swiper-slide.swiper-slide-duplicate-active .swiper-inner {
    animation-name: fadeIn;
    animation-duration: 1.5s;
    animation-delay: 0s;
}

.swiper-slide.swiper-slide-active .anim-order-1,
.swiper-slide.swiper-slide-duplicate-active .anim-order-1 {
    animation-name: fadeInUp;
    animation-duration: .75s;
    animation-delay: 1s;
}

.swiper-slide.swiper-slide-active .anim-order-2,
.swiper-slide.swiper-slide-duplicate-active .anim-order-2 {
    animation-name: fadeInUp;
    animation-duration: .75s;
    animation-delay: 1.3s;
}

.swiper-slide.swiper-slide-active .anim-order-3,
.swiper-slide.swiper-slide-duplicate-active .anim-order-3 {
    animation-name: fadeInUp;
    animation-duration: .75s;
    animation-delay: 1.6s;
}

/* ================================================== */
/* Language Dropdown Styles - Enhanced Design */
/* ================================================== */
.language-dropdown-wrapper {
    position: relative;
    margin-left: 0;
    margin-right: 0;
}

.language-dropdown {
    position: relative;
}

.language-dropdown-toggle {
    background: linear-gradient(135deg, #ff7d1a, #ff5c00) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 8px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    justify-content: space-between;
    box-shadow: 0 14px 32px rgba(255, 107, 0, 0.32) !important;
    height: 36px;
}

.language-dropdown-toggle:hover,
.language-dropdown-toggle:focus {
    background: linear-gradient(135deg, #ff8500, #ff6b00) !important;
    transform: translateY(-1px) scale(1.04);
    outline: none;
    filter: brightness(1.05);
    box-shadow: 0 16px 36px rgba(255, 107, 0, 0.4) !important;
}

.language-dropdown-toggle:active {
    transform: translateY(0);
}

.language-dropdown-toggle svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    color: #fff;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.language-flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.language-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.language-dropdown.open .language-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

.language-dropdown.open .language-dropdown-toggle {
    transform: translateY(-1px) scale(1.04);
    filter: brightness(1.05);
    box-shadow: 0 16px 36px rgba(255, 107, 0, 0.4);
}

.language-dropdown.open .language-dropdown-toggle svg {
    transform: rotate(180deg);
    opacity: 1;
}

.language-dropdown form {
    margin: 0;
}

.language-option {
    width: 100%;
    padding: 12px 16px;
    border: none;
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    position: relative;
}

.language-option:hover {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.08) 0%, rgba(220, 53, 69, 0.05) 100%);
    color: #dc3545;
}

.language-option.active {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.12) 0%, rgba(220, 53, 69, 0.08) 100%);
    color: #dc3545;
    font-weight: 700;
}

.language-option.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #dc3545, #c82333);
    border-radius: 0 12px 12px 0;
}

.language-dropdown-menu form:first-child .language-option {
    border-radius: 12px 12px 0 0;
}

.language-dropdown-menu form:last-child .language-option {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0 0 12px 12px;
}

.language-flag-icon-small {
    width: 24px;
    height: 18px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.language-check-icon {
    margin-right: auto;
    margin-left: 0;
    color: #dc3545;
    opacity: 0.9;
}

/* Language Dropdown - White Header State (on scroll) */
header.smaller.scroll-light .language-dropdown-toggle,
header.smaller.scroll-light .language-dropdown-toggle {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 2px solid rgba(0, 0, 0, 0.15) !important;
    color: #2d3748 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

header.smaller.scroll-light .language-dropdown-toggle:hover,
header.smaller.scroll-light .language-dropdown-toggle:hover {
    border-color: rgba(220, 53, 69, 0.4) !important;
    background: rgba(220, 53, 69, 0.08) !important;
    color: #dc3545 !important;
}

header.smaller.scroll-light .language-dropdown-toggle svg,
header.smaller.scroll-light .language-dropdown-toggle svg {
    color: #2d3748 !important;
    opacity: 0.9;
}

header.smaller.scroll-light .language-dropdown-toggle:hover svg,
header.smaller.scroll-light .language-dropdown-toggle:hover svg {
    color: #dc3545 !important;
}

header.smaller.scroll-light .language-flag-icon,
header.smaller.scroll-light .language-flag-icon {
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}

header.smaller.scroll-light .language-dropdown.open .language-dropdown-toggle,
header.smaller.scroll-light .language-dropdown.open .language-dropdown-toggle {
    border-color: rgba(220, 53, 69, 0.4) !important;
    background: rgba(220, 53, 69, 0.08) !important;
    color: #dc3545 !important;
}

header.smaller.scroll-light .language-dropdown.open .language-dropdown-toggle svg,
header.smaller.scroll-light .language-dropdown.open .language-dropdown-toggle svg {
    color: #dc3545 !important;
}

@media (max-width: 991px) {
    .language-dropdown-wrapper {
        display: none !important;
    }
    
    /* إخفاء زر التبرع في الهيدر على الموبايل - لأنه موجود في المنيو الجانبي */
    .donate-btn-epic {
        display: none !important;
    }
}

