/* ============================================================
   School CMS — Frontend Public Styles
   ============================================================ */

/* === FRONTEND NAV =========================================== */
.site-header {
  background: var(--lotus-green);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.site-topbar {
  background: var(--lotus-green-dark);
  padding: 5px 0;
  font-size: 12px;
  color: rgba(255,255,255,.75);
}

.site-topbar a { color: rgba(255,255,255,.75); }
.site-topbar a:hover { color: #fff; }
.site-topbar .container { display: flex; justify-content: space-between; align-items: center; }

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  overflow: hidden;
}

.site-school-name { color: #fff; line-height: 1.3; }
.site-school-name strong { display: block; font-size: 18px; font-weight: 700; }
.site-school-name small  { font-size: 12px; opacity: .75; }

.site-nav-bar {
  background: rgba(0,0,0,.15);
  border-top: 1px solid rgba(255,255,255,.1);
}

.site-nav {
  display: flex;
  list-style: none;
  gap: 0;
  padding: 0;
  margin: 0;
}

.site-nav > li > a {
  display: block;
  color: rgba(255,255,255,.85);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.site-nav > li > a:hover,
.site-nav > li > a.active {
  color: #fff;
  border-bottom-color: var(--banana-leaf);
  background: rgba(255,255,255,.08);
}

.site-nav > li { position: relative; }

.site-nav .dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  display: none;
  z-index: 600;
  border-top: 3px solid var(--banana-leaf);
  padding: 6px 0;
}

.site-nav li:hover .dropdown-menu { display: block; }

.site-nav .dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--gray-700);
  font-size: 14px;
}

.site-nav .dropdown-menu a:hover { background: var(--gray-50); color: var(--lotus-green); }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 18px;
}

/* === HERO / BANNER ========================================== */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--lotus-green-dark);
}

.hero-slide {
  position: relative;
  width: 100%;
  padding-top: 42%; /* 16:6.7 ratio */
  overflow: hidden;
  display: none;
}

.hero-slide.active { display: block; }

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  padding: 40px 40px 24px;
  color: #fff;
}

.hero-caption h2 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.hero-caption p  { font-size: 14px; opacity: .85; }

.hero-controls {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
}

.hero-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  pointer-events: all;
  transition: var(--transition-fast);
  backdrop-filter: blur(4px);
}

.hero-btn:hover { background: rgba(255,255,255,.4); }

.hero-dots {
  position: absolute;
  bottom: 12px; right: 16px;
  display: flex; gap: 6px;
}

.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
}

.hero-dot.active { background: #fff; width: 20px; border-radius: 4px; }

/* === SECTIONS =============================================== */
.section { padding: 60px 0; }
.section-alt { background: var(--gray-50); }

.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 {
  font-size: 28px; font-weight: 700;
  color: var(--lotus-green-dark);
  margin-bottom: 8px;
}
.section-header p { color: var(--gray-600); font-size: 15px; }
.section-header .divider-line {
  width: 60px; height: 4px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* === NEWS CARDS ============================================= */
.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-200);
}

.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.news-card:hover .news-card-img img { transform: scale(1.05); }

.news-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }

.news-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--lotus-green);
  background: var(--lotus-green-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.news-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-excerpt {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-500);
}

.news-card-meta i { color: var(--lotus-green); margin-right: 3px; }

/* === STAFF CARDS ============================================ */
.staff-card {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.staff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.staff-photo {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--lotus-green-light);
  margin: 0 auto 12px;
  display: block;
  background: var(--gray-100);
}

.staff-photo-placeholder {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--gradient-soft);
  border: 4px solid var(--lotus-green-light);
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: var(--lotus-green);
}

.staff-name { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.staff-pos  { font-size: 13px; color: var(--lotus-green); margin-bottom: 4px; }
.staff-dept { font-size: 12px; color: var(--gray-500); }

/* === DOWNLOAD ITEMS ========================================= */
.download-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.download-item:hover { border-color: var(--lotus-green); background: var(--lotus-green-light); }

.download-item-title { font-size: 14px; font-weight: 500; color: var(--gray-800); flex: 1; }
.download-item-meta  { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

/* === QUICK LINKS ============================================ */
.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  text-decoration: none;
  color: var(--gray-700);
  transition: var(--transition);
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.quick-link:hover { border-color: var(--lotus-green); background: var(--lotus-green-light); color: var(--lotus-green-dark); transform: translateY(-2px); box-shadow: var(--shadow); }

.quick-link-icon { font-size: 32px; color: var(--lotus-green); }
.quick-link-label { font-size: 13px; font-weight: 500; }

/* === STATS STRIP ============================================ */
.stats-strip {
  background: var(--gradient);
  padding: 32px 0;
  color: #fff;
  text-align: center;
}

.stats-strip-item { padding: 0 20px; }
.stats-strip-value { font-size: 40px; font-weight: 800; display: block; }
.stats-strip-label { font-size: 14px; opacity: .8; }

/* === FOOTER ================================================= */
.site-footer {
  background: var(--lotus-green-dark);
  color: rgba(255,255,255,.8);
  padding: 48px 0 0;
}

.footer-school-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer-info { font-size: 14px; line-height: 2; }
.footer-info i { color: var(--banana-leaf); width: 18px; margin-right: 6px; }
.footer-info a { color: rgba(255,255,255,.8); }
.footer-info a:hover { color: #fff; }

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--banana-leaf);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,.7);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover { color: #fff; }
.footer-links a::before { content: '›'; color: var(--banana-leaf); font-size: 16px; }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }

.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8);
  font-size: 16px;
  transition: var(--transition-fast);
}

.footer-social a:hover { background: var(--banana-leaf); color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px;
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

/* === BREADCRUMB ============================================= */
.breadcrumb-bar {
  background: var(--gradient-soft);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
}

.breadcrumb a { color: var(--lotus-green); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--gray-400); }
.breadcrumb .current { color: var(--gray-800); font-weight: 500; }

/* === GALLERY GRID =========================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-200);
  cursor: pointer;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,77,60,.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
  color: #fff;
  font-size: 32px;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* === CONTAINER ============================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === RESPONSIVE ============================================= */
@media (max-width: 992px) {
  .site-nav-bar { display: none; }
  .site-nav-bar.open { display: block; }
  .site-nav { flex-direction: column; }
  .site-nav > li > a { padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-toggle { display: block; }
  .hero-slide { padding-top: 60%; }
  .hero-caption h2 { font-size: 18px; }
}

@media (max-width: 576px) {
  .section { padding: 40px 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-slide { padding-top: 80%; }
  .hero-caption { padding: 20px 16px 16px; }
  .hero-caption h2 { font-size: 16px; }
}
