/* ====== GLOBAL RESET ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f7f7f7;
  color: #222;
  line-height: 1.6;
}

/* ====== HEADER ====== */
header {
  background-color: #222; /* dark background for contrast */
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px; /* Reduced vertical padding */
  max-width: 1200px;
  margin: 0 auto;
}

.banner-image {
  max-height: 60px;  /* Reduced from 100px to make header shorter */
  width: auto;
}

/* Hamburger (toggle) button for mobile */
.nav-toggle {
  background: none;
  border: none;
  font-size: 28px;
  color: white;
  display: none;
  cursor: pointer;
}

/* ====== NAVIGATION ====== */
nav {
  display: flex;
  gap: 12px; /* Slightly reduced gap */
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 4px 8px; /* Reduced padding for tighter layout */
  border-radius: 4px;
  font-size: 14px;   /* Optional: smaller font for compactness */
  transition: background 0.3s ease;
}

nav a:hover {
  background: #444; /* subtle hover on desktop */
}

nav a.active,
nav a[href*="donate"] {
  background: #2d6cdf;
  color: white;
}

/* ====== MOBILE MENU ====== */
@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    background: #222; /* #2d6cdf; - blue background for mobile dropdown */
    width: 100%;
    padding: 6px 0; /* Reduced top/bottom padding */
  }

  nav.show {
    display: flex;
  }

  nav a {
    color: #fff;
    padding: 10px 16px; /* Tighter padding on mobile links */
    text-align: center;
	font-size: 15px;    /* Optional: slightly smaller text */
  }

  nav a:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  .header-container {
    flex-direction: row;
  }
}

/* ========== FOOTER ========== */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 8px 16px !important; /* Reduced vertical padding */
  font-size: 14px;    /* Smaller font for compactness */
}

footer p {
  /*margin-bottom: 10px;
  text-align: center;*/
  margin: 6px 0;      /* Less vertical spacing */
  text-align: center; /* Ensures centered text */
}

/* Footer social media icons */
footer .social-media {
  display: flex;
  justify-content: center;
  gap: 12px;          /* Slightly reduced spacing */
  margin-top: 6px;
}

footer .social-media img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

footer .social-media img:hover {
  transform: scale(1.2);
}


/* Layout container */
.content {
  max-width: 800px;
  margin: auto;
  padding: 20px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Image styling for About section */
.about-image {
  max-width: 300px;
  display: block;
  margin: 20px auto;
}

/* Headings and paragraph text alignment */
h2, p {
  text-align: left;
}

/* ========== PHOTO GRID ========== */
.photo-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.photo-grid img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ========== SCHOLARSHIP IMAGE ========== */
.scholarship-image {
  text-align: left;
  margin-top: 20px;
}

.scholarship-image img {
  max-width: 40%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.scholarship-image img:hover {
  transform: scale(1.02);
}

/* ========== MODAL STYLES ========== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 75%;
  height: 75%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.modal-content, .close {
  animation-name: zoom;
  animation-duration: 0.3s;
}

@keyframes zoom {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* Modal container */
/* #imageModal {
  display: none;
  position: fixed;
  z-index: 9999; /* Ensures it's above the header */
  /* left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 20px;
  box-sizing: border-box;
} */
 
/* Modal image */
/* #modalImage {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
} */

/* Close button */
/* #imageModal .close-btn {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
} */

/* ===== Responsive Modal Overlay ===== */
#imageModal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
  overflow: auto;
}

/* ===== Modal Image Styling ===== */
#modalImage {
  max-width: 100%;
  max-height: 90vh;
  height: auto;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

/* ===== Close Button Styling ===== */
.close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  z-index: 10000;
}

