/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #1f2933;
  background: #f5f7fb;
}

/* UTILITIES */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* HEADER */
.site-header {
  background: #662e91;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark img {
  max-height: 50px;
  display: block;
}

.logo-text h1 {
  font-size: 1.2rem;
  margin-bottom: 0.1rem;
}

.logo-text p {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* NAVIGATION */
.nav {
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;              /* was 1.25rem */
  align-items: center;
}

.nav-link {
  color: #dce6ff;
  text-decoration: none;
  font-size: 0.9rem;      /* was 0.95rem */
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #662e91;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #ffffff70;
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 1.1rem;
  color: #fff;
}

/* SUBMENU (DROPDOWN) */
.has-submenu {
  position: relative;
}

.submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #091e42;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.4);
  padding: 0.4rem 0;
  display: none;
  z-index: 999;
}

.submenu li {
  width: 100%;
}

.submenu-link {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  color: #dce6ff;
  text-decoration: none;
  white-space: nowrap;
}

.submenu-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Show submenu on hover (desktop) */
.has-submenu:hover > .submenu {
  display: block;
}

/* NEWS STRIP */
.news-strip {
  background: yellow;
  color: #662e91;
  font-size: 0.85rem;
}

.news-strip-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0;
}

.news-label {
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  position: relative;
  padding-left: 1.4rem;
}

.news-label::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffb400;
  box-shadow: 0 0 0 0 rgba(255, 180, 0, 0.9);
  animation: pulse-dot 1.8s infinite;
}

.news-marquee {
  overflow: hidden;
  flex: 1;
}

.news-items {
  display: inline-flex;
  gap: 2rem;
  white-space: nowrap;
  animation: news-scroll 30s linear infinite;
}

.news-items span {
  opacity: 0.9;
}

@keyframes news-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes pulse-dot {
  0% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(255, 180, 0, 0.9);
  }
  70% {
    transform: translateY(-50%) scale(1.3);
    box-shadow: 0 0 0 10px rgba(255, 180, 0, 0);
  }
  100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(255, 180, 0, 0);
  }
}

/* HERO / SLIDER */
.hero {
  position: relative;
  width: 100%;
}

.slider {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 420px;
  max-height: 680px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    rgba(9, 30, 66, 0.85),
    rgba(32, 69, 131, 0.6),
    rgba(255, 255, 255, 0));
  display: flex;
  align-items: center;
}

.slide-overlay .container {
  color: #fff;
}

.slide-overlay h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.slide-overlay p {
  max-width: 520px;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

/* BUTTONS */
.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.btn-primary {
  background: #ffb400;
  color: #1a1a1a;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffffb3;
}

.btn-outline:hover {
  background: #ffffff;
  color: #182848;
}

/* SLIDER CONTROLS */
.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s ease, transform 0.1s ease;
}

.slider-control:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.05);
}

.slider-control.prev {
  left: 16px;
}

.slider-control.next {
  right: 16px;
}

/* SLIDER DOTS */
.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #ffffffb3;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.slider-dot.active {
  background: #ffb400;
  transform: scale(1.1);
}

/* SECTIONS */
.section {
  padding: 3rem 0;
  background: #f5f7fb;
}

.section-alt {
  background: #ffffff;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #182848;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb400, #ff7b00);
  margin: 0.4rem auto 0;
}

.section-text {
  max-width: 900px;
  margin: 0.5rem auto 0;
  text-align: justify;
  font-size: 0.95rem;
}

/* ABOUT LAYOUT (IMAGE + TEXT BESIDE) */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.about-image img {
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  border: 4px solid #ffffff;
  background: #ffffff;
}

/* VISION & MISSION */
.vision-mission {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.vm-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.vm-card h3 {
  margin-bottom: 0.5rem;
  color: #182848;
}

.vm-card ul {
  padding-left: 1.1rem;
}

.vm-card li {
  margin-bottom: 0.35rem;
}

/* CARDS */
.cards {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
}

.card h3 {
  margin-bottom: 0.35rem;
  color: #182848;
  font-size: 1.05rem;
}

.card p {
  font-size: 0.9rem;
}

/* LIST */
.list {
  margin-top: 1rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.2rem;
  font-size: 0.95rem;
}

.list li {
  margin-bottom: 0.4rem;
}

/* PROFILE SECTIONS (FOUNDER / PRINCIPAL / ADMIN) */
.profile-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: center;
}

.profile-section.reverse {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
}

.profile-image img {
  width: 100%;
  max-width: 260px;
  height:auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  border: 4px solid #ffffff;
  background: #ffffff;
}

.profile-content .section-title {
  text-align: left;
  margin-bottom: 0.6rem;
}

.profile-content .section-title::after {
  margin-left: 0;
}

.profile-name {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  color: #182848;
}

.profile-role {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  color: #4b5563;
  font-style: italic;
}

.profile-text {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  text-align: justify;
}

/* GALLERY */
.gallery-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  background: #ffffff;
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.gallery-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  background: linear-gradient(0deg,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0));
  color: #ffffff;
}

/* CONTACT */
.contact-layout {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 1.5rem;
}

