/* === Global Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f2f2f2;
  color: #333;
  overflow-x: hidden;
}

header {
  background-color: orangered;
  width: 100vw;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.brand-name {
  color: white;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

#tabs-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  background-color: orangered;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  width: 100%;
  padding: 0;
  margin: 0;
}

nav ul li a {
  display: inline-block;
  text-decoration: none;
  background-color: white;
  color: orangered;
  padding: 10px 25px;
  border-radius: 20px;
  transition: background-color 0.3s;
  font-weight: bold;
}

nav ul li a:hover {
  background-color: #ffd6c1;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.social-icons a {
  color: white;
  font-size: 24px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #ffd6c1;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hamburger.active {
  transform: rotate(90deg);
}

#main-nav {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

#main-nav.active {
  display: flex;
  flex-direction: column;
}

/* === Main Content Styles for ALL Pages === */
.main-content, 
.home-content, 
.about-content, 
.gallery-content, 
.blog-content, 
.contact-content, 
.fees-content, 
.donate-content {
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  margin: 20px auto;
  border-radius: 8px;
  max-width: 1000px;
}

/* === Page-specific content adjustments === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

.contact-form button {
  background-color: orangered;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #e54a00;
}

/* === Media Queries === */
@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 999;
  }

  #main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    background-color: orangered;
    transition: all 0.3s ease;
  }

  #main-nav.active {
    display: flex;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  #main-nav ul {
    flex-direction: column;
    width: 100%;
  }

  #main-nav ul li {
    margin: 10px 0;
  }
}

@media screen and (max-width: 480px) {
  #tabs-top {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
  }

  .brand-name {
    font-size: 24px;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  nav ul li a {
    font-size: 14px;
    padding: 8px 25px;
    width: auto;
    min-width: 120px;
    max-width: 90%;
    text-align: center;
  }

  .social-icons {
    margin-top: 25px;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .social-icons i, .social-icons a {
    font-size: 24px;
  }

  /* All content containers responsive */
  .main-content, 
  .home-content, 
  .about-content, 
  .gallery-content, 
  .blog-content, 
  .contact-content, 
  .fees-content, 
  .donate-content {
    padding: 15px;
    margin: 10px;
  }

  .main-content h1, 
  .home-content h1, 
  .about-content h1, 
  .gallery-content h1, 
  .blog-content h1, 
  .contact-content h1, 
  .fees-content h1, 
  .donate-content h1 {
    font-size: 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Main Content */
.home-content {
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.9); /* Light transparent background */
  margin: 20px;
  border-radius: 8px;
}

@media screen and (max-width: 480px) {
  .home-content {
    padding: 15px;
    margin: 10px;
  }
}

@media screen and (max-width: 480px) {
  .brand-name {
    font-size: 24px;
  }
  
  .home-content h1 {
    font-size: 20px;
  }
  
  nav ul li a {
    font-size: 14px;
    padding: 6px 10px;
  }
}

.home-content h1 {
  font-size: 26px;
  margin-top: 0;
}

.home-content p {
  font-size: 16px;
  line-height: 1.6;
}

/* STAFF SECTION */
.staff-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #fff3e0;
}

.staff-section h2 {
  color: #e65100;
  font-size: 2rem;
  margin-bottom: 40px;
}

.staff-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

/* Staff card */
.staff-card {
  width: 250px;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s, background-color 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.staff-card:hover {
  transform: scale(1.05);
  background-color: #ffe0b2;
}

.staff-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top; /* Always prioritize top (head) */
  border-radius: 20px 20px 0 0;
}

.staff-card h3 {
  margin: 15px 0 5px;
  color: #e65100;
  font-size: 1.1rem;
}

.staff-card p {
  color: #444;
  font-size: 0.95rem;
  margin: 0 10px 10px;
  text-align: center;
}

/* Tablets and small screens (including iPad Mini) */
@media screen and (max-width: 768px) {
  .staff-grid {
    flex-direction: column;
    align-items: center;
  }

  .staff-card {
    width: 85%;
  }

  .staff-card img {
    height: 230px;
    object-position: top;
  }
}

/* Narrow tablets and large phones (e.g., iPad Mini portrait) */
@media screen and (max-width: 600px) {
  .staff-card {
    width: 90%;
  }

  .staff-card img {
    height: 220px;
    object-position: top;
  }

  .staff-card h3 {
    font-size: 1rem;
  }

  .staff-card p {
    font-size: 0.9rem;
  }
}

/* Phones */
@media screen and (max-width: 480px) {
  .staff-card {
    width: 95%;
  }

  .staff-card img {
    height: 200px;
  }
}


/* TESTIMONIALS */
.testimonial-section {
  background-color: #fff6eb;
  padding: 40px 20px;
  text-align: center;
}

.testimonial-section h2 {
  font-size: 2em;
  color: orangered;
  margin-bottom: 30px;
}

.testimonial-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.testimonial-card {
  background-color: #ffffff;
  border-left: 6px solid #ffb347;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  max-width: 300px;
  flex: 1 1 250px;
  border-radius: 10px;
  text-align: left;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: scale(1.03);
}

.testimonial-card p {
  font-style: italic;
  color: #333;
  margin-bottom: 10px;
  font-size: 1rem;
}

.testimonial-card span {
  font-weight: bold;
  color: #5c3d00;
  font-size: 0.95rem;
}

/* === Mobile-Friendly Tweaks === */
@media screen and (max-width: 768px) {
  .testimonial-container {
    flex-direction: column;
    align-items: center;
  }

  .testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically centers the content */
    align-items: center;     /* Horizontally center (optional, for balance) */
    text-align: center;      /* Ensures text is centered on small screens */
    min-height: 200px;      
  }
  
  .testimonial-card p {
    margin-bottom: 15px;
  }

  .testimonial-card span {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
  }

  .testimonial-section h2 {
    font-size: 1.5rem;
  }
}

