/* ==========================================================================
   ALFAJIR CLEAN PRODUCTION STYLESHEET (style.css)
   Clean, Optimized, Idiomatic CSS without redundant !important rules.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   1. DESIGN TOKENS & ROOT VARIABLES
   ========================================================================== */
:root {
    --primary-color: #5bc1ac;
    --primary-light: #72cca8;
    --primary-hover: #4ca896;
    --primary-soft: rgba(91, 193, 172, 0.08);
    --secondary-color: #1e293b;
    --accent-amber: #d97706;
    --accent-amber-hover: #b45309;
    --bg-light: #f8fafc;
    --section-bg-color: #f8fafc;
    --surface-card: #ffffff;
    --border-color: #f1f5f9;
    --site-footer-bg-color: #0f172a;
    --text-muted: #64748b;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --card-hover-shadow: 0 20px 35px -10px rgba(91, 193, 172, 0.2);
}

/* ==========================================================================
   2. GLOBAL BASE & TYPOGRAPHY
   ========================================================================== */
html, body, *, button, input, select, textarea, h1, h2, h3, h4, h5, h6, .nav-link, .btn {
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
}

html {
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-size: 16px;
    line-height: 1.6;
    background-color: #ffffff;
    color: var(--secondary-color);
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* Harmonious Section Rhythm & Clear Background Contrast */
.section-padding {
    padding-top: 70px;
    padding-bottom: 70px;
}

.section-bg {
    background-color: #f8fafc;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
}

@media (max-width: 767.98px) {
    .section-padding {
        padding-top: 45px;
        padding-bottom: 45px;
    }
}

/* ==========================================================================
   3. DIRECTION ENGINE (RTL / LTR)
   ========================================================================== */
html[dir="rtl"], body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"], body[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

/* Direction-Aware Navigation Arrows */
html[dir="ltr"] .hgi-arrow-left-01,
html[dir="ltr"] i.hgi-arrow-left-01 {
    transform: rotate(180deg);
    display: inline-block;
}

html[dir="ltr"] .hgi-arrow-right-01,
html[dir="ltr"] i.hgi-arrow-right-01 {
    transform: rotate(180deg);
    display: inline-block;
}

/* RTL Hero Carousel Caption */
html[dir="rtl"] #hero-slide .carousel-caption {
    clip-path: polygon(100% 100%, 100% 120px, 0 100%);
    right: 0;
    left: auto;
    text-align: right;
    padding: 220px 40px 50px 140px;
    min-width: 600px;
}

html[dir="rtl"] #hero-slide .carousel-caption h1 {
    color: var(--secondary-color);
    text-align: right;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

html[dir="rtl"] #hero-slide .carousel-caption p {
    color: var(--secondary-color);
    text-align: right;
    font-size: 1.05rem;
    line-height: 1.5;
}

html[dir="rtl"] #hero-slide .carousel-indicators {
    margin-left: 0;
    margin-right: 22px;
}

@media screen and (max-width: 768px) {
    html[dir="rtl"] #hero-slide .carousel-caption {
        min-width: 100%;
        padding: 40px 20px;
        clip-path: none;
    }
}

/* RTL Decorative Background Shapes */
html[dir="rtl"] .volunteer-section::after { right: auto; left: -80px; }
html[dir="rtl"] .cta-section::before { left: auto; right: -30px; }
html[dir="rtl"] .cta-section::after { right: auto; left: 0; }
html[dir="rtl"] .testimonial-section::before { left: auto; right: -30px; }
html[dir="rtl"] .testimonial-section::after { right: auto; left: -80px; }

/* RTL Navbar & Header */
html[dir="rtl"] .navbar-brand img {
    margin-left: 10px;
    margin-right: 0;
}

html[dir="rtl"] .site-header .social-icon {
    text-align: left;
}

html[dir="rtl"] .site-header .social-icon-link {
    margin-right: 0;
    margin-left: 15px;
}



html[dir="rtl"] .donate-form .form-check-group-donation-frequency {
    padding-left: 0;
    padding-right: 12px;
}

html[dir="rtl"] .form-check-group-donation-frequency + .form-check-group-donation-frequency {
    padding-left: 12px;
    padding-right: 0;
}

html[dir="rtl"] #DonationFrequencyOne {
    border-radius: .25rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

