/* === MOBILE OVERRIDES FOR Our Impact Matters === */
@media (max-width: 768px) {
  body {
    font-size: 15px;
    padding: 0;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background-color: white;
    border-bottom: 2px solid #eee;
    text-align: center;
  }

  .logo-container {
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5rem;
    width: 100%;
    justify-content: flex-start;
  }

  .logo-container img {
    height: 60px;
  }

  .logo-text {
    margin-top: 0.3rem;
    font-size: 1.25rem;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 35px;
    z-index: 1100;
  }

  .nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    display: block;
    border-radius: 2px;
    transition: 0.3s ease;
  }

.donate-nav-btn {
  background-color: #FFD700;
  color: #111;
  padding: 0.75rem 1rem;
  margin: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  display: block;
  transition: background-color 0.3s ease;
}

.donate-nav-btn:hover {
  background-color: #e6b800;
}

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .main-nav {
    position: static;
    width: 100%;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    right: 0;
    width: 75%;
    background-color: white;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-bottom-left-radius: 10px;
  }

  .nav-links.show {
    display: flex;
    transform: translateX(0);
  }

  .nav-links li {
    border-top: 1px solid #ccc;
    margin: 0.4rem 0;
  }

  .nav-links li:first-child {
    border-top: none;
  }

  .nav-links li a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    background-color: transparent;
    text-decoration: none;
    transition: background-color 0.2s ease;
  }

  .nav-links li a:hover {
    background-color: #f0f0f0;
  }
  
  
  .about-background {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
  }

  .about-section {
    display: none;
  }

  .mission-overlay-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    z-index: 2;
    padding: 0 1rem;
  }

  .mission-text h3 {
    display: none;
  }

  .mission {
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 1rem;
  }

  .mission-text {
    text-align: center;
  }

  .mission-photo img {
    width: 100%;
    border-radius: 10px;
  }

  .mission-buttons {
    display: flex;
    flex-direction: column;  /* Ensures vertical stacking */
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .mission-buttons a {
    display: inline-block;
    width: 90%;              /* Increased width to ensure it doesn't cut off */
    max-width: 320px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
  }
}
  .impact-grid {
    flex-direction: column;
  }

  .impact-post {
    margin-bottom: 2rem;
  }

  .impact-post img {
    max-height: 200px;
    object-fit: cover;
    width: 100%;
  }

  .program-cards-alt {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .program-card {
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
  }

  .stat-box {
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
  }

  .support-grid {
    flex-direction: column;
    align-items: center;
  }

  .donation-widget {
    width: 100%;
    max-width: 90%;
  }

  .interest-box {
    padding: 1.5rem;
    text-align: center;
  }

  .cta-stats-section {
    flex-direction: column;
  }

  .poverty-overlay {
    padding: 1rem;
  }

  .email-signup {
    padding: 1.5rem 1rem;
  }

  .signup-container {
    flex-direction: column;
    text-align: center;
  }

  .signup-form {
    flex-direction: column;
    gap: 0.5rem;
  }

  .signup-form input {
    width: 100%;
    padding: 0.75rem;
  }

  .signup-form button {
    padding: 0.75rem;
  }

  .partnerships-carousel img {
    height: 40px;
    margin: 0 8px;
  }

  footer {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem;
  }

  .footer-left,
  .footer-right {
    margin-bottom: 0.5rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .container {
    padding: 1rem;
  }

  .contact-form h2 {
    font-size: 1.5rem;
  }
}
