
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5530;
    --secondary-color: #d4a574;
    --accent-color: #8b4513;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

/* Logo Styles */
.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: var(--transition);
}

/* Mobile Responsive for Logo */
@media (max-width: 768px) {
    .logo-img {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 30px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .nav-logo a {
        gap: 0.5rem;
    }
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #1e3a21;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: #c1915e;
    transform: translateY(-2px);
}

/* ===============================
   SPLIT HERO SECTION
================================ */

.hero-split {
    padding: 120px 0 80px;
    background: #2c5530;
    color: #fff;
}

.hero-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

/* -------------------------------
   LEFT: ANIMATED VISUAL
-------------------------------- */

.hero-visual {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.6; }
}

/* Floating Icons */
.floating-icons span {
    position: absolute;
    font-size: 1.8rem;
    color: #fff;
    animation: float 6s ease-in-out infinite;
}

.floating-icons span:nth-child(1) {
    top: 20%;
    left: 15%;
}

.floating-icons span:nth-child(2) {
    bottom: 20%;
    right: 20%;
    animation-delay: 1.5s;
}

.floating-icons span:nth-child(3) {
    top: 10%;
    right: 30%;
    animation-delay: 3s;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* -------------------------------
   RIGHT: TEXT CONTENT
-------------------------------- */

.hero-text h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    margin: 15px 0;
}

.hero-text p {
    font-size: 1.1rem;
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* -------------------------------
   MOBILE RESPONSIVENESS
-------------------------------- */

@media (max-width: 768px) {
    .hero-split-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        height: 260px;
        margin-bottom: 20px;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* Sections */
section {
    padding: 80px 0;
}

.page-header {
    background-color: var(--background-light);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.intro-section {
    text-align: center;
}

.intro-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
}

/* ===== Mobile Navbar Toggle ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    height: 3px;
    width: 25px;
    background: var(--primary-color);
    margin: 4px 0;
    transition: 0.3s;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Stats Section */
.stats-section {
    background-color: var(--primary-color);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Tabs */
.option-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e1e5e9;
}

.tab-button {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-button.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}



/* Cards */
.membership-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-top: 4px solid var(--primary-color);
}

.category-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card ul {
    list-style: none;
    margin-top: 1rem;
}

.category-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-card li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Program Cards */
.program-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
}

.program-icon {
    font-size: 2.5rem;
}

.program-activities {
    list-style: none;
    margin-top: 1rem;
}

.program-activities li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.program-activities li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.value-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--secondary-color);
}

/* --- TEAM SECTION STYLES --- */

.team-section {
    padding: 60px 0;
    text-align: center;
    background-color: #f9f9f9; /* Light background for contrast */
}

.team-grid {
    display: grid;
    /* Create three columns, adjust based on the viewport size */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* 📸 Circular Photo Styling */
.member-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px; /* Center the photo and add bottom margin */
    overflow: hidden;
    border-radius: 50%; /* Makes the container circular */
    border: 5px solid #28a745; /* Green border color (adjust to your brand color) */
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5); /* Inner white shadow */
}

.member-photo img {
    /* Ensures the image fills the circular container */
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops the image to fit without distortion */
}

/* Text Styling */
.team-member h3.member-name {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 5px;
}

.team-member h4.member-role {
    font-size: 1.1em;
    color: #666;
    margin-top: 0;
    margin-bottom: 15px;
}

.team-member p {
    color: #777;
    font-size: 0.95em;
    margin-bottom: 20px;
}

/* 🟢 Button Styling */
.view-bio-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff; /* Primary blue button color (adjust if needed) */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.view-bio-btn:hover {
    background-color: #0056b3;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Result Messages */
.result-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-size: 1rem;
    line-height: 1.5;
}

.result-message.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.result-message.info {
    background-color: #cfe2ff;
    color: #084298;
    border: 1px solid #b6d4fe;
}

.result-message.error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

#completePaymentBtn:hover {
    background-color: #157347;
    transform: translateY(-2px);
    transition: all 0.2s;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-menu {
        display: none; /* You might want to add a mobile menu toggle */
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .program-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .option-tabs {
        flex-direction: column;
    }
}

