/* ============================================
   PWDT Website - Main Stylesheet
   Partnership for Women Development Tanzania
   ============================================ */

/* CSS Variables */
:root {
    --primary: #1B8C3D;
    --primary-dark: #156E30;
    --primary-light: #4CAF50;
    --secondary: #1565C0;
    --secondary-dark: #0D47A1;
    --secondary-light: #42A5F5;
    --accent: #F9A825;
    --accent-dark: #F57F17;
    --accent-light: #FFD54F;
    --dark: #1a1a2e;
    --dark-2: #16213e;
    --gray-900: #212529;
    --gray-800: #343a40;
    --gray-700: #495057;
    --gray-600: #6c757d;
    --gray-500: #adb5bd;
    --gray-400: #ced4da;
    --gray-300: #dee2e6;
    --gray-200: #e9ecef;
    --gray-100: #f8f9fa;
    --white: #ffffff;
    --danger: #dc3545;
    --success: #28a745;
    --warning: #ffc107;
    --info: #17a2b8;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-logo {
    width: 140px;
    margin: 0 auto 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.loader-progress {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 4px;
    animation: loading 1.5s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

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

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

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(27, 140, 61, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    font-family: var(--font-primary);
}

.section-tag.light {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.section-title {
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-highlight {
    color: var(--primary);
}

.lead {
    font-size: 1.15rem;
    color: var(--gray-700);
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-xl);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 8px 25px rgba(27, 140, 61, 0.35);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

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

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--gray-100);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

.btn-outline-white {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    padding: 8px 0;
}

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

.logo img {
    height: 78px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.header.scrolled .logo img {
    height: 64px;
    filter: none;
}

/* On the index page, header is static-light: keep the larger size */
.header[data-static-light].scrolled .logo img {
    height: 70px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a {
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.header.scrolled .nav-links a {
    color: var(--gray-800);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.header.scrolled .nav-links a:hover,
.header.scrolled .nav-links a.active {
    color: var(--primary);
    background: rgba(27, 140, 61, 0.08);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--gray-700) !important;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background: rgba(27, 140, 61, 0.08);
    color: var(--primary) !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2.5px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.header.scrolled .hamburger span {
    background: var(--dark);
}

/* ============================================
   HERO — Split Layout (text | image)
   ============================================ */
.hero-split {
    position: relative;
    min-height: 100vh;
    padding: 130px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef4f8 100%);
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(27,140,61,0.08), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-bg-shape::before {
    content: '';
    position: absolute;
    bottom: -400px;
    left: -300px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(21,101,192,0.07), transparent 65%);
    border-radius: 50%;
}

.hero-container {
    position: relative;
    z-index: 1;
    height: 100%;
}

.hero-slider-wrap {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 200px);
}

/* Text Side */
.hero-text-side {
    position: relative;
    padding: 20px 0;
}

.hero-slide-text {
    display: none;
    animation: heroTextIn 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide-text.active {
    display: block;
}

@keyframes heroTextIn {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(27, 140, 61, 0.1);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin-bottom: 25px;
    border: 1px solid rgba(27, 140, 61, 0.2);
}

.hero-tag i {
    font-size: 0.8rem;
}

.hero-split h1 {
    color: var(--dark);
    margin-bottom: 22px;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    line-height: 1.15;
    font-weight: 800;
}

.hero-split h1 .text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-split .hero-slide-text > p {
    color: var(--gray-700);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Hero Controls (indicators + arrows) */
.hero-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.08);
    max-width: 540px;
}

.hero-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.indicator span {
    display: block;
    width: 28px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 4px;
    transition: var(--transition);
}

.indicator.active span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 40px;
}

.indicator:hover span {
    background: var(--primary);
}

.hero-arrows {
    display: flex;
    gap: 10px;
}

.hero-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.95rem;
}

.hero-arrow:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27,140,61,0.3);
}

/* Image Side */
.hero-image-side {
    position: relative;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 30, 60, 0.18);
    background: var(--gray-200);
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.25));
    z-index: 1;
    pointer-events: none;
}

