/* RESET CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: Arial, sans-serif;
  background-color: #faf9f6;
}

/* HEADER */
.header {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

/* NAVBAR */
.navbar {
  max-width: 1300px;
  margin: auto;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* NAMA SEKOLAH */
.navbar-brand h2 {
  color: #2f6545;
  font-size: 22px;
  font-weight: bold;
}

/* MENU NAVBAR */
.navbar-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

/* LINK NAVBAR */
.navbar-menu a {
  text-decoration: none;
  color: #333333;
  font-size: 15px;
  font-weight: 500;
  transition: 0.3s;
}

/* HOVER */
.navbar-menu a:hover {
  color: #4f8a5b;
}

.navbar-menu a.active {
  color: #4f8a5b;
  font-weight: bold;
}

/* RESPONSIVE SEMENTARA */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
  }

  .navbar-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
}
/* =========================
   FOOTER
========================= */

.footer {
  background-color: #244d35;
  color: #ffffff;
  padding: 65px 30px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;

  padding-bottom: 50px;
}

/* IDENTITAS SEKOLAH */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-brand img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.footer-brand h3 {
  font-size: 20px;
  color: #ffffff;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.9;
  color: #d8e8dc;
  max-width: 350px;
}

/* MENU CEPAT */
.footer-links h3,
.footer-social h3 {
  font-size: 18px;
  margin-bottom: 25px;
  color: #ffffff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  color: #d8e8dc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #a8d5b5;
}

/* MEDIA SOSIAL */
.footer-social p {
  font-size: 14px;
  line-height: 1.8;
  color: #d8e8dc;
  margin-bottom: 25px;
}

.social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 45px;
  height: 45px;

  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;

  border-radius: 50%;
  text-decoration: none;
  font-size: 20px;

  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #ffffff;
  color: #2f6545;

  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* COPYRIGHT & LOGIN ADMIN */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 22px 30px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;

  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: #c7d9cc;
}

/* LOGIN ADMIN */

.footer-bottom .footer-admin {
  margin: 0;
  text-align: right;
}

.footer-bottom .footer-admin-link {
  color: #d8e8dc;
  font-size: 13px;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-bottom .footer-admin-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* RESPONSIVE HP */

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-bottom .footer-admin {
    text-align: center;
  }
}

/* RESPONSIVE TABLET */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* RESPONSIVE HP */
@media (max-width: 576px) {
  .footer {
    padding: 50px 20px 0;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-brand h3 {
    font-size: 18px;
  }

  .footer-bottom p {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-links a,
  .social-icons a {
    transition: none;
  }
}
/* =====================================
   NAVBAR RESPONSIVE RA AL MUJAHIDIN
===================================== */

/* MENU AKTIF */
.navbar .navbar-menu a.active {
  color: #2f6545;
  font-weight: 700;
}

/* MENU HOVER */
.navbar .navbar-menu a:hover,
.navbar .navbar-menu a.active:hover {
  color: #c9a45c;
}

/* TOMBOL HAMBURGER
   DISEMBUNYIKAN PADA LAPTOP */
.navbar-toggle {
  display: none;
}

/* =====================================
   NAVBAR KHUSUS HP
===================================== */

@media (max-width: 767px) {
  .navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* LOGO DAN NAMA SEKOLAH */
  .navbar-brand {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .navbar-brand h2 {
    font-size: 15px;
  }

  .navbar-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
  }

  /* TOMBOL HAMBURGER */
  .navbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 42px;
    height: 42px;

    background: transparent;
    border: none;

    color: #244d35;
    font-size: 24px;

    cursor: pointer;
  }

  /* MENU DISEMBUNYIKAN */
  .navbar .navbar-menu {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    width: 100%;

    margin: 0;
    padding: 15px 20px 20px;

    background-color: #ffffff;

    flex-direction: column;
    align-items: stretch;
    gap: 0;

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);

    z-index: 1000;
  }

  /* MENU MUNCUL SAAT HAMBURGER DIKLIK */
  .navbar .navbar-menu.show {
    display: flex;
  }

  .navbar .navbar-menu li {
    width: 100%;
    list-style: none;
  }

  .navbar .navbar-menu a {
    display: block;

    padding: 13px 10px;

    font-size: 16px;
    text-decoration: none;

    border-bottom: 1px solid #f0f5ef;
  }

  .navbar .navbar-menu li:last-child a {
    border-bottom: none;
  }
}

/* ==================================
   PERBAIKAN NAVBAR KHUSUS HP
================================== */

@media (max-width: 767px) {
  .navbar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    position: relative;
    padding: 15px 20px;
  }

  .navbar-brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px;
    min-width: 0;
  }

  .navbar-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
  }

  .navbar-brand h2 {
    font-size: 15px;
    margin: 0;
    white-space: nowrap;
  }

  .navbar-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;

    flex: 0 0 42px;
    width: 42px;
    height: 42px;

    margin: 0 0 0 auto;
    padding: 0;

    background: transparent;
    border: none;

    color: #244d35;
    font-size: 24px;
    cursor: pointer;
  }

  .navbar .navbar-menu {
    display: none !important;

    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    width: 100%;
    margin: 0;
    padding: 15px 20px;

    background: #ffffff;

    flex-direction: column;
    align-items: stretch;

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .navbar .navbar-menu.show {
    display: flex !important;
  }
}

/* =====================================
   AKSEN GOLD FOOTER RA AL MUJAHIDIN
===================================== */

/* GARIS GOLD DI ATAS FOOTER */
.footer {
  border-top: 4px solid #c9a45c;
}

/* GARIS GOLD DI BAWAH JUDUL */
.footer-links h3::after,
.footer-social h3::after {
  content: "";
  display: block;

  width: 45px;
  height: 3px;

  margin-top: 12px;

  background-color: #c9a45c;
  border-radius: 10px;
}

/* MENU CEPAT */
.footer-links a {
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #e5c783;
}

/* IKON MEDIA SOSIAL */
.footer .social-icons a {
  border: 1px solid rgba(201, 164, 92, 0.5);

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.footer .social-icons a:hover,
.footer .social-icons a:focus-visible {
  background-color: #c9a45c;
  border-color: #c9a45c;
  color: #244d35;

  transform: translateY(-4px);
}

.footer .social-icons a:hover i,
.footer .social-icons a:focus-visible i {
  color: #244d35;
}

/* GARIS PEMISAH COPYRIGHT */
.footer-bottom {
  border-top: 1px solid rgba(201, 164, 92, 0.45);
}

/* MENGURANGI ANIMASI JIKA DIPERLUKAN */
@media (prefers-reduced-motion: reduce) {
  .footer-links a,
  .footer .social-icons a {
    transition: none;
  }
}

/* =========================
   PERBAIKAN NAVBAR
========================= */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo {
  width: 55px;
  height: 55px;
  object-fit: contain;
  flex-shrink: 0;
}

.navbar-brand h2 {
  margin: 0;
  font-size: 22px;
  color: #2f6545;
}

/* RESPONSIVE HP */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
  }

  .navbar-brand {
    justify-content: center;
  }
}

/* LINK LOGIN ADMIN DI FOOTER */

.footer-admin {
  margin-top: 16px;
  text-align: center;
}

.footer-admin-link {
  display: inline-block;
  font-size: 13px;
  color: inherit;
  opacity: 0.75;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-admin-link:hover {
  opacity: 1;
  text-decoration: underline;
}
