/* ==========================================================
   STYLE CSS - WEBSITE SEKOLAH MTS BINA CENDEKIA
   Modern, Clean, Responsive (Green Emerald & Gold Theme)
   ========================================================== */

:root {
  --primary: #0d6838;
  --primary-dark: #094726;
  --primary-light: #169352;
  --secondary: #eab308;
  --secondary-dark: #ca8a04;
  --accent: #0284c7;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --white: #ffffff;
  --font-base: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-base);
  color: #334155;
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--dark);
}

a {
  text-decoration: none;
  transition: var(--transition);
}

/* ==========================================================
   Top Bar Info
   ========================================================== */
.topbar {
  background-color: var(--primary-dark);
  font-size: 0.85rem;
  color: #cbd5e1;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.topbar a {
  color: #cbd5e1;
}
.topbar a:hover {
  color: var(--secondary);
}

/* ==========================================================
   Navbar
   ========================================================== */
.navbar-brand .brand-logo {
  height: 48px;
  width: auto;
}
.navbar-brand .school-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}
.navbar-brand .school-sub {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 500;
  display: block;
}
.nav-link {
  font-weight: 600;
  color: #334155 !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(8px);
}

/* ==========================================================
   Hero Section
   ========================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(9, 71, 38, 0.92) 0%, rgba(13, 104, 56, 0.85) 100%), 
              url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1600&auto=format&fit=crop&q=80') center/cover no-repeat;
  color: var(--white);
  padding: 100px 0 120px 0;
  clip-path: ellipse(150% 100% at 50% 0%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 20px;
}
.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
}
.hero-lead {
  font-size: 1.15rem;
  color: #e2e8f0;
  max-width: 600px;
}
.btn-primary-custom {
  background: linear-gradient(135deg, var(--secondary) 0%, #f59e0b 100%);
  color: var(--dark) !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 15px rgba(234, 179, 8, 0.4);
  transition: var(--transition);
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.6);
}
.btn-outline-custom {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: var(--white) !important;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: 50px;
  transition: var(--transition);
}
.btn-outline-custom:hover {
  background-color: var(--white);
  color: var(--primary-dark) !important;
}

/* ==========================================================
   Floating Quick Stats
   ========================================================== */
.stats-wrapper {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}
.stat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}
.stat-card:hover {
  transform: translateY(-5px);
  border-bottom: 4px solid var(--primary);
}
.stat-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-right: 16px;
  flex-shrink: 0;
}
.stat-icon.green { background: #e8f5e9; color: var(--primary); }
.stat-icon.gold { background: #fef9c3; color: #ca8a04; }
.stat-icon.blue { background: #e0f2fe; color: #0284c7; }
.stat-icon.purple { background: #f3e8ff; color: #7e22ce; }

.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0;
  font-weight: 500;
}

/* ==========================================================
   Section Title
   ========================================================== */
.section-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  background-color: #e8f5e9;
  border-radius: 30px;
  margin-bottom: 10px;
}
.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
}
.section-subtitle {
  color: var(--gray);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
}

/* ==========================================================
   Feature / Programs Card
   ========================================================== */
.feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-card:hover::before {
  opacity: 1;
}
.feature-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

/* ==========================================================
   Kepala Sekolah Section
   ========================================================== */
.kepsek-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.kepsek-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: var(--transition);
}
.kepsek-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  padding: 16px 20px;
  border-radius: 12px;
  color: var(--white);
}
.kepsek-badge h6 {
  color: var(--white);
}

/* ==========================================================
   News Card
   ========================================================== */
.news-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.news-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-thumb img {
  transform: scale(1.08);
}
.news-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.news-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.news-meta {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 10px;
}
.news-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--dark);
}
.news-title a {
  color: var(--dark);
}
.news-title a:hover {
  color: var(--primary);
}
.news-excerpt {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* ==========================================================
   Teacher Card
   ========================================================== */
.teacher-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
  text-align: center;
}
.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.teacher-avatar-box {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: #f1f5f9;
}
.teacher-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.teacher-card:hover .teacher-avatar-box img {
  transform: scale(1.05);
}
.teacher-info {
  padding: 20px 16px;
}
.teacher-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--dark);
}
.teacher-role {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.teacher-mapel {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 0;
}

/* ==========================================================
   Gallery Card
   ========================================================== */
.gallery-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 240px;
  cursor: pointer;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 71, 38, 0.9) 0%, rgba(0,0,0,0.1) 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: var(--white);
  opacity: 0;
  transition: var(--transition);
}
.gallery-card:hover .gallery-overlay {
  opacity: 1;
}
.gallery-card:hover img {
  transform: scale(1.1);
}

/* ==========================================================
   PPDB Banner CTA
   ========================================================== */
.ppdb-cta-box {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0d6838 100%);
  border-radius: 24px;
  padding: 50px 40px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.ppdb-cta-box::before {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(234, 179, 8, 0.15);
  pointer-events: none;
}

/* ==========================================================
   Footer
   ========================================================== */
.footer {
  background-color: var(--dark);
  color: #94a3b8;
  padding: 70px 0 24px 0;
  font-size: 0.95rem;
}
.footer-title {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #94a3b8;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--secondary);
  padding-left: 6px;
}
.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-right: 8px;
  transition: var(--transition);
}
.footer-social-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 48px;
  font-size: 0.85rem;
}

/* ==========================================================
   Floating WhatsApp Button
   ========================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}
.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-section {
    padding: 60px 0 90px 0;
  }
  .stats-wrapper {
    margin-top: -30px;
  }
  .ppdb-cta-box {
    padding: 30px 20px;
    text-align: center;
  }
}
