/* =========================
   Global Styles
========================= */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* =========================
   Navbar (Putih & Sticky)
========================= */
.navbar {
  background-color: #ffffff !important;
  padding: 0.8rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.navbar-brand {
  color: #2d3436 !important;
  font-weight: 600;
  font-size: 1.2rem;
}

.navbar .nav-link {
  color: #2d3436 !important;
  font-weight: 500;
  margin: 0 10px;
  position: relative;
  transition: 0.3s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #6c5ce7 !important;
}

.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Mobile Menu */
@media (max-width: 992px) {
  .navbar .nav-link {
    text-align: center;
    padding: 10px;
  }
}

/* =========================
   Hero Section
========================= */
.hero-section {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  padding-top: 80px; /* biar gak ketutup navbar */
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 1.2rem;
  color: #f1f1f1;
}

.hero-text .btn {
  background-color: #6c5ce7;
  color: #fff;
  border: none;
  padding: 10px 25px;
  font-weight: 500;
  transition: 0.3s;
}

.hero-text .btn:hover {
  background-color: #a29bfe;
}

/* Responsif Hero */
@media (max-width: 768px) {
  .hero-section {
    height: 60vh;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
}

/* =========================
   Section Container
========================= */
.section-container {
  background-color: #fff;
  margin: 60px auto;
  padding: 40px 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

section h2 {
  text-align: center;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}

section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #6c5ce7;
  margin: 10px auto 0 auto;
  border-radius: 2px;
}

/* =========================
   Cards & Images
========================= */
img.img-fluid {
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card img {
  border-radius: 15px 15px 0 0;
}

/* =========================
   Principal Image
========================= */
.principal-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 20px auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* =========================
   Buttons
========================= */
.btn-primary {
  background: #6c5ce7;
  border: none;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #a29bfe;
}

/* =========================
   Footer
========================= */
footer.footer,
footer {
  background-color: #2d3436;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

/* =========================
   Section Background Variants
========================= */
#facilities {
  background-color: #f0f4f8;
}

#student-life {
  background-color: #ffe6f0;
}

#information {
  background-color: #e6f7ff;
}

/* =========================
   Responsive Adjustments
========================= */
@media (max-width: 992px) {
  .section-container {
    margin: 40px 10px;
  }
}

@media (max-width: 576px) {
  .card {
    margin-bottom: 20px;
  }
}

/* =========================
   Principal's Message Section
========================= */
#principal-message {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 50px 30px;
  margin: 60px auto;
  max-width: 1100px;
}

.principal-photo {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.principal-text {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  text-align: justify;
}

/* Responsif: Foto di atas teks di layar kecil */
@media (max-width: 768px) {
  #principal-message {
    text-align: center;
  }
  .principal-photo {
    margin-bottom: 20px;
  }
  .principal-text {
    text-align: center;
  }
}

/* =========================
   About Page Custom Styles
========================= */
#principal {
  text-align: center;
}
#principal img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  margin: 20px 0;
}
#vision-mission {
  background-color: #f8f9ff;
  border-radius: 15px;
  padding: 50px 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
#vision-mission h3 {
  font-weight: 600;
  color: #6c5ce7;
}
#vision-mission ul {
  list-style: none;
  padding-left: 0;
}
#vision-mission ul li::before {
  content: "✔ ";
  color: #6c5ce7;
  font-weight: bold;
}
#history img {
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Kepala Sekolah */
#principal img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: contain; /* ubah dari cover ke contain biar wajah tidak kepotong */
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: block;
  margin: 20px auto;
}

/* Staff */
#org-structure .card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: contain; /* supaya wajah terlihat utuh */
  margin: 0 auto 15px auto;
  display: block;
}

.staff-photo, .principal-photo {
  width: 150px;  /* bisa diubah sesuai kebutuhan */
  height: 150px;
  border-radius: 50%;  /* bulat */
  object-fit: cover;    /* tetap proporsional */
  display: block;
  margin: 0 auto 15px auto;
}

/* kalau ingin semua foto principal sedikit lebih besar */
#principal img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 20px auto;
}

.faculty-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

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

.bg-gradient-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
  border-radius: 0.5rem;
}

/* News & Articles Section */
#news h2 {
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 30px;
}

#news .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3436;
}

#news .card-text {
  font-size: 0.95rem;
  color: #555;
}

#news .card img {
  border-radius: 10px 10px 0 0;
  height: 200px;
  object-fit: cover;
}

#news .btn-primary {
  background-color: #6c5ce7;
  border: none;
}

#news .btn-primary:hover {
  background-color: #a29bfe;
}

#announcement .announcement-item h5 {
  color: #6c5ce7;
  font-weight: 600;
}

#announcement .announcement-item p {
  color: #555;
  line-height: 1.6;
}

#announcement .announcement-item small {
  display: block;
  margin-bottom: 5px;
}

#event .event-item h5 {
  color: #6c5ce7;
  font-weight: 600;
}

#event .event-item p {
  color: #555;
  line-height: 1.6;
}

#event .event-item small {
  display: block;
  margin-bottom: 5px;
}

.map-container {
  width: 100%;
  max-width: 100%;
  height: 450px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
}

/* style.css */
body {
  padding-top: 70px; /* sesuaikan dengan tinggi navbar */
}

/* atau khusus hero section */
.hero-section {
  padding-top: 70px;
}


.academic-section {
  background-color: #f8f9fa; /* warna kartu ringan */
  padding: 30px 0;           /* ruang atas bawah */
  font-weight: bold;          /* bikin tebal teks */
  width: 100%;                /* panjang penuh seperti navbar */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* efek card */
  border-radius: 8px;         /* sudut membulat */
}

.academic-section h1 {
  font-size: 2.5rem;          /* ukuran judul lebih tegas */
}

.academic-section p {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #555;
}




