/* -------------------------------------------------------------
   HAKSHIVA WEBSITE REDESIGN - PREMIUM STYLING
   Built with modern CSS variables, glassmorphic layout,
   responsive grids, custom micro-animations, and full RTL support.
   ------------------------------------------------------------- */

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

/* CSS RESET & VARIABLES */
:root {
    /* Fonts */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Color Palette - Rich Blue, Orange & Golden Yellow for a comforting feeling */
    --primary-dark: #0F2537;      /* Rich deep navy blue */
    --primary-light: #FAF8F5;     /* Comforting warm cream/sand background */
    --accent-red: #F29F05;        /* Hopeful golden yellow */
    --accent-orange: #E27233;     /* Comforting terracotta orange */
    --accent-blue: #1E4E79;       /* Deep slate blue */
    --accent-teal: #2B6B99;       /* Rich ocean teal blue */
    
    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-teal) 100%);
    --gradient-blue: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-blue) 100%);
    --gradient-teal: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-red) 100%);
    --gradient-dark: linear-gradient(135deg, #091C30 0%, var(--primary-dark) 100%);
    --gradient-light-card: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 242, 235, 0.95) 100%);
    
    /* Interface */
    --text-main: #2C3539;         /* Charcoal dark slate for softer contrast */
    --text-muted: #65737E;        /* Slate gray */
    --text-white: #FFFFFF;
    --border-glass: rgba(255, 255, 255, 0.6);
    --border-dark-glass: rgba(30, 58, 71, 0.08);
    --shadow-soft: 0 10px 30px -10px rgba(30, 58, 71, 0.06);
    --shadow-premium: 0 20px 40px -15px rgba(30, 58, 71, 0.12);
    --shadow-inset: inset 0 2px 4px 0 rgba(255, 255, 255, 0.1);
    
    /* Layout */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --max-width: 1280px;
}

/* RTL OVERRIDES SUPPORT */
[dir="rtl"] {
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

button, input, select, textarea {
    font-family: inherit;
    outline: none;
    border: none;
}

ul {
    list-style: none;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--primary-light);
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 5px;
    border: 2px solid var(--primary-light);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* CONTAINER */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    width: 100%;
}

/* UTILITY STYLES */
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-blur {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-bounce);
    gap: 8px;
    box-shadow: var(--shadow-soft);
}

.btn-primary {
    background: var(--gradient-brand);
    color: var(--text-white);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(42, 75, 92, 0.35);
}

.btn-secondary {
    background: var(--border-glass);
    color: var(--primary-dark);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: var(--shadow-premium);
}

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}

.btn-outline:hover {
    background: var(--primary-dark);
    color: var(--text-white);
    transform: translateY(-3px);
}

/* SECTION HEADER */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-tag {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-red);
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 18px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* DYNAMIC ACCENT BACKGROUNDS */
.bg-glow-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.glow-bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-red);
    top: 10%;
    right: -100px;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: var(--accent-orange);
    bottom: 10%;
    left: -200px;
}

.glow-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-blue);
    top: 40%;
    left: 30%;
}


/* ==========================================
   HEADER & NAVIGATION - SCROLLS WITH THE PAGE
   ========================================== */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    /* No sticky styling, header remains absolute and scrolls off screen */
    background: transparent;
    box-shadow: none;
    border-bottom: none;
}

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

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 64px;
    width: auto;
    transition: var(--transition-smooth);
}

.site-header.scrolled .logo-img {
    height: 52px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-brand);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* DROPDOWN MENU */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-dark-glass);
    padding: 16px;
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 100;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.dropdown-link {
    display: block;
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-weight: 500;
}

.dropdown-link:hover {
    background: rgba(30, 58, 138, 0.05);
    color: var(--accent-orange);
    padding-left: 18px;
}

/* RTL Dropdown Alignment */
[dir="rtl"] .dropdown-link:hover {
    padding-left: 14px;
    padding-right: 18px;
}

