/* 
  Nahwera Foundation Theme Styles
  Values based on provided image theme (Dark Purple, Accents of Yellow/Red, Light text)
*/

:root {
    /* Color Palette derived from logo */
    --clr-primary: #FFFFFF;
    /* Clean white background */
    --clr-primary-light: #F8F9FA;
    /* Off-white for cards/sections */
    --clr-accent: #FFC107;
    /* Golden yellow */
    --clr-secondary: #D32F2F;
    /* Deep red */
    --clr-brand-dark: #1E0A2D;
    /* Deep dark purple for headers/text accents */

    /* Text Colors */
    --text-light: #FFFFFF;
    --text-muted: #6C757D;
    --text-dark: #333333;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Variables */
    --transition: all 0.3s ease;
    --radius: 8px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Lighter shadow for white theme */
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-primary);
    color: var(--text-dark);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--clr-brand-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
}

.section {
    padding: 5rem 0;
}

.text-accent {
    color: var(--clr-accent);
}

/* Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--clr-secondary);
    color: #fff;
}

.btn-primary:hover {
    background-color: #B71C1C;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

.btn-outline:hover {
    background-color: var(--clr-accent);
    color: var(--clr-primary);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--clr-brand-dark);
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--clr-accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Margin Utilities */
.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.bg-dark {
    background-color: #170722;
    color: var(--text-light);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4 {
    color: var(--text-light);
}

.bg-light {
    background-color: var(--clr-primary-light);
}

/* Header & Navigation */
.header {
    position: absolute;
    top: 36px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    backdrop-filter: blur(0);
    border-bottom: none !important;
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.header.scrolled .logo-img {
    height: 50px;
}

@media (max-width: 480px) {
    .logo-img {
        height: 45px;
    }

    .header.scrolled .logo-img {
        height: 40px;
    }
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: #FFFFFF;
    /* White links for the hero section */
    position: relative;
}

.header.scrolled .nav-link {
    color: #333333;
    /* Clean dark gray for readability on white */
}

.header.scrolled .nav-link:hover {
    color: var(--clr-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--clr-accent);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: #FFFFFF;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-donate {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--clr-brand-dark);
        padding: 6rem 1.5rem 2rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .nav-link {
        font-size: 1.1rem;
        color: #fff !important;
        display: block;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link.active {
        color: var(--clr-accent) !important;
    }
}


.header.scrolled .mobile-toggle {
    color: var(--clr-brand-dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background-color: var(--clr-brand-dark);
    /* Fallback */
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: slideAnimation 24s infinite;
}

/* 4 Slides - 6s each (24s total) */
.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 6s;
}

.slide:nth-child(3) {
    animation-delay: 12s;
}

.slide:nth-child(4) {
    animation-delay: 18s;
}

@keyframes slideAnimation {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    5% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    30% {
        opacity: 0;
        transform: scale(1);
    }

    100% {
        opacity: 0;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    /* Darker black overlay for high contrast */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #fff;
    /* Keep hero title white over image */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #f8f9fa;
    /* Keep hero subtitle white over image */
    margin-bottom: 2.5rem;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* About Us Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.about-card {
    background-color: var(--clr-primary-light);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--clr-accent);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateX(5px);
}

.highlight-card {
    border-left-color: var(--clr-secondary);
    background: linear-gradient(135deg, var(--clr-primary-light) 0%, #FFE0E0 100%);
}

.about-icon {
    font-size: 2rem;
    color: var(--clr-accent);
    margin-bottom: 1rem;
}

.highlight-card .about-icon {
    color: var(--clr-secondary);
}

.core-values {
    background-color: var(--clr-primary-light);
    padding: 2.5rem;
    border-radius: var(--radius);
    height: 100%;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.values-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.values-list i {
    color: var(--clr-accent);
    font-size: 1.25rem;
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background-color: #FFFFFF;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensures equal height in grid */
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 193, 7, 0.3);
}

.program-img {
    height: 250px;
    position: relative;
    overflow: hidden;
    background-color: #e2e8f0;
    /* Soft gray for loading state */
    flex-shrink: 0;
}

.program-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.program-card:hover .program-img img {
    transform: scale(1.1);
}

.program-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(30, 10, 45, 0.4));
    z-index: 1;
}

.program-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-content h3 {
    color: var(--clr-accent);
    margin-bottom: 0.5rem;
}

.program-content p {
    margin-top: auto;
    /* Forces content to stay aligned if needed, or just let flex-grow do the work */
}

/* Get Involved Section */
.involvement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.involve-card {
    background-color: var(--clr-primary-light);
    padding: 3rem;
    border-radius: var(--radius);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.involve-card p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.highlight-involve {
    background: linear-gradient(135deg, var(--clr-primary-light) 0%, rgba(211, 47, 47, 0.05) 100%);
    border: 1px solid rgba(211, 47, 47, 0.2);
}

.membership-categories {
    text-align: center;
}

.membership-categories h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.categories-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.category-badge {
    padding: 0.8rem 1.5rem;
    background-color: rgba(30, 10, 45, 0.05);
    border: 1px solid rgba(30, 10, 45, 0.1);
    border-radius: 50px;
    font-weight: 500;
    color: var(--clr-brand-dark);
}

/* Donate Section */
.donate-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .donate-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.donate-info p {
    color: var(--clr-brand-dark) !important;
}

.donate-lead {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--clr-accent);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.impact-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--clr-accent);
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.stat i {
    font-size: 2rem;
    color: var(--text-light);
    background-color: var(--clr-primary-light);
    padding: 1rem;
    border-radius: 50%;
}

.donate-form-container {
    background-color: var(--clr-primary-light);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 5px solid var(--clr-secondary);
}

@media (max-width: 576px) {
    .donate-form-container {
        padding: 1.5rem;
    }
}

.amount-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.amount-btn {
    flex: 1;
    min-width: 80px;
    position: relative;
    cursor: pointer;
}

.amount-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.amount-btn span {
    display: block;
    padding: 0.8rem;
    text-align: center;
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
    transition: var(--transition);
    font-weight: 600;
    color: var(--clr-brand-dark);
}

.amount-btn input[type="radio"]:checked+span {
    background-color: var(--clr-accent);
    color: var(--clr-brand-dark);
    border-color: var(--clr-accent);
}

.amount-btn span {
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .amount-btn {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--clr-accent);
}

.alert-success {
    background-color: rgba(46, 125, 50, 0.2);
    border: 1px solid #2e7d32;
    color: #81c784;
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1.5rem;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr 2fr;
    }
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 576px) {
    .contact-item {
        gap: 1rem;
    }
}

.c-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--clr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links {
    margin-top: 3rem;
}

.social-links h4 {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: var(--clr-brand-dark);
    /* Use dark brand color for social icons on white background */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-light);
    /* Icon remains white */
}

.social-icons a:hover {
    background-color: var(--clr-accent);
    color: var(--clr-primary);
    transform: translateY(-3px);
}

/* Manual Donation Styles */
.donation-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.donation-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Human-coded border */
    min-width: 0;
    /* Prevents card from expanding beyond 1fr if content is wide */
}

