/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== HTML & BODY ===== */
html, body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #fff;
  background: linear-gradient(135deg, #89116f, #358fa7, #381d60);
}

/* Add padding so content isn’t hidden under fixed header */
body { padding-top: 140px; }

/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(219, 11, 164, 0.9);
  z-index: 1000;
  padding: 1rem;
  transition: top 0.3s ease-in-out;
}

header.hidden { top: -140px; }

header h1 {
  text-align: center;
  margin: 10px 0;
  font-size: 2.2rem;
  font-weight: bold;
}

header .subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin: -10px 0 10px 0;
  color: #fff;
  font-weight: normal;
}

/* ===== Navigation ===== */
nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
}
nav ul li { margin: 0 10px; }
nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
nav ul li a:hover,
nav ul li a.active { color: #ffd700; }

/* ===== Sections ===== */
section { padding: 4rem 2rem; text-align: center; }

/* ===== Hero Section ===== */
.hero {
  background: url(images/school.webp) no-repeat center/cover;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(172, 163, 163, 0.3);
}
.hero h2, .hero p { position: relative; z-index: 1; }

/* Motto Row (optional) */
.motto-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 90%;
  max-width: 1000px;
  margin-bottom: 20px;
}
.motto-row h2 {
  font-size: 3rem;
  color: #ffd700;
  position: relative;
  z-index: 1;
  text-align: left;
}
.hero h2:last-of-type {
  text-align: center;
  margin-top: 0.5cm;
}

/* ===== About Section ===== */
#about {
  background: url("images/intro.jpg") center/cover no-repeat;
  min-height: 90vh;
  color: #fff;
  padding: 25vh 2rem 6rem 2rem;
  position: relative;
}
#about::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(10, 6, 6, 0.212);
}
#about h2, #about p { position: relative; z-index: 1; }

/* ===== Cards (Teaching Staff/Management) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 2.5rem;
  max-width: 1000px;
  margin: auto;
}
.card {
  background: rgba(255,255,255,0.1);
  padding: 0.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Teacher Photos */
.teacher-pic {
  width: 200px;
  height: auto;
  margin: 10.5rem 10;
  border-radius: 10px;
}
.card img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}

/* ===== Notice Board ===== */
.notice-section {
  background: rgba(249, 223, 223, 0);
  padding: 4rem 2rem;
}
.notice-board ul { list-style: none; font-size: 1.2rem; }
.notice-board a { color: #ffd700; font-weight: bold; }
.notice-board a:hover { text-decoration: underline; }

/* ===== Notice Animation ===== */
.notice-board ul li {
  background: rgba(255, 255, 255, 0.1);
  margin: 10px auto;
  padding: 10px 20px;
  border-radius: 8px;
  max-width: 700px;
  list-style: none;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInOut 6s ease-in-out infinite;
}

/* Delay each notice slightly for staggered animation */
.notice-board ul li:nth-child(1) { animation-delay: 0s; }
.notice-board ul li:nth-child(2) { animation-delay: 1s; }
.notice-board ul li:nth-child(3) { animation-delay: 2s; }
.notice-board ul li:nth-child(4) { animation-delay: 3s; }

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(0);
  }
  60% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Optional hover effect */
.notice-board ul li:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.03);
  transition: all 0.3s ease;
}



/* ===== Gallery Section ===== */
.gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.gallery img {
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.4);
  transition: transform 0.3s;
}
.gallery img:hover { transform: scale(1.05); }

#gallery h2 {
  text-align: center;
  margin-bottom: 60px;
  margin-top: 50px;
  font-size: 2rem;
  font-weight: bold;
}

/* ===== Lightbox ===== */
#lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.774);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
#lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(78, 159, 190, 0.3);
}
#close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: rgb(14, 191, 204);
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.5s ease, color 0.4s ease, text-shadow 0.4s ease;
  text-shadow: 0 0 10px rgba(15, 179, 191, 0.884);
  user-select: none;
  display: inline-block;
  animation: popIn 0.6s ease forwards;
}
#close:hover {
  color: hwb(323 4% 15%);
  transform: rotate(360deg) scale(1.3);
  text-shadow: 0 0 20px #ff4d6d, 0 0 40px #ff1e56;
}
@keyframes popIn {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  60% { transform: scale(1.3) rotate(20deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}

/* ===== Contact Form ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: auto;
}
form input, form textarea {
  padding: 0.7rem;
  border: none;
  border-radius: 5px;
}
form button {
  padding: 0.7rem;
  background: #6a5acd;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}
form button:hover { background: #483d8b; }
#contact form { margin-bottom: 50px; }

/* ===== Social Links ===== */
.social-links { margin: 20px 0; }
.social-links a {
  color: #e0a21a;
  font-size: 2rem;
  margin: 0 15px;
  transition: 0.3s;
  text-decoration: none;
}
.social-links a:hover {
  color: #fff;
  transform: scale(1.2);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 1rem;
  background: rgba(219, 11, 164, 0.9);
  margin-top: 0;
}
footer p a {
  color: #ffd700;
  margin-left: 10px;
  font-size: 1.2rem;
  transition: color 0.3s, transform 0.3s;
  text-decoration: none;
}
footer p a:hover {
  color: #fff;
  transform: scale(1.2);
}

/* ===== Popup Messages (Form Status) ===== */
#form-status {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  background: rgba(24, 108, 253, 0.95);
  color: #fff;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  z-index: 3000;
  animation: popupFadeIn 0.6s ease forwards;
}
#form-status.error { background: rgba(220, 53, 69, 0.95); }

@keyframes popupFadeIn {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  60% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

#contact p {
  margin: 50px 0;
  font-size: 16px;
}
/* ===== Gallery Folder Style ===== */
.gallery-folder {
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  margin: 20px;
}

.gallery-folder img {
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.gallery-folder:hover {
  transform: scale(1.05);
}

.gallery-folder h3 {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #ffd700;
}
/* ===== Image Lightbox (Popup) ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(255,255,255,0.3);
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #ffd700;
}
