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

html { scroll-behavior: smooth; }

body { font-family: 'DM Sans', sans-serif; color: #1a2e1a; }

/* ===================== NAVBAR ===================== */
#navbar {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

/* When scrolled: hide the top info bar smoothly via max-height */
.nav-top {
  max-height: 40px;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              padding 0.3s ease;
  opacity: 1;
}
#navbar.scrolled .nav-top {
  max-height: 0;
  opacity: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Main nav tightens on scroll */
.nav-main {
  transition: padding 0.4s ease, box-shadow 0.4s ease, background 0.3s ease;
}
#navbar.scrolled .nav-main {
  background: rgba(255,255,255,0.98) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0,60,0,0.12);
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* Slide navbar out of view when scrolling DOWN, back in when scrolling UP */
#navbar.hide-nav {
  transform: translateY(-100%);
}
#navbar.scrolled:not(.hide-nav) {
  transform: translateY(0);
}

.nav-link.active { color: #1e8a1e; background: #f0faf0; }
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #1e8a1e;
  transform: scaleX(0);
  transition: transform 0.2s ease;
  border-radius: 1px;
}
.nav-link:hover::after { transform: scaleX(1); }

/* ===================== HERO ===================== */
.hero-section {
  background: linear-gradient(135deg, #0a360a 0%, #0f4f0f 40%, #166b16 80%, #1e8a1e 100%);
  min-height: 100vh;
}

.hero-bg {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(46,170,46,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(14,90,14,0.4) 0%, transparent 50%),
    linear-gradient(135deg, #0a360a 0%, #0f4f0f 40%, #166b16 80%, #1e8a1e 100%);
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.float-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  animation: floatAnim 8s ease-in-out infinite;
}
.shape-1 { width: 500px; height: 500px; top: -100px; right: -100px; animation-delay: 0s; }
.shape-2 { width: 300px; height: 300px; bottom: 100px; right: 200px; animation-delay: -3s; }
.shape-3 { width: 200px; height: 200px; top: 200px; right: 600px; animation-delay: -5s; }

@keyframes floatAnim {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-badge { animation: slideDown 0.8s ease 0.2s both; }
.hero-title { animation: slideUp 0.8s ease 0.4s both; }
.hero-sub { animation: slideUp 0.8s ease 0.6s both; }
.hero-btns { animation: slideUp 0.8s ease 0.8s both; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== NOTICE TICKER ===================== */
.notice-ticker { height: 28px; }
.notice-track {
  animation: ticker 30s linear infinite;
  display: inline-block;
  line-height: 28px;
}
.notice-ticker:hover .notice-track { animation-play-state: paused; }
@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ===================== ABOUT ===================== */
.about-img-main { min-height: 380px; }

/* ===================== WHY CHOOSE US ===================== */
.why-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='white' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='white' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 120px;
}

/* ===================== CARDS ===================== */
.facility-card, .news-card, .testimonial-card {
  border: 1px solid rgba(0,80,0,0.06);
}

/* ===================== FOOTER ===================== */
footer a { text-decoration: none; }

/* ===================== BACK TO TOP ===================== */
#backToTop.visible { opacity: 1; transform: translateY(0); }

/* ===================== PAGE HERO ===================== */
.page-hero {
  min-height: 320px;
  background: linear-gradient(135deg, #0a360a 0%, #1e8a1e 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  padding-top: 120px;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .breadcrumb { color: rgba(255,255,255,0.6); font-size: 0.875rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero h1 { color: white; font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }

/* ===================== MANDATORY DISCLOSURE ===================== */
.disclosure-table { width: 100%; border-collapse: collapse; }
.disclosure-table th {
  background: #166b16;
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
}
.disclosure-table td {
  padding: 11px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid #f0faf0;
  color: #374151;
}
.disclosure-table tr:nth-child(even) td { background: #f0faf0; }
.disclosure-table tr:hover td { background: #dcf5dc; }

.disclosure-section {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 20px rgba(0,80,0,0.05);
  border: 1px solid #e8f5e8;
  margin-bottom: 24px;
}
.disclosure-section-header {
  background: linear-gradient(135deg, #f0faf0, #dcf5dc);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid #bbeabb;
}
.disclosure-section-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f4f0f;
}

/* ===================== GALLERY ===================== */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}
.gallery-item .gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,54,10,0.9), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-img { transform: scale(1.05); }

/* ===================== FACULTY CARD ===================== */
.faculty-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,80,0,0.07);
  box-shadow: 0 2px 8px rgba(0,80,0,0.06);
}
.faculty-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,80,0,0.12);
}
.faculty-photo {
  height: 200px;
  background: linear-gradient(135deg, #bbeabb, #2eaa2e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

/* ===================== CONTACT FORM ===================== */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  transition: all 0.2s;
  background: white;
  color: #1f2937;
  outline: none;
}
.form-input:focus {
  border-color: #2eaa2e;
  box-shadow: 0 0 0 3px rgba(46,170,46,0.1);
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.btn-primary {
  background: #1e8a1e;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: #166b16; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(30,138,30,0.3); }

/* ===================== LIGHTBOX ===================== */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#lightbox.active { opacity: 1; pointer-events: all; }
#lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 12px; }

/* ===================== COUNTER ===================== */
.counter, .counter2 { display: inline-block; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .hero-section { min-height: 100svh; }
  .nav-top .hidden-mobile { display: none; }
  .disclosure-table { font-size: 0.8rem; }
  .disclosure-table th, .disclosure-table td { padding: 8px 10px; }
}

/* ===================== PRINT (Disclosure) ===================== */
@media print {
  #navbar, footer, #backToTop { display: none !important; }
  .page-hero { padding-top: 20px !important; min-height: auto; }
  body { font-size: 12px; }
}

/* ===================== SCROLL BAR ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0faf0; }
::-webkit-scrollbar-thumb { background: #2eaa2e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #1e8a1e; }