/* HEADER ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* LANG SWITCHER */
.lang-toggle {
    display: flex;
    background: rgba(7, 27, 47, 0.04);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid var(--border-dark-glass);
}

.lang-btn {
    background: transparent;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-btn.active {
    background: var(--primary-dark);
    color: var(--text-white);
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.mobile-only-donate {
    display: none !important;
}


/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    padding: 180px 0 120px 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(100% 150% at 0% 0%, #FFFFFF 0%, #F1F5F9 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2.5px;
    color: var(--accent-red);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-tagline::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--gradient-brand);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    align-items: center;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-premium), 0 0 40px rgba(255, 107, 0, 0.15);
    border: 4px solid var(--text-white);
    background: var(--primary-dark);
    transition: var(--transition-bounce);
    aspect-ratio: 4 / 3;
}

.hero-image-frame:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: var(--shadow-premium), 0 0 50px rgba(255, 107, 0, 0.3);
}

.hero-sunset-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 37, 69, 0) 50%, rgba(11, 37, 69, 0.3) 100%);
    pointer-events: none;
}


/* ==========================================
   STATS SECTION
   ========================================== */
.stats-section {
    padding: 60px 0;
    position: relative;
    z-index: 10;
    margin-top: -50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    background: var(--gradient-light-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

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

.stat-number {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}


/* ==========================================
   WHO WE SUPPORT (CARDS SECTION)
   ========================================== */
.support-section {
    padding: 100px 0;
    position: relative;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.support-card {
    background: var(--text-white);
    border: 1px solid var(--border-dark-glass);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.support-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

[dir="rtl"] .support-card::after {
    transform-origin: right;
}

.support-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: transparent;
}

.support-card:hover::after {
    transform: scaleX(1);
}

.support-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(243, 38, 84, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--accent-red);
    transition: var(--transition-bounce);
}

.support-card:hover .support-icon-box {
    transform: scale(1.1) rotate(10deg);
    background: var(--gradient-brand);
    color: var(--text-white);
}

.support-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.support-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.support-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-red);
}

.support-card-link svg {
    transition: var(--transition-smooth);
}

.support-card:hover .support-card-link svg {
    transform: translateX(5px);
}

[dir="rtl"] .support-card:hover .support-card-link svg {
    transform: translateX(-5px) scaleX(-1);
}


/* ==========================================
   WHAT WE DO (INTERACTIVE TABS SYSTEM)
   ========================================== */
.services-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--primary-light) 0%, #EDF2F7 100%);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-box-card {
    background: var(--text-white);
    border: 1px solid var(--border-dark-glass);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-box-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-teal); /* Orange-Yellow */
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

[dir="rtl"] .service-box-card::after {
    transform-origin: right;
}

.service-box-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(255, 107, 0, 0.2);
}

.service-box-card:hover::after {
    transform: scaleX(1);
}

.service-box-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(255, 107, 0, 0.08);
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    transition: var(--transition-bounce);
}

.service-box-card:hover .service-box-icon {
    background: var(--gradient-teal); /* Orange-Yellow */
    color: var(--text-white);
    transform: scale(1.1) rotate(5deg);
}

.service-box-title {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 14px;
    font-weight: 700;
}

.service-box-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-highlights-wrapper {
    margin-top: 15px;
    margin-bottom: 24px;
    border-top: 1px solid var(--border-dark-glass);
    padding-top: 15px;
    text-align: left;
}

[dir="rtl"] .service-highlights-wrapper {
    text-align: right;
}

.service-highlights-title {
    font-size: 0.95rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

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

.service-highlights-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.4;
}

.highlight-check {
    color: var(--accent-orange);
    font-weight: bold;
    flex-shrink: 0;
}

.service-card-action {
    margin-top: auto;
    width: 100%;
}

.service-card-action .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
}

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

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


/* ==========================================
   GUIDING PRINCIPLES SECTION
   ========================================== */
.principles-section {
    padding: 100px 0;
    background: var(--primary-dark);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.principles-section h2, .principles-section h3 {
    color: var(--text-white);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 5;
}

.principle-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.25);
    transition: var(--transition-bounce);
    position: relative;
    display: flex;
    flex-direction: column;
}