.donation-card h3 {
    color: var(--clr-brand-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
}

.detail-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 700;
    color: var(--clr-brand-dark);
    font-family: var(--font-body);
}

.note-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff9e6;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #856404;
    border-left: 3px solid #ffc107;
}

.mobile-money-numbers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.number-pill {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--clr-brand-dark);
    border: 1px dashed rgba(0, 0, 0, 0.15);
    letter-spacing: 0.05em;
    font-family: var(--font-body);
    white-space: nowrap;
    /* Prevent wrapping on desktop */
}

.highlight-intro {
    font-size: 1.15rem;
    color: var(--clr-brand-dark) !important;
    line-height: 1.7;
    background: linear-gradient(120deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.05) 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.2);
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .donation-grid {
        grid-template-columns: 1fr;
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Footer */
.footer {
    background-color: #120417;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        text-align: left;
    }
}

.footer-logo {
    display: block;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links h4 {
    color: var(--clr-accent);
    margin-bottom: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--clr-accent);
}

.footer-legal {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 2rem;
}

/* Responsive specific */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--clr-primary);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-donate {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }
}

/* --- Multi-Page Expansion Styles --- */

/* Page Headers */
.page-header {
    background-color: var(--clr-brand-dark);
    padding: 120px 0 80px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.about-page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.73), rgba(0, 0, 0, 0.73)), url('images/main%20slider%202.jpg') center/cover;
}