html[dir="rtl"] #DonationFrequencyMonthly {
    border-radius: .25rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

html[dir="rtl"] .news-block-two-col-image-wrap {
    margin-right: 0;
    margin-left: 20px;
}

html[dir="rtl"] .tags-block-link, 
html[dir="rtl"] .news-category-block .category-block-link,
html[dir="rtl"] .footer-menu-link {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="rtl"] .copyright-text {
    margin-right: 0;
    margin-left: 30px;
}

html[dir="rtl"] .custom-text-box-icon {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* ==========================================================================
   4. HERO CAROUSEL CONTROLS (GLASSMORPHIC MATCHING PARTNERS)
   ========================================================================== */
.hero-controls-wrapper .carousel-control-prev,
.hero-controls-wrapper .carousel-control-next,
#hero-slide .carousel-control-prev,
#hero-slide .carousel-control-next {
    position: relative;
    top: auto;
    bottom: auto;
    width: auto;
    height: auto;
    opacity: 1;
    background: transparent;
    border: none;
    padding: 0;
}

#hero-slide .carousel-control-prev-icon,
#hero-slide .carousel-control-next-icon,
.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 1;
    transition: all 0.3s ease;
    background-size: 50% 50%;
}

#hero-slide .carousel-control-prev-icon:hover,
#hero-slide .carousel-control-next-icon:hover,
.hero-section .carousel-control-prev-icon:hover,
.hero-section .carousel-control-next-icon:hover {
    background-color: var(--primary-color, #5bc1ac);
    border-color: var(--primary-color, #5bc1ac);
    box-shadow: 0 6px 18px rgba(91, 193, 172, 0.5);
    transform: scale(1.1);
}

@media (max-width: 575.98px) {
    #hero-slide .carousel-control-prev-icon,
    #hero-slide .carousel-control-next-icon {
        width: 38px;
        height: 38px;
        background-size: 45% 45%;
    }
}

/* ==========================================================================
   5. NAVBAR & HEADER POLISH
   ========================================================================== */
.navbar-nav .nav-link {
    font-size: 16px;
    color: var(--secondary-color);
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color, #5bc1ac) !important;
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav {
        flex-wrap: nowrap;
    }
    .navbar-expand-lg .navbar-nav .nav-link {
        white-space: nowrap;
        padding: 8px 10px;
        font-size: 16px;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #ffffff;
        border-radius: 16px;
        padding: 16px 20px;
        margin-top: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-nav .nav-item {
        margin-bottom: 6px;
    }

    html[dir="rtl"] .navbar-nav .nav-item {
        text-align: right;
    }

    .navbar-nav .nav-link {
        padding: 10px 14px;
        border-radius: 8px;
        font-weight: 600;
        white-space: normal;
    }

    .navbar-nav .nav-link.active {
        background-color: rgba(91, 193, 172, 0.1);
        color: var(--primary-color, #5bc1ac) !important;
    }

    .navbar-nav .nav-item.ms-3 {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .navbar-nav .custom-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   6. BRAND COLOR SYSTEM (#5bc1ac)
   ========================================================================== */
.bg-success,
.badge.bg-success {
    background-color: var(--primary-color, #5bc1ac) !important;
    color: #ffffff !important;
}

.bg-success.bg-opacity-10,
.badge-soft-success,
.bg-success-subtle {
    background-color: rgba(91, 193, 172, 0.15) !important;
    color: var(--primary-color, #5bc1ac) !important;
}

.text-success {
    color: var(--primary-color, #5bc1ac) !important;
}

.border-success {
    border-color: var(--primary-color, #5bc1ac) !important;
}

.btn-success,
.custom-form button[type="submit"],
.contact-form button[type="submit"] {
    background: linear-gradient(135deg, #5bc1ac 0%, #4ca896 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(91, 193, 172, 0.3) !important;
    transition: all 0.25s ease !important;
}

.btn-success:hover,
.custom-form button[type="submit"]:hover,
.contact-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #4ca896 0%, #3ea08e 100%) !important;
    box-shadow: 0 6px 20px rgba(91, 193, 172, 0.5) !important;
    transform: translateY(-2px);
    color: #ffffff !important;
}

.btn-outline-success {
    color: var(--primary-color, #5bc1ac);
    border-color: var(--primary-color, #5bc1ac);
}

.btn-outline-success:hover,
.btn-outline-success:active {
    background-color: var(--primary-color, #5bc1ac);
    border-color: var(--primary-color, #5bc1ac);
    color: #ffffff;
}

.alert-success {
    background-color: rgba(91, 193, 172, 0.12);
    border: 1px solid rgba(91, 193, 172, 0.3);
    border-right: 4px solid var(--primary-color, #5bc1ac);
    color: #164e43;
    border-radius: 12px;
    font-weight: 600;
}

html[dir="ltr"] .alert-success {
    border-right: 1px solid rgba(91, 193, 172, 0.3);
    border-left: 4px solid var(--primary-color, #5bc1ac);
}

.alert-success .alert-link {
    color: #0d3830;
    font-weight: 700;
}

.alert-success i,
.alert-success svg,
.alert-success .hgi {
    color: var(--primary-color, #5bc1ac);
}

.form-check-input:checked {
    background-color: var(--primary-color, #5bc1ac);
    border-color: var(--primary-color, #5bc1ac);
}

/* ==========================================================================
   7. COUNTERS, GOALS, AND CATEGORY CARDS
   ========================================================================== */
.counter-card-static {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: clamp(14px, 2.5vw, 24px) clamp(10px, 1.5vw, 16px);
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.counter-card-static .counter-number {
    color: var(--primary-color, #5bc1ac);
    font-weight: 800;
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    line-height: 1.15;
    display: inline-block;
}

.counter-card-static .counter-text {
    color: var(--secondary-color, #44525d);
    font-weight: 700;
    font-size: clamp(0.78rem, 2vw, 0.95rem);
    margin-top: 4px;
    line-height: 1.3;
}

.goal-card-static {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.goal-card-static:hover {
    border-color: var(--primary-color, #5bc1ac);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.goal-card-title {
    color: var(--secondary-color, #212529);
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.featured-block {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 32px 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
    height: 100%;
}

.featured-block:hover {
    border-color: var(--primary-color, #5bc1ac);
}

.featured-block-image {
    width: clamp(52px, 12vw, 70px);
    height: clamp(52px, 12vw, 70px);
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.featured-block:hover .featured-block-image {
    transform: scale(1.08);
}

.featured-block-text {
    color: var(--secondary-color, #44525d);
    font-weight: 700;
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin-top: 10px;
    margin-bottom: 0;
}

/* Causes & Projects Cards */
.custom-block-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.custom-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.custom-progress {
    height: 10px;
    border-radius: 30px;
    background-color: #e2e8f0;
    overflow: hidden;
}

html[dir="rtl"] .custom-progress,
html[dir="rtl"] .progress {
    direction: rtl;
}

html[dir="ltr"] .custom-progress,
html[dir="ltr"] .progress {
    direction: ltr;
}

.custom-progress .progress-bar {
    background: linear-gradient(135deg, #5bc1ac 0%, #4ca896 100%);
    border-radius: 30px;
    transition: width 1s ease-in-out;
}

/* ==========================================================================
   8. PARTNERS SECTION & SWIPER
   ========================================================================== */
.partners-section {
    background-color: var(--site-footer-bg-color, #44525d);
    position: relative;
}

.partners-slider-wrapper {
    position: relative;
    padding: 0 60px;
}

@media (max-width: 767.98px) {
    .partners-slider-wrapper {
        padding: 0 10px;
    }
}

.partners-swiper {
    padding: 10px 5px !important;
    overflow: hidden;
}

.partners-swiper .swiper-wrapper {
    align-items: stretch;
}

.partner-card {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.partner-card:hover {
    background-color: rgba(255, 255, 255, 0.16);
    border-color: var(--primary-color, #5bc1ac);
}

.partner-img-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.partner-card:hover .partner-img-wrapper {
    border-color: var(--primary-color, #5bc1ac);
    transform: scale(1.05);
}

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

.partner-card-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Dedicated Navigation Buttons Outside Swiper */
.partners-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    padding: 0;
    outline: none;
}

.partners-nav-btn i {
    font-size: 1.35rem;
    line-height: 1;
    color: #ffffff;
    transition: transform 0.25s ease;
}

.partners-nav-btn:hover {
    background-color: var(--primary-color, #5bc1ac);
    border-color: var(--primary-color, #5bc1ac);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(91, 193, 172, 0.55);
}

.partners-prev-btn {
    right: 0;
}

.partners-next-btn {
    left: 0;
}

html[dir="ltr"] .partners-prev-btn {
    left: 0;
    right: auto;
}

html[dir="ltr"] .partners-next-btn {
    right: 0;
    left: auto;
}

@media (max-width: 575.98px) {
    .partners-nav-btn {
        width: 38px;
        height: 38px;
    }
    .partners-nav-btn i {
        font-size: 1.1rem;
    }
}

/* Dedicated Pagination Below Slider */
.partners-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.partners-pagination .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.35) !important;
    opacity: 1 !important;
    width: 10px !important;
    height: 10px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    border: none !important;
    outline: none !important;
}

.partners-pagination .swiper-pagination-bullet:hover {
    background-color: rgba(255, 255, 255, 0.7) !important;
}

.partners-pagination .swiper-pagination-bullet-active {
    background-color: var(--primary-color, #5bc1ac) !important;
    width: 28px !important;
    border-radius: 14px !important;
    box-shadow: 0 0 14px rgba(91, 193, 172, 0.7) !important;
}

/* ==========================================================================
   9. CTA & VIDEO PLAY BUTTONS
   ========================================================================== */
.btn-donate-cta,
.custom-btn.btn-donate {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 10px 26px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.2px;
}

.btn-donate-cta:hover,
.custom-btn.btn-donate:hover {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    color: #ffffff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.5);
}

.video-play-btn:hover {
    background: var(--primary-color, #5bc1ac);
    border-color: var(--primary-color, #5bc1ac);
    box-shadow: 0 12px 40px rgba(91, 193, 172, 0.45);
}

.video-play-icon {
    color: var(--primary-color, #5bc1ac);
}

.video-play-icon i,
.video-play-icon .hgi {
    font-size: 1.25rem;
    line-height: 1;
    margin-right: -2px;
}

/* ==========================================================================
   10. CATEGORY STREAM WITH HORIZONTAL OVERFLOW & SCROLL CHEVRONS
   ========================================================================== */
.category-filter-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.category-filter-container::before,
.category-filter-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 12px;
    width: 50px;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.category-filter-container.has-overflow-right::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 1;
}

.category-filter-container.has-overflow-left::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 1;
}

.category-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 18px 14px 18px;
    flex-wrap: nowrap;
    width: 100%;
    scroll-behavior: smooth;
}

.category-filter-wrapper::-webkit-scrollbar {
    display: none;
}

.category-scroll-btn {
    position: absolute;
    top: calc(50% - 6px);
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--secondary-color, #1e293b);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-scroll-btn:hover {
    background-color: var(--primary-color, #5bc1ac);
    color: #ffffff;
    border-color: var(--primary-color, #5bc1ac);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 16px rgba(91, 193, 172, 0.4);
}

.category-scroll-btn.scroll-prev { right: -4px; }
.category-scroll-btn.scroll-next { left: -4px; }

.category-filter-container.has-overflow-left .category-scroll-btn.scroll-next {
    display: inline-flex;
}

.category-filter-container.has-overflow-right .category-scroll-btn.scroll-prev {
    display: inline-flex;
}

.category-filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.category-filter-btn:hover {
    border-color: var(--primary-color, #5bc1ac);
    color: var(--primary-color, #5bc1ac);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(91, 193, 172, 0.18);
}

.category-filter-btn.active {
    background: linear-gradient(135deg, #5bc1ac 0%, #4ca896 100%);
    color: #ffffff;
    border-color: #5bc1ac;
    box-shadow: 0 4px 16px rgba(91, 193, 172, 0.38);
    transform: translateY(-1px);
}

.category-filter-btn .category-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50px;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    line-height: 1;
    transition: all 0.2s ease;
}

.category-filter-btn:hover .category-count-badge {
    background-color: rgba(91, 193, 172, 0.15);
    color: var(--primary-color, #5bc1ac);
    border-color: rgba(91, 193, 172, 0.3);
}

.category-filter-btn.active .category-count-badge {
    background-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   11. MODALS, NOTICES, FOOTER & BACK TO TOP
   ========================================================================== */
.modal-backdrop.show {
    backdrop-filter: blur(6px);
    background-color: rgba(15, 23, 42, 0.65);
}

.custom-modal-content {
    background: #ffffff;
    border: 0;
    border-radius: 16px;
    box-shadow: none;
    overflow: hidden;
}

.custom-modal-header {
    background: linear-gradient(135deg, #5bc1ac 0%, #3ca893 100%);
    padding: 18px 24px;
    border-bottom: none;
}

.custom-modal-header .modal-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
}

.custom-modal-header .btn-close {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
    border-radius: 50%;
    padding: 10px;
    transition: all 0.25s ease;
}

.custom-modal-header .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg) scale(1.1);
}

.custom-modal-body {
    padding: 28px 24px;
}

.custom-modal-body .goal-description-box {
    background-color: #f8fafc;
    border-right: 4px solid var(--primary-color, #5bc1ac);
    border-radius: 12px;
    padding: 20px;
    font-size: 1.08rem;
    line-height: 1.85;
    color: #334155;
    font-weight: 500;
}

html[dir="ltr"] .custom-modal-body .goal-description-box {
    border-right: none;
    border-left: 4px solid var(--primary-color, #5bc1ac);
}

.custom-modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background-color: #f8fafc;
    padding: 14px 24px;
}

.custom-modal-footer .btn-close-modal {
    background-color: var(--secondary-color, #44525d);
    color: #ffffff;
    border-radius: 50px;
    padding: 8px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    transition: all 0.25s ease;
}

.custom-modal-footer .btn-close-modal:hover {
    background-color: var(--primary-color, #5bc1ac);
    transform: translateY(-2px);
}

/* Floating Back To Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--primary-color, #5bc1ac);
    color: #ffffff;
    border: none;
    outline: none;
    box-shadow: 0 6px 20px rgba(91, 193, 172, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top-btn i,
.back-to-top-btn iconify-icon {
    font-size: 1.55rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

html[dir="ltr"] .back-to-top-btn {
    left: auto;
    right: 25px;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: var(--secondary-color, #44525d);
    color: #ffffff;
}

/* Full-Width Notice Banner */
.alfajir-notice-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    z-index: 999999;
    pointer-events: auto;
}

.alfajir-notice-banner .notice-icon-wrap {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background-color: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alfajir-notice-banner .notice-icon-wrap iconify-icon {
    font-size: 1.25rem;
    color: #2563eb;
}

.alfajir-notice-banner .btn-close-notice {
    background: transparent;
    border: none;
    outline: none;
    color: #64748b;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.alfajir-notice-banner .btn-close-notice:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

/* Read more link animations */
.read-more-link {
    color: var(--primary-color, #5bc1ac);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.read-more-link i,
.read-more-link iconify-icon,
.read-more-link svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.read-more-link:hover,
.news-block:hover .read-more-link {
    color: var(--primary-light, #72cca8);
}

html[dir="rtl"] .read-more-link:hover i,
html[dir="rtl"] .read-more-link:hover iconify-icon,
html[dir="rtl"] .news-block:hover .read-more-link i,
html[dir="rtl"] .news-block:hover .read-more-link iconify-icon {
    transform: translateX(-7px);
}

html[dir="ltr"] .read-more-link:hover i,
html[dir="ltr"] .read-more-link:hover iconify-icon,
html[dir="ltr"] .news-block:hover .read-more-link i,
html[dir="ltr"] .news-block:hover .read-more-link iconify-icon {
    transform: translateX(7px);
}

.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
}

.site-footer .subscribe-form,
.site-footer .custom-form,
footer .custom-form {
    background: transparent;
    background-color: transparent;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.site-footer .subscribe-form .form-control,
.site-footer input[type="email"] {
    background-color: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 0.9rem;
    height: 48px;
}

.svg-donate-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    vertical-align: -0.22em;
    background-color: currentColor;
    -webkit-mask: url('../images/icons/heart-handshake.svg') no-repeat center / contain;
    mask: url('../images/icons/heart-handshake.svg') no-repeat center / contain;
    -webkit-mask-image: url('/assets/images/icons/heart-handshake.svg');
    mask-image: url('/assets/images/icons/heart-handshake.svg');
}

/* ==========================================================================
   12. MODERN NEWS SEARCH WIDGET
   ========================================================================== */
.news-search-form {
    position: relative;
    width: 100%;
}

.news-search-form .search-input-group {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.news-search-form .search-input {
    width: 100%;
    height: 48px;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--secondary-color);
    transition: all 0.25s ease;
}

html[dir="rtl"] .news-search-form .search-input {
    padding: 10px 18px 10px 48px;
    text-align: right;
}

html[dir="ltr"] .news-search-form .search-input {
    padding: 10px 48px 10px 18px;
    text-align: left;
}

.news-search-form .search-input:focus {
    background-color: #ffffff;
    border-color: var(--primary-color, #5bc1ac);
    box-shadow: 0 0 0 4px rgba(91, 193, 172, 0.15);
    outline: none;
}

.news-search-form .search-submit-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5bc1ac 0%, #4ca896 100%);
    color: #ffffff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 5;
}

html[dir="rtl"] .news-search-form .search-submit-btn {
    left: 6px;
    right: auto;
}

html[dir="ltr"] .news-search-form .search-submit-btn {
    right: 6px;
    left: auto;
}

.news-search-form .search-submit-btn:hover {
    background: linear-gradient(135deg, #4ca896 0%, #3ea08e 100%);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 12px rgba(91, 193, 172, 0.4);
}

.news-search-form .search-submit-btn i {
    font-size: 1.15rem;
    line-height: 1;
    color: #ffffff;
}

/* ==========================================================================
   13. OPINION POLL SECTION & CARDS
   ========================================================================== */
.poll-section {
    background: linear-gradient(180deg, #f8fafc 0%, #edf7f5 50%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.poll-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91, 193, 172, 0.12) 0%, rgba(91, 193, 172, 0) 70%);
    pointer-events: none;
}

.poll-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91, 193, 172, 0.12) 0%, rgba(91, 193, 172, 0) 70%);
    pointer-events: none;
}

.poll-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 36px 32px;
    /* box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(91, 193, 172, 0.12); */
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

@media (max-width: 575.98px) {
    .poll-card {
        padding: 24px 18px;
        border-radius: 20px;
    }
}

.poll-badge {
    background: rgba(91, 193, 172, 0.12);
    color: #246d60;
    border: 1px solid rgba(91, 193, 172, 0.25);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.poll-nav-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: var(--secondary-color, #44525d);
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.poll-nav-btn:hover {
    background: linear-gradient(135deg, #5bc1ac 0%, #4ca896 100%);
    border-color: #5bc1ac;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(91, 193, 172, 0.35);
}

.poll-question-box {
    background: linear-gradient(135deg, rgba(91, 193, 172, 0.09) 0%, rgba(91, 193, 172, 0.02) 100%);
    border: 1px solid rgba(91, 193, 172, 0.22);
    border-radius: 16px;
    padding: 20px 24px;
    text-align: center;
    margin-bottom: 24px;
}

.poll-question-text {
    color: #1e293b;
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .poll-question-text {
        font-size: 1.1rem;
    }
}

.custom-poll-option {
    border: 2px solid #e2e8f0;
    background-color: #ffffff;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
}

.custom-poll-option:hover {
    border-color: var(--primary-color, #5bc1ac);
    background-color: rgba(91, 193, 172, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(91, 193, 172, 0.12);
}

.custom-poll-option:has(input:checked),
.custom-poll-option.is-checked {
    border-color: var(--primary-color, #5bc1ac) !important;
    background-color: rgba(91, 193, 172, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(91, 193, 172, 0.2), 0 4px 12px rgba(91, 193, 172, 0.1) !important;
}

.custom-poll-option .form-check-input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color, #5bc1ac);
    margin: 0 10px 0 0;
    cursor: pointer;
}

html[dir="rtl"] .custom-poll-option .form-check-input {
    margin: 0 0 0 12px;
}

.poll-option-title {
    font-weight: 700;
    color: #334155;
    font-size: 0.98rem;
    flex-grow: 1;
}

.custom-poll-option:has(input:checked) .poll-option-title,
.custom-poll-option.is-checked .poll-option-title {
    color: #0f172a;
    font-weight: 800;
}

.poll-result-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.poll-result-item:hover {
    border-color: rgba(91, 193, 172, 0.4);
    box-shadow: 0 4px 12px rgba(91, 193, 172, 0.08);
}

/* ==========================================================================
   14. ABOUT US & COUNTERS SECTION
   ========================================================================== */
.counter-card-modern {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 18px;
    text-align: center;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.counter-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(91, 193, 172, 0.15);
    border-color: rgba(91, 193, 172, 0.3);
}

.counter-card-modern .counter-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color, #5bc1ac);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.counter-card-modern .counter-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    margin-top: 6px;
}

.about-image-wrapper {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    height: 100%;
    min-height: 420px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.03);
}

.about-content-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 36px 32px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 575.98px) {
    .about-content-card {
        padding: 24px 20px;
    }
}

.about-goal-pill {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: right;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html[dir="ltr"] .about-goal-pill {
    text-align: left;
}

.about-goal-pill:hover {
    background-color: rgba(91, 193, 172, 0.08);
    border-color: var(--primary-color, #5bc1ac);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 193, 172, 0.12);
}

.about-goal-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0;
    transition: color 0.2s ease;
}

.about-goal-pill:hover .about-goal-title {
    color: var(--primary-color, #5bc1ac);
}

/* ==========================================================================
   15. SOCIAL SHARE BUTTONS & DETAIL PAGE ENHANCEMENTS
   ========================================================================== */
.social-share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none;
    border: none;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.social-share-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
    color: #ffffff !important;
}

.social-share-btn i,
.social-share-btn .hgi {
    font-size: 1.25rem !important;
    color: #ffffff !important;
    line-height: 1;
}

.social-share-btn.whatsapp { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); }
.social-share-btn.telegram { background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%); }
.social-share-btn.twitter { background: #000000; }
.social-share-btn.facebook { background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%); }
.social-share-btn.copy { background: linear-gradient(135deg, #64748b 0%, #475569 100%); }

.cause-callout-box {
    background-color: rgba(91, 193, 172, 0.07);
    border-radius: 16px;
    padding: 22px 24px;
    border-right: 4px solid var(--primary-color, #5bc1ac);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.85;
    color: #1e293b;
}

html[dir="ltr"] .cause-callout-box {
    border-right: none;
    border-left: 4px solid var(--primary-color, #5bc1ac);
}

/* ==========================================================================
   16. COMMENT FORM & COMMENTS SECTION
   ========================================================================== */
.comment-form {
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
}

.comment-form .form-control {
    background-color: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px 18px !important;
    font-size: 0.98rem !important;
    color: #1e293b !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    margin-bottom: 0 !important;
    transition: all 0.25s ease !important;
}

.comment-form .form-control::placeholder {
    color: #94a3b8 !important;
    font-size: 0.92rem;
}

.comment-form .form-control:focus {
    background-color: #ffffff !important;
    border-color: var(--primary-color, #5bc1ac) !important;
    box-shadow: 0 0 0 4px rgba(91, 193, 172, 0.15) !important;
    outline: none !important;
}

.comment-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.author-comment-item {
    background-color: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 14px;
    transition: all 0.2s ease;
}

.author-comment-item:hover {
    background-color: #ffffff;
    border-color: rgba(91, 193, 172, 0.3);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.author-avatar-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(91, 193, 172, 0.12);
    color: var(--primary-color, #5bc1ac);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/*---------------------------------------
  17. CUSTOM SWIPER GALLERY PAGINATION
-----------------------------------------*/
.news-gallery-swiper .swiper-pagination,
.cause-gallery-swiper .swiper-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}

.news-gallery-swiper .swiper-pagination-bullet,
.cause-gallery-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #cbd5e1;
    opacity: 0.8;
    border-radius: 10px;
    margin: 0 !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.news-gallery-swiper .swiper-pagination-bullet:hover,
.cause-gallery-swiper .swiper-pagination-bullet:hover {
    background-color: var(--primary-color, #5bc1ac);
    opacity: 0.9;
}

.news-gallery-swiper .swiper-pagination-bullet-active,
.cause-gallery-swiper .swiper-pagination-bullet-active {
    width: 26px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-color, #5bc1ac) 0%, #4ba08f 100%) !important;
    opacity: 1 !important;
    box-shadow: 0 2px 8px rgba(91, 193, 172, 0.45);
}


