/* Global container styling for consistent width */
.container {
  max-width: 90% !important;
  margin: 0 auto;
}

/* HERO SECTION */
.hero {
  /* Use min-height so it scales better on smaller devices */
  min-height: 60vh;
  max-width: 90%;
  margin: 20px auto;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  transition: background 1s ease-in-out;
}
.hero .overlay {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  background: none; /* Transparent background */
  padding: 10px 20px;
  text-align: center;
}
.hero .overlay h1,
.hero .overlay p {
  font-weight: bold;
  margin: 5px 0;
  /* Provide a slight shadow for better readability on bright backgrounds */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Transition Effects (for overlay caption) */
.fade {
  animation: fadeIn 1s ease-in-out;
}
.slide-left {
  animation: slideLeft 1s ease-in-out;
}
.slide-up {
  animation: slideUp 1s ease-in-out;
}
.zoom-in {
  animation: zoomIn 1s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideLeft {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes zoomIn {
  from { transform: scale(1.2); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* FOUR-IMAGE SECTION */
.four-images {
  padding: 50px 0;
}
.four-images .row {
  margin: 0;
}
.four-images img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.info-box {
  background: #f8f9fa;
  padding: 15px;
  margin-top: 10px;
  text-align: center;
  border-radius: 8px;
  font-weight: bold;
  font-family: sans-serif;
  color: #333;
}
/* Kid-friendly label style */
.caption-title {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-weight: bold;
  color: #FF5733;
}

/* ALTERNATING SECTIONS */
.content-section {
  padding: 50px 0;
}
.text-box {
  padding: 20px;
}

/* NEWS SECTION */
.news-section {
  padding: 50px 0;
  background: #f2f2f2;
}
.news-heading {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  color: #333;
}
.news-info {
  background: #fff;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  font-family: sans-serif;
  color: #555;
  text-align: center;
}

/* FOOTER SECTION */
footer {
  background: #333;
  color: #fff;
  padding: 20px 0;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
}
/* Left column: Logo & Address */
.footer-left {
  flex: 1;
  min-width: 180px;
  text-align: left;
}
.logo-group .logo-img {
  width: 100px;
  display: block;
  margin-bottom: 10px;
}
.address-group p {
  margin: 3px 0;
  font-size: 1rem;
}
.map-link {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  text-decoration: underline;
}
/* Right column: Social Media, Contact, Copyright */
.footer-right {
  flex: 1;
  min-width: 280px;
  text-align: right;
}
.footer-right .social-group a {
  margin: 0 5px;
}
/* Original large icon sizes for desktop */
.social-group a img[alt="YouTube"] {
  width: 186px;
  height: 50px;
}
.social-group a img[alt="X"] {
  width: 60px;
  height: 50px;
}
.social-group a img[alt="Instagram"] {
  width: 126px;
  height: 50px;
}
.social-group a img[alt="Facebook"] {
  width: 137px;
  height: 50px;
}
.footer-right .contact-group,
.footer-right .copyright-group {
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  /* Hero smaller for mobile */
  .hero {
    min-height: 50vh;
  }
  .hero .overlay h1 {
    font-size: 1.6rem;
  }
  .hero .overlay p {
    font-size: 1rem;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-left,
  .footer-right {
    text-align: center;
  }

  /* Fix for crumbling social media icons on small screens */
  .footer-right .social-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; /* spacing between icons */
  }
  .footer-right .social-group a img {
    max-width: 80px !important;
    height: auto !important;
    margin-bottom: 5px;
  }
}