.get-involved-header {
    background: linear-gradient(rgba(0, 0, 0, 0.73), rgba(0, 0, 0, 0.73)), url('images/IMG_20250912_170205_575.jpg') center/cover;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: #fff;
}

.page-header .lead {
    font-size: 1.25rem;
    color: var(--clr-accent);
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
}

/* Grids & Layouts */
.about-grid-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.vm-card {
    background: #fff;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 5px solid var(--clr-primary);
    transition: transform 0.3s ease;
}

.vm-card:hover {
    transform: translateY(-10px);
}

.vm-icon {
    font-size: 3.5rem;
    color: var(--clr-accent);
    margin-bottom: 1.5rem;
}

.values-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.value-item {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.value-head {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.value-head i {
    color: var(--clr-accent);
    font-size: 1.8rem;
}

.value-head h4 {
    margin: 0;
    color: var(--clr-primary);
    font-size: 1.3rem;
}

.value-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Membership Grid */
.membership-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.member-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 4rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.member-card:hover {
    border-color: var(--clr-accent);
}

.m-badge {
    position: absolute;
    top: 1.5rem;
    left: 2.5rem;
    background: var(--clr-accent);
    color: var(--clr-brand-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* info boxes */
.rights-obligations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.info-box {
    background: #fff;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.box-title {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    color: var(--clr-primary);
    font-size: 1.5rem;
}

.box-title i {
    color: var(--clr-accent);
}

.check-list {
    list-style: none;
}

.check-list li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    line-height: 1.5;
}

.check-list li i {
    color: var(--clr-accent);
    margin-top: 0.3rem;
}

/* Caution Box */
.caution-box {
    background: #fff;
    padding: 4rem;
    border-left: 12px solid #f44336;
    box-shadow: var(--shadow);
}

.caution-box h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #f44336;
    margin-bottom: 1.5rem;
}

.cessation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.c-item {
    background: rgba(244, 67, 54, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    border: 1px solid rgba(244, 67, 54, 0.1);
}

/* Address & Nature */
.address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.address-grid h3 {
    margin-bottom: 1.5rem;
    color: var(--clr-secondary);
}

.address-content p {
    color: #cbd5e0;
    margin-bottom: 1rem;
}

/* Responsive Overrides */
@media (max-width: 992px) {

    .about-grid-content,
    .vision-mission-grid,
    .rights-obligations-grid,
    .address-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-grid-content .content-image {
        order: -1;
    }
}

/* Nav Active State */
.nav-link.active {
    color: var(--clr-accent) !important;
}

.nav-link.active::after {
    width: 100% !important;
}

/* Misc Utilities */
.btn-white {
    background: #fff;
    color: var(--clr-primary);
}

.btn-white:hover {
    background: var(--clr-accent);
    color: #fff;
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.rounded {
    border-radius: var(--radius);
}

.shadow {
    box-shadow: var(--shadow);
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Contact Summary Card Fixes */
.contact-summary-card {
    background: #fff;
    padding: 3rem;
    border-radius: var(--radius);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.contact-info-mini {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem 4rem;
    margin-bottom: 2rem;
}

.contact-info-mini .contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contact-info-mini i {
    color: var(--clr-accent);
    font-size: 1.2rem;
}

.mini-grid {
    margin: 3rem 0;
}

.about-summary {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.summary-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--clr-brand-dark);
    margin-bottom: 3rem;
}

.page-section {
    padding: 100px 0;
}

/* Donate Page Specifics */
.donate-page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/main%20slider%203.jpg') center/cover;
}

.contact-page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/main%20slider%204.jpg') center/cover;
}

/* Donate Page Impact Items */
.impact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.impact-item-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Simpler, direct border instead of left-accent */
}

.impact-item-box i {
    font-size: 2rem;
    color: var(--clr-primary);
}

.impact-item-box h4 {
    margin-bottom: 0.3rem;
    color: var(--clr-brand-dark);
}

.impact-item-box p {
    font-size: 0.9rem;
    margin: 0;
}

/* Utilities Fixes */
.max-600 {
    max-width: 600px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.p-3 {
    padding: 3rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.text-muted {
    color: #718096;
}

/* Mobile Menu Dark Text Fix */
@media (max-width: 992px) {
    .nav-link {
        color: var(--clr-brand-dark) !important;
    }
}

/* Top Bar Styles */
.top-bar {
    background-color: #f2f2f2;
    border-bottom: 1px solid #ddd;
    padding: 2px 0;
    font-size: 0.85rem;
    color: var(--clr-brand-dark);
    position: relative;
    z-index: 1001;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 3rem;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 500;
}

.top-bar-info i {
    color: var(--clr-secondary);
    font-size: 1rem;
}

.top-bar-social {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 50px;
    padding-right: 15px;
    height: 36px;
    margin-top: -4px;
    margin-bottom: -4px;
}

.top-bar-social::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr-accent);
    transform: skewX(-25deg);
    transform-origin: top left;
    z-index: 1;
}

.top-bar-social a {
    position: relative;
    z-index: 2;
    margin-left: 1.1rem;
    color: var(--clr-brand-dark);
    font-size: 1rem;
}

.top-bar-social a:hover {
    color: var(--clr-secondary);
}

@media (max-width: 992px) {
    .top-bar-social {
        padding-right: 25px;
        margin-right: -25px;
        /* Pull slanted background to the absolute edge */
    }

    .top-bar-social::before {
        transform: skewX(-20deg);
        width: 150%;
        /* Ensure it covers the bleed */
        left: -10%;
    }
}


/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.alert-error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* Call Buttons Style */
.call-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Ensures buttons align with text above */
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.call-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.btn-call {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--clr-accent);
    color: var(--clr-brand-dark) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-call:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.btn-call i {
    font-size: 0.8rem;
}

.badge-currency {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(30, 10, 45, 0.05);
    color: var(--clr-brand-dark);
    border: 1px solid rgba(30, 10, 45, 0.1);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .top-bar-info {
        display: none;
        /* Hide info on small screens to save space */
    }

    .top-bar-container {
        justify-content: flex-end;
    }
}

/* --- Refined Membership Platform Styles --- */
.membership-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.member-card {
    background: #fff;
    padding: 2.5rem 2rem;
    padding-top: 4.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100% !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.member-card h3 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.member-card p {
    flex-grow: 1;
    margin-bottom: 2rem;
    color: var(--clr-text-light);
    line-height: 1.7;
}

.card-actions {
    margin-top: auto;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 4, 23, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    display: none !important;
    opacity: 0;
}

.modal-wrapper {
    width: 100%;
    max-width: 560px;
}

.modal-content {
    background: #fff;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.modal-close {
    position: absolute;
    top: 1.1rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #555;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(211, 47, 47, 0.12);
    color: var(--clr-secondary);
}

/* Form Box (modal body) */
.form-box {
    padding: 2rem 2.25rem 2.25rem;
}

.form-box h3 {
    font-size: 1.45rem;
    color: var(--clr-brand-dark);
    margin-bottom: 0.35rem;
    padding-right: 2.5rem;
    /* avoid overlap with close btn */
}

.form-box h3 .text-accent {
    color: var(--clr-secondary);
}

.form-box .modal-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Ensure form-group label looks polished inside modal */
.form-box .form-group {
    margin-bottom: 1.25rem;
}

.form-box .form-group label {
    display: block;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--clr-brand-dark);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.form-box .form-group input,
.form-box .form-group select,
.form-box .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #f9f9fb;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    color: var(--clr-brand-dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
    box-sizing: border-box;
}

.form-box .form-group input:focus,
.form-box .form-group select:focus,
.form-box .form-group textarea:focus {
    border-color: var(--clr-secondary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-box .form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.form-box .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .form-box .form-row {
        grid-template-columns: 1fr;
    }

    .form-box {
        padding: 1.25rem 1.25rem 1.5rem;
    }
}

/* Full-width block button */
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.share-dropdown {
    position: relative;
}

/* Share toggle button â€” compact icon pill */
.share-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--clr-brand-dark);
    background: #f4f4f6;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.share-toggle i {
    font-size: 0.75rem;
    color: var(--clr-secondary);
}

.share-toggle:hover {
    background: #ececf1;
    border-color: rgba(0, 0, 0, 0.18);
}

.share-dropdown.active .share-toggle {
    background: #ececf1;
    border-color: rgba(0, 0, 0, 0.2);
}

/* Dropdown panel */
.share-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #fff;
    min-width: 170px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
    border: 1px solid rgba(0, 0, 0, 0.07);
    padding: 0.5rem 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

/* Small label at the top of the dropdown */
.share-menu::before {
    content: 'Share via';
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #aaa;
    padding: 0.4rem 1rem 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 0.3rem;
}

.share-dropdown.active .share-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.share-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    color: var(--clr-brand-dark) !important;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s ease;
}