.principle-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 30px 60px -20px rgba(255, 107, 0, 0.15);
}

.principle-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-teal); /* Orange-Yellow */
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

[dir="rtl"] .principle-card::after {
    transform-origin: right;
}

.principle-card:hover::after {
    transform: scaleX(1);
}

.principle-card-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.principle-card-title::before {
    content: '✦';
    color: var(--accent-orange);
    font-size: 1.2rem;
}

.principle-card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #CBD5E1;
}

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

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


/* ==========================================
   REPLAYS & UPDATES (STORIES SECTION)
   ========================================== */
.stories-section {
    padding: 100px 0;
    position: relative;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.update-card {
    background: var(--text-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-dark-glass);
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.update-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(255, 107, 0, 0.15);
}

.update-image-wrapper {
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: var(--shadow-soft);
}

.update-image-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.update-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

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

.update-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 8px;
}

.update-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.update-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748B;
    margin-bottom: 20px;
    flex-grow: 1;
}

.update-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.update-link .arrow {
    transition: var(--transition-smooth);
}

.update-card:hover .update-link .arrow {
    transform: translateX(4px);
}

[dir="rtl"] .update-card:hover .update-link .arrow {
    transform: translateX(-4px) scaleX(-1);
}

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

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


/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    padding: 100px 0;
    background: #FFFFFF;
    position: relative;
    border-top: 1px solid var(--border-dark-glass);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-method-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-method-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: rgba(243, 38, 84, 0.08);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-method-detail {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CONTACT FORM */
.contact-form-panel {
    background: var(--primary-light);
    border-radius: var(--radius-xl);
    padding: 50px;
    border: 1px solid var(--border-dark-glass);
    box-shadow: var(--shadow-premium);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.form-input {
    width: 100%;
    background: var(--text-white);
    border: 1px solid rgba(7, 27, 47, 0.08);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 4px rgba(243, 38, 84, 0.08);
}

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

.contact-btn {
    width: 100%;
}


/* ==========================================
   DONATION CALLOUT SYSTEM
   ========================================== */
.donation-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #071B2F 0%, #0F3255 100%);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.donation-section h2 {
    color: var(--text-white);
}

.donation-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 5;
}

.donation-info h2 {
    font-size: 2.5rem;
    margin-bottom: 18px;
}

.donation-info p {
    font-size: 1.1rem;
    color: #E2E8F0;
    margin-bottom: 30px;
    line-height: 1.7;
}

.tax-deductible-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.tax-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tax-badge svg {
    color: var(--accent-teal);
}

.donation-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.donation-tier-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition-bounce);
    cursor: pointer;
}

