/* Bootstrap theme for School Portal */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  color: #334155;
  margin: 0;
}

/* ── Navbar ── */
.bs-navbar {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.bs-navbar .navbar-brand {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .3px;
}
.bs-navbar .nav-link {
  color: rgba(255,255,255,.8) !important;
  font-size: .875rem;
  font-weight: 500;
  padding: .6rem 1rem !important;
  transition: color .2s;
}
.bs-navbar .nav-link:hover,
.bs-navbar .nav-link.active {
  color: #fbbf24 !important;
}
.bs-navbar .navbar-toggler {
  border-color: rgba(255,255,255,.3);
}
.bs-navbar .navbar-toggler-icon {
  filter: invert(1);
}

/* ── Section titles ── */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: .5rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: #f59e0b;
  border-radius: 2px;
  margin-top: 8px;
}
.section-subtitle {
  color: #64748b;
  font-size: .95rem;
  margin-bottom: 2.5rem;
}

/* ── Hero ── */
.bs-hero {
  position: relative;
  min-height: 70vh;
  max-height: 80vh;
  display: flex;
  align-items: center;
}
.bs-hero .carousel,
.bs-hero .carousel-inner,
.bs-hero .carousel-item {
  height: 70vh;
  max-height: 80vh;
}
.bs-hero .carousel-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Hero slide (carousel slides + single-image fallback). Background-image
   based, so background-size:cover is the object-fit:cover equivalent. */
.bs-hero-slide {
  height: 70vh;
  max-height: 80vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,.6) 0%, rgba(15,23,42,.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 2;
}
.bs-hero-overlay h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
  margin-bottom: 1.5rem;
}
.bs-hero-overlay .btn-hero {
  display: inline-block;
  padding: .75rem 2rem;
  background: #f59e0b;
  color: #0f172a;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.bs-hero-overlay .btn-hero:hover {
  background: #d97706;
  transform: translateY(-2px);
}
.bs-hero-solid {
  min-height: 70vh;
  max-height: 80vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

/* Hero stays within 60-80% of the viewport; shorter on mobile. */
@media (max-width: 768px) {
  .bs-hero,
  .bs-hero-solid {
    min-height: 60vh;
    max-height: 70vh;
  }
  .bs-hero-slide,
  .bs-hero .carousel,
  .bs-hero .carousel-inner,
  .bs-hero .carousel-item {
    height: 60vh;
    max-height: 70vh;
  }
}

/* Carousel controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
}

/* ── Sections ── */
.bs-section { padding: 80px 0; }
.bs-section-alt { background: #f8fafc; }

/* ── About ── */
.bs-about-img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 380px;
}
.bs-about-text { font-size: .95rem; line-height: 1.9; color: #475569; }

/* About content — height limit with styled scrollbar on overflow */
.about-content {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 10px;   /* prevent text touching scrollbar */
  line-height: 1.8;

  /* Styled scrollbar — firefox */
  scrollbar-width: thin;
  scrollbar-color: #f59e0b #f3f4f6;
}
.about-content::-webkit-scrollbar {
  width: 6px;
}
.about-content::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 10px;
}
.about-content::-webkit-scrollbar-thumb {
  background: #f59e0b;   /* amber — matches theme accent */
  border-radius: 10px;
}
.about-content::-webkit-scrollbar-thumb:hover {
  background: #d97706;
}

/* ── Principal ── */
.bs-principal-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  text-align: center;
  padding: 2rem 1.5rem;
}
.bs-principal-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #e2e8f0;
  margin-bottom: 1rem;
}
.bs-principal-card .principal-name {
  font-weight: 600;
  color: #0f172a;
  font-size: 1.05rem;
}
.bs-principal-msg { font-size: .93rem; line-height: 1.85; color: #475569; }

/* ── Facility boxes ── */
.facility-box {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
  cursor: default;
}
.facility-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.facility-box i {
  font-size: 2.2rem;
  color: #1e3a8a;
  margin-bottom: .8rem;
  display: block;
}
.facility-box .facility-name {
  font-weight: 600;
  font-size: .9rem;
  color: #0f172a;
}

/* ── Staff cards ── */
.custom-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
}
.custom-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
/*.custom-card img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  margin-bottom: .75rem;
  border: 3px solid #e2e8f0;
}*/
.custom-card .staff-name { font-weight: 600; font-size: .9rem; color: #0f172a; }
.custom-card .staff-desig { font-size: .8rem; color: #64748b; }

/* Staff card — consistent equal-height layout */
.staff-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  height: 100%;           /* equal height in row */
  display: flex;
  flex-direction: column;
}
.staff-card:hover {
  transform: translateY(-5px);
}

/* Fixed height image — prevents tall/landscape photos
   from breaking card height */
.staff-card .staff-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top;  /* show face not waist */
  display: block;
  flex-shrink: 0;
}

/* Silhouette placeholder same fixed height */
.staff-card .staff-placeholder {
  width: 100%;
  height: 260px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.staff-card .staff-placeholder i {
  font-size: 4rem;
  color: #cbd5e1;
}

/* Card body — grows to fill remaining space */
.staff-card .staff-body {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.staff-card .staff-name {
  font-weight: 700;
  font-size: 16px;
  color: #1e3a8a;
  margin: 0 0 6px;
  /* Clamp to 2 lines if name is long */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.staff-card .staff-designation {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  /* Clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Activity cards ── */
.activity-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border-top: 4px solid #f59e0b;
  height: 100%;
}
.activity-card h5 {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: .5rem;
  font-size: 1rem;
}
.activity-card p {
  font-size: .875rem;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

/* ── Gallery ── */
.gallery-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.gallery-card:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(15,23,42,.85));
  color: #fff;
  font-size: .8rem;
  font-weight: 500;
  padding: 1rem .75rem .6rem;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-card:hover .gallery-caption { opacity: 1; }

/* ── Location ── */
.bs-map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: 12px;
}

/* ── Contact ── */
.contact-box {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.contact-box .form-control {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: .65rem 1rem;
  font-size: .9rem;
  font-family: inherit;
}
.contact-box .form-control:focus {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30,58,138,.15);
}
.btn-submit {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .7rem 2rem;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  font-family: inherit;
}
.btn-submit:hover { opacity: .9; transform: translateY(-1px); }

.hero-btn {
  display: inline-block;
  padding: .75rem 2rem;
  background: #f59e0b;
  color: #0f172a;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.hero-btn:hover {
  background: #d97706;
  color: #0f172a;
  transform: translateY(-2px);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: .9rem;
  color: #475569;
}
.contact-info-item i { font-size: 1.2rem; color: #1e3a8a; flex-shrink: 0; }

/* ── Footer ── */
.bs-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2rem 0;
  font-size: .875rem;
}
.bs-footer a { color: #94a3b8; text-decoration: none; }
.bs-footer a:hover { color: #f59e0b; }