.share-link:hover {
    background: rgba(0, 0, 0, 0.04);
}

.share-link i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.share-link[data-social='whatsapp'] i {
    color: #25D366;
}

.share-link[data-social='facebook'] i {
    color: #1877F2;
}

.share-link[data-social='twitter'] i {
    color: #1DA1F2;
}

.share-link[data-social='linkedin'] i {
    color: #0077B5;
}

@media (max-width: 576px) {
    .card-actions {
        flex-direction: column;
    }

    .apply-btn,
    .share-dropdown,
    .share-toggle {
        width: 100%;
    }

    .member-card {
        padding-top: 5rem;
    }

    .m-badge {
        left: 1.5rem;
        top: 1.5rem;
    }
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #FFC107;
    /* var(--clr-accent) */
    color: #1E0A2D;
    /* var(--clr-brand-dark) */
    transform: translateY(-3px);
}

/* Events Section */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    background: var(--clr-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 480px; /* Fixed height constraint */
    border: 1px solid rgba(0,0,0,0.04);
}

.event-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.event-img { 
    width: 100%; 
    height: 220px; 
    flex-shrink: 0;
    overflow: hidden; 
    position: relative;
}

.event-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30,10,45,0.2), transparent);
    z-index: 1;
}

.event-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.4s ease; 
}

