/* ============================================================
   MACWO — Mother and Child Welfare Organisation
   Main Stylesheet
   Theme: Deep Magenta + Peach Orange + Maroon top bar
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
    --primary: #A8005C;
    --primary-dark: #84004A;
    --primary-light: #C94A8A;
    --accent: #F6B26B;
    --accent-dark: #D98A3A;
    --accent-deep: #B85C1A;
    --navy: #6E1F4A;
    --maroon: #5C0A0F;
    --dark: #1a2332;
    --gray: #6b7280;
    --light-gray: #FDF2F8;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    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; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { color: var(--gray); margin-bottom: 1rem; }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title > span {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.section-title h2 { margin-bottom: 1rem; }
.section-title p { max-width: 750px; margin: 0 auto; }

section { padding: 80px 0; }
.section-alt { background: var(--light-gray); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: var(--dark); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-outline-dark { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: var(--maroon);
    color: var(--white);
    font-size: 0.85rem;
    padding: 10px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.top-info { display: flex; gap: 20px; flex-wrap: wrap; }
.top-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
}
.top-info span i { color: var(--accent); }
.top-info span a { color: var(--white); }
.top-info span a:hover { color: var(--accent); }

.top-social { display: flex; gap: 14px; }
.top-social a { color: var(--white); }
.top-social a:hover { color: var(--accent); }

/* ============================================================
   HEADER
   ============================================================ */
.main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.main-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    gap: 20px;
}

/* ---------- Logo (header) ---------- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.logo-img {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 10px;
    background: transparent;
}
.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    font-family: 'Playfair Display', serif;
    flex-shrink: 0;
}
.logo-text strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
    line-height: 1.15;
}
.logo-text small {
    display: block;
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--gray);
    line-height: 1.2;
    margin-top: 2px;
}

/* ---------- Navigation ---------- */
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    display: block;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    border-radius: 8px;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: rgba(168,0,92,0.10);
}

.has-dropdown { position: relative; }
.has-dropdown .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 260px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 20;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { padding: 10px 16px; font-size: 0.87rem; }
.dropdown li a:hover { background: var(--light-gray); }

.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-cta .btn { padding: 10px 22px; font-size: 0.85rem; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--dark);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(132,0,74,0.90), rgba(168,0,92,0.78)),
        url('assets/images/44.jpeg') center/cover;
    color: var(--white);
    padding: 120px 0 80px;
}
.hero-content { max-width: 820px; color: var(--white); }
.hero-content h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero-content h1 span { color: var(--accent); }
.hero-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 680px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badge {
    display: inline-block;
    background: rgba(246,178,107,0.22);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar { background: var(--primary); padding: 50px 0; color: var(--white); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.stat-item h3 {
    font-size: 2.75rem;
    color: var(--accent);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
}
.stat-item p { color: rgba(255,255,255,0.9); margin: 0; font-size: 0.95rem; font-weight: 500; }

/* ============================================================
   CARDS
   ============================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(168,0,92,0.10);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}
.card h3 { margin-bottom: 0.75rem; }
.card p { font-size: 0.95rem; margin-bottom: 1rem; }
.card-link { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.card-link i { transition: var(--transition); margin-left: 4px; }
.card-link:hover i { transform: translateX(5px); }

/* ---------- Card with Image (Main Sectors) ---------- */
.card-image {
    width: calc(100% + 56px);
    height: 200px;
    overflow: hidden;
    margin: -36px -28px 1.25rem -28px;
    border-radius: var(--radius) var(--radius) 0 0;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.card:hover .card-image img { transform: scale(1.05); }

/* ============================================================
   SPLIT SECTIONS
   ============================================================ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.split-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.split-content h2 { margin-bottom: 1.25rem; }
.split-content .lead { font-size: 1.1rem; color: var(--primary); font-weight: 500; }
.feature-list { margin: 1.5rem 0; }
.feature-list li { display: flex; gap: 12px; margin-bottom: 12px; color: var(--gray); }
.feature-list i { color: var(--primary); margin-top: 5px; flex-shrink: 0; }

/* ============================================================
   PROGRAM BLOCKS
   ============================================================ */
.program-section { padding: 60px 0; }
.program-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}
.program-block:nth-child(even) .program-image { order: 2; }
.program-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.program-image img { width: 100%; height: 400px; object-fit: cover; }
.program-content .tag {
    display: inline-block;
    background: rgba(246,178,107,0.18);
    color: var(--accent-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.program-content h3 { margin-bottom: 1rem; font-size: 1.75rem; }
.program-content ul { margin-top: 1.25rem; }
.program-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--gray);
}
.program-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0; top: 2px;
    color: var(--primary);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 70px 0;
    text-align: center;
    border-radius: var(--radius);
    margin: 40px 0;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p {
    color: rgba(255,255,255,0.9);
    max-width: 680px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
    background:
        linear-gradient(135deg, rgba(132,0,74,0.92), rgba(168,0,92,0.82)),
        url('assets/images/44.jpeg') center/cover;
    color: var(--white);
    padding: 100px 0 70px;
    text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.9); max-width: 750px; margin: 0 auto; font-size: 1.1rem; }
.breadcrumb { display: flex; justify-content: center; gap: 10px; margin-top: 1.5rem; font-size: 0.9rem; }
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,0.6); }

