/* =================================================================
   1. CONFIGURATION & BASE
   ================================================================= */
:root {
  /* Color Palette */
  --primary-color: #dc2626;
  --primary-color-dark: #991b1b;
  --secondary-color: #1a1a1a;
  --accent-color: #ef4444;
  --highlight-color: #ffd700;
  /* For special icons */
  --success-color: #27ae60;
  /* For checkmarks */
  --error-color: #e74c3c;
  /* For form validation */

  /* Text Colors */
  --text-dark: #1a1a1a;
  --text-light: #666;
  --text-white: #fff;

  /* Background Colors */
  --background-white: #fff;
  --background-light: #f8f9fa;
  --header-bg-scrolled: rgba(255, 255, 255, 0.95);

  /* Component Colors */
  --border-color: #ddd;
  --border-color-focus: var(--primary-color);
  --modal-overlay: rgba(0, 0, 0, 0.5);

  /* Gradient Colors (for hero) */
  --gradient-start-rgb: 26, 26, 26;
  /* Corresponds to secondary-color */
  --gradient-end-rgb: 153, 27, 27;
  /* Corresponds to primary-color-dark */

  /* Testimonal slider */
  --slider-primary: #00fbff;
  --slider-text-dark: #ffffff;
  --slider-text-light: #666;
  --slider-bg: #7f4646;

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-white);
}

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