/* Donor Support Pics*/
.donor-support-section {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #fffce9;
}

.donor-heading {
  font-size: 2rem; /* adjust as needed */
  color: orangered;
  margin-bottom: 2rem;
}

/* Center the carousel */
.carousel-wrapper {
  display: flex;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

/* Scrolling row */
.carousel-track {
  display: flex;
  animation: scroll-left 20s linear infinite;
  gap: 2rem;
  align-items: center;
}

.carousel-track img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 600px) {
  .donor-heading {
    font-size: 1.5rem;
  }

  .carousel-track {
    gap: 1rem;
    animation-duration: 30s; /* slow it down slightly on mobile */
  }

  .carousel-track img {
    height: 40px;
  }
}

.registration-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #fffde7;
  border-top: 2px solid #fbc02d;
  font-family: 'Quicksand', sans-serif;
}

.registration-section h2 {
  font-size: 2rem;
  color: #e65100;
  margin-bottom: 10px;
}

.registration-section p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 20px;
}

.download-btn {
  background-color: #ff9800;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background-color: #e65100;
  transform: scale(1.05);
}

/* ⭐ NEW: Mobile adjustments for the download button ⭐ */
.download-btn {
  padding: 10px 15px; /* ⭐ TWEAK 1: Reduced padding for narrower screens. */
  font-size: 0.95rem; /* ⭐ TWEAK 2: Slightly smaller font size if needed. */
  white-space: normal; /* ⭐ TWEAK 3: Allow text to wrap naturally if it's too long. */
  word-break: break-word; /* Allow long words to break if necessary */
  box-sizing: border-box; /* Include padding in element's total width */
  max-width: 90%; /* ⭐ NEW: Don't let it get wider than 90% of its parent */
  margin: 0 auto; /* ⭐ NEW: Center the button if it's a block element */
}

/* Optional: Adjust surrounding text for readability on mobile */
.registration-section h2 {
  font-size: 1.6rem; /* Make heading slightly smaller on mobile */
}

