/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth; /* Enable smooth scrolling */
   align-items: center;

}

section {
  padding: 100px 20px 20px; /* Add padding-top to prevent overlap with navbar */
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: #f5f5f5;
  display: none; /* Hide all sections by default */
  min-height: 100vh;

}

section.active {
  display: block; /* Only the active section is visible */
}

 
/* Navigation Bar */
nav {
  font-size: 1rem;
  background: linear-gradient(135deg, #1E90FF, #00BFFF);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: auto; /* Adjust height dynamically */
  flex-wrap: wrap;
}

/* Logo */
.logo-box {
  display: flex;
  align-items: center;
}

.logo-box img {
  height: 50px;
  width: auto;
}

/* School Name */
.school-name h1 {
  font-size: 1.5rem;
  margin-left: 10px;
  white-space: nowrap;
}

/* Navigation Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.nav-links li a:hover {
  background: #FFD700;
  color: #333;
}

.nav-links li a.active {
  font-weight: bold;
  border-bottom: 2px solid #FFD700;
}

/* Login Button */
#loginButton {
  background: #FFD700;
  color: #333;
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

#loginButton:hover {
  background: #FFC300;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background: white;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  nav {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    background: #1E90FF;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
  }

  .nav-links.menu-open {
    display: flex;
  }

  .hamburger {
    display: flex;
    position: absolute;
    right: 70px;
    top: 20px;
  }

  .school-name h1 {
    font-size: 1.2rem;
    text-align: center;
  }

  #loginButton {
    position: absolute;
    right: 10px;
    top: 10px;
  }
}

@media (max-width: 600px) {
  .school-name h1 {
    font-size: 1rem;
  }

  .logo-box img {
    height: 40px;
  }

  .hamburger {
    right: 10px;
    top: 50px;
  }

  #loginButton {
    font-size: 0.9rem;
    padding: 6px 10px;
  }
}

/* Logo Box with Animation */
.logo-box {
  margin: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  animation: rotateBox 3s infinite alternate;
}

.logo-box:hover {
  animation: bounce 0.6s ease-in-out;
}

.animated-logo {
  max-width: 60px;
  max-height: 120px;
}

/* Animation Keyframes */
@keyframes rotateBox {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-10deg);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* School Name Styling */
.school-name h1 {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}





/* Home Section */


.home-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  width: 100%;
  justify-content: center;
  text-align: center;
  display: grid;

  grid-template-columns: repeat(2, 1fr);
  padding: 40px;


  text-align: center;
}

.home-container .box {
background-color: #ffffff; /* White background for cleaner look */
border: 1px solid #e5ff00; /* Light grey border */
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease-in-out;
}

/* Box hover effect */
.home-container .box:hover {
background-color: #f0f8ff; /* Light Blue background on hover */
border-color: #4CAF50; /* Green border on hover */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
transform: translateY(-10px); /* Lift effect */
}

/* Title Style */
.home-container .box h3 {
font-size: 24px;
font-weight: bolder;
color: #333;
margin-bottom: 15px;
font-family: 'Arial', sans-serif;
}

/* Content Text Style */
.home-container .box p {
font-size: 16px;
color: #ffffff;
line-height: 1.6;
}

/* Box Specific Colors */
.home-container .box:nth-child(1) {
background-color: #ff7043; /* Yellow */
}

.home-container .box:nth-child(2) {
background-color: #ffcc00; /* Red-Orange */
}

.home-container .box:nth-child(3) {
background-color: #4caf50; /* Green */
}

.home-container .box:nth-child(4) {
background-color: #2196f3; /* Blue */
}
.form{
width: 400px;
}
/* Mobile Responsiveness - Stacking Boxes */
@media (max-width: 768px) {

.home-container {
    grid-template-columns: 4fr; /* Single column on small screens */
}
.form{
  width: 300px;
}
.box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  width: 50%; /* Two boxes per row on larger screens */
  max-width: 500px;
    margin-bottom: 20px; /* Space between stacked boxes */
    left: auto;
    width: 350px;
}
}

/* About Section */
#about {
padding: 20px 20px;
background: linear-gradient(135deg, #f7f9fc, #e6f7ff);
text-align: center;
border-radius: 12px;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
margin-top: 30px;

}

#about h2 {
font-size: 2.5rem;
margin-bottom: 30px;
text-transform: uppercase;
color: #333;
letter-spacing: 2px;
background: linear-gradient(90deg, #FF7043, #FFCC00);
color: transparent; /* Gradient text */
}

.about-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
gap: 20px;
}

.about-intro p {
font-size: 1.2rem;
color: #555;
margin-bottom: 20px;
line-height: 1.6;
}