.donation-tier-card:hover {
    background: var(--text-white);
    color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

.donation-amount {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.donation-impact {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.tier-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    width: 100%;
}


/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: #040F1B;
    color: #94A3B8;
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 0.6fr 0.6fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin: 20px 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-icon-btn:hover {
    background: var(--gradient-brand);
    color: var(--text-white);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-brand);
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-link {
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--text-white);
    padding-left: 6px;
}

[dir="rtl"] .footer-link:hover {
    padding-left: 0;
    padding-right: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    text-align: center;
}


/* ==========================================
   LIGHTBOX MODAL & INTERACTIVE POPUPS
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 27, 47, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: var(--transition-bounce);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2100;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.close-modal-btn:hover {
    background: var(--accent-red);
    transform: rotate(90deg);
}

.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* ==========================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.2rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-btns {
        justify-content: center;
    }
    .hero-visual {
        order: -1;
    }
    .services-tabs-container {
        grid-template-columns: 1fr;
    }
    .services-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 8px;
    }
    .service-tab-btn {
        white-space: nowrap;
        padding: 12px 20px;
    }
    .service-pane-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .stories-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .donation-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* MOBILE NAVIGATION */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .site-header .header-actions .btn-primary {
        display: none !important;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(7, 27, 47, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 100px 24px 40px 24px;
        transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
        z-index: 999;
        gap: 24px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-20px);
        overflow-y: auto;
    }

    [dir="rtl"] .nav-menu {
        left: 0;
        right: 0;
        box-shadow: none;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    [dir="rtl"] .nav-menu.active {
        left: 0;
        right: 0;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-menu .nav-link {
        color: var(--text-white) !important;
        font-size: 1.35rem;
        font-weight: 600;
        display: block;
        padding: 6px 0;
    }

    /* Mobile-Only Donate Item */
    .mobile-only-donate {
        display: block !important;
        width: 100%;
        text-align: center;
    }

    /* Inline Dropdown for Mobile Services */
    .nav-menu .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-md);
        padding: 16px;
        margin-top: 8px;
        width: 100%;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
        box-shadow: none;
        transform: none;
        pointer-events: auto;
    }

    .nav-menu .dropdown-link {
        color: #94A3B8 !important;
        font-size: 0.9rem;
        font-weight: 500;
        padding: 6px 8px;
        display: block;
        text-align: center;
        border-radius: 6px;
        transition: var(--transition-smooth);
    }

    .nav-menu .dropdown-link:hover {
        color: var(--accent-orange) !important;
        background: rgba(255, 255, 255, 0.05);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span {
        background-color: var(--text-white) !important;
    }

    /* Hamburger Active Animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.6rem;
    }
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    .hero-btns .btn {
        width: 100%;
    }
    .support-grid {
        grid-template-columns: 1fr;
    }
    .donation-cards-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   TEAM & STAFF SECTION
   ========================================== */
.team-section {
    padding: 100px 0;
    background: var(--primary-light);
    position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.team-card {
    background: var(--text-white);
    border: 1px solid var(--border-dark-glass);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(255, 107, 0, 0.15);
}

.team-img-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid var(--border-glass);
    box-shadow: var(--shadow-soft);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.team-card:hover .team-img {
    transform: scale(1.08);
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.team-role {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-orange);
    margin-bottom: 0;
}

/* Board & Rabbinic List Styling */
.board-section {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--primary-light) 0%, #EDF2F7 100%);
    border-top: 1px solid var(--border-dark-glass);
    text-align: center;
}

.board-container {
    max-width: 900px;
    margin: 0 auto;
}

.board-title {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
    font-weight: 700;
}

.board-list {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.divider-line {
    width: 120px;
    height: 3px;
    background: var(--gradient-teal);
    margin: 0 auto 40px auto;
    border-radius: 2px;
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


/* ==========================================
   SERVICE DETAILS SUBPAGE STYLING
   ========================================== */
.service-hero-section {
    padding: 180px 0 80px 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(100% 150% at 0% 0%, #FFFFFF 0%, #F1F5F9 100%);
}

.service-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.service-hero-content {
    position: relative;
    z-index: 10;
}

.service-category {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2.5px;
    color: var(--accent-orange);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-category::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--gradient-brand);
}

[dir="rtl"] .service-category::after {
    display: none;
}
[dir="rtl"] .service-category::before {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--gradient-brand);
}

.service-hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
    color: var(--primary-dark);
    line-height: 1.25;
}

.service-hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 580px;
    line-height: 1.8;
}

.service-hero-btns {
    display: flex;
    gap: 20px;
    align-items: center;
}

.service-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.service-image-frame {
    position: relative;
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-premium), 0 0 40px rgba(226, 114, 51, 0.15);
    border: 4px solid var(--text-white);
    background: var(--primary-dark);
    transition: var(--transition-bounce);
    aspect-ratio: 4 / 3;
}

.service-image-frame:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: var(--shadow-premium), 0 0 50px rgba(226, 114, 51, 0.3);
}

.service-header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.service-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 37, 69, 0) 50%, rgba(11, 37, 69, 0.3) 100%);
    pointer-events: none;
}

