/* ================= GLOBAL ================= */

/* Font utama */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* ================= NAVBAR ================= */
.navbar {
  background-color: #ffffff;
  padding: 0.8rem 1rem;
  transition: all 0.3s ease;
}

.navbar .nav-link {
  font-weight: 500;
  color: #333;
  margin-left: 1rem;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #198754;
}

.navbar-brand span {
  font-size: 1.2rem;
  color: #198754;
}

/* ================= SIDEBAR ================= */
@media (min-width: 992px) {
  .sidebar {
    display: block;
    width: 220px;
    position: fixed;
    height: 100vh;
    background: #198754;
  }
}

@media (max-width: 991px) {
  .sidebar {
    display: none;
  }
}

/* ================= HERO ================= */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(25, 135, 84, 0.7), rgba(0, 0, 0, 0.7)),
              url('/assets/images/GedungNU.png') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 15px;
}

.text-glow {
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.9),
               0 0 25px rgba(25, 135, 84, 0.7),
               0 0 40px rgba(25, 135, 84, 0.7);
}

.brand-highlight {
  color: #00ff9d;
}

/* ================= SECTION JUDUL ================= */
section h2 {
  color: #198754;
}

/* ================= CARD ================= */
.card {
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card img {
  height: 250px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.text-justify {
  text-align: justify;
}

/* ================= KEPALA SEKOLAH ================= */
section img.rounded-circle {
  border: 4px solid #198754;
}

/* ================= GALERI ================= */
.galeri-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #fff;
}

.galeri-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.galeri-card img,
.galeri-card video {
  height: 220px;
  object-fit: cover;
}

.galeri-card .card-title {
  color: #198754;
  font-weight: 600;
  font-size: 1.1rem;
}

.galeri-card .card-text {
  font-size: 0.9rem;
  text-align: justify;
}

.preview-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  border-radius: 50%;
  padding: 8px 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .galeri-card img,
  .galeri-card video {
    height: 180px;
  }
}

/* ================= STRUKTUR ORGANISASI ================= */
.struktur-card {
  border: none;
  border-radius: 15px;
  background: #fff;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.struktur-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.struktur-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #198754;
  margin: 0 auto 15px;
  display: block;
}

.struktur-avatar {
  font-size: 100px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  color: #6c757d;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  border: 4px solid #198754;
}

.struktur-nama {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.struktur-jabatan {
  font-weight: bold;
  color: #198754;
  margin: 0;
}

.pendidik-avatar {
  font-size: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #6c757d;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 2px solid #198754;
}

/* ================= VISI MISI ================= */
.visi-text,
.visi-misi-list {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  font-size: 1rem;   /* sudah sama dengan default */
  line-height: 1.6;
  color: #333;
}

.visi-text {
  text-align: justify;
}

.visi-misi-list {
  padding-left: 1.2rem;
  list-style-type: disc;
  list-style-position: outside;
  text-align: left;
}

.visi-misi-list li {
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

   /* Footer */
.footer {
  background: linear-gradient(180deg, #0d662d, #198754);
  color: #fff;
  padding: 50px 20px 25px;
  font-size: 15px;
}

.footer a {
  color: #e6e6e6;
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Grid Container */
.footer-container {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 30px;
}

/* Brand Section */
.footer-brand {
  text-align: left;
}

.footer-logo {
  max-width: 90px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: #fff;
  padding: 5px;
}

.footer-brand h5 {
  margin-top: 8px;
  font-weight: bold;
}

.footer-brand p {
  margin: 3px 0;
}

/* Links */
.footer-links h6,
.footer-social h6 {
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 6px;
}

/* Social */
.footer-social a {
  font-size: 22px;
  margin-right: 12px;
  transition: transform 0.3s ease;
}

.footer-social a:hover {
  transform: scale(1.2);
}

/* Partner Logos */
.footer-partners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.partner-logo {
  height: 40px;
  max-width: 120px;
  object-fit: contain;
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Bottom */
.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: #ddd;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr 1fr; /* 3 kolom sejajar */
    text-align: center;
    gap: 15px;  /* jarak antar kolom rapi */
  }

  .footer-links,
  .footer-social {
    padding: 0 5px;
  }

  .footer-brand {
    grid-column: span 3;
    text-align: center;
    margin-bottom: 25px;
  }

  .footer-logo {
    max-width: 80px;
  }
}

@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .footer-links,
  .footer-social {
    margin-top: 12px;
  }

  .footer-social {
    text-align: center; /* biar di tengah */
  }

  .footer-social a {
    display: inline-block;
    margin: 0 8px;
  }

  .footer-partners {
    gap: 15px;
  }

  .partner-logo {
    height: 35px;
  }
}