.about-box {
background: white;
padding: 20px;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-box:hover {
transform: translateY(-10px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.about-box h3 {
font-size: 1.8rem;
color: #333;
margin-bottom: 15px;
text-transform: uppercase;
font-family: 'Georgia', serif;
}

.about-box p {
font-size: 1rem;
color: #666;
line-height: 1.6;
}

.about-box ul {
list-style: none;
padding: 0;
margin: 0;
}

.about-box ul li {
font-size: 1rem;
color: #555;
margin: 5px 0;
line-height: 1.4;
}

/* Specific Colors for Boxes */
.about-box.mission {
background: linear-gradient(135deg, #FFCC80, #FFB74D);
color: #fff;
}

.about-box.vision {
background: linear-gradient(135deg, #4CAF50, #81C784);
color: #fff;
}

.about-box.values {
background: linear-gradient(135deg, #64B5F6, #2196F3);
color: #fff;
}
/* Fade/Slide Animations (reuse if already present) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}
.fade-in.animate {
  opacity: 1;
  transform: translateY(0);
}
.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}
.slide-in-left.animate {
  opacity: 1;
  transform: translateX(0);
}
.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}
.slide-in-right.animate {
  opacity: 1;
  transform: translateX(0);
}

/* Card Hover Glow */
.hover-glow:hover {
  box-shadow: 0 0 18px rgba(0, 123, 255, 0.25);
  transform: translateY(-5px);
  transition: all 0.3s ease-in-out;
}

.icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

/* Responsive padding for cards */
@media (max-width: 768px) {
  .card {
    padding: 1.5rem 1rem !important;
  }
}



/* Events Section */
#events {
padding: 50px 20px;
background: linear-gradient(135deg, #FF6F61, #FFD54F);
color: white;
text-align: center;
border-radius: 12px;
margin-top: 20px;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

#events .section-heading {
font-size: 3rem;
margin-bottom: 10px;
margin-top: 50px;
text-transform: uppercase;
color: #FFF8E1;
letter-spacing: 1px;
background: linear-gradient(90deg, #FF7043, #FFC107);
color: transparent; /* Gradient text */
text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

#events .section-subheading {
font-size: 1.2rem;
margin-bottom: 30px;
color: #FFF8E1;
font-style: italic;
}

.events-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-top: 20px;
}

.event-item {
background: white;
color: #333;
padding: 20px;
border-radius: 12px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
transition: transform 0.3s ease, box-shadow 0.3s ease;
position: relative;
}

.event-item:hover {
transform: translateY(-10px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
background: #FFF9E6;
}

.event-item h3 {
font-size: 1.8rem;
color: #FF7043;
margin-bottom: 10px;
text-transform: uppercase;
font-weight: bold;
}

.event-item p {
font-size: 1rem;
margin: 0;
line-height: 1.6;
}

.event-item .date-time {
font-weight: bold;
color: #555;
margin-top: 10px;
font-size: 0.9rem;
text-align: right;
display: flex;
justify-content: flex-end;
align-items: center;
gap: 5px;
}

.event-item .date-time::before {
content: "📆";
font-size: 1.2rem;
}

/* Responsive Styling for Events Section */
@media (max-width: 768px) {
#events .section-heading {
    font-size: 2rem;
}

#events .section-subheading {
    font-size: 1rem;
}

.event-item h3 {
    font-size: 1.5rem;
}

.event-item p {
    font-size: 0.9rem;
}
}





/* Gallery Section */
#gallery {
padding: 40px 20px;
background: linear-gradient(135deg, #2196F3, #4CAF50); /* Vibrant gradient */
text-align: center;
border-radius: 12px;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
margin-top: 60px;

}

#gallery h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;

  background: linear-gradient(90deg, #00E676, #2196F3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* Required for Safari */
  background-clip: text;
  color: transparent; /* For other browsers */
  
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

#gallery .section-subheading {
font-size: 1.2rem;
margin-bottom: 30px;
color: #FFF8E1;
font-style: italic;
}

.gallery-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-top: 20px;

}

.gallery-item {
position: relative;
overflow: hidden;
border-radius: 12px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
transform: translateY(-10px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
width: 100%;
height: 200px;
object-fit: cover;
border-radius: 12px;
transition: transform 0.3s ease;
}

.gallery-item:hover img {
transform: scale(1.1);
}

.caption {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 15px;
text-align: center;
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
opacity: 0;
transform: translateY(20px);
transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .caption {
opacity: 1;
transform: translateY(0);
}

.caption h3 {
font-size: 1.5rem;
margin-bottom: 5px;
color: #FFD700;
}

.caption p {
font-size: 1rem;
margin: 0;
color: #FFF;
}






/* Contact Section */
#contact {
padding: 20px 20px;
background: linear-gradient(135deg, #4CAF50, #8BC34A); /* Vibrant green gradient */
color: white;
text-align: center;
border-radius: 12px;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
margin-top: 60px;

}

#contact .section-heading {
font-size: 2.5rem;
margin-bottom: 20px;
text-transform: uppercase;
color: #FFF8E1;
letter-spacing: 1px;
background: linear-gradient(90deg, #81C784, #66BB6A);
color: transparent; /* Gradient text */
text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

#contact .section-subheading {
font-size: 1.2rem;
margin-bottom: 30px;
color: #FFF8E1;
font-style: italic;
}

/* Contact Container */
.contact-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}

.contact-info {
background: white;
color: #333;
padding: 50px;
border-radius: 12px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
text-align: left;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover {
transform: translateY(-10px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
background: #F1F8E9;
}

.contact-info h3 {
font-size: 1.5rem;
color: #4CAF50;
margin-bottom: 10px;
}

.contact-info p {
font-size: 1rem;
margin: 0;
line-height: 1.6;
}

.contact-info a {
color: #388E3C;
text-decoration: none;
font-weight: bold;
transition: color 0.3s ease;
}

.contact-info a:hover {
color: #1B5E20;
}

/* Map Container */
.map-container {

overflow: hidden;
border-radius: 12px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
position: relative;
}

.map-container iframe {
width: 100%;
height: 300px;
border: none;
border-radius: 12px;
transition: transform 0.3s ease;
}

.map-container:hover iframe {
transform: scale(1.02); /* Subtle zoom effect */
}

/* Responsive Styling for Contact Section */
@media (max-width: 768px) {
.contact-container {
    grid-template-columns: 1fr; /* Single column layout */
}

.map-container iframe {
    height: 250px; /* Smaller height for mobile */
}
}


/* Enquiry Section */
#enquiry, #admission {
padding: 50px 20px;
background: linear-gradient(135deg, #4CAF50, #8BC34A); /* Vibrant gradient */
color: white;
text-align: center;
border-radius: 12px;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
margin-top: 60px;

}

#enquiry .section-heading {
font-size: 2.5rem;
margin-bottom: 20px;
text-transform: uppercase;
color: #fff;
}

#enquiry .section-subheading {
font-size: 1.2rem;
margin-bottom: 30px;
color: #FFF8E1;
font-style: italic;
}

form {
max-width: 500px;
margin: 0 auto;
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
text-align: left;
color: #333;
}

.form-group {
margin-bottom: 15px;
}

label {
font-size: 1rem;
font-weight: bold;
display: block;
margin-bottom: 5px;
color: #666;
}

input, textarea {
width: 95%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1rem;
color: #333;
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
border-color: #4CAF50;
outline: none;
}

button.submit-btn {
width: 100%;
padding: 10px;
background: #4CAF50;
color: white;
font-size: 1rem;
font-weight: bold;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background 0.3s ease;
}

button.submit-btn:hover {
background: #45A049;
}




/* Footer Styling */
/* Footer Styling */
footer {
  padding: 20px;
  background: linear-gradient(135deg, #1E90FF, #00BFFF); /* Vibrant gradient */
  color: white;
  text-align: center;
  margin-top: 20px;
  border-radius: 12px 12px 0 0; /* Rounded corners at the top */
  box-shadow: 0 -6px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow above */
  font-family: 'Arial', sans-serif;
  }
  
  footer p {
  margin: 5px 0;
  font-size: 0.9rem;
  line-height: 1.5;
  }
  
  footer strong {
  color: #FFD700; /* Highlighted text */
  font-weight: bold;
  }
  
footer p:hover {
color: #FFF8E1; /* Slightly lighter color on hover */
transition: color 0.3s ease;
}
/* General Fade-in Effect */
.fade-in {
opacity: 1;
transform: translateY(20px);
animation: fadeIn 1s ease-in-out forwards;
}

/* Slide-in from Left */
.slide-in-left {
opacity: 1;
transform: translateX(-50px);
animation: slideInLeft 1s ease-in-out forwards;
}

/* Slide-in from Right */
.slide-in-right {
opacity: 2;
transform: translateX(50px);
animation: slideInRight 1s ease-in-out forwards;
}

/* Button Animation */
.pulse-animation {
animation: pulse 1.5s infinite;
}

/* Keyframe Animations */
@keyframes fadeIn {
to {
    opacity: 1;
    transform: translateY(0);
}
}

@keyframes slideInLeft {
to {
    opacity: 1;
    transform: translateX(0);
}
}

@keyframes slideInRight {
to {
    opacity: 1;
    transform: translateX(0);
}
}

@keyframes pulse {
0% {
    transform: scale(1);
}
50% {
    transform: scale(1.1);
}
100% {
    transform: scale(1);
}
}

/* Card Styling */
#admission .card {
  
border-radius: 15px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
transition: transform 0.3s ease-in-out;
}

#admission .card:hover {
transform: translateY(-5px);
}

#admission .card-header {
font-size: 1.2rem;
font-weight: bold;
}

#admission ul {
list-style: none;
padding-left: 0;
}

/* 🌟 Career Section */
.admission-section {
color: #333;
padding: 60px 20px;
margin-top: 60px;

}
/* 🌟 Career Section */
.career-section {
background: url("assets/images/career-bg.jpg") center/cover no-repeat;
color: #333;
padding: 60px 20px;
margin-top: 60px;

}
.career-section h2 {
font-size: 2rem;
margin-bottom: 15px;
margin-top: 75px ;
}
.career-section p {
font-size: 1.2rem;
max-width: 600px;
margin: 0 auto;
}

/* ========== Base Styles ========== */
.birthday-card {
  background: #fff8e1;
  border-left: 4px solid #ff9800;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


.birthday-card .card-body {
  position: relative;
  z-index: 2;
}

.birthday-img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fcd34d;
  animation: glow 1s infinite alternate;
  box-shadow: 0 0 8px #fcd34d;
  position: relative;
  z-index: 2;
}

/* ========== Canvas ========== */
.birthday-sparkle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ========== Keyframes ========== */
@keyframes glow {
  0% {
    box-shadow: 0 0 5px #ffecb3, 0 0 10px #ffd700;
  }
  100% {
    box-shadow: 0 0 20px #ffecb3, 0 0 40px #ffd700;
  }
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
  }
}

/* Optional: Subtle Shine Effect on Image */
.glow-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-25deg);
  animation: shine 2.5s infinite;
  border-radius: 50%;
  z-index: 3;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