.hero-image-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.9s ease, transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Floating decorative elements */
.hero-image-badge {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background: var(--white);
    padding: 14px 20px;
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.hero-badge-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hero-badge-text strong {
    display: block;
    font-size: 0.88rem;
    color: var(--dark);
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
}

.hero-badge-text small {
    color: var(--gray-600);
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}

.hero-image-stat {
    position: absolute;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 18px 22px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    z-index: 2;
    min-width: 110px;
}

.hero-stat-num {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    opacity: 0.95;
}

/* Stats Bar */
.stats-bar {
    background: var(--white);
    padding: 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 30px 25px;
    border-right: 1px solid var(--gray-200);
    transition: var(--transition);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: rgba(27, 140, 61, 0.03);
}

.stat-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(27, 140, 61, 0.1), rgba(21, 101, 192, 0.1));
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 1.3rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    font-family: var(--font-heading);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* About Preview */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.about-img-main:hover img {
    transform: scale(1.05);
}

.about-img-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-lg);
}

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

.about-experience {
    position: absolute;
    top: -20px;
    left: -20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.exp-text {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.exp-sub {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

.about-content p {
    margin-bottom: 15px;
    color: var(--gray-700);
}

.about-features {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    color: var(--primary);
    font-size: 1.3rem;
    margin-top: 2px;
}

.feature-item h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    margin-bottom: 3px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
}

/* Vision & Mission */
.vision-mission {
    background: var(--gray-100);
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.vm-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.vm-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

.vision-card::before {
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.mission-card::before {
    background: linear-gradient(180deg, var(--secondary), var(--primary));
}

.vm-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.vision-card .vm-icon {
    background: rgba(27, 140, 61, 0.1);
    color: var(--primary);
}

.mission-card .vm-icon {
    background: rgba(21, 101, 192, 0.1);
    color: var(--secondary);
}

.vm-card h3 {
    margin-bottom: 15px;
}

.vm-card p {
    color: var(--gray-700);
    line-height: 1.8;
}

/* Programs Section */
.programs-section {
    background: var(--white);
}

.section-header {
    margin-bottom: 60px;
}

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

.program-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.program-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.program-number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 3rem;
    font-weight: 900;
    color: var(--gray-100);
    font-family: var(--font-heading);
    line-height: 1;
}

.program-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.program-card > p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.program-features {
    margin-bottom: 20px;
}

.program-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.program-features li i {
    color: var(--primary);
    font-size: 0.75rem;
}

.program-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.program-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* Beneficiaries */
.beneficiaries-section {
    background: var(--gray-100);
}

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

.beneficiary-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.beneficiary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.beneficiary-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(27, 140, 61, 0.1), rgba(21, 101, 192, 0.1));
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.5rem;
}

.beneficiary-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.beneficiary-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Values */
.values-section {
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.value-card {
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.value-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    color: var(--white);
    font-size: 1.3rem;
}

.value-card h4 {
    font-family: var(--font-primary);
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Geo Section */
.geo-section {
    padding: 0;
}

.geo-bg {
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.geo-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(27, 140, 61, 0.15), transparent);
    border-radius: 50%;
}

.geo-content {
    position: relative;
    z-index: 1;
}

.geo-content .light {
    color: var(--white);
}

.geo-content p.light {
    color: rgba(255,255,255,0.7);
    max-width: 700px;
    margin-bottom: 40px;
}

.geo-districts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.district-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.district-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

.district-card i {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.district-card h4 {
    color: var(--white);
    font-family: var(--font-primary);
    margin-bottom: 5px;
}

.district-card p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.geo-challenges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.challenge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(249, 168, 37, 0.15);
    border: 1px solid rgba(249, 168, 37, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Team */
.team-section {
    background: var(--gray-100);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

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

.team-img {
    position: relative;
    overflow: hidden;
    height: 260px;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: var(--transition-slow);
}

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

.team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.team-card:hover .team-social {
    opacity: 1;
    transform: translateY(0);
}

.team-social a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--primary);
    font-size: 0.9rem;
}

.team-info {
    padding: 20px 15px;
}

.team-info h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    margin-bottom: 5px;
}

.team-role {
    display: block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.team-info p {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.cta-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.8;
}

.cta-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
}

.footer-top {
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo {
    height: 95px;
    width: auto;
    margin-bottom: 20px;
    background: var(--white);
    padding: 10px 15px;
    border-radius: var(--radius);
}

.footer-about p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1.05rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--primary);
    width: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(27, 140, 61, 0.4);
}

/* Page Header */
.page-header {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(27, 140, 61, 0.2), transparent);
    border-radius: 50%;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 15px;
}

