/* ==========================================================================
   Subul Charity Association (جمعية سبل الخيرية - غزة)
   Brand Visual Identity & Modern Styling System
   Colors:
   - Primary Ochre / Orange: #D27E0E
   - Warm Amber Gold: #D8A50C
   - Lime / Yellow-Green: #C3C91D
   - Forest / Leaf Green: #4F8821
   ========================================================================== */

:root {
    --color-ochre: #D27E0E;
    --color-amber: #D8A50C;
    --color-lime: #C3C91D;
    --color-green: #4F8821;
    --color-dark-green: #254210;
    --color-light-bg: #F9FBF6;
    --color-card-bg: #FFFFFF;
    --color-text-dark: #2B2D2F;
    --color-text-muted: #5F6368;
    --border-radius-lg: 16px;
    --border-radius-sm: 8px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 15px 35px rgba(79, 136, 33, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
    color: var(--color-text-dark);
    background-color: var(--color-light-bg);
    overflow-x: hidden;
    line-height: 1.7;
}

[dir="rtl"] body {
    text-align: right;
}

/* --------------------------------------------------------------------------
   1. Top Header Bar
   -------------------------------------------------------------------------- */
.top-header-w {
    background: linear-gradient(135deg, var(--color-dark-green) 0%, var(--color-green) 100%);
    color: #ffffff;
    padding: 9px 0;
    font-size: 0.88rem;
    border-bottom: 2px solid var(--color-lime);
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-contact-info {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 22px;
}

.header-contact-info li a {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.header-contact-info li a:hover {
    color: var(--color-lime);
}

.social-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
}

.social-item {
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.social-item:hover {
    background: var(--color-ochre);
    color: #ffffff;
    transform: translateY(-2px);
}

.lang-switcher a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-switcher a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-lime);
}

/* --------------------------------------------------------------------------
   2. Navbar & Submenus
   -------------------------------------------------------------------------- */
.main-nav-w {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1020;
    padding: 10px 0;
}

.navbar-brand img {
    height: 65px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.navbar-brand img:hover {
    transform: scale(1.02);
}

.nav-link {
    color: var(--color-text-dark) !important;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 12px 18px !important;
    transition: var(--transition);
    border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-ochre) !important;
    background: rgba(210, 126, 14, 0.06);
}

/* Hierarchical SubMenu Dropdowns */
.nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    border: none;
    border-top: 4px solid var(--color-green);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-soft);
    padding: 10px 0;
    margin-top: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    background: #ffffff;
}

.dropdown-item {
    font-weight: 600;
    color: var(--color-text-dark);
    padding: 10px 24px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover {
    background-color: var(--color-light-bg);
    color: var(--color-green);
    padding-right: 28px;
}

.btn-donate-nav {
    background: linear-gradient(135deg, var(--color-ochre) 0%, var(--color-amber) 100%);
    color: #ffffff !important;
    border: none;
    padding: 10px 24px !important;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(210, 126, 14, 0.3);
    transition: var(--transition);
}

.btn-donate-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 126, 14, 0.45);
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   3. Hero Banner Slider
   -------------------------------------------------------------------------- */
.subul-hero-slider {
    position: relative;
    background: #111;
    overflow: hidden;
}

.subul-hero-slider .carousel-item {
    min-height: 520px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.subul-hero-slider .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(37, 66, 16, 0.88) 0%, rgba(30, 45, 30, 0.65) 60%, rgba(210, 126, 14, 0.4) 100%);
}

.subul-hero-caption {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 750px;
    padding: 80px 0;
}

.subul-badge-hero {
    display: inline-block;
    background: var(--color-lime);
    color: var(--color-dark-green);
    font-weight: 800;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    margin-bottom: 18px;
    box-shadow: 0 4px 10px rgba(195, 201, 29, 0.3);
}

.subul-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 18px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.subul-hero-title span {
    color: var(--color-amber);
}

.subul-hero-text {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.8;
}

.btn-subul-primary {
    background: linear-gradient(135deg, var(--color-ochre) 0%, var(--color-amber) 100%);
    color: #ffffff;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(210, 126, 14, 0.4);
    transition: var(--transition);
    border: none;
}

.btn-subul-primary:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(210, 126, 14, 0.55);
}