.event-card:hover .event-img img { 
    transform: scale(1.08); 
}

.event-content { 
    padding: 1.5rem 1.5rem 2rem 1.5rem; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-date { 
    font-size: 0.85rem; 
    color: var(--clr-accent); 
    font-weight: 600; 
    margin-bottom: 0.6rem; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
}

.event-content h3 { 
    font-family: var(--font-heading); 
    font-size: 1.25rem; 
    color: var(--clr-brand-dark); 
    margin-bottom: 0.75rem; 
    line-height: 1.4; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-content p { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    margin-bottom: 1.5rem; 
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    flex-grow: 1;
    line-height: 1.6;
}

.read-more { 
    align-self: flex-start;
    font-weight: 600; 
    color: var(--clr-brand-dark); 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    gap: 0.5rem; 
    transition: all 0.3s ease; 
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    background-color: var(--clr-primary-light);
    border: 1px solid rgba(0,0,0,0.05);
}

.read-more:hover { 
    color: var(--clr-primary); 
    background-color: var(--clr-secondary);
    border-color: var(--clr-secondary);
    transform: translateX(3px);
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(4px);
}

@media (max-width: 992px) { 
    .events-grid { grid-template-columns: repeat(2, 1fr); } 
}

@media (max-width: 768px) { 
    .events-grid { grid-template-columns: 1fr; } 
    .event-card { height: auto; min-height: 480px; }
}