.page-header p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 600px;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.6);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    color: var(--accent);
}

.breadcrumb i {
    color: rgba(255,255,255,0.3);
    font-size: 0.7rem;
}

/* Contact Form */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--radius);
    margin-bottom: 15px;
    transition: var(--transition);
}

.contact-info-card:hover {
    background: rgba(27, 140, 61, 0.05);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.form-control {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(27, 140, 61, 0.1);
}

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

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

/* Impact Page */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.impact-stat-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}

.impact-stat-card .stat-number {
    font-size: 2.5rem;
    color: var(--primary);
}

/* Programs Page */
.program-detail {
    padding: 80px 0;
    border-bottom: 1px solid var(--gray-200);
}

.program-detail:nth-child(even) {
    background: var(--gray-100);
}

.program-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.program-detail:nth-child(even) .program-detail-grid {
    direction: rtl;
}

.program-detail:nth-child(even) .program-detail-grid > * {
    direction: ltr;
}

.program-detail-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.program-detail-img img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Selection */
::selection {
    background: rgba(27, 140, 61, 0.2);
    color: var(--dark);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark);
    color: var(--white);
    padding: 15px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    opacity: 0;
    transition: var(--transition);
    font-size: 0.95rem;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

/* ============================================
   GALLERY PAGE
   ============================================ */

/* Filter Bar — sticky pill navigation */
.gallery-filter-bar {
    background: var(--white);
    padding: 28px 0;
    position: sticky;
    top: 70px;
    z-index: 90;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border-bottom: 1px solid var(--gray-200);
}

.gallery-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid transparent;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn i {
    font-size: 0.85rem;
    opacity: 0.7;
    transition: var(--transition);
}

.filter-btn:hover {
    background: rgba(27, 140, 61, 0.08);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(27, 140, 61, 0.12);
}

.filter-btn:hover i {
    opacity: 1;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 8px 22px rgba(27, 140, 61, 0.32);
    border-color: transparent;
}

.filter-btn.active i {
    opacity: 1;
}

/* Gallery Section + Grid */
.gallery-section {
    background: var(--gray-100);
    padding: 60px 0 100px;
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, var(--white), transparent);
    pointer-events: none;
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 26px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    border-left: 4px solid var(--primary);
}

.gallery-meta-text {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.gallery-count strong {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-right: 4px;
}

.gallery-meta-divider {
    width: 1px;
    height: 22px;
    background: var(--gray-300);
}

.gallery-meta-label {
    font-weight: 600;
    color: var(--gray-800);
}

.gallery-meta-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-600);
    font-style: italic;
}

.gallery-meta-hint i {
    color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    position: relative;
    z-index: 1;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    background: var(--gray-200);
    will-change: transform;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Gradient overlay with caption */
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.9) 100%);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Magnify icon centered on hover */
.gallery-item::after {
    content: "\f00e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.4);
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.95);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 3;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(27, 140, 61, 0.95);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-radius: 50px;
    margin-bottom: 10px;
    width: fit-content;
    backdrop-filter: blur(6px);
}