/* Map Placeholder */
.map-placeholder {
    background-color: #f0f0f0;
    padding: 3rem;
    text-align: center;
    border-radius: var(--border-radius);
    color: var(--text-light);
}

/* Volunteer Areas */
.volunteer-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.area-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--secondary-color);
}


/* News Section Styles */
.news-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 1rem 0;
    border-bottom: 2px solid #e1e5e9;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Featured Story */
.featured-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--white), #f8f9fa);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.featured-image {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.featured-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.meta-info .date,
.meta-info .author,
.meta-info .read-time,
.meta-info .location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--accent-color);
}

/* Category Badges */
.category-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.featured-badge {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.success-badge {
    background: #28a745;
    color: white;
}

.program-badge {
    background: #007bff;
    color: white;
}

.event-badge {
    background: #ffc107;
    color: var(--text-dark);
}

.press-badge {
    background: #6f42c1;
    color: white;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin: 3rem 0;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), #4a7c59);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 4rem;
}

.newsletter-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form .form-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.newsletter-form button {
    white-space: nowrap;
}

.newsletter-note {
    font-size: 0.9rem;
    margin-top: 1rem;
    opacity: 0.8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    max-width: 900px;
    width: 90%;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    margin: 0;
    color: #198754;
    font-size: 1.5rem;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

.modal-message {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.modal-message.info {
    background-color: #e7f3ff;
    color: #0066cc;
    border: 1px solid #b3d7ff;
}

.modal-message.success {
    background-color: #d4f7e0;
    color: #155724;
    border: 1px solid #b8e6c9;
}

.modal-message.error {
    background-color: #ffe6e6;
    color: #721c24;
    border: 1px solid #f8d7da;
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.btn-modal {
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-modal {
    background-color: #198754;
    color: white;
}

.btn-modal:hover {
    background-color: #146c43;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.btn-modal.btn-secondary {
    background-color: #6c757d;
}

.btn-modal.btn-secondary:hover {
    background-color: #5a6268;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    
    #pesapalIframe {
        height: 500px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn-modal {
        width: 100%;
        justify-content: center;
    }
}

.single-article {
    padding: 2rem;
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 1rem 0;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-image {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.article-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2,
.article-content h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e1e5e9;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-link.facebook { background: #3b5998; }
.social-link.twitter { background: #1da1f2; }
.social-link.linkedin { background: #0077b5; }
.social-link.whatsapp { background: #25d366; }

.social-link:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Responsive Design for News */
@media (max-width: 768px) {
    .featured-story {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .featured-content h2 {
        font-size: 1.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .social-share {
        justify-content: center;
        text-align: center;
    }
    
    .featured-story,
    .news-card,
    .category-card,
    .value-card,
    .area-card {
        margin-left: 10px;
        margin-right: 10px;
    }
}

/* Additional Mobile Responsive Improvements */
@media (max-width: 480px) {
    .news-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-card {
        margin: 0 10px;
    }
    
    .featured-story {
        padding: 1.5rem;
        margin: 0 10px 2rem 10px;
    }
    
    .meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* --- BIOGRAPHY PAGE STYLES --- */
.biography-section {
    padding: 60px 0;
    min-height: 70vh; /* Ensure it takes up enough screen height */
}

.biography-section .container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#member-name-heading {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    border-bottom: 2px solid #3498db; /* A brand color underline */
    padding-bottom: 10px;
}

.bio-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 20px;
}

.bio-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #28a745; /* Matches the team grid border */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.bio-header h2 {
    font-size: 1.8em;
    color: #3498db;
    margin: 0;
}

.bio-text p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .bio-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Top Bar Styles */
.top-bar {
    background: linear-gradient(135deg, var(--primary-color), #4a7c59);
    color: white;
    padding: 8px 0;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
}

.top-bar-left i {
    margin-right: 8px;
    font-size: 12px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}


.top-bar-btn {
    color: #ffffff;
    text-decoration: none;

    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 600;

    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.1;

    background: #2c5530;
    border: 1px solid rgba(255,255,255,0.25);

    transition: background 0.2s ease, opacity 0.2s ease;
}

.top-bar-btn i {
    font-size: 11px;
}

.top-bar-btn:hover {
    background: #1e3a21;
    opacity: 0.95;
}


.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: white;
    color: #198754;
    transform: translateY(-2px);
}



/* Achievements Section */
.achievements-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.section-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.achievement-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-10px);
}

.achievement-icon {
    font-size: 40px;
    color: #198754;
    margin-bottom: 20px;
}

.achievement-card h3 {
    color: #333;
    margin-bottom: 15px;
}

.achievement-date {
    display: inline-block;
    background: #e9ecef;
    color: #666;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-top: 15px;
}

/*  Donation Section*/
.donation-section {
    padding: 80px 0;
    background: #ffffff; 
    color: var(--text-dark);
}


.donation-header {
    text-align: center;
    margin-bottom: 50px;
}

.donation-header h2 {
    color: white;
    font-size: 2.5rem;
}

.donation-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.donation-info {
    color: #333;
}

.donation-benefits {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.donation-benefits li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.donation-benefits i {
    color: #198754;
}

.payment-methods {
    margin-top: 40px;
}

.payment-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.payment-icon {
    text-align: center;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    width: 80px;
    transition: all 0.3s ease;
}

.payment-icon:hover {
    border-color: #198754;
    transform: translateY(-5px);
}

.payment-icon i {
    font-size: 24px;
    color: #198754;
    margin-bottom: 10px;
    display: block;
}

/* Donation Form */
.donation-form-container {
    color: #333;
}

.donation-form h3 {
    margin-bottom: 25px;
    color: #198754;
}

.quick-amounts {
    margin-bottom: 25px;
}

.quick-amounts h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #666;
}

.amount-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.amount-btn {
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    flex: 1;
    min-width: 80px;
}

.amount-btn:hover,
.amount-btn.active {
    background: #198754;
    color: white;
    border-color: #198754;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 15px;
    color: #666;
    font-weight: 600;
}

.input-with-icon input {
    padding-left: 50px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


.btn-donate {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
    border-radius: 8px;
}


.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

.secure-payment {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.secure-payment i {
    color: #198754;
    margin-right: 5px;
}

/* Result Message */
.result-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

.result-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #198754;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.redirect-message {
    margin: 20px 0;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar {
    background: linear-gradient(135deg, var(--primary-color), #4a7c59);
    color: white;
    padding: 8px 0;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 1000;
   }

    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .top-bar-left span {
        margin-right: 10px;
        margin-bottom: 5px;
        display: inline-block;
    }
    
    .top-bar-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .donation-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .payment-icons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

/* Stats Animation */
.stat-number {
    transition: all 0.5s ease;
}

    .status-wrapper {
        min-height: 80vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        background-color: #f8f9fa;
    }

    .status-card {
        background: white;
        padding: 40px;
        border-radius: 24px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.05);
        max-width: 500px;
        width: 100%;
        text-align: center;
    }

    .icon-circle {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 24px;
        font-size: 32px;
    }

    .success { background: #e8f5e9; color: #198754; }
    .error { background: #ffebee; color: #dc3545; }
    .pending { background: #fff8e1; color: #ffc107; }

    h1 { color: #1a1a1a; margin-bottom: 12px; font-weight: 800; }
    .status-msg { color: #6c757d; line-height: 1.6; margin-bottom: 30px; }

    .details-box {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 30px;
    }

    .detail-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        font-size: 0.95rem;
    }

    .detail-row:last-child { margin-bottom: 0; }

    .badge {
        padding: 4px 12px;
        border-radius: 50px;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .badge.completed { background: #198754; color: white; }
    .badge.failed { background: #dc3545; color: white; }

    .btn-home {
        display: block;
        background: #198754;
        color: white;
        text-decoration: none;
        padding: 14px;
        border-radius: 12px;
        font-weight: 600;
        transition: 0.3s;
    }

    .btn-home:hover { background: #146c43; transform: translateY(-2px); }

    .support-text { margin-top: 20px; font-size: 0.85rem; color: #adb5bd; }
    .support-text a { color: #198754; text-decoration: none; }

    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .animate-in { animation: fadeInUp 0.6s ease-out; }
/* Sections */
section {
    padding: 80px 0;
}

.page-header {
    background-color: var(--background-light);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.intro-section {
    text-align: center;
}

.intro-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
}

/* ===== Mobile Navbar Toggle ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    height: 3px;
    width: 25px;
    background: var(--primary-color);
    margin: 4px 0;
    transition: 0.3s;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Stats Section */
.stats-section {
    background-color: var(--primary-color);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Tabs */
.option-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e1e5e9;
}

.tab-button {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-button.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}



/* Cards */
.membership-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-top: 4px solid var(--primary-color);
}

.category-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card ul {
    list-style: none;
    margin-top: 1rem;
}

.category-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-card li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Program Cards */
.program-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
}

.program-icon {
    font-size: 2.5rem;
}

.program-activities {
    list-style: none;
    margin-top: 1rem;
}

.program-activities li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.program-activities li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.value-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--secondary-color);
}

/* --- TEAM SECTION STYLES --- */

.team-section {
    padding: 60px 0;
    text-align: center;
    background-color: #f9f9f9; /* Light background for contrast */
}

.team-grid {
    display: grid;
    /* Create three columns, adjust based on the viewport size */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* 📸 Circular Photo Styling */
.member-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px; /* Center the photo and add bottom margin */
    overflow: hidden;
    border-radius: 50%; /* Makes the container circular */
    border: 5px solid #28a745; /* Green border color (adjust to your brand color) */
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5); /* Inner white shadow */
}

.member-photo img {
    /* Ensures the image fills the circular container */
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops the image to fit without distortion */
}

/* Text Styling */
.team-member h3.member-name {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 5px;
}

.team-member h4.member-role {
    font-size: 1.1em;
    color: #666;
    margin-top: 0;
    margin-bottom: 15px;
}

.team-member p {
    color: #777;
    font-size: 0.95em;
    margin-bottom: 20px;
}

/* 🟢 Button Styling */
.view-bio-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff; /* Primary blue button color (adjust if needed) */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.view-bio-btn:hover {
    background-color: #0056b3;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Result Messages */
.result-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-size: 1rem;
    line-height: 1.5;
}

.result-message.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.result-message.info {
    background-color: #cfe2ff;
    color: #084298;
    border: 1px solid #b6d4fe;
}

.result-message.error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

#completePaymentBtn:hover {
    background-color: #157347;
    transform: translateY(-2px);
    transition: all 0.2s;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-menu {
        display: none; /* You might want to add a mobile menu toggle */
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .program-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .option-tabs {
        flex-direction: column;
    }
}

/* Map Placeholder */
.map-placeholder {
    background-color: #f0f0f0;
    padding: 3rem;
    text-align: center;
    border-radius: var(--border-radius);
    color: var(--text-light);
}

/* Volunteer Areas */
.volunteer-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.area-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--secondary-color);
}


/* News Section Styles */
.news-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 1rem 0;
    border-bottom: 2px solid #e1e5e9;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Featured Story */
.featured-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--white), #f8f9fa);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.featured-image {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.featured-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.meta-info .date,
.meta-info .author,
.meta-info .read-time,
.meta-info .location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--accent-color);
}

/* Category Badges */
.category-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.featured-badge {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.success-badge {
    background: #28a745;
    color: white;
}

.program-badge {
    background: #007bff;
    color: white;
}

.event-badge {
    background: #ffc107;
    color: var(--text-dark);
}

.press-badge {
    background: #6f42c1;
    color: white;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin: 3rem 0;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), #4a7c59);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 4rem;
}

.newsletter-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form .form-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.newsletter-form button {
    white-space: nowrap;
}

.newsletter-note {
    font-size: 0.9rem;
    margin-top: 1rem;
    opacity: 0.8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    max-width: 900px;
    width: 90%;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    margin: 0;
    color: #198754;
    font-size: 1.5rem;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

.modal-message {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.modal-message.info {
    background-color: #e7f3ff;
    color: #0066cc;
    border: 1px solid #b3d7ff;
}

.modal-message.success {
    background-color: #d4f7e0;
    color: #155724;
    border: 1px solid #b8e6c9;
}

.modal-message.error {
    background-color: #ffe6e6;
    color: #721c24;
    border: 1px solid #f8d7da;
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.btn-modal {
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-modal {
    background-color: #198754;
    color: white;
}

.btn-modal:hover {
    background-color: #146c43;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.btn-modal.btn-secondary {
    background-color: #6c757d;
}

.btn-modal.btn-secondary:hover {
    background-color: #5a6268;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    
    #pesapalIframe {
        height: 500px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn-modal {
        width: 100%;
        justify-content: center;
    }
}

.single-article {
    padding: 2rem;
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 1rem 0;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-image {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.article-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2,
.article-content h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e1e5e9;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-link.facebook { background: #3b5998; }
.social-link.twitter { background: #1da1f2; }
.social-link.linkedin { background: #0077b5; }
.social-link.whatsapp { background: #25d366; }

.social-link:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Responsive Design for News */
@media (max-width: 768px) {
    .featured-story {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .featured-content h2 {
        font-size: 1.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .social-share {
        justify-content: center;
        text-align: center;
    }
    
    .featured-story,
    .news-card,
    .category-card,
    .value-card,
    .area-card {
        margin-left: 10px;
        margin-right: 10px;
    }
}

/* Additional Mobile Responsive Improvements */
@media (max-width: 480px) {
    .news-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-card {
        margin: 0 10px;
    }
    
    .featured-story {
        padding: 1.5rem;
        margin: 0 10px 2rem 10px;
    }
    
    .meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* --- BIOGRAPHY PAGE STYLES --- */
.biography-section {
    padding: 60px 0;
    min-height: 70vh; /* Ensure it takes up enough screen height */
}

.biography-section .container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#member-name-heading {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    border-bottom: 2px solid #3498db; /* A brand color underline */
    padding-bottom: 10px;
}

.bio-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 20px;
}

.bio-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #28a745; /* Matches the team grid border */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.bio-header h2 {
    font-size: 1.8em;
    color: #3498db;
    margin: 0;
}

.bio-text p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .bio-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Top Bar Styles */
.top-bar {
    background: linear-gradient(135deg, var(--primary-color), #4a7c59);
    color: white;
    padding: 8px 0;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
}

.top-bar-left i {
    margin-right: 8px;
    font-size: 12px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}


.top-bar-btn {
    color: #ffffff;
    text-decoration: none;

    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 600;

    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.1;

    background: #2c5530;
    border: 1px solid rgba(255,255,255,0.25);

    transition: background 0.2s ease, opacity 0.2s ease;
}

.top-bar-btn i {
    font-size: 11px;
}

.top-bar-btn:hover {
    background: #1e3a21;
    opacity: 0.95;
}


.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: white;
    color: #198754;
    transform: translateY(-2px);
}



/* Achievements Section */
.achievements-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.section-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.achievement-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-10px);
}

.achievement-icon {
    font-size: 40px;
    color: #198754;
    margin-bottom: 20px;
}

.achievement-card h3 {
    color: #333;
    margin-bottom: 15px;
}

.achievement-date {
    display: inline-block;
    background: #e9ecef;
    color: #666;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-top: 15px;
}

/*  Donation Section*/
.donation-section {
    padding: 80px 0;
    background: #ffffff; 
    color: var(--text-dark);
}


.donation-header {
    text-align: center;
    margin-bottom: 50px;
}

.donation-header h2 {
    color: white;
    font-size: 2.5rem;
}

.donation-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.donation-info {
    color: #333;
}

.donation-benefits {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.donation-benefits li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.donation-benefits i {
    color: #198754;
}

.payment-methods {
    margin-top: 40px;
}

.payment-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.payment-icon {
    text-align: center;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    width: 80px;
    transition: all 0.3s ease;
}

.payment-icon:hover {
    border-color: #198754;
    transform: translateY(-5px);
}

.payment-icon i {
    font-size: 24px;
    color: #198754;
    margin-bottom: 10px;
    display: block;
}

/* Donation Form */
.donation-form-container {
    color: #333;
}

.donation-form h3 {
    margin-bottom: 25px;
    color: #198754;
}

.quick-amounts {
    margin-bottom: 25px;
}

.quick-amounts h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #666;
}

.amount-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.amount-btn {
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    flex: 1;
    min-width: 80px;
}

.amount-btn:hover,
.amount-btn.active {
    background: #198754;
    color: white;
    border-color: #198754;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 15px;
    color: #666;
    font-weight: 600;
}

.input-with-icon input {
    padding-left: 50px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


.btn-donate {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
    border-radius: 8px;
}


.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

.secure-payment {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.secure-payment i {
    color: #198754;
    margin-right: 5px;
}

/* Result Message */
.result-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

.result-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #198754;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.redirect-message {
    margin: 20px 0;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar {
    background: linear-gradient(135deg, var(--primary-color), #4a7c59);
    color: white;
    padding: 8px 0;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 1000;
   }

    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .top-bar-left span {
        margin-right: 10px;
        margin-bottom: 5px;
        display: inline-block;
    }
    
    .top-bar-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .donation-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .payment-icons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

/* Stats Animation */
.stat-number {
    transition: all 0.5s ease;
}

    .status-wrapper {
        min-height: 80vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        background-color: #f8f9fa;
    }

    .status-card {
        background: white;
        padding: 40px;
        border-radius: 24px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.05);
        max-width: 500px;
        width: 100%;
        text-align: center;
    }

    .icon-circle {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 24px;
        font-size: 32px;
    }

    .success { background: #e8f5e9; color: #198754; }
    .error { background: #ffebee; color: #dc3545; }
    .pending { background: #fff8e1; color: #ffc107; }

    h1 { color: #1a1a1a; margin-bottom: 12px; font-weight: 800; }
    .status-msg { color: #6c757d; line-height: 1.6; margin-bottom: 30px; }

    .details-box {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 30px;
    }

    .detail-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        font-size: 0.95rem;
    }

    .detail-row:last-child { margin-bottom: 0; }

    .badge {
        padding: 4px 12px;
        border-radius: 50px;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .badge.completed { background: #198754; color: white; }
    .badge.failed { background: #dc3545; color: white; }

    .btn-home {
        display: block;
        background: #198754;
        color: white;
        text-decoration: none;
        padding: 14px;
        border-radius: 12px;
        font-weight: 600;
        transition: 0.3s;
    }

    .btn-home:hover { background: #146c43; transform: translateY(-2px); }

    .support-text { margin-top: 20px; font-size: 0.85rem; color: #adb5bd; }
    .support-text a { color: #198754; text-decoration: none; }

    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .animate-in { animation: fadeInUp 0.6s ease-out; }
    
/* ================================
   STATUS PAGE STYLES
================================ */

.status-container {
    padding: 120px 0 80px;
    background: linear-gradient(
        135deg,
        var(--background-light),
        #eef3f0
    );
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Status Card */
.status-container .card {
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    animation: fadeSlideUp 0.6s ease forwards;
}

/* Header */
.status-container .card-header {
    padding: 2.5rem 1.5rem;
    border: none;
}

.status-container .card-header i {
    opacity: 0.95;
}

.status-container .card-header h2 {
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Body */
.status-container .card-body {
    padding: 3rem 2.5rem;
}

.status-container .lead {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* Transaction details */
.transaction-details {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px dashed #dee2e6;
}

.transaction-details strong {
    color: var(--primary-color);
}

/* Buttons */
.status-container .btn {
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.status-container .btn-outline-primary {
    border-width: 2px;
}

.status-container .btn:hover {
    transform: translateY(-2px);
}

/* Success / Error / Warning headers */
.bg-success {
    background: linear-gradient(135deg, #198754, #2ecc71) !important;
}

.bg-danger {
    background: linear-gradient(135deg, #dc3545, #ff6b6b) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #ffc107, #ffdd57) !important;
    color: #333 !important;
}

/* Animation */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .status-container {
        padding: 100px 15px 60px;
    }

    .status-container .card-body {
        padding: 2rem 1.5rem;
    }

    .status-container .lead {
        font-size: 1.05rem;
    }
}
