.gallery-item-hidden {
  display: none !important;
}
html, body {
  max-width: 100vw;
  overflow-x: hidden !important;
}
@media (max-width: 768px) {
  .director-message-container,
  .manager-message-container {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }
  .director-photo-container,
  .manager-photo-container {
    order: 1;
    justify-content: center;
    margin-bottom: 1rem;
    width: 100%;
  }
  .director-message-box,
  .manager-message-box {
    order: 2;
    width: 100%;
    border-radius: 20px;
    margin: 0 auto;
    padding: 1.2rem 1rem 1.5rem 1rem;
    box-sizing: border-box;
  }
  .director-photo,
  .manager-photo {
    width: 180px;
    height: 180px;
    margin: 0 auto 1rem auto;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border: 4px solid #fff;
  }
}
@media (max-width: 768px) {
  .social-bar {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .testimonials-section {
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-attachment: scroll !important;
    min-height: 100vw;
    padding: 3rem 1rem;
  }
  .testimonials-section::before {
    background: rgba(0,0,0,0.35);
  }
}
@media (max-width: 768px) {
  .about-section {
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-attachment: scroll !important;
    min-height: 100vw;
    padding: 3rem 1rem;
  }
  .about-section::before {
    background: rgba(0,0,0,0.35);
  }
}
/* styles.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  opacity:1.5;
  /* Prevent horizontal scrolling on small screens */
  overflow-x: hidden;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #66003a;
  color: white;
  padding: 1rem 2rem;
  position: relative;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
  border-radius: 0 0 12px 12px; /* smooth bottom corners */
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: box-shadow 0.2s ease, border-radius 0.2s ease;
}

/* Top nav links container (desktop) */
#nav-links { display: flex; align-items: center; }

/* Mobile dropdown styling (applies when #nav-links becomes visible via .show) */
@media (max-width: 768px) {
  #nav-links {
    display: none; /* overridden by .show below */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(102,0,58,0.98);
    padding: 0.5rem 1rem 1rem 1rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    z-index: 1500;
  }
  
  #nav-links.show { display: block; }

  /* make nav link edges smooth */
  #nav-links ul li a { border-radius: 8px; }
  #nav-links ul li a:focus, #nav-links ul li a:hover { background: rgba(255,255,255,0.06); }
}.logo img {
  height: 70px;
  width: auto;
  transition: transform 0.3s;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.hamburger-dot {
  display: block;
  width: 5px;
  height: 5px;
  background: white;
  border-radius: 50%;
  margin: 2px 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #fcb900;
}

.hero {
  position: relative;
  height: 100vh;
  color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.2s ease, transform 6s ease;
  /* UHD image rendering quality */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: high-quality;
  -ms-interpolation-mode: bicubic;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform, opacity;
  /* Additional quality improvements */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  filter: contrast(1.05) saturate(1.1);
}

.hero-slideshow img.active {
  opacity: 1;
  z-index: 1;
  /* smooth zoom in and out while the slide is active */
  animation: zoomInOut 6s ease-in-out forwards;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
}

/* Typing text styling */
.typing-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 5.5rem;
  font-weight: bold;
  font-style: italic;
  color: white;
}

.cursor {
  display: inline-block;
  width: 2px;
  background: white;
  animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}


.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 51, 102, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  font-style: italic;
  font-size: x-large;

@keyframes zoomInOut {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero {
  text-align: center;
  padding: 5rem 1rem;
  background: linear-gradient(to right, #dff1ff, #f2f9ff);
}

.typing-text {
  font-size: 5.5rem;
  font-weight: bold;
  color: white;
  font-family:italic;
  font-display: swap;
}
@media (max-width: 768px) {
  .typing-text {
    font-size: 2.5rem;
  }
}

.cursor {
  display: inline-block;
  width: 2px;
  background-color: #005792;
  animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}


.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #fcb900;
  color: blue;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.section {
  padding: 3.2rem 2rem;
  margin: 0;
}

/* Restore alternating backgrounds, except for about section */
.section:nth-of-type(even):not(.about-section) {
  background: #f9f9f9;
}

/* About section specific background */
.about-section {
  background-image: url('images/ChatGPT Image Nov 4, 2025, 04_07_47 PM.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  padding: 4rem 2rem;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.about-section > * {
  position: relative;
  z-index: 2;
  color: white;
}.section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #003366;
}

.section ul {
  max-width: 600px;
  margin: 0 auto;
  padding-left: 1rem;
}

.testimonials blockquote {
  max-width: 600px;
  margin: 1rem auto;
  font-style: italic;
  background: #f0f0f0;
  padding: 1rem;
  border-left: 5px solid #fcb900;
  background-image: url('https://t4.ftcdn.net/jpg/05/66/28/43/360_F_566284344_5DqGysFklvdqVkb1t9HEZZJ0pqzVjlzz.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #fff; /* Optional: makes text readable */
  padding: 1rem;;
}

footer {
  text-align: center;
  background-color: #003366;
  color: white;
  padding: 2rem 1rem;
}

/* Bottom navbar at the end of page */
.bottom-nav {
  position: relative;
  margin: 2rem auto;
  max-width: 1200px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg,#004a99,#003366);
  color: white;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.bottom-nav a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 600px) {
  .bottom-nav { left: 6px; right: 6px; bottom: 6px; padding: 0.5rem; }
  .bottom-nav a { font-size: 0.95rem }
}


/* Responsive Styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    margin: 0 0.5rem 0 0;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
  }

  #nav-links {
    display: none;
    width: 100%;
  }

  #nav-links.show {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
  }

  nav ul li {
    width: 100%;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: bold;
     font-size: 1.8rem; 
  }

  nav ul li a {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.5rem 1rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .section ul {
    padding-left: 1rem;
  }

  .testimonials blockquote {
    padding: 1rem;
    background-color: aquamarine;
  }
}

.testimonials-section {
  background-image: url('images/ChatGPT Image Nov 4, 2025, 04_07_47 PM.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
}


.testimonials-section > * {
  position: relative;
  z-index: 2;
  color: white;
}

.testimonial-carousel {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 2rem;
  margin: 0 auto;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
}

.testimonial-card.active {
  opacity: 1;
  transform: scale(1);
  position: relative;
  z-index: 1;
}


@media (max-width: 480px) {
  .hero {
    height: 60vh;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .btn {
    font-size: 0.9rem;
  }

  .logo img {
    height: 45px;
  }
}


.social-bar {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 15px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
}

.social-bar a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 30px;
  color: white;
  transition: all 0.3s ease;
}

.social-bar a i {
  font-size: 20px;
}

.social-bar .instagram {
  background-color: #e4405f;
}

.social-bar .whatsapp {
  background-color: #25D366;
}

.social-bar .facebook {
  background-color: #3b5998;
}

.social-bar a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

@media (max-width: 500px) {
  .social-bar {
    flex-direction: column;
    left: 10px;
    bottom: 10px;
  }
}
img {
  display: block;
  margin-top: 10px;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

.academic-list li {
  margin-bottom: 1.5rem;
  list-style-type: disc;
}

.academic-list li span {
  font-weight: bold;
  text-decoration: underline;
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.academic-list li p {
  margin: 0;
  font-size: 1rem;
  color: #444;
}

#academics {
  background-image: url("images/ChatGPT Image Nov 4, 2025, 04_07_47 PM.png"); 
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 60px 20px;
  color: white;
  position: relative;
}

/* Optional: dark overlay for better readability */
#academics::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

#academics h2,
#academics .academic-grid {
  position: relative;
  z-index: 1;
}
.academic-item {
  background-color: rgba(255, 255, 255, 0.9); /* slight transparency */
  color: #000;
}

.academic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

/* Styled card box */
.academic-item {
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #2a2a2a;
   
}

.academic-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Icon + title styling */
.academic-item span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: underline;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #1f3c88; /* deep blue for headings */
}

.academic-item span i {
  font-size: 1.3rem;
  color: #4361ee; /* vibrant blue icon */
}

/* Description text */
.academic-item p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.5;
  color: #333333;
}

