body {
  margin: 0;
  padding: 0 12px;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  background: #f0f8ff;
  color: #333;
}

.top-bar {
  background: #00703c;
  color: #fff;
  padding: 10px 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  font-size: 16px;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

.top-bar a:hover {
  color: #ffcc00;
}

.wa-icon {
  margin-left: 10px;
  font-size: 20px;
  text-decoration: none;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 12px;
}

.wa-wrapper {
  margin-left: auto;
  margin-right: -8px;
  margin-top: 5px;
}

.wa-line {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.wa-img {
  height: 60px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin-top: 5px;
  margin-right: -6px;
}

.logo-title {
  text-align: center;
  padding: 10px;
}

.logo {
  height: 80px;
}

.hero-section {
  background-image: url('schoolbg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  text-align: center;
  position: relative;
}

.hero-logo {
  display: block;
  margin: 0 auto;
  height: 100px;
  margin-bottom: 30px;
}

.hero-text {
  background: rgba(255, 255, 255, 0.85);
  padding: 20px;
  border-radius: 12px;
  display: inline-block;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.school-name {
  background: white;
  color: black;
  padding: 10px 25px;
  font-size: 26px;
  font-weight: bold;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.school-motto {
  background: yellow;
  color: black;
  padding: 8px 20px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.hero-text h1,
.hero-text h2 {
  color: black;
  margin: 10px 0;
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  color: #00703c;
}

h2 {
  text-align: center;
  color: #d75a00;
}

.guiding-light h2.guiding-heading {
  background: linear-gradient(to right, red, yellow);
  -webkit-background-clip: text;
  color: transparent;
  font-size: 32px;
}

.gallery-section {
  background: #000;
  color: #fff;
  padding: 20px 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Photon gallery specific styles (background image) */
.photon-gallery {
  background-image: url('tree.JPG'); /* <-- save the background as tree.jpg */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 28px 0;
}

/* subtle overlay for readability */
.photon-gallery .gallery-container {
  background: rgba(255,255,255,0.04);
  padding: 12px 0;
  border-radius: 6px;
}

/* sizing to match your existing gallery */
.photon-gallery .gallery-track img {
  height: 380px;
}

@media (max-width: 768px) {
  .photon-gallery .gallery-track img {
    height: 420px;
    width: 100%;
    object-fit: cover;
  }
}

.gallery-container {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
  max-height: 500px; /* ✅ Increased height */
}

.gallery-track {
  display: flex;
  overflow-x: hidden;
  scroll-behavior: auto;
  width: 100%;
  padding: 10px 0;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch; /* ✅ Enables iOS momentum scrolling */
  touch-action: pan-x;                /* ✅ Helps detect touch gestures */
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track img {
  height: 400px; /* ✅ Increased image height */
  max-width: 100%;
  object-fit: contain;
  margin-right: 12px;
  border-radius: 10px;
  flex-shrink: 0;
}

.gallery-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
}

.gallery-left,
.gallery-right {
  background: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 40px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  display: block;
  pointer-events: all;
}

.gallery-left {
  margin-left: 10px;
}

.gallery-right {
  margin-right: 10px;
}

.gallery-left:hover,
.gallery-right:hover {
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .gallery-container {
    max-height: 480px;
  }

  .gallery-track img {
    height: 420px;
    max-width: 100%;
    width: 100%;
    object-fit: cover;              /* ✅ Uniform appearance */
    object-position: center center; /* ✅ Keep main subject centered */
    aspect-ratio: 3 / 2;            /* ✅ Force image to appear wide */
    border-radius: 10px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .gallery-container {
    max-height: 420px;
  }

  .gallery-track img {
    height: 360px;
  }
}

@media (min-width: 1025px) {
  .gallery-container {
    max-height: 500px;
  }

  .gallery-track img {
    height: 400px;
  }
}

.principal-image {
  display: block;
  margin: 20px auto;
  height: 340px;
  border-radius: 15px;
}

.queries h2 {
  color: red;
  text-align: center;
}

.social-media {
  text-align: center;
  padding: 15px;
}

/* unified icon sizing + hover effect (YouTube will match) */
.social-media img {
  width: 40px;            /* uniform width */
  height: 40px;           /* uniform height */
  margin: 0 8px;
  object-fit: contain;
  transition: transform 0.25s ease, opacity 0.25s ease;
  vertical-align: middle;
}

.social-media img:hover {
  transform: translateY(-3px) scale(1.05);
  opacity: 0.95;
}

.footer-logo {
  display: block;
  margin: 20px auto;
  height: 70px;
}

.admission-badge {
  background: #ff4500;
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 18px;
  font-weight: bold;
}

footer {
  background: linear-gradient(135deg, #ffcc70, #ff8177, #ff4e50, #f9d423);
  padding: 30px 12px 20px;
  margin-top: 30px;
  text-align: center;
  color: #fff;
}

.footer-details p {
  margin: 8px 0;
  font-size: 15px;
  color: #fff;
}

@media (max-width: 768px) {
  .top-bar {
    padding: 10px;
    font-size: 14px;
    flex-direction: column;
    align-items: flex-end;
  }

  .contact-info {
    align-items: flex-end;
    padding-right: 10px;
  }

  .hero-section {
    padding: 20px 10px;
  }

  .hero-section h1,
  .hero-section h2 {
    font-size: 20px;
    padding: 5px 10px;
    margin-top: 5px;
  }

  .logo {
    height: 60px;
  }

  .admission-badge {
    font-size: 16px;
    padding: 6px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .guiding-light,
  .mission,
  .queries {
    padding-left: 40px;
    padding-right: 40px;
  }
}

* {
  touch-action: manipulation;
}

.peach-box {
  background-color: #ffe5b4;   /* Light peach */
  border: 2px solid red;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  cursor: pointer;
}

.whatsapp-float img {
  height: 55px;
  width: 55px;
}

.top-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  cursor: pointer;
}

.top-float img {
  height: 50px;
  width: 50px;
}

/* ---------- additions/overrides ---------- */

/* WhatsApp CTA (in header) */
.header-cta { /* if you want a class-based style instead of inline */ }
.hero-text a.cta { background:#25D366; color:#fff; padding:10px 18px; border-radius:8px; text-decoration:none; }

/* Copyright strip */
.copyright-strip {
  background-color: #000; /* black */
  color: #fff;            /* white text */
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
  margin-top: 0;
}

/* Footer tagline readability on small screens */
footer p { margin: 8px 0; }

/* Slight spacing fix for main content */
main { padding-bottom: 10px; }

/* ensure floating icons stay above copyright */
.whatsapp-float, .top-float { z-index: 9999; }