/* ============================================================
   PARTNERS MARQUEE
   ============================================================ */
.partners-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 1rem 0 2rem;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.partners-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: partners-scroll 30s linear infinite;
}
.partners-marquee:hover .partners-track { animation-play-state: paused; }

.partner-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.6rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.partner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.partner-item i {
    font-size: 1.1rem;
    color: var(--accent);
}

@keyframes partners-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(168,0,92,0.10);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.alert { padding: 14px 20px; border-radius: 10px; margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.alert-error { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; }
.contact-info-card {
    background: var(--primary);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
}
.contact-info-card h3 { color: var(--white); margin-bottom: 1.5rem; }
.contact-info-card p { color: rgba(255,255,255,0.85); }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item i {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}
.contact-item strong { display: block; font-size: 0.95rem; color: var(--white); margin-bottom: 2px; }
.contact-item span { color: rgba(255,255,255,0.8); font-size: 0.9rem; word-break: break-word; }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}
.team-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.team-card img { width: 100%; height: 280px; object-fit: cover; }
.team-info { padding: 22px; }
.team-info h4 { font-family: 'Poppins', sans-serif; font-size: 1.05rem; margin-bottom: 4px; color: var(--primary); }
.team-info span { color: var(--primary); font-size: 0.85rem; font-weight: 600; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.testimonial {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
}
.testimonial::before {
    content: '\201C';
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: rgba(168,0,92,0.15);
    position: absolute;
    top: 5px; left: 20px;
    line-height: 1;
}
.testimonial p { position: relative; z-index: 1; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 1.5rem; }
.testimonial-author .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.testimonial-author strong { display: block; font-size: 0.95rem; color: var(--primary); }
.testimonial-author span { color: var(--gray); font-size: 0.82rem; }

/* ============================================================
   NEWS
   ============================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
}
.news-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
    z-index: 2;
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.news-card:hover::before { transform: scaleX(1); }

/* Image */
.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.news-card:hover img {
    transform: scale(1.05);
}

/* Placeholder when admin leaves image blank — brand magenta */
.news-card > div[style*="height:200px"],
.news-card > div[style*="height: 200px"] {
    height: 220px !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--white) !important;
}