.contact-info p {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.contact-form {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
}

.form-group {
  margin-bottom: 0.8rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border-radius: 7px;
  border: 1px solid #cbd5f5;
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #182848;
}

.form-status {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

/* FOOTER */
.site-footer {
  background: #091e42;
  color: #d0e0ff;
  padding: 1rem 0;
  margin-top: 1rem;
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
}

/* ==============
   SCROLL ANIMATIONS
   ============== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
}

.animate-on-scroll.from-left {
  transform: translateX(-40px);
}

.animate-on-scroll.from-right {
  transform: translateX(40px);
}

.animate-on-scroll.from-bottom {
  transform: translateY(40px);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* Gallery stagger animation */
.gallery-grid .gallery-item {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.gallery-grid .gallery-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.gallery-grid .gallery-item:nth-child(1) { transition-delay: 0.05s; }
.gallery-grid .gallery-item:nth-child(2) { transition-delay: 0.1s; }
.gallery-grid .gallery-item:nth-child(3) { transition-delay: 0.15s; }
.gallery-grid .gallery-item:nth-child(4) { transition-delay: 0.2s; }
.gallery-grid .gallery-item:nth-child(5) { transition-delay: 0.25s; }
.gallery-grid .gallery-item:nth-child(6) { transition-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .slide-overlay {
    background: linear-gradient(120deg,
      rgba(9, 30, 66, 0.9),
      rgba(32, 69, 131, 0.75));
  }

  .slide-overlay h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: #091e42;
    flex-direction: column;
    width: 220px;
    padding: 0.5rem 0;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }

  .slider {
    height: 65vh;
    min-height: 360px;
  }

  .slide-overlay .container {
    width: 88%;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .slider-control.prev {
    left: 10px;
  }

  .slider-control.next {
    right: 10px;
  }

  /* mobile submenu */
  .submenu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: #0b1b3a;
    padding-left: 0;
    display: none;
  }

  .has-submenu.open > .submenu {
    display: block;
  }

  .about-layout,
  .profile-section,
  .profile-section.reverse {
    grid-template-columns: 1fr;
  }

  .about-image,
  .profile-image {
    display: flex;
    justify-content: center;
  }

  .about-image img {
    max-width: 280px;
  }

  .profile-image img {
    max-width: 220px;
  }

  .profile-content .section-title {
    text-align: center;
  }

  .profile-content .section-title::after {
    margin-left: auto;
  }

  .profile-name,
  .profile-role {
    text-align: center;
  }

  .news-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-items {
    animation-duration: 40s;
  }
}

@media (max-width: 480px) {
  .logo-text h1 {
    font-size: 1rem;
  }

  .logo-text p {
    display: none;
  }

  .slider {
    height: 60vh;
    min-height: 320px;
  }
}
/* MANAGEMENT TABLE */
.management-table-wrapper {
  margin-top: 1.2rem;
  overflow-x: auto;
}

.management-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.management-table th,
.management-table td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.management-table thead {
  background: #f3f4ff;
  color: #111827;
  font-weight: 600;
}

.management-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

/* FACILITY GRID */
.facility-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.facility-item {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7f0;
  display: flex;
  flex-direction: column;
}

.facility-img-wrapper img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.facility-content {
  padding: 0.9rem 1rem 1rem;
}

.facility-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  color: #182848;
}

.facility-content p {
  font-size: 0.9rem;
}

/* GALLERY TITLES (event-wise) */
.gallery-title {
  font-size: 1.1rem;
  margin-top: 1.8rem;
  margin-bottom: 0.4rem;
  color: #1f2937;
}

/* HIGHLIGHTS */
.highlight-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.highlight-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7f0;
  text-align: left;
}

.highlight-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  background: #fef3c7;
}

.highlight-item h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: #1f2937;
}

.highlight-item p {
  font-size: 0.9rem;
  margin: 0;
}
/* EVENT-WISE GALLERY SLIDER */
.event-gallery {
  position: relative;
  margin-top: 1.8rem;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.1rem 1.1rem 1.6rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7f0;
}

.gallery-title {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: #1f2937;
}

.event-slider {
  position: relative;
  width: 100%;
  height: 380px;           /* more height on desktop */
  overflow: hidden;
  border-radius: 12px;
}

.event-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.event-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-slide.active {
  opacity: 1;
  z-index: 1;
}

.event-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  font-size: 0.85rem;
  padding: 0.35rem 0.7rem;
  background: linear-gradient(0deg,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0));
  color: #ffffff;
}

/* Controls */
.event-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.event-control.prev {
  left: 10px;
}

.event-control.next {
  right: 10px;
}

.event-control:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.05);
}

/* Dots */
.event-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.event-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid #9ca3af;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.event-dot.active {
  background: #ffb400;
  border-color: #ffb400;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .event-slider {
    height: 220px;
  }
}
/* Medium screens (tablets) */
@media (max-width: 992px) {
  .event-slider {
    height: 280px;        /* between desktop and mobile */
  }
}

/* Small screens (mobiles) */
@media (max-width: 768px) {
  .event-slider {
    height: 220px;
  }
}