/* Team Section */
/* 📌 Team Section Styles */
/* Section Styling */
.ceo-highlight {
  border-top: 5px solid gold;
  background: #fffef4;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}
.ceo-highlight .team-img {
  border: 4px solid gold;
}

#team {
  
padding: 50px 20px;
background: linear-gradient(135deg, #FF6F61, #FFD54F);
color: white;
text-align: center;
border-radius: 12px;
margin-top: 50px;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);

}

/* Group Header */
.team-group h4 {
  font-weight: 700;
  font-size: 1.3rem;
  border-color: #dee2e6;
}

/* Grid Structure */
.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

}

/* Card Base */
/* 🔄 Increase card and image size for better visibility */
/* 📦 Team Card – Slightly Larger */
.team-card {
  padding: 15px 15px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 420px;

}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* 🖼️ Profile Image – Slightly Bigger */
.team-img {
  width: 230px;
  height: 230px;
  object-fit: cover;
  border: 5px solid #fff176; /* light yellow border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover .team-img {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 🎯 Text */
.card-title {
  font-size: 1.4rem;
  font-weight: 600;
}

.role-label {
  font-size: 1.05rem;
  font-weight: 500;
  color: #888;
}

.message-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}

/* 🏷️ Badge Style */
.badge.bg-warning {
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 8px;
}