/* =================================================================
       2. TYPOGRAPHY & SECTION HEADERS
   ================================================================= */
  .section-header {
    text-align: center;
    margin-bottom: 60px;
  }

  .section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
  }

  .section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
  }

  .section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 6px;
    background: -webkit-linear-gradient(#ff0000, #08c2ec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
  }

  .section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 28px;
  }

  /* =================================================================
       3. COMPONENTS
   ================================================================== */

  /* --- Header & Navigation --- */
  .header {
    background: var(--background-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s;
  }

  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
  }

  .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
  }

  .nav-logo h2 {
    font-weight: 600;
    background: linear-gradient(to right, #c60000, #ff0c8a, #0aa8ba);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    transition: all 0.3s ease-in-out;
  }

  .nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
  }

  .nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
  }

  .nav-link:hover {
    color: var(--primary-color);
  }

  .nav-link.active {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
  }

  .nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
  }

  .bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
  }

  /* Testimonal section */

  .testimonial-slider-container {
    font-family: 'Inter', sans-serif;
    position: relative;
    width: 100%;
    max-width: 800px;
    /* Adjust max-width as needed */
    margin: 2rem auto;
    background: var(--slider-bg);
    border-radius: 0.75rem;
    /* 12px */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* This is crucial for the slider */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .testimonial-slider-wrapper {
    display: flex;
    /* The transition is what creates the sliding animation */
    transition: transform 0.5s ease-in-out;
  }

  .testimonial-slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    /* Ensures padding is included in width */
    padding: 3rem 4rem;
    /* More padding on desktop */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .testimonial-slide img {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .testimonial-slide blockquote {
    font-size: 1.25rem;
    /* 20px */
    font-weight: 400;
    line-height: 1.6;
    color: var(--slider-text-dark);
    margin: 0 0 1.5rem 0;
    max-width: 600px;
  }

  .testimonial-slide .testimonial-author .name {
    font-size: 1rem;
    /* 16px */
    font-weight: 700;
    color: var(--slider-text-dark);
  }

  .testimonial-slide .testimonial-author .designation {
    font-size: 0.875rem;
    /* 14px */
    font-weight: 500;
    color: var(--slider-primary);
  }

  /* Navigation Buttons */
  .testimonial-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #E5E7EB;
    /* Gray-200 */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }

  .testimonial-slider-nav:hover {
    background: #FFF;
    transform: translateY(-50%) scale(1.05);
  }

  .testimonial-slider-nav.prev {
    left: 1rem;
  }

  .testimonial-slider-nav.next {
    right: 1rem;
  }

  .testimonial-slider-nav svg {
    width: 20px;
    height: 20px;
    stroke: var(--slider-text-light);
    stroke-width: 2;
  }

  /* Navigation Dots */
  .testimonial-slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    /* 8px */
    z-index: 10;
  }

  .testimonial-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D1D5DB;
    /* Gray-300 */
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .testimonial-slider-dot.active {
    background: var(--slider-primary);
  }

  /* Responsive adjustments for mobile */
  @media (max-width: 640px) {
    .testimonial-slide {
      padding: 2.5rem 1.5rem;
      /* Less padding on mobile */
    }

    .testimonial-slide blockquote {
      font-size: 1rem;
      /* 16px */
    }

    .testimonial-slider-nav {
      width: 32px;
      height: 32px;
    }

    .testimonial-slider-nav.prev {
      left: 0.5rem;
    }

    .testimonial-slider-nav.next {
      right: 0.5rem;
    }

    .testimonial-slider-nav svg {
      width: 16px;
      height: 16px;
    }

    .testimonial-slider-dots {
      bottom: 1rem;
    }
  }

  /* --- Buttons --- */
  .btn {
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
  }

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

  .btn-primary:hover {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
  }

  .btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
  }

  .btn-secondary:hover {
    background: var(--text-white);
    color: var(--secondary-color);
  }

  /* Special 'Donate' Button (from special.css) */
  .button {
    display: inline-flex;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    text-align: center;
    font-weight: 600;
    color: #ffffff;
    background: #833AB4;
    background: linear-gradient(352deg, rgba(131, 58, 180, 1) 0%, rgba(216, 38, 75, 1) 54%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
    border: none;
    transition: all 0.3s ease-in-out 0s;
    cursor: pointer;
    outline: none;
    position: relative;
    padding: 10px 20px;
    border-radius: 25px;
  }

  .button::before {
    content: '';
    border-radius: 1000px;
    border: 5px solid #FFC000;
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    opacity: 0;
    transition: all .3s ease-in-out 0s;
  }

  .button:hover,
  .button:focus {
    color: #313133;
  }

  .button:hover::before,
  .button:focus::before {
    opacity: 1;
  }

  .button::after {
    content: '';
    width: 30px;
    height: 30px;
    border-radius: 100%;
    border: 6px solid #d53900;
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ring 1.5s infinite;
  }

  .button:hover::after,
  .button:focus::after {
    animation: none;
    display: none;
  }

  @keyframes ring {
    0% {
      width: 30px;
      height: 30px;
      opacity: 1;
    }

    100% {
      width: 250px;
      height: 250px;
      opacity: 0;
    }
  }

  /* --- Carousel --- */
  .carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    /* Increased width */
    height: 500px;
    /* Increased height */
    margin: 40px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  }

  .image-carousel {
    display: flex;
    width: 100%;
    /* Ensure the carousel itself takes full width */
    height: 100%;
    /* Ensure the carousel itself takes full height */
    transition: transform 0.5s ease-in-out;
  }

  .image-carousel img {
    min-width: 100%;
    /* Each image takes 100% of the carousel width */
    height: 100%;
    /* Each image takes 100% of the carousel height */
    object-fit: cover;
    /* Cover the area, crop if necessary */
    border-radius: 10px;
  }

  .carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.5rem;
    z-index: 10;
  }

  .carousel-button.prev {
    left: 10px;
  }

  .carousel-button.next {
    right: 10px;
  }

  .carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }

  /* --- Forms --- */
  .contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

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

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
  }

  .form-group textarea {
    resize: vertical;
  }

  button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  /* --- Modals --- */
  .modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-overlay);
    overflow-y: auto;
    padding-top: 50px;
  }

  .modal-content {
    background-color: var(--background-white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  }

  .close {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
  }

  .close:hover {
    color: var(--text-dark);
  }

  .modal h2 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-align: center;
  }

  /* QR Code Modal Specifics */
  .qr-modal-content {
    text-align: center;
    max-width: 400px;
  }

  .qr-image-modal {
    width: 200px;
    height: 200px;
    border: 4px solid var(--primary-color);
    border-radius: 8px;
    object-fit: contain;
    display: block;
    margin: 12px auto;
  }

  .qr-amount,
  .upi-modal-id {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
  }

  .modal-note {
    font-style: italic;
    color: var(--text-light);
    margin-top: 8px;
  }

  /* =================================================================
       4. PAGE SECTIONS
       ================================================================= */

  /* --- Hero Section --- */
  .hero {
    background: linear-gradient(135deg,
        rgba(var(--gradient-start-rgb), 0.9) 0%,
        rgba(var(--gradient-end-rgb), 0.9) 100%);
    color: var(--text-white);
    padding: 120px 0 80px;
    text-align: center;
  }

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

  .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
  }

  .hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
  }

  .stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
  }

  .stat p {
    opacity: 0.9;
  }

  /* --- About Section --- */
  .about {
    padding: 100px 0;
    background: var(--background-light);
  }

  .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    margin-top: 40px;
  }
  
  .about-text h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .about-content .about-image {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
  }
  
  .about-content .about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  /* .about-content .about-whiteboard img {
    max-width: 100%;
    height: auto;
  } */

  .about-text {
    grid-area: 1 / 1 / 2 / 2;
    /* Top-left */
  }

  .about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
  }

  .about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
  }

  .value {
    text-align: center;
    padding: 20px;
  }

  .value i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
  }

  .value h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
  }

  /* --- Programs Section --- */
  .programs {
    padding: 100px 0;
  }

  .programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
  }

  .program-card {
    background: var(--background-white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
  }

  .program-card:hover {
    transform: translateY(-10px);
  }

  .program-icon {
    width: 80px;
    height: 80px;
    background: #ff3d57;
    /* background: linear-gradient(135deg,
        var(--secondary-color),
        var(--primary-color)); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
  }

  .program-icon i {
    font-size: 2rem;
    color: var(--text-white);
  }

  .program-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
  }

  .program-card p {
    color: var(--text-light);
    margin-bottom: 20px;
  }

  .program-card ul {
    list-style: none;
    text-align: left;
  }

  .program-card li {
    padding: 5px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 20px;
  }

  .program-card li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    position: absolute;
    left: 0;
  }

  /* --- Donation Section --- */
  .donation-section {
    padding: 60px 0;
  }

  .blinking-text {
    animation: blink 0.7s step-end infinite;
  }

  #confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind the content */
    pointer-events: none;
    /* Allow clicks to pass through */
  }

  @keyframes blink {

    from,
    to {
      opacity: 0;
    }

    50% {
      opacity: 1;
    }
  }


  .qr-bank-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
  }

  .qr-details-card,
  .bank-details-card {
    background: var(--background-white);
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    border: 4px solid var(--primary-color);
  }

  .qr-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 12px;
  }

  .qr-code-area {
    text-align: center;
    margin-bottom: 12px;
  }

  .qr-image {
    width: 240px;
    height: 240px;
    object-fit: contain;
    margin: 0 auto 10px;
    border: 3px solid var(--border-color);
    border-radius: 8px;
    display: block;
  }

  .upi-id {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.05rem;
    display: inline-block;
    margin-right: 10px;
  }

  .copy-button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 6px 8px;
    border-radius: 6px;
  }

  .copy-button i {
    margin-right: 6px;
  }

  .upi-apps {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 16px;
    flex-wrap: wrap;
  }

  .upi-app-icon {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color .2s;
  }

  .upi-app-icon i {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 6px;
    color: var(--secondary-color);
  }

  .upi-app-icon:hover {
    color: var(--primary-color);
  }

  .bank-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .bank-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 1rem;
  }

  .bank-info-item .label {
    font-weight: 500;
    color: var(--text-light);
    margin-right: 8px;
  }

  .bank-info-item span:not(.label) {
    font-weight: 600;
    color: var(--secondary-color);
  }

  .donation-form-container {
    text-align: center;
    max-width: 640px;
    margin: 30px auto 0;
    padding: 18px;
    background: var(--background-white);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  }

  .donation-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 18px;
  }

  .donation-form input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-width: 180px;
    font-size: 1rem;
  }

  .donation-amount-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 8px;
  }

  .donation-card {
    background: var(--background-light);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
    border: 2px solid transparent;
    text-align: center;
  }

  .donation-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 6px 14px rgba(var(--gradient-end-rgb), 0.08);
  }

  .donation-card h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 6px;
  }

  .donation-card p {
    color: var(--text-light);
    font-size: 0.85rem;
  }

  /* --- Members Section --- */
  #members {
    padding: 100px 0;
    background: var(--background-light);
    margin-top: 50px;
    margin-bottom: 50px;
  }

  #members .section-header {
    margin-bottom: 60px;
    /* Corrected from 600px */
  }

  .members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-items: center;
    /* Center grid items */
    gap: 40px;
  }

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

  .member-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .member-card h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
  }

  /* --- Volunteer Section --- */
  .volunteer {
    padding: 100px 0;
    background: linear-gradient(135deg,
        var(--secondary-color) 0%,
        var(--primary-color) 100%);
    color: var(--text-white);
  }

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

  .volunteer-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }

  .volunteer-text p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
  }

  .volunteer-opportunities {
    margin-bottom: 40px;
  }

  .opportunity {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }

  .opportunity i {
    font-size: 2rem;
    color: var(--highlight-color);
  }

  .opportunity h4 {
    margin-bottom: 5px;
  }

  .opportunity p {
    opacity: 0.8;
    margin: 0;
  }

  .volunteer-image img {
    width: 100%;
    border-radius: 10px;
  }

  /* --- Founder's Message Section --- */
  #founder {
    background-color: #e8f5e9;
    /* Light green background */
    padding: 50px 0;
    text-align: center;
  }

  #founder .section-header {
    margin-bottom: 30px;
  }

  #founder .section-header h2 {
    color: #284629;
    /* Dark green for the heading */
  }

  #founder .founder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #founder .founder-image {
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  #founder .founder-text {
    max-width: 700px;
  }

  #founder .founder-text h3 {
    font-size: 24px;
    font-weight: 600;
    color: #388e3c;
    /* Slightly darker green for the founder's name */
    margin-bottom: 10px;
  }

  #founder .founder-text p {
    font-size: 16px;
    color: #43a047;
    /* A bit darker for the paragraph text */
    line-height: 1.6;
  }

  /* --- Contact Section --- */
  .contact {
    padding: 100px 0;
    background: #f8f9fa;
  }

  .contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
  }

  .contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
  }

  .contact-item h4 {
    color: #333;
    margin-bottom: 5px;
  }

  .contact-item p {
    color: #666;
    margin: 0;
  }

  .social-links {
    margin-top: 40px;
  }

  .social-links h4 {
    color: #333;
    margin-bottom: 15px;
  }

  .social-icons {
    display: flex;
    gap: 15px;
  }

  .social-icons a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s;
  }

  .social-icons a:hover {
    background: var(--primary-color-dark);
  }

  /* =================================================================
       5. UTILITIES
       ================================================================= */

  /* --- Message Box --- */
  .message-box {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    z-index: 11000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
    font-weight: 600;
  }

  .message-box.show {
    opacity: 1;
    visibility: visible;
  }

  /* --- Animation Classes --- */
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* =================================================================
       6. RESPONSIVE DESIGN
       ================================================================= */

  @media (max-width: 900px) {
    .qr-bank-container {
      grid-template-columns: 1fr;
    }

    .donation-amount-options {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 768px) {
    .nav-menu {
      position: fixed;
      left: -100%;
      top: 70px;
      flex-direction: column;
      background-color: var(--background-white);
      width: 100%;
      text-align: center;
      transition: 0.3s;
      box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
      padding: 20px 0;
    }

    .nav-menu.active {
      left: 0;
    }

    .nav-toggle {
      display: flex;
    }

    .hero-title {
      font-size: 2.5rem;
    }

    .hero-subtitle {
      font-size: 1.1rem;
    }

    .hero-buttons {
      flex-direction: column;
      align-items: center;
    }

    .hero-stats {
      flex-direction: column;
      gap: 30px;
    }

    .about-content,
    .volunteer-content,
    .contact-content,
    .programs-grid {
      grid-template-columns: 1fr;
      gap: 40px;
    }

    .donation-form {
      flex-direction: column;
    }

    .section-header h2 {
      font-size: 2rem;
    }

    .modal-content {
      margin: 10% auto;
      padding: 30px 20px;
    }

    .carousel-container {
      height: 300px;
      /* Adjust height for mobile */
    }

    /* Founder section responsive */
    #founder .founder-content {
      flex-direction: column;
      text-align: center;
    }

    #founder .founder-image {
      margin-bottom: 20px;
    }

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

  @media (min-width: 768px) {

    /* Founder section responsive */
    #founder .founder-content {
      flex-direction: row;
      justify-content: center;
      text-align: left;
    }

    #founder .founder-image {
      margin-right: 30px;
      margin-bottom: 0;
    }

    #founder .founder-text {
      max-width: 500px;
    }
  }

  @media (max-width: 480px) {
    .hero-title {
      font-size: 2rem;
    }

    .hero-subtitle {
      font-size: 1rem;
    }

    .btn {
      padding: 12px 25px;
      font-size: 1rem;
    }

    .program-card,
    .donation-card {
      padding: 30px 20px;
    }

    .contact-form {
      padding: 30px 20px;
    }

    .donation-amount-options {
      grid-template-columns: 1fr;
    }

    .qr-image {
      width: 180px;
      height: 180px;
    }
  }