/* Body */
.news-body {
    padding: 26px 24px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Meta row (date + category) */
.news-meta {
    display: flex;
    gap: 18px;
    font-size: 0.82rem;
    color: var(--gray);
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.news-meta i {
    color: var(--primary);
    font-size: 0.85rem;
}

/* Title */
.news-body h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.45;
    color: var(--primary);
    transition: var(--transition);
}
.news-card:hover .news-body h4 {
    color: var(--primary-dark);
}

/* Excerpt */
.news-body p {
    font-size: 0.93rem;
    color: var(--gray);
    margin-bottom: 1.25rem;
    line-height: 1.65;
    flex: 1;
}

/* Read More link */
.news-body .card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    align-self: flex-start;
    position: relative;
    padding-bottom: 2px;
}
.news-body .card-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1.5px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.news-body .card-link:hover::after { width: 100%; }
.news-body .card-link i {
    transition: transform 0.3s ease;
    margin-left: 2px;
}
.news-body .card-link:hover i { transform: translateX(5px); }

/* Empty state */
.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;
    background: var(--light-gray);
    border: 2px dashed #F0B8D5;
    border-radius: var(--radius);
}
.news-empty i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}
.news-empty p {
    color: var(--gray);
    margin: 0;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(92,10,15,0.85), transparent 60%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: var(--white);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;
    background: var(--light-gray);
    border: 2px dashed #F0B8D5;
    border-radius: var(--radius);
}
.gallery-empty i { font-size: 3rem; color: var(--primary); margin-bottom: 15px; display: block; }
.gallery-empty a { color: var(--primary); font-weight: 700; }

/* ============================================================
   DONATE
   ============================================================ */
.donate-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 1.5rem;
}
.amount-btn {
    padding: 16px;
    border: 2px solid var(--border);
    background: var(--white);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    color: var(--dark);
}
.amount-btn:hover,
.amount-btn.selected {
    border-color: var(--primary);
    background: rgba(168,0,92,0.10);
    color: var(--primary);
}
.donate-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section { background: var(--dark); padding: 60px 0; color: var(--white); }
.newsletter-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.newsletter-text h3 { color: var(--white); margin-bottom: 0.5rem; }
.newsletter-text p { color: rgba(255,255,255,0.7); margin: 0; }
.newsletter-form { display: flex; gap: 12px; }
.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 50px;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer { background: #5A1620; color: rgba(255,255,255,0.75); padding: 70px 0 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 50px;
}

/* Footer logo */
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.footer-logo .logo-img {
    height: 38px;
    width: 38px;
    max-width: 38px;
    object-fit: contain;
    background: rgba(255,255,255,0.95);
    padding: 4px 6px;
    border-radius: 7px;
}
.footer-logo .logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}
.footer-logo .logo-text strong {
    color: var(--white);
    font-size: 1.05rem;
    letter-spacing: 0.6px;
}
.footer-logo .logo-text small { color: rgba(255,255,255,0.5); font-size: 0.62rem; }

.footer-col p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin: 1rem 0; }
.footer-col h4 {
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 5px; }
.footer-col ul li a i { color: var(--accent); font-size: 0.75rem; }

.footer-social { display: flex; gap: 12px; margin-top: 1rem; }
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }

.contact-info li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 10px;
    line-height: 1.5;
    word-break: break-word;
}
.contact-info li i {
    color: var(--accent);
    margin-top: 5px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}
.contact-info li a,
.contact-info li span { color: rgba(255,255,255,0.75); }
.contact-info li a:hover { color: var(--accent); }

/* ---------- Footer bottom bar — dark orange ---------- */
.footer-bottom {
    background: var(--accent-deep);
    border-top: none;
    padding: 22px 0;
    margin-top: 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.footer-bottom p {
    color: rgba(255,255,255,0.95);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
}
.footer-bottom ul { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom ul li a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}
.footer-bottom ul li a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--white);
    transition: width 0.3s ease;
}
.footer-bottom ul li a:hover {
    color: var(--white);
}
.footer-bottom ul li a:hover::after { width: 100%; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }

/* ============================================================
   IMPACT TABLE
   ============================================================ */
.impact-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.impact-table thead { background: var(--primary); color: var(--white); }
.impact-table th,
.impact-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
    vertical-align: top;
}
.impact-table th { font-weight: 600; }
.impact-table tbody tr:hover { background: rgba(168,0,92,0.04); }
.impact-table td:first-child { font-weight: 600; color: var(--primary); }