/* 🔥 Role-Based Top Border (Hierarchy Accent) */
.team-card[data-role="admin"] .team-member {
  border-top: 4px solid #ffc107;
}
.team-card[data-role="principal"] .team-member {
  border-top: 4px solid #00bcd4;
}
.team-card[data-role="head teacher"] .team-member {
  border-top: 4px solid #4caf50;
}
.team-card[data-role="teacher"] .team-member {
  border-top: 4px solid #2196f3;
}
.team-card[data-role="trainee"] .team-member {
  border-top: 4px solid #9c27b0;
}

/* 🌀 Hover Zoom */
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .team-container {
    flex-direction: column;
  }


}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 2fr);
  gap: 20px;
  max-width: 600px;
  margin: auto;
}

.team-member {
  text-align: center;
  padding: 25px;
  border-radius: 12px;
  background: lab(68.26% 48.2 22.69);
  box-shadow: 0 2px 6px rgba(230, 255, 2, 0.1);
}

.team-member img {
  width: 100px;
  height: 100px;
  border-radius: 100%;
  object-fit: cover;
}
.card.team-card img {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-top: -67px;
  border: 4px solid #fbff01;
}

.card.team-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 10px;
    background: lab(20.73% 41.84 30.75);
      width: 400px;


}

.card.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}


.card-body {
  padding-top: 0.5rem;
  
}

.role-label {
  font-size: 0.95rem;
  color: #ffffff;
}

.message-text {
  font-size: 0.9rem;
  color: #555;
  margin-top: 10px;
}


.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.3s ease;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
  color: #fff;
}

.modal-content img {
  max-height: 60vh;
  max-width: 100%;
  border-radius: 8px;
}

.caption {
  margin-top: 1em;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: white;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  padding: 0 1rem;
}

.nav.prev { left: 0; }
.nav.next { right: 0; }

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}
