/*
=================================================
NURTURELIFE INITIATIVE - MAIN STYLESHEET
=================================================
Table of Contents:
1. CSS Variables & Custom Properties
2. Base Styles & Reset
3. Typography
4. Layout & Grid Systems
5. Buttons & Interactive Elements
6. Header & Navigation
7. Footer
8. Homepage Sections
9. Sub-Page Styles
10. Components & Utilities
11. Responsive Design
=================================================
*/

/* =================================================
   1. CSS VARIABLES & CUSTOM PROPERTIES
   ================================================= */
:root {
  /* Color Palette */
  --primary-color: #005A9C;
  --secondary-color: #00A8E8;
  --accent-color: #FFC107;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --white-color: #ffffff;
  --success-color: #28a745;
  --gray-color: #777;
  --border-color: #e0e0e0;
  --hover-bg: #f9f9f9;
  
  /* Typography */
  --font-family: 'Poppins', sans-serif;
  --font-size-base: 1rem;
  --font-size-lg: 1.1rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3rem;
  --font-size-5xl: 3.8rem;
  --line-height-base: 1.7;
  --line-height-heading: 1.2;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 2.5rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Layout */
  --container-width: 1140px;
  --border-radius: 8px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}

/* =================================================
   2. BASE STYLES & RESET
   ================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--dark-color);
  background-color: var(--white-color);
}

img {
  max-width: 100%;
  height: auto;
}

/* =================================================
   3. TYPOGRAPHY
   ================================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: var(--line-height-heading);
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-xl); }

p {
  text-align: justify;
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* =================================================
   4. LAYOUT & GRID SYSTEMS
   ================================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: 100px 0;
}

.section-light {
  background-color: var(--light-color);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--dark-color);
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: -40px auto 60px;
  font-size: var(--font-size-lg);
  line-height: 1.8;
}

/* Grid Systems */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

/* =================================================
   5. BUTTONS & INTERACTIVE ELEMENTS
   ================================================= */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: var(--font-size-base);
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

.btn-primary:hover {
  background-color: #ffca2c;
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--dark-color);
  border: 2px solid var(--dark-color);
}

.btn-secondary:hover {
  background: var(--dark-color);
  color: var(--white-color);
}

.btn-full-width {
  width: 100%;
  font-size: var(--font-size-lg);
}

/* =================================================
   6. HEADER & NAVIGATION
   ================================================= */
.main-header {
  background-color: var(--white-color);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/* Brand Styling */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-brand img {
  height: 45px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.brand-name {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--dark-color);
  line-height: 1;
}

/* Navigation Links */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a.active:not(.btn) {
  color: var(--primary-color);
  font-weight: 600;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  font-size: var(--font-size-xl);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-color);
}

/* =================================================
   7. FOOTER
   ================================================= */
.main-footer {
  background-color: var(--dark-color);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  padding-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  color: var(--white-color);
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-col,
.footer-col a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-col a:hover {
  color: var(--accent-color);
}

.footer-col ul {
  list-style: none;
  padding-left: 0;
}

.footer-col li {
  margin-bottom: 0.8rem;
}

.footer-col li i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.footer-col .social-icons a {
  font-size: 1.2rem;
  margin-right: 15px;
}

.footer-bottom {
  border-top: 1px solid #444;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* =================================================
   8. HOMEPAGE SECTIONS
   ================================================= */

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 90, 156, 0.75), rgba(44, 62, 80, 0.75)), 
              url('assets/images/home-hero-bg.jpg') no-repeat center center/cover;
  min-height: 90vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white-color);
}

.hero-content {
  max-width: 800px;
  margin: auto;
  padding: 0 var(--spacing-sm);
}

.hero h1 {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-heading);
}

.hero .rotating-text {
  font-size: var(--font-size-xl);
  line-height: 1.6;
  min-height: 60px;
  transition: opacity 0.5s ease-in-out;
  margin-bottom: var(--spacing-xl);
}

/* About Intro Section */
.about-intro {
  background-color: var(--light-color);
}

.about-intro-image {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin: 0 auto;
  position: relative;
  border: 8px solid var(--white-color);
}

.about-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-intro-content h2 {
  font-size: var(--font-size-2xl);
  line-height: 1.4;
  margin-bottom: var(--spacing-lg);
  font-weight: 600;
  text-align: center;
}

/* Impact Stats Section */
.impact-stats {
  background: var(--primary-color) url('assets/images/world-map-bg.png') no-repeat center center;
  background-size: cover;
  color: var(--white-color);
  padding: 80px 0;
}

.stat-item {
  text-align: center;
}

.stat-item i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: var(--spacing-sm);
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
}

.stat-label {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.8);
}

/* Approach Cards */
.approach-card {
  position: relative;
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: var(--white-color);
  display: flex;
  align-items: flex-end;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease;
}