.service-details-section {
    padding: 60px 0 100px 0;
    background: linear-gradient(180deg, #F1F5F9 0%, #EDF2F7 100%);
    position: relative;
}

.service-details-container {
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .service-hero-grid {
        gap: 40px;
    }
    .service-hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .service-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .service-category {
        justify-content: center;
    }
    [dir="rtl"] .service-category {
        justify-content: center;
    }
    .service-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .service-hero-btns {
        justify-content: center;
    }
    .service-hero-section {
        padding: 140px 0 60px 0;
    }
}

/* ==========================================
   STANDALONE CONTACT PAGE
   ========================================== */
.contact-page-main {
    padding: 160px 0 100px 0;
    background: linear-gradient(180deg, var(--primary-light) 0%, #EDF2F7 100%);
    position: relative;
    overflow: hidden;
}

/* Consolidated alternating row layout rules */
.service-hero-grid.reverse-row {
    grid-template-columns: 0.85fr 1.15fr;
}

.service-hero-grid.reverse-row .service-hero-content {
    order: 2;
}

.service-hero-grid.reverse-row .service-hero-visual {
    order: 1;
}

@media (max-width: 768px) {
    .service-hero-grid.reverse-row {
        grid-template-columns: 1fr;
    }
    .service-hero-grid.reverse-row .service-hero-content {
        order: 1;
    }
    .service-hero-grid.reverse-row .service-hero-visual {
        order: -1;
    }
}

/* Page View Management for SPA Routing with smooth fade transitions */
.page-view {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.page-view.active-view {
    display: block;
}
.page-view.fade-in {
    opacity: 1;
}

/* Page padding when sections are active views to clear sticky header */
#view-news .stories-section {
    padding-top: 180px;
}

/* ==========================================
   DONATE STANDALONE PAGE STYLING
   ========================================== */
.donate-page-section {
    padding: 180px 0 100px 0;
    position: relative;
    background: radial-gradient(100% 150% at 0% 0%, #FFFFFF 0%, #F1F5F9 100%);
}

.donate-container-card {
    background: var(--gradient-light-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 50px;
    box-shadow: var(--shadow-premium);
    max-width: 900px;
    margin: 0 auto;
}

.donate-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-dark-glass);
    padding-bottom: 15px;
}

.donate-tab-btn {
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.donate-tab-btn:hover {
    color: var(--accent-orange);
    background: rgba(226, 114, 51, 0.05);
}

.donate-tab-btn.active {
    color: var(--text-white);
    background: var(--gradient-teal);
    box-shadow: var(--shadow-soft);
}

.donate-tab-panel {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.donate-tab-panel.active {
    display: block;
}

.donate-panel-title {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    text-align: center;
}

.donate-panel-tax {
    color: var(--text-muted);
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 35px;
}

.donate-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.donate-method-card-premium {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(30, 58, 71, 0.05);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.donate-method-card-premium.justify-center-align {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.donate-method-card-premium.span-two-cols {
    grid-column: span 2;
    align-items: center;
    text-align: center;
}

.donate-card-method-title {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    border-bottom: 1.5px solid var(--accent-orange);
    padding-bottom: 8px;
    width: 100%;
}

.donate-card-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.donate-highlight-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.donate-bank-details {
    list-style: none;
    padding: 0;
}

.donate-bank-details li {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

[dir="rtl"] .donate-bank-details li {
    padding-left: 0;
    padding-right: 20px;
}

.donate-bank-details li::before {
    content: '•';
    color: var(--accent-orange);
    font-weight: bold;
    position: absolute;
    left: 0;
}

[dir="rtl"] .donate-bank-details li::before {
    left: auto;
    right: 0;
}

.donate-btn-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.donate-other-note {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 40px;
    border-top: 1px dashed var(--border-dark-glass);
    padding-top: 20px;
}

@media (max-width: 768px) {
    .donate-methods-grid {
        grid-template-columns: 1fr;
    }
    .donate-method-card-premium.span-two-cols {
        grid-column: span 1;
    }
    .donate-container-card {
        padding: 30px 20px;
    }
}