.gallery-item-overlay h4 {
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Color-coded category tags */
.gallery-item[data-category="education"] .gallery-tag { background: var(--primary); }
.gallery-item[data-category="empowerment"] .gallery-tag { background: var(--secondary); }
.gallery-item[data-category="fgm"] .gallery-tag { background: var(--accent-dark); }
.gallery-item[data-category="swash"] .gallery-tag { background: #00838F; }
.gallery-item[data-category="visits"] .gallery-tag { background: #6A1B9A; }

/* "See More" CTA card */
.gallery-cta {
    margin-top: 70px;
    position: relative;
    z-index: 1;
}

.gallery-cta-inner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(27, 140, 61, 0.25);
    position: relative;
    overflow: hidden;
}

.gallery-cta-inner::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
    border-radius: 50%;
}

.gallery-cta-inner::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(249, 168, 37, 0.2), transparent 70%);
    border-radius: 50%;
}

.gallery-cta-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 2rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.35);
    position: relative;
    z-index: 1;
    animation: pulse 2.5s ease-in-out infinite;
}

.gallery-cta h3 {
    color: var(--white);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.gallery-cta p {
    color: rgba(255,255,255,0.92);
    max-width: 620px;
    margin: 0 auto 32px;
    line-height: 1.7;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.gallery-cta .btn {
    position: relative;
    z-index: 1;
    background: var(--white);
    color: var(--primary);
}

.gallery-cta .btn:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 18, 0.96);
    backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 20px;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lightboxIn 0.4s cubic-bezier(0.34, 1.36, 0.64, 1);
}

@keyframes lightboxIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#lightboxImage {
    max-width: 100%;
    max-height: 78vh;
    border-radius: var(--radius);
    box-shadow: 0 25px 70px rgba(0,0,0,0.6);
    object-fit: contain;
    display: block;
}

.lightbox-caption {
    text-align: center;
    color: var(--white);
    margin-top: 22px;
    max-width: 600px;
}

.lightbox-caption .gallery-tag {
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.lightbox-caption h4 {
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.25);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 100000;
}

.lightbox-close {
    top: 30px;
    right: 30px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-close:hover {
    background: var(--danger);
    border-color: var(--danger);
    transform: rotate(90deg) scale(1.1);
}

.lightbox-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* ============================================
   IMPACT PAGE — Story Scroller (horizontal)
   ============================================ */
.story-scroller-wrap {
    position: relative;
    margin-top: 20px;
}

.story-scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 10px 4px 24px;
    margin: 0 -4px;
}

.story-scroller::-webkit-scrollbar { display: none; }

.story-card {
    position: relative;
    flex: 0 0 320px;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    scroll-snap-align: start;
    background: var(--gray-200);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    cursor: pointer;
}

.story-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.2);
}

.story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.story-card:hover img {
    transform: scale(1.06);
}

.story-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.85) 100%);
    color: var(--white);
}

.story-tag {
    display: inline-block;
    width: fit-content;
    padding: 4px 12px;
    background: rgba(27,140,61,0.95);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 10px;
    backdrop-filter: blur(6px);
}

.story-card-overlay h4 {
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.25;
}

.story-card-overlay p {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* Scroll arrows */
.scroller-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 5;
}

.scroller-prev { left: -10px; }
.scroller-next { right: -10px; }

.scroller-arrow:hover:not(.disabled) {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 12px 28px rgba(27,140,61,0.4);
}

.scroller-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Progress bar under scroller */
.scroller-progress {
    height: 4px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 60px 0;
}

.scroller-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.2s ease;
}

@media (max-width: 768px) {
    .story-card { flex: 0 0 260px; }
    .scroller-arrow { display: none; }
    .scroller-progress { margin: 8px 20px 0; }
}

@media (max-width: 480px) {
    .story-card { flex: 0 0 240px; }
}

/* ============================================
   PUBLICATIONS PAGE
   ============================================ */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 26px;
}

.publication-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.publication-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.publication-icon {
    height: 130px;
    background: linear-gradient(135deg, #E53935 0%, #B71C1C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3.2rem;
    position: relative;
    overflow: hidden;
}

.publication-icon::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 70%);
    border-radius: 50%;
}