.approach-card:hover {
  transform: translateY(-10px);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 60%);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-overlay h3 {
  font-size: 1.6rem;
  margin-bottom: var(--spacing-xs);
}

.card-overlay p {
  max-height: 0;
  opacity: 0;
  transition: all 0.5s ease;
  margin: 0;
  transform: translateY(10px);
}

.approach-card:hover .card-overlay p {
  max-height: 100px;
  opacity: 1;
  margin-top: var(--spacing-xs);
  transform: translateY(0);
}

/* CTA Section */
.cta-section {
  background: var(--light-color);
  text-align: center;
}

.cta-section h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--spacing-sm);
}

.cta-buttons {
  margin-top: var(--spacing-lg);
}

.cta-buttons .btn {
  margin: var(--spacing-xs);
}

/* =================================================
   Page Header Banner SUB-PAGE STYLES
   ================================================= */

/* --- Page Header Banner (for all sub-pages) - REVISED --- */
.page-header {
    /* Layout: Using Flexbox to perfectly center content */
    display: flex;
    flex-direction: column;  /* Stack h1 and p vertically */
    justify-content: center; /* Vertically centers the content block */
    align-items: center;     /* Horizontally centers the content block */

    /* Sizing: Ensure it has a spacious, cinematic height */
    min-height: 350px;
    padding: 3rem 1.5rem; /* Padding for smaller screens or if content wraps */

    /* Background: This part remains the same */
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)), 
                url('assets/images/page-banner.jpg') no-repeat center center/cover;
    
    /* Text styles for the container */
    text-align: center;
    color: var(--white-color);
}

.page-header h1 {
    font-size: 3.5rem;   /* Larger for more impact */
    font-weight: 700;    /* Bold and strong */
    line-height: 1.2;
    margin: 0;           /* Remove default margins */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3); /* Adds depth and improves readability */
}

.page-header p {
    font-size: 1.25rem;  /* A balanced size for the subheading */
    font-weight: 400;    /* Lighter to contrast with the h1 */
    max-width: 600px;
    margin: 1rem 0 0;    /* Adds space between h1 and p */
    opacity: 0.9;        /* Makes it slightly less prominent than the h1 */
    line-height: 1.6;
}

/* About Page Styles */
.objectives-list {
  list-style: none;
  padding-left: 0;
  margin-top: var(--spacing-lg);
}

.objectives-list li {
  padding-left: 35px;
  position: relative;
  margin-bottom: 1.2rem;
  font-size: var(--font-size-lg);
}

.objectives-list li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--success-color);
  position: absolute;
  left: 0;
  top: 5px;
  font-size: 1.2rem;
}

.value-card {
  background: var(--white-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.value-card h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

/* Donation Page Styles */
.donation-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-2xl);
  align-items: flex-start;
}

.donation-form-container {
  background: var(--white-color);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 100px;
}

.donation-form .form-group {
  margin-bottom: var(--spacing-lg);
}

.donation-form label {
  font-weight: 600;
  display: block;
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-lg);
}

.donation-type-toggle {
  display: flex;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.donation-type-btn {
  flex: 1;
  padding: 12px;
  border: none;
  background: var(--white-color);
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
  font-size: var(--font-size-base);
}

.donation-type-btn:first-child {
  border-right: 1px solid #ccc;
}

.donation-type-btn.active {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.amount-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: var(--spacing-sm);
}

.amount-btn {
  padding: 12px;
  border: 1px solid #ccc;
  background: var(--white-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-size: var(--font-size-base);
}

.amount-btn:hover {
  background-color: #f0f0f0;
}

.amount-btn.active {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-color: var(--primary-color);
}

.donation-form input {
  width: 100%;
  padding: 14px;
  border-radius: var(--border-radius);
  border: 1px solid #ccc;
  background: var(--white-color);
  transition: border-color 0.3s ease;
  font-size: var(--font-size-base);
}

.donation-form input:not(:last-child) {
  margin-bottom: 10px;
}

.donation-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.2);
}

.payment-method-option {
  cursor: pointer;
  background: var(--light-color);
  padding: var(--spacing-sm);
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  margin-bottom: 10px;
}

.payment-method-option:hover {
  border-color: var(--primary-color);
}

.payment-method-option.active {
  border-color: var(--primary-color);
  background-color: #eaf5ff;
}

.payment-method-option.disabled {
  cursor: not-allowed;
  background-color: #eee;
  color: #999;
}

.bank-details {
  background: #f0f8ff;
  padding: var(--spacing-md);
  margin-top: -10px;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  display: none;
}

.bank-details.active {
  display: block;
}

.bank-details p {
  margin-bottom: var(--spacing-xs);
  font-size: 0.95rem;
}