.btn-subul-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-subul-secondary:hover {
    background: #ffffff;
    color: var(--color-green);
    border-color: #ffffff;
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   4. Impact Statistics Strip
   -------------------------------------------------------------------------- */
.stats-strip {
    background: #ffffff;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 30px 20px;
    border-bottom: 4px solid var(--color-green);
}

.stat-box {
    text-align: center;
    padding: 15px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(79, 136, 33, 0.1);
    color: var(--color-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 15px;
    transition: var(--transition);
}

.stat-box:hover .stat-icon {
    background: var(--color-green);
    color: #ffffff;
    transform: scale(1.1);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-ochre);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   5. Section Header Titles
   -------------------------------------------------------------------------- */
.section-title-wrap {
    margin-bottom: 45px;
    text-align: center;
}

.section-subtitle {
    display: inline-block;
    color: var(--color-green);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    background: rgba(79, 136, 33, 0.08);
    padding: 4px 16px;
    border-radius: 50px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-text-dark);
    position: relative;
    display: inline-block;

}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-ochre) 0%, var(--color-lime) 100%);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   6. News Cards Section (أخبار الجمعية)
   -------------------------------------------------------------------------- */
.news-section-bg {
    padding: 80px 0;
    background: #ffffff;
}

.subul-news-card {
    background: var(--color-card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.subul-news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 136, 33, 0.2);
}

.subul-news-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--color-light-bg);
}

.subul-news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.subul-news-card:hover .subul-news-img-wrap img {
    transform: scale(1.08);
}

.news-type-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-green);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

[dir="ltr"] .news-type-tag {
    right: auto;
    left: 15px;
}

.news-date-badge {
    position: absolute;
    bottom: 12px;
    left: 15px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    color: #ffffff;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

[dir="ltr"] .news-date-badge {
    left: auto;
    right: 15px;
}

.subul-news-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.subul-news-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 12px;
}

.subul-news-title a {
    color: var(--color-text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.subul-news-title a:hover {
    color: var(--color-ochre);
}

.subul-news-excerpt {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-read-more {
    color: var(--color-green);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    margin-top: auto;
}

.btn-read-more:hover {
    color: var(--color-ochre);
    gap: 10px;
}

/* --------------------------------------------------------------------------
   7. Static Page Categorized Sections (الصفحات الثابتة)
   -------------------------------------------------------------------------- */
.static-section-bg {
    padding: 80px 0;
    background: var(--color-light-bg);
}

.static-section-bg:nth-child(even) {
    background: #ffffff;
}

.static-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 30px 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.static-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-ochre) 0%, var(--color-green) 100%);
    opacity: 0;
    transition: var(--transition);
}

.static-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.static-card:hover::before {
    opacity: 1;
}

.static-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(210, 126, 14, 0.1) 0%, rgba(79, 136, 33, 0.1) 100%);
    color: var(--color-ochre);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.static-card:hover .static-icon-box {
    background: linear-gradient(135deg, var(--color-ochre) 0%, var(--color-green) 100%);
    color: #ffffff;
    transform: rotateY(180deg);
}

.static-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-dark);
}

.static-card-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --------------------------------------------------------------------------
   8. Call To Action (Sponsorship / Donation Banner)
   -------------------------------------------------------------------------- */
.cta-banner {
    background: linear-gradient(135deg, var(--color-dark-green) 0%, var(--color-green) 50%, var(--color-ochre) 100%);
    color: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 60px 40px;
    margin: 60px 0;
    box-shadow: 0 15px 40px rgba(37, 66, 16, 0.25);
    position: relative;
    overflow: hidden;
}

.cta-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(195, 201, 29, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-desc {
    font-size: 1.1rem;
    opacity: 0.92;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
footer {
    background-color: #1a2315;
    color: #d1d8ce;
    padding: 70px 0 0;
    margin-top: 0;
    border-top: 5px solid var(--color-ochre);
}

.footer-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--color-amber);
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--color-lime);
    border-radius: 2px;
}

[dir="ltr"] .footer-title::after {
    right: auto;
    left: 0;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-li {
    margin-bottom: 12px;
}

.footer-item {
    color: #c0cbbe;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer-item:hover {
    color: var(--color-lime);
    transform: translateX(-5px);
}

[dir="ltr"] .footer-item:hover {
    transform: translateX(5px);
}

.footer-bottom {
    background-color: #12190f;
    padding: 20px 0;
    margin-top: 60px;
    font-size: 0.88rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
