body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
  }
  
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(90deg, #ffa850, #ff7e14);
    color: white;
    animation: headerSlideIn 0.7s ease both;
  }
  
  .logo {
    margin-left: 20px;
    font-size: 12px;
    font-weight: bold;
  }

/* popup msg  */
  /* The modal (hidden by default) */
  .modal {
    display: block; 
    position: fixed;
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.7); /* Black with opacity */
    padding-top: 60px;
}

/* Modal Content */
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease;
}

/* Image inside the modal */
.modal-content img {
    width: 100%;
    border-radius: 8px;
}

/* Animation for fade-in effect */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* The Close Button */
.closeb {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
}

.closeb:hover,
.closeb:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
  /* upto here popup msg  */

  
  .nav {
    display: flex;
    justify-content: space-around;
    /* background-color: #333; */
    padding: 10px;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
}

.nav a:hover {
    background-color: #575757;
    border-radius: 5px;
}

/* Sidebar (Hidden by default) */
.sidebar {
    width: auto;
    min-width: 240px;
    max-width: 85vw;
    max-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    /* Was missing entirely — any other fixed-position element with an explicit z-index
       (the quick-sidebar Blog/WhatsApp/AI buttons at 900, the notice modal at 1000, the
       AI chat panel at 1100) stacks above a z-index:auto element regardless of DOM
       order, so the mobile menu was rendering *behind* those on small screens where it
       matters most. */
    z-index: 1200;
    background: linear-gradient(165deg, #ff9d4d, #ff7e14 55%, #e8650a);
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 60px;
    padding-bottom: 24px;
    /* Open/close animation, staggered link entrance, and the backdrop are all in
       css/responsive.css (shared across every page) — see the "advanced animated
       mobile menu" section there. */
}

.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px;
    color: white;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    background-color: #575757;
}

.sidebar .close-btn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
}

/* Mobile Menu Button */
.mobile-menu {
    display: none;
}

.menu-btn {
    font-size: 20px;
    cursor: pointer;
    background-color: #ff7e14;
    color: white;
    border: none;
    padding: 10px 12px;
}
  
  .photo-row {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping if screen size is small */
    justify-content: space-between;
    gap: 16px; /* Adds space between the images */
}

.photo-row a {
    flex: 1 1 calc(25% - 16px); /* Each image takes 25% width minus the gap */
    max-width: calc(25% - 16px); /* Prevents exceeding row width */
}

.photo-row img {
    width: 100%; /* Makes the image fill the container */
    height: 400px; /* Ensures consistent height */
    object-fit: cover; /* Crops the image to fit without distortion */
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.photo-row img:hover {
    transform: scale(1.1); /* Smooth scale-up effect on hover */
}

.photo-row a {
    animation: cardFadeUp 0.6s ease both;
}
.photo-row a:nth-child(1) { animation-delay: 0.05s; }
.photo-row a:nth-child(2) { animation-delay: 0.15s; }
.photo-row a:nth-child(3) { animation-delay: 0.25s; }
.photo-row a:nth-child(4) { animation-delay: 0.35s; }

.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
    overflow: hidden; /* Ensures rounded corners on image */
    text-align: center;
}

.about {
    padding: 40px 0;
    text-align: center;
    background: #fff;
    margin-top: 10px;
    flex: column;
}

.about h2, .services h2 {
    font-size: 2rem;
    color: #1e00ff;
}

.services {
    padding: 20px;
}

.service-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.services .container,
.services .donation {
    flex: 1 1 calc(50% - 20px); /* Each takes 50% of the width minus the gap */
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: cardFadeUp 0.7s ease both;
}
.services .donation {
    animation-delay: 0.15s;
}

.services h2 {
    text-align: center;
    color: #333;
}

.services h4 {
    color: black;
    font-size: 16px;
    line-height: 1.6;
}

.services .donation img {
    display: block;
    margin: 0 auto;
    width: 200px;
    height: auto;
    transition: transform 0.3s ease;
}

.services .donation img:hover {
    transform: scale(1.1); /* Smooth scaling effect on hover */
}



.contact {
    animation: cardFadeUp 0.7s ease both;
    animation-delay: 0.1s;
}

/* ---- Homepage entrance animations ---- */
@keyframes headerSlideIn {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .header, .photo-row a, .services .container, .services .donation, .contact, .heartbeat {
        animation: none !important;
    }
}

/* Service Section */
.heartbeat {
    width: 300px; /* Adjust the width as needed */
    height: auto;
    display: block;
    margin: 0 auto;
    animation: heartbeat 1.5s infinite;
    transform-origin: center center;
}

/* Heartbeat animation */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    20% {
        transform: scale(1.1);
    }
    40% {
        transform: scale(1);
    }
    60% {
        transform: scale(1.1);
    }
    80% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

/* Separator Container */
.separator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

/* Contact Section */
.contact {
    flex: 1;
    text-align: center;
    gap: 5px;
}

.contact .container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact h2 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #333;
}

.contact p {
    margin-bottom: 10px;
    font-size: 18px;
    color: #555;
}

/* Photo Section */
.photo-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 45%;
}

.photo-section img {
    /* Was "height: 50%" — a percentage height with no definite height on the
       .photo-section flex column, which the browser resolved against whatever height
       the row happened to stretch to (varies with sibling content), squashing/cropping
       these small icon PNGs unevenly ("bent" look). aspect-ratio gives each icon a
       fixed, predictable box regardless of the parent's height. */
    width: 100%;
    aspect-ratio: 3 / 1;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    object-fit: contain;
    background: #fff;
    padding: 6px;
}

/* Form Container */
.form-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


/* Form Group */
.form-group {
    margin-bottom: 15px;
    
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    height: 100px;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup-content h2 {
    color: #28a745;
}

.popup-content p {
    font-size: 16px;
    margin-bottom: 15px;
}

.popup-content button {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.popup-content button:hover {
    background: #218838;
}

/* Submit Button */
button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    color: #fff;
    background-color: #fba92e;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #ff7307;
}



.footer {
    background: linear-gradient(90deg, #ffa850, #ff7e14);
    color: white;
    align-items:center ;
    padding: 5px;
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
  }
  
  .footer p{
    text-align: center;
    padding: 0%;
  }


  @media only screen and (max-width: 600px) {
    .logo {
        margin-left: 5px;
        font-size: 8px;
        font-weight: bold;
      }
      .photo-row img {
        width: 20 px; /* Makes the image fill the container */
        height: 100px; /* Ensures consistent height */
        object-fit: cover; /* Crops the image to fit without distortion */
        border-radius: 10px;
        transition: transform 0.3s ease;
    }

    .about, .services{
        padding: 2px;
    }

    .nav {
        display: none; /* Hide the regular nav on small screens */
    }
    
    .mobile-menu {
        display: block;
    }


}