.bank-details p:last-child {
  margin-top: var(--spacing-sm);
  font-style: italic;
}

.form-assurance {
  text-align: center;
  margin-top: var(--spacing-md);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gray-color);
}

.form-assurance i {
  color: var(--success-color);
  margin-right: 5px;
}

.donation-reasons h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-lg);
}

.reason-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.reason-icon {
  font-size: var(--font-size-2xl);
  color: var(--accent-color);
  flex-shrink: 0;
  width: 50px;
  text-align: center;
}

.reason-text h3 {
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-xl);
}

.reason-text p {
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.footer-cta {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--light-color);
  border-radius: var(--border-radius);
  border: 1px solid #eee;
}

.footer-cta .btn {
  margin-top: var(--spacing-sm);
}

/* =================================================
   10. COMPONENTS & UTILITIES
   ================================================= */

/* Accordion Component */
.accordion {
  margin-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: var(--hover-bg);
}

.accordion-header h3 {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: 600;
  display: flex;
  align-items: center;
}

.accordion-header h3 i {
  margin-right: 12px;
  color: var(--primary-color);
}

.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.4s ease;
}

.accordion-content > div {
  overflow: hidden;
}

.accordion-content p {
  margin-top: 0;
  padding-bottom: var(--spacing-md);
  line-height: var(--line-height-base);
}

/* Accordion Active States */
.accordion-item.active .accordion-content {
  grid-template-rows: 1fr;
}

.accordion-item.active .accordion-header .fa-plus {
  display: none;
}

.accordion-item .accordion-header .fa-minus {
  display: none;
}

.accordion-item.active .accordion-header .fa-minus {
  display: inline-block;
}

/* --- Projects Page --- */

.project-card-full {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Give more space to the text content */
    align-items: center;
    margin-bottom: 4rem;
    background: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card-full:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

/* This rule alternates the layout for every other card */
.project-card-full:nth-child(even) {
    grid-template-columns: 1.2fr 1fr;
}
.project-card-full:nth-child(even) .project-image {
    order: 2; /* Moves the image to the right */
}

.project-image {
    height: 100%;
    overflow: hidden; /* Important for the image zoom effect */
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.project-card-full:hover .project-image img {
    transform: scale(1.05); /* Creates a subtle zoom on hover */
}

.project-content {
    padding: 2.5rem 3rem;
}

.project-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.project-content p {
    margin-bottom: 1.5rem;
    color: #555;
}

.project-impact {
    background-color: var(--light-color);
    border-left: 4px solid var(--accent-color);
    padding: 1rem 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-top: 1.5rem;
}

.project-impact h4 {
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.project-impact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-impact li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.project-impact li::before {
    content: '\f00c'; /* Font Awesome checkmark icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--success-color);
    position: absolute;
    left: 0;
    top: 2px;
}

/* --- About Page: Team Section --- */

.section-intro { /* A reusable class for intro paragraphs */
    text-align: center;
    max-width: 800px;
    margin: -40px auto 60px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.team-member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Makes the photo circular */
    overflow: hidden;
    margin: 2rem auto 1.5rem;
    border: 5px solid var(--light-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the circle without distortion */
}

.team-member-info {
    padding: 0 1.5rem 2rem;
}

.team-member-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.team-member-position {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.team-member-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    text-align: center; 
    max-height: 100px; /* Show about 4-5 lines initially */
    overflow: hidden;
    position: relative; /* Needed for the fade-out effect */
    transition: max-height 0.7s ease-in-out;
}
.team-member-bio p {
    margin-bottom: 1rem; /* Adds space between paragraphs */
}

.team-member-bio::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--white-color));
    transition: opacity 0.3s ease;
}

/* --- Add these NEW rules for the "Read More" button --- */
.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    padding: 5px;
}

/* --- Add these NEW rules for the EXPANDED state --- */
.team-member-card.expanded .team-member-bio {
    max-height: 1000px; /* A large value to allow full expansion */
}

.team-member-card.expanded .team-member-bio::after {
    opacity: 0; /* Hide the fade-out effect when expanded */
}

.section-cta { /* A reusable class for a final call-to-action button */
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
}
.section-cta p {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
}

/* --- Join Us Page Styles --- */

.join-us-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid #eee;
}

.join-us-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.join-us-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.join-us-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.join-us-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.join-us-card .btn {
    margin-top: auto; /* Pushes button to the bottom if cards have different heights */
}

.enquiry-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Give more space to the form */
    gap: 3rem;
    align-items: flex-start;
}

.contact-details h3, .contact-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.contact-details p {
    margin-bottom: 1.5rem;
}