.sunset-theme {
  background: linear-gradient(135deg, #ffe0c3, #ffb6b9);
  color: #5c2c00;
}

.sunset-theme span {
  color: #d35400;
}

.sunset-theme span i {
  color: #e67e22;
}

.green-theme {
  background: linear-gradient(135deg, #e6fff7, #f3fff9);
}

.aquamarine-theme {
  background: linear-gradient(135deg, #a0f0e0, #d2fff7);
  color: #004f4f;
}

.aquamarine-theme span {
  color: #007c7c;
}

.aquamarine-theme span i {
  color: #008b8b;
}


.red-theme {
  background: linear-gradient(135deg, #ffebee, #ffcdd2);
  color: #b71c1c;
}
.aquamarine-theme:hover {
  background: linear-gradient(135deg, #b2fff0, #e0fffa);
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 200, 180, 0.3),
              0 0 10px rgba(0, 200, 180, 0.4);
}

.purple-theme:hover {
  background: linear-gradient(135deg, #d1b3ff, #e8dcff);
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(140, 100, 200, 0.3),
              0 0 10px rgba(140, 100, 200, 0.4);
}

.sunset-theme:hover {
  background: linear-gradient(135deg, #ffd6b0, #ffc1c6);
  transform: translateY(-6px);
 box-shadow: 0 10px 25px rgba(255, 150, 100, 0.2),
              0 0 10px rgba(255, 130, 100, 0.4);
}

.academic-item {
  transition: transform 0.3s ease, background 0.4s ease, box-shadow 0.3s ease;
}

.green-theme:hover {
  background: linear-gradient(135deg, #d8fff0, #eafff7);
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 180, 100, 0.2),
              0 0 10px rgba(0, 180, 100, 0.4);
}

.academic-item:hover span i {
  animation: bounceIcon 0.6s ease;
}

@keyframes bounceIcon {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-6px); }
  60%  { transform: translateY(3px); }
  100% { transform: translateY(0); }
}

.enroll-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #1f3c88; /* default deep blue */
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.enroll-btn:hover {
  background-color: #3f51b5;
  transform: translateY(-2px);
}

.aquamarine-theme .enroll-btn {
  background-color: #009e9e;
}
.aquamarine-theme .enroll-btn:hover {
  background-color: #00bfbf;
}

.purple-theme .enroll-btn {
  background-color: #6a1b9a;
}
.purple-theme .enroll-btn:hover {
  background-color: #8e24aa;
}

.sunset-theme .enroll-btn {
  background-color: #e67e22;
}
.sunset-theme .enroll-btn:hover {
  background-color: #ff944d;
}

.green-theme .enroll-btn {
  background-color: #28a745;
}
.green-theme .enroll-btn:hover {
  background-color: #38c172;
}

/* Modal styling */
.feature-card {
  background: white;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: #1f3c88;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 🎯 Icon Circle */
.icon-circle {
  background: #1f3c88;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(31, 60, 136, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-circle i {
  color: white;
  font-size: 1.8rem;
  animation: bounce 2s infinite;
}

/* Glowing effect on hover */
.feature-card:hover .icon-circle {
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(31, 60, 136, 0.5);
}

.about-section {
  padding: 4rem 2rem;
  background-image: url('images/ChatGPT Image Nov 4, 2025, 04_07_47 PM.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 110%;
  background-attachment: fixed;  /* ✅ Enables parallax */
  position: relative;
  z-index: 1;
  color: #fff;
  animation: animateBG 20s ease-in-out infinite alternate; /* ✅ Slow zoom effect */
  will-change: background-position, background-size;
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 30, 0.5); /* darker overlay for readability */
  z-index: -1;
}

@keyframes animateBG {
  0% {
    background-size: 110%;
    background-position: center;
  }
  100% {
    background-size: 115%;
    background-position: top;
  }
}

@media (max-width: 768px) {
  .about-section {
    background-attachment: scroll;
  }
}


.about-section h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

.about-item {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #e0e0e0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #333;
}

.about-item:hover {
  transform: translateY(-5px);
}

.icon-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

.icon-circle.blue {
  background-color: #1f3c88;
}

.icon-circle.green {
  background-color: #2ecc71;
}

.icon-circle.purple {
  background-color: #8e44ad;
}

.about-item p {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.contact-section {
  padding: 4rem 2rem;
  background-image: url('images/Gemini_Generated_Image_o3d6ojo3d6ojo3d6.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  color: white;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 30, 0.6);
  z-index: 0;
}

.contact-section > * {
  position: relative;
  z-index: 1;
}

.contact-section h1 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: slideDown 0.8s ease;
}

.contact-section > p {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 3rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: auto;
}

.contact-card {
  background: rgba(255, 255, 255, 0.98);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  color: #333;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.5);
  animation: fadeInUp 0.6s ease backwards;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s;
}

.contact-card:hover::before {
  left: 100%;
}

.contact-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  border-color: rgba(102, 126, 234, 0.8);
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:nth-child(4) { animation-delay: 0.4s; }
.contact-card:nth-child(5) { animation-delay: 0.5s; }
.contact-card:nth-child(6) { animation-delay: 0.6s; }

.contact-card h2 {
  color: #667eea;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: translateX(5px);
}

.contact-item p {
  margin: 0;
  font-size: 1rem;
}

.contact-item a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.contact-item a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.icon-circle {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.icon-circle:hover {
  transform: scale(1.2) rotate(360deg);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.icon-circle.green { 
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}
.icon-circle.purple { 
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
}
.icon-circle.blue { 
  background: linear-gradient(135deg, #3498db, #2980b9);
}
.icon-circle.fb { 
  background: linear-gradient(135deg, #3b5998, #8b9dc3);
}
.icon-circle.ig { 
  background: linear-gradient(135deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
}
.icon-circle.map { 
  background: linear-gradient(135deg, #f39c12, #e67e22);
}
.icon-circle.grey { 
  background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.map-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
  margin-top: 1rem;
}

.map-container:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.map-container iframe {
  border: 0;
  border-radius: 16px;
  transition: all 0.3s ease;
}

/* Action Buttons in Cards */
.contact-card a[style*="display: block"] {
  transition: all 0.3s ease !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.contact-card a[style*="display: block"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.3);
  transition: left 0.5s;
}

.contact-card a[style*="display: block"]:hover::before {
  left: 100%;
}

.contact-card a[style*="display: block"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Department Cards Styling */
.contact-card > div[style*="grid"] > div {
  transition: all 0.3s ease !important;
  cursor: pointer;
}

.contact-card > div[style*="grid"] > div:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}

/* FAQ Styling */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item h3 {
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.faq-item h3:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

.faq-item h3 i {
  transition: transform 0.3s ease;
}

.faq-item h3:hover i {
  transform: rotate(180deg);
}

/* Animations */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-section h1 {
    font-size: 2rem;
  }

  .contact-section > p {
    font-size: 1rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .icon-circle {
    width: 45px;
    height: 45px;
    min-width: 45px;
    font-size: 18px;
  }
}



.fade-in-on-scroll {
  opacity: 0;
  transform: scale(0.9) translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}
 
/* Yellow Theme */
.yellow-theme {
  background-color: #fff9c4; /* light yellow */
  border: 2px solid #fdd835; /* bright yellow */
  color: #5d4b00; /* dark yellow-brown text */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(253, 216, 53, 0.3);
  transition: transform 0.3s;
}
.yellow-theme:hover {
  transform: scale(1.03);
}

/* Brown Theme */
.brown-theme {
  background-color: #d7ccc8; /* light brown */
  border: 2px solid #5d4037; /* dark brown */
  color: #3e2723; /* deeper brown text */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(93, 64, 55, 0.3);
  transition: transform 0.3s;
}
.brown-theme:hover {
  transform: scale(1.03);
}

.vision-mission-section {
  padding: 60px 20px;
  text-align: center;
  background-image: url('images/ChatGPT Image Nov 4, 2025, 04_07_47 PM.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  position: relative;
  z-index: 1;
}

.fixed-card {
  margin: 0 auto 40px;
  max-width: 600px;
}

.oval-card {
  position: relative;
  border-radius: 50% / 40%;
  background-size: cover;
  background-position: center;
  color: white;
  padding: 30px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  background-blend-mode: overlay;
  background-color: rgba(0, 0, 0, 0.5);
}

.vision-card {
  background-image: url('images/vision-bg.jpg');
}

.mission-card {
  background-image: url('images/mission-bg.jpg');
}

.overlay h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #ffeb3b;
}

.overlay p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Floating Cards */

.floating-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.floating-card {
  background: linear-gradient(to right, #f5e6ca, #fff3e0);
  color: #333;
  padding: 20px 25px;
  border-radius: 40px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  animation: float 5s ease-in-out infinite alternate;
}

.floating-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
}

/* Floating Animation */
@keyframes float {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

@media (max-width: 600px) {
  .oval-card {
    border-radius: 25px;
  }
}

.core-values-section {
  background: linear-gradient(to right, #fffbec, #fff6d0);
  padding: 60px 20px;
  text-align: center;
}

.triangle-card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.triangle-values-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 2rem 1rem;
}

.triangle-card {
  width: 220px;
  height: 190px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: float 6s ease-in-out infinite;
  transition: transform 0.3s ease;
  text-align: center;
  padding: 10px;
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.triangle-text {
  font-size: 0.85rem;
  line-height: 1.3;
  max-width: 80%;
  overflow-wrap: break-word;
}

.triangle-text h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.triangle-text p {
  font-size: 0.75rem;
  margin: 0;
}

/* Floating animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Color themes */
.integrity    { background: #0d47a1; }
.discipline   { background: #4e342e; }
.excellence   { background: #388e3c; }
.compassion   { background: #d84315; }
.service      { background: #6a1b9a; }
.respect      { background: #0277bd; }
.faith        { background: #c62828; }
.teamwork     { background: #2e7d32; }

.triangle-core-values {
  background-image: url('');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 60px 20px;
  position: relative;
  z-index: 1;
}

.triangle-core-values::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* adjust for darkness */
  z-index: 0;
}
.triangle-values-container,
.triangle-core-values h2 {
  position: relative;
  z-index: 2;
}

.slideshow-background {
  position: relative;
  height: auto;
  overflow: hidden;
  padding: 60px 20px;
  z-index: 2;
}

 

/* Ensure foreground content stays above */
.slideshow-background > *,
.triangle-values-container {
  position: relative;
  z-index: 3;
}

.manager-message-section {
  background: linear-gradient(to right, #eef2f3, #ffffff);
  padding: 3rem 1rem;
}

.manager-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.message-box {
  flex: 1 1 60%;
  padding: 2rem;
  position: relative;
}

.message-box h2 {
  font-size: 2rem;
  color: #005792;
  margin-bottom: 1rem;
}

.message-box p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.signature-container {
  position: relative;
  margin-top: 2rem;
}

.signature {
  width: 200px;
  height: auto;
  animation: drawSignature 2.5s ease-in-out forwards;
  opacity: 0;
}

.pen-icon {
  width: 32px;
  position: absolute;
  bottom: 10px;
  left: 190px;
  opacity: 0;
  animation: penFade 1s 2.5s forwards;
}

.manager-name {
  margin-top: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
  color: #333;
}

.manager-name .title {
  display: block;
  font-size: 0.9rem;
  color: #555;
}

@keyframes drawSignature {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0% 0 0);
    opacity: 1;
  }
}

@keyframes penFade {
  to {
    opacity: 1;
  }
}

.manager-photo {
  flex: 1 1 30%;
  text-align: center;
}

.manager-photo img {
  width: 250px;
  height: 330px;
  object-fit: cover;
  border-radius: 50% 50% 60% 60% / 60% 60% 40% 40%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.director-message-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(145deg, #f0f8ff, #e6f2ff);
  border-radius: 20px;
  margin: 2rem auto;
  max-width: 1200px;
  flex-wrap: wrap;
}

.director-message-box {
  flex: 1 1 600px;
  background-color: #fff;
  border-radius: 20px 20px 20px 0;
  padding: 2rem;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.director-message-box::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 60px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid #fff;
}

.message-title {
  font-size: 2rem;
  color: #005792;
  margin-bottom: 1rem;
}

.director-message-box p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #333;
}

.signature-area {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.pen-icon {
  width: 30px;
  height: auto;
}

.signature {
  width: 200px;
  height: 50px;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawSignature 3s ease forwards;
}

.director-name {
  font-style: italic;
  font-weight: bold;
  color: #005792;
  font-size: 1.2rem;
  margin-left: 10px;
}

@keyframes drawSignature {
  to {
    stroke-dashoffset: 0;
  }
}

.director-photo-container {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.director-photo {
  width: 280px;
  height: 320px;
  object-fit: cover;
  border-radius: 50% 50% 40% 40% / 55% 55% 45% 45%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border: 5px solid #fff;
}


.manager-message-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(to right, #e0f7fa, #f0ffff);
  border-radius: 20px;
  margin: 2rem auto;
  max-width: 1200px;
  flex-wrap: wrap;
}

.manager-message-box {
  flex: 1 1 600px;
  background-color: #fff;
  border-radius: 20px 20px 20px 0;
  padding: 2rem;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.manager-message-box::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 60px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid #fff;
}

.message-title {
  font-size: 2rem;
  color: #00796b;
  margin-bottom: 1rem;
}

.manager-message-box p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #333;
}

/* Signature */
.signature-area {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.pen-icon {
  width: 30px;
  height: auto;
}

.signature {
  width: 200px;
  height: 50px;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawSignature 3s ease forwards;
}

.manager-name {
  font-style: italic;
  font-weight: bold;
  color: #00796b;
  font-size: 1.2rem;
  margin-left: 10px;
}

@keyframes drawSignature {
  to {
    stroke-dashoffset: 0;
  }
}

.manager-photo-container {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.manager-photo {
  width: 280px;
  height: 320px;
  object-fit: cover;
  border-radius: 50% 50% 40% 40% / 55% 55% 45% 45%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border: 5px solid #fff;
}

/* --- Main Section Background with Overlay --- */
.slideshow-background {
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem;
  background-size: cover;
  background-position: center;
  animation: slideshow 30s infinite ease-in-out;
}

.slideshow-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4); /* White transparent overlay */
  z-index: 1;
  pointer-events: none;
}

/* Ensure content stays on top of overlay */
.slideshow-background > * {
  position: relative;
  z-index: 2;
}

/* --- Slideshow Background Images --- */
.slideshow-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.slideshow-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  opacity: 0;
  transition: opacity 1.5s ease;
  z-index: 0;
}

.slideshow-bg img.active {
  opacity: 1;
}

/* --- Admissions Content --- */
.admissions-header {
  text-align: center;
  margin-bottom: 3rem;
}

.admissions-header h2 {
  font-size: 2.5rem;
  color: #005792;
  margin-bottom: 1rem;
}

.admissions-header p {
  font-size: 1.2rem;
}

.admissions-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  z-index: 2;
}

.admissions-steps {
  flex: 1 1 300px;
  background: #f0f4ff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.admissions-steps h3 {
  color: #005792;
  margin-bottom: 1rem;
}

.admissions-steps ol {
  list-style-position: inside;
  font-size: 1.1rem;
  line-height: 1.8;
}

.admissions-cta.card {
  flex: 1 1 300px;
  background: #fff8e1ee;
  border: 2px dashed #ff9800;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.admissions-cta h3 {
  color: #e65100;
  margin-bottom: 1rem;
}

.admissions-cta .btn {
  display: block;
  margin: 1rem auto;
  padding: 0.8rem 1.5rem;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.download-btn { background: #4caf50; color: white; }
.whatsapp-btn { background: #25d366; color: white; }
.contact-btn { background: #005792; color: white; }

.admissions-cta .btn:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

@media (max-width: 768px) {
  .admissions-content {
    flex-direction: column;
  }
}

/* Core Values Section Background */
.section.fruit-core-values {
  position: relative;
  padding: 3rem 1rem;
  background-image: url('images/ChatGPT Image Nov 4, 2025, 04_07_47 PM.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  overflow: hidden;
}

/* Section Heading */
.fruit-core-values h2 {
  font-size: 2.5rem;
  color: #3a3a3a;
  text-align: center;
  margin-bottom: 3rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

/* Container Layout */
.fruit-values-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* Fruit Card Base Style */
.fruit-card {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 30% 30%, #ffebcc, #ffcf8b);
  border-radius: 50% 60% 55% 45% / 55% 40% 60% 45%;
  padding: 1.2rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  animation: float 6s ease-in-out infinite, zoomInOut 3s ease-in-out infinite;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(2px);
  transition: transform 0.3s;
}

/* Fruit Card Colors (Optional Variation) */
.fruit-card.integrity { background: radial-gradient(circle, #ffecd2, #fcb69f); }
.fruit-card.discipline { background: radial-gradient(circle, #c2ffd8, #465e9c); }
.fruit-card.excellence { background: radial-gradient(circle, #ffd6e0, #ff758c); }
.fruit-card.compassion { background: radial-gradient(circle, #d2fcff, #9cc4e4); }
.fruit-card.service { background: radial-gradient(circle, #fbc2eb, #a6c1ee); }
.fruit-card.respect { background: radial-gradient(circle, #f6d365, #fda085); }
.fruit-card.faith { background: radial-gradient(circle, #e0c3fc, #8ec5fc); }
.fruit-card.teamwork { background: radial-gradient(circle, #ff9a9e, #fecfef); }

/* Card Hover Effect */
.fruit-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Text Inside the Fruit */
.fruit-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: bold;
}

.fruit-card p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.4;
  padding: 0 0.2rem;
}

/* Floating Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Zoom In and Out Animation */
@keyframes zoomInOut {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Responsive Tweaks */
@media (max-width: 600px) {
  .fruit-card {
    width: 150px;
    height: 150px;
  }

  .fruit-card h3 {
    font-size: 1rem;
  }

  .fruit-card p {
    font-size: 0.85rem;
  }
}



.section.fruit-core-values.slideshow-background {
  position: relative;
  background-size: cover;
  background-position: center;
  animation: slideshow 30s infinite ease-in-out;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)),
    url('images/download (3).jpeg'); /* fallback start image */
}

/* Elevate cards above slideshow */
.fruit-values-container,
.fruit-card {
  position: relative;
  z-index: 1;
}

/* Improve text visibility */
.fruit-card h3,
.fruit-card p {
  color: #222;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
}

@keyframes slideshow {
  0%    { background-image: linear-gradient(rgba(255,255,255,0.25), rgba(255,255,255,0.25)), url('images/core (1).jpeg'); }
  20%   { background-image: linear-gradient(rgba(255,255,255,0.25), rgba(255,255,255,0.25)), url('images/core (2).jpeg'); }
  40%   { background-image: linear-gradient(rgba(255,255,255,0.25), rgba(255,255,255,0.25)), url('images/core (3).jpeg'); }
  60%   { background-image: linear-gradient(rgba(255,255,255,0.25), rgba(255,255,255,0.25)), url('images/core (4).jpeg'); }
  80%   { background-image: linear-gradient(rgba(255,255,255,0.25), rgba(255,255,255,0.25)), url('images/core (5).jpeg'); }
  100%  { background-image: linear-gradient(rgba(255,255,255,0.25), rgba(255,255,255,0.25)), url('images/core (6).jpeg'); }
}

/* GALLERY SECTION STYLES */
.gallery-section {
  padding: 4rem 1rem;
  background-image: url('images/ChatGPT Image Nov 4, 2025, 04_10_20 PM.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  min-height: 100vh;
}

.gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.gallery-section > * {
  position: relative;
  z-index: 2;
}

.gallery-header {
  text-align: center;
  color: white;
  margin-bottom: 3rem;
}

.gallery-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  border: 2px solid white;
  background: transparent;
  color: white;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: white;
  color: #003366;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/2;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.5s ease;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  }
  50% {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
  }
  100% {
    transform: translateY(0px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  }
}

.gallery-item:nth-child(even) {
  animation-delay: 1.5s;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  /* UHD quality rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: high-quality;
  -ms-interpolation-mode: bicubic;
  backface-visibility: hidden; 
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  /* Enhanced clarity and color */
  filter: brightness(1.02) contrast(1.05) saturate(1.08);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  animation-play-state: paused;
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
}

.gallery-item-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.gallery-item-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .gallery-header h1 {
    font-size: 2rem;
  }
  
  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
}

/* EVENTS SECTION STYLES */

/* STAFF SECTION STYLES - match other page backgrounds for visual consistency */
.staff-section {
  padding: 4rem 1rem;
  background-image: url('images/ChatGPT Image Nov 4, 2025, 04_10_20 PM.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  min-height: 100vh;
}

.staff-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.staff-section > * {
  position: relative;
  z-index: 2;
  color: white; /* default text color when on the dark overlay */
}

.staff-section .staff-intro p {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: #f2f6fb; /* slightly off-white for contrast */
}

.school-events-section {
  padding: 4rem 1rem;
  background-image: url('images/ChatGPT Image Nov 4, 2025, 04_10_20 PM.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  text-align: center;
  position: relative;
}
/* TRANSPORT SECTION STYLES */
/* ===== TRANSPORT SECTION - MODERN ATTRACTIVE DESIGN ===== */
.transport-section {
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  position: relative;
  overflow: hidden;
}

.transport-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/ChatGPT Image Nov 4, 2025, 04_10_20 PM.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.transport-section > * { 
  position: relative; 
  z-index: 2; 
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.transport-section > h1 {
  color: #fff;
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.transport-intro {
  background: rgba(255,255,255,0.95);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  margin-bottom: 3rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.transport-intro p {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
}

/* Transport Features - Card Grid */
.transport-features {
  margin-bottom: 3rem;
}

.transport-features h2 {
  color: #fff;
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.feature-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(255,255,255,0.5);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.feature-card i {
  font-size: 3rem;
  color: #667eea;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-card ul {
  list-style: none;
  padding: 0;
  color: #555;
  text-align: left;
}

.feature-card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
}

.feature-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Fleet Gallery - Modern Grid */
.transport-gallery {
  margin-bottom: 3rem;
}

.transport-gallery h2 {
  color: #fff;
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.transport-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.transport-photo {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(102,126,234,0.95), transparent);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
}

.gallery-item-overlay h3 {
  color: #fff;
  margin: 0;
  font-size: 1.3rem;
}

/* Areas We Serve - Modern Cards */
.transport-areas {
  margin-bottom: 3rem;
}

.transport-areas h2 {
  color: #fff;
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.areas-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.area {
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-left: 5px solid #667eea;
  transition: transform 0.3s ease;
}

.area:hover {
  transform: translateX(10px);
}

.area h3 {
  color: #667eea;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.area ul {
  list-style: none;
  padding: 0;
  color: #555;
}

.area li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
  border-bottom: 1px solid rgba(102,126,234,0.1);
}

.area li::before {
  content: '📍';
  position: absolute;
  left: 0;
}

/* Drivers & Staff - Modern Profile Cards */
.transport-staff {
  margin-bottom: 3rem;
}

.transport-staff h2 {
  color: #fff;
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.transport-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.driver-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  border: 3px solid rgba(102,126,234,0.3);
}

.driver-card:hover {
  transform: translateY(-10px);
}

.driver-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  border: 5px solid #667eea;
  box-shadow: 0 10px 25px rgba(102,126,234,0.3);
  display: block;
}

.driver-card h3 {
  color: #333;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.driver-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

/* Transport Policies - Icon Cards */
.transport-policies {
  margin-bottom: 3rem;
}

.transport-policies h2 {
  color: #fff;
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.policies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.policy-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  color: white;
}

.policy-card:hover {
  transform: scale(1.05);
}

.policy-card h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.policy-card p {
  color: rgba(255,255,255,0.95);
  font-size: 1rem;
  line-height: 1.6;
}

/* Transport Contact - Call-to-Action Section */
.transport-contact {
  margin-bottom: 2rem;
}

.transport-contact h2 {
  color: #fff;
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.transport-contact > p {
  color: #fff;
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.contact-info {
  background: rgba(255,255,255,0.95);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.contact-info p {
  color: #333;
  font-size: 1.2rem;
  margin: 1rem 0;
  font-weight: 500;
}

.contact-info i {
  color: #667eea;
  margin-right: 0.5rem;
  font-size: 1.3rem;
}

.transport-contact .btn {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(102,126,234,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 1rem auto;
  display: block;
  width: fit-content;
}

.transport-contact .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(102,126,234,0.6);
}

/* Transport Form - Modern Design */
.registration-steps {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  padding: 3rem;
  border-radius: 25px;
  margin-top: 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  border: 3px solid rgba(102,126,234,0.4);
}

.registration-steps h3 {
  margin-top: 0;
  color: #667eea;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
}

.registration-steps h3 i {
  margin-right: 0.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.step-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(102,126,234,0.3);
  border-color: #667eea;
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.step-icon {
  margin: 2rem 0 1rem;
}

.step-icon i {
  font-size: 3.5rem;
  color: #667eea;
  opacity: 0.8;
}

.step-card h4 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.step-card p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.step-btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
}

.whatsapp-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(37,211,102,0.4);
}

.email-btn {
  background: linear-gradient(135deg, #EA4335 0%, #C5221F 100%);
  color: white;
}

.email-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(234,67,53,0.4);
}

.visit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.visit-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(102,126,234,0.4);
}

.step-btn i {
  margin-right: 0.5rem;
}

.registration-info {
  background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
  padding: 2rem;
  border-radius: 20px;
  border-left: 5px solid #667eea;
}

.registration-info h4 {
  color: #667eea;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.registration-info h4 i {
  margin-right: 0.5rem;
}

.info-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.info-item:hover {
  transform: translateX(10px);
}

.info-item i {
  color: #25D366;
  font-size: 1.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.info-item span {
  color: #333;
  font-size: 1rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .transport-section > h1 {
    font-size: 2rem;
  }
  
  .transport-features h2,
  .transport-gallery h2,
  .transport-areas h2,
  .transport-staff h2,
  .transport-policies h2,
  .transport-contact h2 {
    font-size: 1.8rem;
  }
  
  .features-grid,
  .transport-gallery-grid,
  .areas-list,
  .transport-staff-grid,
  .policies-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .transport-photo {
    height: 200px;
  }
  
  .feature-card,
  .driver-card,
  .area,
  .policy-card,
  .step-card {
    padding: 1.5rem;
  }
  
  .transport-intro,
  .registration-steps {
    padding: 1.5rem;
  }

  .registration-steps h3 {
    font-size: 1.6rem;
  }

  .info-items {
    grid-template-columns: 1fr;
  }
}

.school-events-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.school-events-section > * {
  position: relative;
  z-index: 2;
}

.school-events-section h2,
.school-events-section p {
  color: white;
}

.events-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

.event-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.event-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
  display: block;
  border-radius: 0;
}
@media (max-width: 600px) {
  .event-card img {
    height: 160px;
  }
}

.event-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  background: #ffffff;
}

.event-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #003366;
  font-weight: 600;
  line-height: 1.4;
}

.event-content p {
  color: #333333;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.event-date {
  color: #0066cc;
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.read-more {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #003366;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  margin-top: auto;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

.read-more:hover {
  background: #004a99;
}

.event-date {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 1rem;
}

.read-more {
  align-self: flex-start;
  margin-top: 1rem;
  text-decoration: none;
  background-color: #005792;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.read-more:hover {
  background-color: #003f5c;
}

.office-hours {
  background-image: url('images/ChatGPT Image Nov 4, 2025, 04_07_47 PM.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  text-align: center;
  padding: 3rem 1rem;
}
.hours-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}
.day-block {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  min-width: 220px;
  transition: transform 0.3s ease;
}
.day-block:hover {
  transform: scale(1.05);
}
.closed {
  opacity: 0.6;
}

.student-life-section {
  position: relative;
  background-image: url('images/ChatGPT Image Nov 4, 2025, 04_07_47 PM.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 4rem 2rem;
  overflow: hidden;
  z-index: 1;
}

.student-life-section h2 {
  text-align: center;
  font-size: 2.6rem;
  color: #0b5c8a; /* deep blue to match wheel */
  margin-bottom: 2rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.student-life-section ol {
  counter-reset: section-counter;
  list-style: none;
  padding-left: 0;
}

.student-life-section li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  animation: float 6s ease-in-out infinite, zoomInOut 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.student-life-section li:hover {
  transform: scale(1.03);
}

.student-life-section li::before {
  content: "✔";
  position: absolute;
  left: 1rem;
  top: 1.2rem;
  font-size: 1.5rem;
  color: #28a745;
  font-weight: bold;
}

.student-life-section h3 {
  font-size: 1.6rem;
  color: #005792;
  margin-bottom: 0.5rem;
  padding-top: 1rem;
  padding-left: 1rem;
}

.student-life-section p {
  font-size: 1.05rem;
  padding: 1rem 0 0 0;
  line-height: 1.6;
  color: #222;
}

/* subtle dark overlay to ensure wheel and text remain readable over background */
.student-life-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6));
  pointer-events: none;
  z-index: 0;
}

.student-life-section .student-life-content { position: relative; z-index: 2; }

.student-life-section img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  animation: zoomInOut 8s ease-in-out infinite;
}

/* Rotating wheel styles */
.wheel-container {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.wheel {
  width: 460px;
  height: 460px;
  border-radius: 50%;
  position: relative;
  /* soft paper-like background with subtle texture */
  background-color: #faf8f5;
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), rgba(0,0,0,0.02)),
                    repeating-linear-gradient(135deg, rgba(0,0,0,0.02) 0 1px, transparent 1px 14px);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  transition: transform 1s cubic-bezier(.22,.9,.37,1);
  overflow: visible;
}
.wheel-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 0 0;
  pointer-events: auto; /* allow clicks/taps */
  cursor: pointer;
  outline: none;
}
.dot-marker {
  width: 36px;
  height: 36px;
  background: linear-gradient(180deg, #ffd54f, #ffb300);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  transform: translate(-50%, -50%);
  transition: transform 300ms ease, box-shadow 300ms ease, background 300ms ease;
  border: 3px solid rgba(255,255,255,0.6);
}
.wheel-dot:nth-child(1) .dot-marker { background: linear-gradient(180deg,#ff8a65,#ff7043); }
.wheel-dot:nth-child(2) .dot-marker { background: linear-gradient(180deg,#ffd54f,#ffb300); }
.wheel-dot:nth-child(3) .dot-marker { background: linear-gradient(180deg,#a5d6a7,#66bb6a); }
.wheel-dot:nth-child(4) .dot-marker { background: linear-gradient(180deg,#90caf9,#42a5f5); }
.wheel-dot:nth-child(5) .dot-marker { background: linear-gradient(180deg,#ce93d8,#ab47bc); }
.wheel-dot:nth-child(6) .dot-marker { background: linear-gradient(180deg,#ffe082,#ffca28); }
.wheel-dot:nth-child(7) .dot-marker { background: linear-gradient(180deg,#80cbc4,#26a69a); }
.wheel-dot:nth-child(8) .dot-marker { background: linear-gradient(180deg,#f48fb1,#f06292); }
.wheel-dot:nth-child(9) .dot-marker { background: linear-gradient(180deg,#b39ddb,#7e57c2); }
.wheel-dot:nth-child(10) .dot-marker { background: linear-gradient(180deg,#aed581,#9ccc65); }
.dot-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 0 0;
  padding: 6px 12px;
  margin-left: 24px;
  background: rgba(0,87,146,0.95);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  transform-style: preserve-3d;
}
.wheel-dot:focus .dot-marker,
.wheel-dot:hover .dot-marker {
  transform: translate(-50%, -65%) scale(1.25);
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
}
.wheel-dot:focus .dot-label,
.wheel-dot:hover .dot-label {
  transform: translateY(-6px) rotate(0deg);
}
.wheel-dot.active .dot-marker {
  transform: translate(-50%, -65%) scale(1.4);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  background: linear-gradient(180deg, #4fc3f7, #0288d1);
}
.wheel-info {
  max-width: 460px;
  background: #ffffff;
  padding: 1.4rem 1.6rem;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.wheel-info h3 { margin: 0 0 8px 0; color: #0b5c8a; font-size: 1.15rem }
.wheel-info p { margin: 0; color: #333; line-height: 1.45 }

@media (max-width: 900px) {
  .wheel { width: 300px; height: 300px }
  .wheel-info { max-width: 300px }
}

@media (max-width: 480px) {
  .wheel { width: 260px; height: 260px }
  .wheel-info { max-width: 260px; padding: 1rem }
  .dot-label { display: none; } /* hide long pill labels on very small screens */
}

/* Floating and Zoom Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes zoomInOut {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* Make the staff values info card float and gently zoom in/out */
/* staff-specific larger/faster zoom */
@keyframes staffZoomLarge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

#staffWheelInfo {
  will-change: transform;
  /* faster float and a larger zoom effect */
  animation: float 4s ease-in-out infinite alternate, staffZoomLarge 4s ease-in-out infinite alternate;
  transform-origin: center center;
}

/* Staff Section Styles */
.staff-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  margin-bottom: 2rem;
}

.staff-card:hover {
  transform: translateY(-10px);
}

.staff-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border: 4px solid #fff;
  transition: transform 0.3s ease;
}

.staff-card:hover .staff-photo {
  transform: scale(1.05);
}

.staff-card h3 {
  color: #003366;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.staff-card .role {
  color: #005792;
  font-weight: 500;
  margin-bottom: 1rem;
}

.staff-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.staff-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.staff-card ul li {
  color: #666;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
}

.staff-category {
  margin-bottom: 4rem;
}

.staff-category h2 {
  text-align: center;
  color: #003366;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

/* Circular Staff Design for Transport Section */
.circle-staff-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 900px;
  margin: 3rem auto;
}

.circle-staff-item {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 2rem 0;
  animation: float 6s ease-in-out infinite;
}

.circle-staff-item:nth-child(even) {
  flex-direction: row-reverse;
  animation-delay: -3s;
}

.circle-half {
  position: relative;
  margin: 0 2rem;
  transition: transform 0.3s ease;
}

.circle-half:hover {
  transform: scale(1.05) translateY(-5px);
}

.circle-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, #66003a 0%, #8b0049 100%);
  padding: 10px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(102, 0, 58, 0.3);
  animation: pulse 4s ease-in-out infinite;
}

.circle-image img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.circle-content {
  width: 350px;
  min-height: 200px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 15px 40px rgba(102, 0, 58, 0.2);
  padding: 2.5rem;
  border-radius: 20px;
  border: 2px solid #66003a;
  position: relative;
  animation: bounce 5s ease-in-out infinite;
}

.circle-content::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(45deg, #66003a, #8b0049, #66003a);
  border-radius: 25px;
  z-index: -1;
  opacity: 0.6;
  animation: glow 3s ease-in-out infinite alternate;
}

.circle-content h3 {
  color: #66003a;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  font-weight: bold;
  text-align: center;
}

.circle-content .staff-role {
  color: #8b0049;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  background: rgba(139, 0, 73, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 25px;
}

.circle-content p:last-child {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

/* Floating Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Pulse Animation for Images */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 15px 35px rgba(102, 0, 58, 0.3);
  }
  50% {
    box-shadow: 0 20px 45px rgba(102, 0, 58, 0.5);
  }
}

/* Bounce Animation for Content Boxes */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

/* Glow Animation for Box Border */
@keyframes glow {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 0.8;
  }
}

@media (max-width: 768px) {
  .circle-staff-item {
    flex-direction: column !important;
    gap: 2rem;
    animation: float 4s ease-in-out infinite;
  }
  
  .circle-image {
    width: 250px;
    height: 250px;
  }
  
  .circle-image img {
    width: 230px;
    height: 230px;
  }
  
  .circle-content {
    width: 300px;
    padding: 2rem;
  }
  
  .circle-content h3 {
    font-size: 1.4rem;
  }
  
  .circle-half {
    margin: 0;
  }
}

@media (max-width: 768px) {
  .staff-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .staff-photo {
    width: 150px;
    height: 150px;
  }
}

/* Student Welfare Page Styles */
.student-welfare-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.welfare-intro {
  text-align: center;
  max-width: 800px;
  margin: 2rem auto;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
}

.welfare-categories {
  margin: 3rem 0;
}

.care-timeline {
  max-width: 800px;
  margin: 2rem auto;
}

.care-item {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(102, 0, 58, 0.1);
  border-left: 4px solid #66003a;
}

.care-time {
  background: linear-gradient(135deg, #66003a 0%, #8b0049 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  min-width: 120px;
  text-align: center;
  margin-right: 2rem;
}

.care-activity h4 {
  color: #66003a;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.care-activity p {
  color: #555;
  margin: 0;
  line-height: 1.5;
}

.parent-partnership {
  margin: 3rem 0;
}

.partnership-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
  margin: 2rem 0;
}

.partnership-text ul {
  list-style: none;
  padding: 0;
}

.partnership-text li {
  margin: 1rem 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(102, 0, 58, 0.1);
}

.partnership-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-box {
  background: linear-gradient(135deg, #66003a 0%, #8b0049 100%);
  color: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(102, 0, 58, 0.3);
}

.stat-box h4 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  font-weight: bold;
}

.stat-box p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.9;
}

.welfare-policies {
  margin: 3rem 0;
}

.welfare-contact {
  text-align: center;
  max-width: 800px;
  margin: 3rem auto;
}

.welfare-commitment {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 2rem;
  border-radius: 15px;
  margin: 2rem 0;
  border: 2px solid #66003a;
}

@media (max-width: 768px) {
  .care-item {
    flex-direction: column;
    text-align: center;
  }
  
  .care-time {
    margin-right: 0;
    margin-bottom: 1rem;
    min-width: auto;
  }
  
  .partnership-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .partnership-stats {
    flex-direction: row;
    justify-content: space-around;
  }
  
  .stat-box {
    padding: 1.5rem;
  }
  
  .stat-box h4 {
    font-size: 2rem;
  }
}