/* ============================================================
   ORGANOGRAM
   ============================================================ */
.organogram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 40px 0;
}
.organogram-top {
    background: var(--primary);
    color: var(--white);
    padding: 18px 40px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}
.organogram-line { width: 2px; height: 30px; background: var(--border); }
.organogram-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}
.pillar {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.pillar:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); }
.pillar h4 {
    color: var(--primary);
    margin-bottom: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.pillar ul li {
    font-size: 0.88rem;
    color: var(--gray);
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
}
.pillar ul li:last-child { border-bottom: none; }

/* ============================================================
   VALUES GRID
   ============================================================ */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.value-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value-card i { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; display: block; }
.value-card h4 { font-family: 'Poppins', sans-serif; font-size: 1.05rem; margin-bottom: 0.75rem; color: var(--primary); }
.value-card p { font-size: 0.9rem; margin: 0; }

/* ============================================================
   MEDIA MANAGER (admin pages)
   ============================================================ */
.media-manager { max-width: 1000px; margin: 0 auto; }

.admin-card {
    background: var(--white);
    border: 1px solid #F5D5E5;
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}
.admin-card h3 { margin-bottom: 10px; }
.admin-card h3 i { color: var(--primary); margin-right: 8px; }

.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-logo-preview {
    max-width: 220px;
    max-height: 100px;
    object-fit: contain;
    margin: 15px 0 20px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.admin-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
}
.admin-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #FDF2F8;
    border: 1px solid #F5D5E5;
}
.admin-gallery-item img { width: 100%; height: 150px; object-fit: cover; }
.delete-media {
    display: block;
    text-align: center;
    padding: 8px;
    background: #fff0f0;
    color: #a12626;
    font-size: 0.85rem;
    font-weight: 600;
}
.delete-media:hover { background: #a12626; color: #fff; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .split,
    .contact-grid,
    .newsletter-inner,
    .program-block { grid-template-columns: 1fr; gap: 40px; }

    .program-block:nth-child(even) .program-image { order: 0; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .organogram-pillars { grid-template-columns: 1fr; }
    .admin-grid { grid-template-columns: 1fr; }

    .menu-toggle { display: block; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--white);
        padding: 80px 24px 30px;
        box-shadow: var(--shadow-lg);
        transition: right 0.4s ease;
        overflow-y: auto;
        z-index: 1001;
    }
    .main-nav.open { right: 0; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav a { padding: 14px 12px; border-bottom: 1px solid var(--border); }
    .has-dropdown .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        min-width: unset;
        display: none;
    }
    .has-dropdown.open .dropdown { display: block; }
}

@media (max-width: 640px) {
    section { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .top-info { font-size: 0.78rem; gap: 12px; }
    .newsletter-form { flex-direction: column; }
    .footer-bottom-inner { justify-content: center; text-align: center; }
    .footer-bottom ul { flex-wrap: wrap; justify-content: center; }
    .hero { min-height: 70vh; }
    .stat-item h3 { font-size: 2.2rem; }
    .cta-banner { padding: 50px 24px; }

    /* Smaller header logo on mobile */
    .logo-img {
        width: 36px;
        height: 36px;
        max-width: 36px;
        max-height: 36px;
    }
    .logo-mark {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        border-radius: 10px;
    }
    .logo-text strong { font-size: 1rem; }
    .logo-text small { display: none; }
    .header-inner { padding: 6px 16px; }

    /* Footer logo mobile */
    .footer-logo .logo-img {
        height: 32px;
        width: 32px;
        max-width: 32px;
    }
    .footer-logo .logo-mark {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        border-radius: 9px;
    }

    /* Slightly smaller sector card images */
    .card-image { height: 170px; }

    /* News card adjustments on mobile */
    .news-card img { height: 190px; }
    .news-body { padding: 22px 20px 24px; }
}