.contact-details ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.contact-details li {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.contact-details li i {
    color: var(--primary-color);
    margin-right: 15px;
    width: 25px;
    text-align: center;
    font-size: 1.2rem;
}

.contact-details .social-icons a {
    color: var(--dark-color);
    font-size: 1.4rem;
    margin-right: 20px;
    transition: color 0.3s ease;
}
.contact-details .social-icons a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: var(--border-radius);
    border: 1px solid #ccc;
    background: #f8f9fa;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white-color);
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.2);
}

/* =================================================
   11. RESPONSIVE DESIGN
   ================================================= */

/* Large tablets and small desktops */
@media (max-width: 992px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .donation-layout {
    grid-template-columns: 1fr;
  }


  .about-intro-image {
    width: 300px;
    height: 300px;
  }

  /* 1. Stack the card content into a single column */
    .project-card-full, .project-card-full:nth-child(even) {
        grid-template-columns: 1fr;
    }

    /* 2. Ensure the image is always on top for alternating cards */
    .project-card-full:nth-child(even) .project-image {
        order: 0; /* Resets the order, putting the image back on top */
    }

    /* 3. Give the image a fixed, reasonable height for mobile */
    .project-image {
        height: 250px;
    }

    /* 4. Reduce padding inside the text content for more space */
    .project-content {
        padding: 2rem 1.5rem;
    }
  
  .donation-form-container {
    position: static;
  }
}

/* Tablets */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2.5rem;
    --font-size-3xl: 2rem;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .section {
    padding: 80px 0;
  }
  
  /* Mobile Navigation */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-sm) 0;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  /* Typography adjustments */
  .hero h1,
  .page-header h1 {
    font-size: var(--font-size-4xl);
  }
  
  .page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: var(--spacing-sm) auto 0;
    opacity: 0.9;
    line-height: 1.6;
    text-align: center;
  }
  
  /* Stats layout */
  .stat-item {
    flex-basis: 40%;
  }
  
  /* Footer adjustments */
  .footer-grid {
    text-align: center;
  }
  
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Optional: Hide brand name on mobile */
  .brand-name {
    /* Uncomment to hide on mobile */
    /* display: none; */
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  .about-intro-image {
    width: 250px;
    height: 250px;
  }
  
  .approach-card {
    height: 300px;
  }
  
  .donation-form-container {
    padding: var(--spacing-md);
  }
}



/* Add/Modify these styles in your existing style.css file */

/* Empowerment Gallery Section Specific Styles */
.empowerment-gallery-section {
    padding: 40px 0;
    background-color: #f9f9f9; /* Light background for contrast */
}

.empowerment-gallery-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 2.2em;
}

.gallery-description {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto; /* Center and add space below */
    line-height: 1.6;
    color: #555;
    font-size: 1.05em;
}

.image-gallery {
    display: grid;
    /* Changed to 3 columns explicitly, with flexibility */
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; /* Space between images */
    padding: 0 15px; /* Add some horizontal padding */
    justify-items: center; /* Center items in the grid */
}

.gallery-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden; /* Ensures image corners are rounded with border-radius */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* Indicate it's clickable */
    width: 100%; /* Ensure item takes full grid cell width */
    max-width: 300px; /* Limit individual image card size */
}

.gallery-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.image-gallery img {
    width: 100%;
    height: 180px; /* Smaller fixed height for gallery items */
    object-fit: cover; /* Crop images to fit without distortion */
    display: block; /* Remove extra space below images */
    transition: transform 0.3s ease; /* Smooth scale on hover if desired, though click is primary now */
}

/* Lightbox Styles */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    padding-top: 60px; /* Location of the box (top) */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    flex-direction: column; /* Stack image and caption */
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}

.lightbox-caption {
    margin-top: 15px;
    text-align: center;
    color: #ccc;
    font-size: 16px;
    padding: 10px;
    max-width: 80%;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Animation for lightbox image */
.lightbox-content, .lightbox-caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}


/* Responsive adjustments for smaller screens */
@media (max-width: 992px) {
    .image-gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
        gap: 15px;
    }
    .gallery-item {
        max-width: none; /* Let 2 columns take full width */
    }
}

@media (max-width: 768px) {
    .empowerment-gallery-section h2 {
        font-size: 1.8em;
    }
    .gallery-description {
        font-size: 1em;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .image-gallery {
        grid-template-columns: repeat(2, 1fr); /* Still 2 columns */
        gap: 15px;
    }
    .image-gallery img {
        height: 160px; 
    }
    .lightbox-content {
        max-height: 70%;
    }
}

@media (max-width: 480px) {
    .empowerment-gallery-section {
        padding: 30px 0;
    }
    .empowerment-gallery-section h2 {
        font-size: 1.5em;
    }
    .gallery-description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }
    .image-gallery {
        grid-template-columns: 1fr; /* Stack images vertically on very small screens */
        padding: 0 10px;
    }
    .image-gallery img {
        height: 200px; /* Adjust height for single column layout */
    }
}