@media (max-width: 1000px) {
  .container {
    max-width: 95vw;
    padding: 0 1em;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2em;
  }
  
  .contact-info-area {
    width: 100%;
    padding: 1.5em;
  }
  
  .contact-info-area h3,
  .contact-info-area > p {
    text-align: center;
  }
  
  .contact-info-area .contact-info-row {
    align-items: center;
    text-align: center;
  }
  
  .contact-info-area .social-icons {
    justify-content: center;
  }
  
  .contact-detail {
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }
}
@media (max-width: 1100px) {
  .testimonials-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1200px) {
  .services-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
    justify-content: center;
  }
}
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2em 1em;
    gap: 2em;
    position: relative;
    height: auto;
    min-height: auto;
    overflow: hidden;
  }
  
  .hero-image {
    position: relative;
    top: auto;
    left: auto;
    width: 90%;
    max-width: 250px;
    height: auto;
    margin: 0 auto 2em auto;
    order: initial;
    z-index: 1;
  }
  
  .hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  
  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    order: initial;
    z-index: 2;
    background: none;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 0.8em;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin: 0 0 1.5em 0;
  }
  
  .hero-btn-wrapper {
    justify-content: center;
  }
  
  .impact-why {
    grid-template-columns: 1fr;
    gap: 2em;
  }
  
  .services-list {
    grid-template-columns: 1fr;
    gap: 1.5em;
    justify-content: center;
    margin-top: 2em;
  }
  
  .service-item {
    padding: 2em 1.5em;
    max-width: none;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    min-height: 250px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .contact-form-section {
    padding: 2em 1em;
  }
  
  .contact-form-wrapper {
    padding: 1.5em;
  }

  /* About Us section single column layout */
  .about-content-wrapper {
    grid-template-columns: 1fr;
    gap: 2em;
  }

  .about-image {
    order: -1;
    margin-bottom: 1.5em;
  }

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

  .about-text .btn {
    margin: 1.5em auto 0 auto;
  }

  /* Responsive adjustments for Vision, Strategy, Execution grid */
  .vision-strategy-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .vision-strategy-image {
    order: -1; /* Show image first on smaller screens */
    text-align: center; /* Center image if it doesn't take full width */
  }

  .vision-strategy-image img {
    max-width: 98vw; /* Make image larger on small screens */
    width: 420px;
    max-width: 95%;
    margin: 0 auto;
    height: auto;
  }

  .vision-strategy-text p {
    text-align: center; /* Center the text on smaller screens */
  }
}
@media (max-width: 768px) {
  .navbar {
    padding: 1em;
  }

  .logo img {
    height: 40px;
  }
  
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: transform 0.3s ease-in-out;
  }
  
  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #7bb0ff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
    transform-origin: left center;
  }

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

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, 2px);
  }

  nav {
    position: fixed;
    top: -500px;
    left: 0;
    width: 100%;
    height: auto;
    background: rgba(3, 19, 43, 0.98);
    backdrop-filter: blur(12px);
    padding: 60px 2em 2em 2em;
    transition: top 0.4s ease-in-out;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
  }
  
  nav.active {
    top: 0px;
    visibility: visible;
    pointer-events: auto;
  }
  
  .nav-menu-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    gap: 1.5em;
  }

  .nav-links {
    flex-direction: column;
    gap: 1.2em;
    width: 100%;
    margin-bottom: 0;
    align-items: flex-start;
  }
  
  .nav-links li {
    width: auto;
  }
  
  .nav-links li a {
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
    display: block;
    padding: 0.5em 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease, padding-left 0.3s ease;
    text-align: left;
  }
  
  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-links li a:hover,
  .nav-links li a:focus {
    color: #00FFD1;
    padding-left: 10px;
  }
  
  .nav-links li a::after {
    content: none;
  }

  .nav-cta {
    margin: 1em 0 0 0;
    width: auto;
    text-align: left !important;
    padding: 0.8em 1.5em;
    align-self: flex-start !important;
  }
  
  .testimonials-list {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }
  
  .pricing-card {
    padding: 1.5em;
  }

  .contact-form {
    padding: 1.5em;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px;
  }

  .submit-btn {
    padding: 0.8em 1.5em;
  }

  .testimonial-card {
    padding: 1.5em;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .testimonial-content {
    text-align: center;
  }

  .testimonial-client {
    justify-content: center;
  }

  /* Adjust donation form section and container */
  .donation-form-section {
    padding: 1em; /* Reduce padding */
  }
  
  .donation-form-container {
    padding: 1em; /* Reduce padding */
  }

  /* Adjust form groups for stacking */
  .donation-form .form-group {
    margin-bottom: 1em; /* Ensure spacing between form groups */
  }

  /* Adjust amount buttons layout */
  .amount-buttons {
    display: grid; /* Use grid for a more controlled layout */
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Allow buttons to fit and grow */
    gap: 0.5em; /* Reduce gap between buttons */
    justify-content: center; /* Center buttons if they don't fill the width */
  }

  .amount-btn {
    padding: 0.5em 1em; /* Adjust button padding */
    font-size: 0.9rem; /* Slightly reduce font size */
  }

  /* Ensure custom amount input is full width */
  .donation-form input[type="number"] {
    width: 100%;
    margin-top: 1em; /* Add space above the input when visible */
  }

  /* Adjust payment methods layout */
  .payment-methods {
    flex-direction: column; /* Stack payment methods vertically */
    gap: 1em; /* Add space between stacked payment methods */
  }

  .payment-method {
    width: 100%; /* Make each payment method take full width */
    justify-content: flex-start; /* Align content to the left */
  }
  
  .payment-label {
    padding: 0.8em 1em; /* Adjust padding for labels */
  }

  /* Adjust payment instructions and summary */
  .payment-instructions,
  .form-summary {
    padding: 1em; /* Adjust padding */
    margin-top: 1.5em; /* Adjust spacing */
  }

  .payment-instructions ol li {
    margin-bottom: 0.5em; /* Space out list items */
  }

  .mpesa-pay-btn, .paypal-pay-btn {
    width: 100%; /* Make payment buttons full width */
    margin-top: 1em; /* Add space above buttons */
  }

  /* Adjust modal content for smaller screens */
  .modal-content {
    width: 95%; /* Make modal wider on small screens */
    margin: 10% auto; /* Adjust top margin */
  }
}
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
  nav {
    position: static;
    height: auto;
    width: auto;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    transition: none;
    z-index: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-menu-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: 2em;
  }
  .nav-links {
    flex-direction: row;
    gap: 2em;
    width: auto;
    margin-bottom: 0.2em;
    align-items: center;
  }
   .nav-links li a {
    font-weight: 500;
    font-size: 1rem;
    padding: 0;
    border-bottom: none;
    text-align: left;
  }
  .nav-links li a::after {
    content: '';
  }
   .nav-cta {
    margin-left: 2em;
    width: auto;
    text-align: left;
    padding: 0.3em 1.2em;
   }
}
@media (max-width: 700px) {
  .container {
    max-width: 100%;
    padding: 0 1em;
  }
  
  .navbar {
    padding: 1em;
  }
  
  nav {
    /* Removed conflicting right positioning and transition */
    /* position: fixed; */
    /* top: 0; */
    /* right: -100%; */
    /* width: 80%; */
    /* height: 100vh; */
    /* background: rgba(3, 19, 43, 0.95); */
    /* backdrop-filter: blur(10px); */
    /* padding: 2em; */
    /* transition: right 0.3s ease; */
    /* z-index: 1000; */
  }
  
  nav.active {
    /* Removed conflicting right positioning */
    /* right: 0; */
     padding: 35px 15px;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 0.5em;
  }
  
  .nav-cta {
    margin: 1em 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  section {
    padding: 2em 1em;
  }
  
  .testimonials-list {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card {
    padding: 1.5em;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 0.5em;
  }

  .services {
    padding-top: 5em;
  }

  .services-list {
    grid-template-columns: 1fr;
    gap: 1.5em;
    padding: 0;
    margin-top: 0;
  }

  .service-item {
    width: 100%;
    max-width: none;
    padding: 1.5em 1em;
    margin: 0;
    position: relative;
    z-index: 1;
    min-height: 250px;
  }

  .service-item .icon {
    font-size: 2.5rem;
  }

  .service-item h3 {
    font-size: 1.2rem;
  }

  .service-item .service-description {
    font-size: 0.9rem;
    margin-bottom: 1em;
  }

  .service-explore-btn {
    padding: 0.5em 1em;
    font-size: 0.9rem;
  }

  /* Refine popup styling for small screens */
  .popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 350px;
    padding: 1.5em;
    box-sizing: border-box;
    z-index: 1000;
    background-color: var(--background-color);
    border-radius: 10px;
    overflow-y: auto;
    max-height: 90vh;
    display: block;
  }

  .popup-content {
    padding: 0;
  }

  .popup h2 {
    font-size: 1.4rem;
    margin-bottom: 0.6em;
    text-align: center;
  }

  .popup p {
    font-size: 0.85rem;
    margin-bottom: 0.8em;
    text-align: center;
  }

  .popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.4rem;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5em;
  }

  .contact-form-section {
    padding: 1.5em 0.8em;
  }
  
  .contact-form-wrapper {
    padding: 1.2em;
  }
  
  .contact-form .form-row {
    flex-direction: column;
    gap: 1em;
  }
  
  .contact-info-area h3 {
    font-size: 1.5rem;
  }
  
  .contact-info-area > p {
    font-size: 0.9rem;
  }
  
  .contact-detail {
    font-size: 0.9rem;
  }

  .pricing-card {
    padding: 1.2em;
  }

  .pricing-card h3 {
    font-size: 1.2rem;
  }

  .price {
    font-size: 1.8rem;
  }

  .sms-count {
    font-size: 1rem;
  }

  .pricing-btn {
    padding: 8px 40px;
    font-size: 0.9rem;
  }

  .floating-whatsapp {
    width: 40px;
    height: 40px;
    font-size: 20px;
    bottom: 15px;
    left: 15px;
  }
}
@media (max-width: 500px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .h2 {
    font-size: 1.8rem;
  }
  
  .service-item {
    padding: 1em;
  }
  
  main {
    padding: 1em;
  }
  
  section {
    margin-bottom: 3em;
    padding: 1.5em 0.5em;
  }

  .service-item h3 {
    margin-bottom: 1em;
  }

  .service-item .service-explore-btn {
    padding: 0.6em 0;
    font-size: 0.9rem;
    width: 80%;
  }

  .testimonials {
    padding: 1.5em 0.5em;
  }

  .testimonial-card {
    padding: 1em;
  }
}
@media (max-width: 400px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .pricing-card {
    padding: 1em;
  }

  .contact-form-wrapper,
  .contact-info-area {
    padding: 1em;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .submit-btn {
    font-size: 0.9rem;
    padding: 0.7em 1.2em;
  }

  .service-item {
    padding: 0.8em;
  }
  
  .service-item h3 {
    margin-bottom: 0.8em;
  }

  .service-item .service-explore-btn {
    padding: 0.5em 0;
    font-size: 0.85rem;
    width: 80%;
  }

  .testimonial-card {
    padding: 0.8em;
  }
}
@media (max-width: 480px) {
  /* Existing rules for 480px and below */

  /* Further adjustments for very small screens if needed */
   .amount-buttons {
       grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* Allow smaller button size */
   }

   .amount-btn {
       font-size: 0.8rem; /* Further reduce font size */
       padding: 0.6em 0.8em; /* Adjust padding */
   }

   .payment-label img.payment-icon {
       height: 25px; /* Adjust icon size */
   }
} 