.publication-body {
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.publication-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(229, 57, 53, 0.1);
    color: #C62828;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-radius: 50px;
    margin-bottom: 12px;
    width: fit-content;
}

.publication-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
}

.publication-card p {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

.publication-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    padding: 12px 0;
    margin-bottom: 18px;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 0.82rem;
}

.publication-meta i {
    color: var(--primary);
    margin-right: 4px;
}

.publication-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.publication-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.85rem;
}

.empty-publications {
    text-align: center;
    padding: 80px 20px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
}

.empty-publications-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: 0 12px 30px rgba(27,140,61,0.25);
}

.empty-publications h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

.empty-publications p {
    color: var(--gray-600);
    max-width: 480px;
    margin: 0 auto;
}

.empty-publications a {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   CONTENT LAYOUTS — shared across about / programs / impact
   ============================================ */

/* --- Split section (about.html "Our Approach") --- */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.split-image img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
    transition: var(--transition-slow);
}

.split-image:hover img {
    transform: scale(1.04);
}

/* reverse → image sits on the left on desktop */
.split-grid.reverse .split-image {
    order: -1;
}

/* --- Program quick-nav pills (programs.html) --- */
.program-nav-pills {
    background: var(--white);
    padding: 18px 0;
    position: sticky;
    top: 68px;
    z-index: 90;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--gray-200);
}

.pills-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.pill i {
    color: var(--primary);
    transition: var(--transition);
}

.pill:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(27, 140, 61, 0.25);
}

.pill:hover i {
    color: var(--white);
}

/* --- Program mini gallery (programs.html) --- */
.program-mini-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 45px;
}

.program-mini-gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: block;
}

.program-mini-gallery img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* --- Program quotes (programs.html) --- */
.program-quote {
    margin-top: 28px;
    padding: 22px 28px;
    border-left: 4px solid var(--primary);
    background: var(--gray-100);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--gray-700);
    font-size: 1.05rem;
    line-height: 1.7;
    position: relative;
}

.program-quote::before {
    content: '\201C';
    font-family: var(--font-heading);
    font-size: 2.6rem;
    color: var(--primary);
    opacity: 0.25;
    position: absolute;
    top: 6px;
    left: 12px;
    line-height: 1;
}

.primary-quote   { border-left-color: var(--primary); }
.secondary-quote { border-left-color: var(--secondary); }
.secondary-quote::before { color: var(--secondary); }
.accent-quote    { border-left-color: var(--accent); }
.accent-quote::before { color: var(--accent); }

/* --- Program / impact cards WITH a header image (impact.html) --- */
.program-card.has-image {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.program-card-img {
    height: 210px;
    overflow: hidden;
    background: var(--gray-200);
}

.program-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    display: block;
}

.program-card.has-image:hover .program-card-img img {
    transform: scale(1.06);
}

.program-card-body {
    padding: 30px 28px;
    position: relative;
    flex: 1;
}

.program-card.has-image .program-icon {
    margin-top: -55px;
    position: relative;
    z-index: 2;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
}

/* --- Beneficiary cards WITH a photo (impact.html) --- */
.beneficiary-card.has-photo {
    padding: 0;
    overflow: hidden;
}

.beneficiary-photo {
    height: 190px;
    overflow: hidden;
    background: var(--gray-200);
}

.beneficiary-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: var(--transition-slow);
    display: block;
}

.beneficiary-card.has-photo:hover .beneficiary-photo img {
    transform: scale(1.06);
}

.beneficiary-card.has-photo .beneficiary-icon {
    margin: -35px auto 14px;
    position: relative;
    z-index: 2;
    border: 4px solid var(--white);
    background: var(--white);
}

.beneficiary-card.has-photo h3 {
    padding: 0 22px;
}

.beneficiary-card.has-photo p {
    padding: 0 22px 30px;
}