.registration-section p {
  font-size: 1rem; /* Make paragraph text slightly smaller on mobile */
  padding: 0 10px; /* Add slight horizontal padding to prevent text from touching screen edges */
}

  /* ⭐ NEW: AGGRESSIVE Mobile adjustments for the download button ⭐ */
  .download-btn {
    padding: 10px 10px !important; /* ⭐ AGGRESSIVE: Reduced padding with !important */
    font-size: 0.9em !important;   /* ⭐ AGGRESSIVE: Slightly smaller font size with !important */
    white-space: normal !important; /* ⭐ AGGRESSIVE: Allow text to wrap naturally */
    word-break: break-word !important; /* ⭐ AGGRESSIVE: Allow long words to break */
    box-sizing: border-box !important; /* ⭐ AGGRESSIVE: Ensure box-sizing */
    max-width: 90% !important;     /* ⭐ AGGRESSIVE: Don't let it get wider than 90% */
    display: block !important;     /* ⭐ AGGRESSIVE: Make it a block element to control width/margins easily */
    margin: 20px auto !important;  /* ⭐ AGGRESSIVE: Center the button with vertical margin */
  }
/* HIGHLIGHT BANNER */
.highlight-banner {
  background: linear-gradient(135deg, #ffcc80, #ffb74d, #ff9800);
  padding: 30px 20px;
  text-align: center;
  color: #4e342e;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 12px;
  margin: 40px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  animation: pulse 2s infinite;
  font-family: 'Quicksand', sans-serif;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@media (max-width: 600px) {
  .highlight-banner {
    padding: 20px 15px;
    font-size: 1.2rem;
    margin: 20px 10px;
    border-radius: 8px;
  }
}

/* Footer */
footer {
  background-color: #444;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  font-family: 'Quicksand', sans-serif;
  flex-shrink: 0;
  word-break: break-word;
}

/* Ensures the main content pushes the footer down */
main {
  flex: 1;
}

/* Optional media query for smaller devices */
@media screen and (max-width: 480px) {
  footer {
    font-size: 0.8rem;
    padding: 0.8rem;
  }
}

/* Contact Section */
.contact-section {
  max-width: 600px;
  margin: 60px auto;
  padding: 30px 20px; /* Add horizontal padding */
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  font-family: 'Quicksand', sans-serif;
  background-color: white;
}

.contact-section h1 {
  text-align: center;
  color: #333;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 2px solid #ffcc80;
  border-radius: 8px;
  font-size: 16px;
}

.contact-form button {
  padding: 10px;
  background-color: orange;
  color: white;
  border: none;
  font-weight: bold;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #e67300;
}

/* Body Background */
body.contactus-page {
  background: url('images/back3.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  background-color: #f0e6d2;
  color: #333;
}

/* MEDIA QUERIES FOR RESPONSIVENESS */

/* Tablets (600px to 900px) */
@media (max-width: 900px) {
  .contact-section {
    max-width: 90%;
    padding: 25px 15px;
  }
}

/* Mobile Phones (below 600px) */
@media (max-width: 600px) {
  .contact-section {
    max-width: 95%;
    margin: 30px auto;
    padding: 20px 10px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
  }

  .contact-form button {
    font-size: 14px;
  }
}

/* ABOUT PAGE STYLES */

/* Layout wrapper for full height */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Quicksand', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 2rem;
}

body.about-page {
  background: url('images/back4.PNG') no-repeat center center fixed;
  background-size: cover;
}

/* Boxes */
.about-box,
.offer-box {
  background-color: orange;
  padding: 1.5rem;
  border-radius: 15px;
  width: 45%;
  min-width: 300px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  color: #2c2c2c;
}

.about-box h1,
.offer-box h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.offer-box ul {
  padding-left: 1.2rem;
  list-style: none;
}

.offer-box li {
  margin-bottom: 0.8rem;
}

.offer-box i {
  margin-right: 0.5rem;
  color: #fff;
  background-color: #333;
  border-radius: 50%;
  padding: 0.3rem;
}

.about-box,
.offer-box {
  background-color: orange;
  padding: 1.5rem;
  border-radius: 15px;
  width: 45%;
  min-width: 300px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  color: #2c2c2c;
  transition: all 0.4s ease; /* smooth transition for transform & color */
  transform: scale(1); /* default size */
}

/* HOVER EFFECT */
.about-box:hover,
.offer-box:hover {
  transform: scale(1.08); /* grows bigger */
  background-color: #ffcc70; /* light orange/yellow shade on hover */
  cursor: pointer;
}

/* Existing styles remain unchanged... */

/* ✅ MOBILE RESPONSIVENESS for screens below 600px */
@media screen and (max-width: 600px) {
  main {
    padding: 1rem;
    flex-direction: column;
    align-items: center; /* Center children vertically */
  }

  .about-box,
  .offer-box {
    width: 90%;            /* Adjust width for mobile */
    min-width: unset;      /* Remove min-width that forces it too wide */
    margin: 1rem auto;     /* Center it horizontally */
    padding: 1.2rem;       /* Slightly tighter padding */
  }

  .about-box h1,
  .offer-box h1 {
    font-size: 1.4rem;
  }
}

.mission-box {
  background-color: white; /* soft yellow */
  color: #333;
  width: 400px;
  height: 400px;
  border-radius: 20px; /* soft corners, but still a square */
  padding: 2rem;
  overflow: auto; /* scroll if content overflows */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: absolute;
  top: 400px;
  right: 50px;
  transition: all 0.4s ease;
  transform: scale(1);
}

/* Hover effect: grow and color change */
.mission-box:hover {
  transform: scale(1.15);
  background-color: orangered;
  cursor: pointer;
}

/* Headings and text inside the box */
.mission-box h2 {
  color: black;
  font-size: 1.4rem;
  margin-top: 0;
}

.mission-box p {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Responsive styling for small screens */
@media screen and (max-width: 768px) {
  .mission-box {
    position: static;
    width: 90%;
    height: auto;
    margin: 1rem auto;
    border-radius: 20px;
    transform: scale(1); /* reset scale for mobile */
  }
}

/* === DONATE PAGE REFINED LAYOUT === */
body.donate-page .donate-container {
  background: #fff8e1;
  padding: 30px;
  max-width: 900px;
  margin: 50px auto;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

body.donate-page .donate-container p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

body.donate-page .bank-pay-section {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 30px;
  gap: 40px;
}

/* DONATE */
body.donate-page {
  background: url('images/back6.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  /* Optional fallback color */
  background-color: #f0e6d2;
  color: #333; /* adjust text color if needed */
}

@media screen and (max-width: 600px) {
  body.donate-page .donate-container {
    padding: 20px;
    margin: 20px auto;
    width: 95%;
  }

  body.donate-page .donate-container p {
    font-size: 15px;
    text-align: left; /* Optional: improves readability on mobile */
  }

  body.donate-page .bank-pay-section {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

/* BLOG */
body.blog-page {
  background: url('images/back3.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  /* Optional fallback color */
  background-color: #f0e6d2;
  color: #333; /* adjust text color if needed */
}

   /* Optional fallback color */
  body.fees-page {
  font-family: 'Quicksand', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

  .fees-container {
    max-width: 700px;
    margin: 80px auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background-color: #fff8e1; 
}

   h1, h2 {
    color: #e65100;
    text-align: center;
}

   p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 10px 0;
   }

   nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
  }

   .about-content {
    padding: 40px 20px;
  }

  /* FEES */
body.fees-page {
  background: url('images/back3.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  /* Optional fallback color */
  background-color: #f0e6d2;
  color: #333; /* adjust text color if needed */
   }

@media (max-width: 480px) {
  .fees-container {
    padding: 20px 10px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  h1, h2 {
    font-size: 1.3rem;
  }

  p {
    font-size: 0.95rem;
  }
}
