@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

/* Reset dasar */
:root {
  --primary-blue: #03182e;
  --primary-red: #a52a2a;
  --dark-blue: #3a75a6;
  --bg-color: #ffffff;
  --text-dark: #000000;
  --text-gray: #666;
  --white: #ffffff;
  --orange: #e67e22;
  --black: #000000;
  --accent-green: #2ecc71;
  --accent-orange: #e67e22;
  --facebook-color: #1877f2;
  --instagram-color: #e1306c;
  --youtube-color: #ff0000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
}

/* STYLE NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 1rem 3rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar .logo img {
  width: 12rem;
  height: auto;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-links li {
  margin-left: 4rem;
  position: relative; /* Penting untuk posisi dropdown di desktop */
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
  display: block;
}

.nav-links a:hover {
  color: #e7cd37;
}

/* === STYLING DROPDOWN (DESKTOP) === */
.dropdown-menu {
  display: none; /* Sembunyikan secara default */
  position: absolute;
  top: 100%; /* Berada tepat di bawah menu utama */
  left: 0;
  background-color: var(--primary-blue);
  min-width: 200px;
  list-style: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 0.5rem 0;
  z-index: 101;
}

.dropdown-menu li {
  margin: 0; /* Menghilangkan margin kiri bawaan .nav-links li */
}

.dropdown-menu a {
  padding: 0.8rem 1.5rem;
}

.dropdown-menu a:hover {
  background-color: #11467b;
}

/* Tampilkan dropdown saat menu induk di-hover (Hanya untuk layar besar) */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Styling Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: white;
  transition: all 0.3s ease-in-out;
}

/* === HERO PAGE TITLE === */
.page-header {
  background: linear-gradient(135deg, var(--dark-blue), var(--primary-red));
  height: 300px;
  color: var(--white);
  padding: 80px 20px;
}

.page-header h2 {
  font-size: 30px;
  margin: 30px 0;
  line-height: 100px;
  text-align: center;
}

.page-header h3 {
  font-size: 24px;
  font-weight: 10px;
  margin-top: -40px;
  text-align: center;
}

.page-header p {
  font-size: 18px;
  font-weight: 300px;
  margin: -50px 0;
  text-align: center;
}

/* HERO SECTION*/
.hero {
  /* Menggunakan gambar placeholder sekolah */
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1779424689623-44a600a5e109?q=80&w=1040&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")
      center/cover;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h2 {
  color: #ffffff;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 18px;
  color: #ffffff;
  opacity: 0.9;
  margin-top: 5px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .btn-login {
  display: inline-block;
  padding: 10px 30px;
  margin-top: 50px;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  background: linear-gradient(135deg, #2c13e8 0%, #f61d0a 100%);
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}

.hero .btn-login:hover {
  background: linear-gradient(135deg, #070a19 0%, #2c13e8 100%);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.hero .btn-login:hover {
  transform: translateY(1px);
}

/* == CONTAINER == */

/* Komponen Kontainer Utama (Laptop/Desktop Default) */
.card-container {
  background-color: #dde8ed;
  padding: 40px 10%;
  width: 100%;
  min-height: 100vh;
  border-top: 4px solid #5b9bd5;
  border-bottom: 2px solid #5b9bd5;
}

.image-wrapper {
  text-align: center; /* Membuat elemen di dalamnya (gambar) berada di tengah */
  margin-bottom: 30px;
}

.card-image {
  width: 300px; /* Mengunci lebar gambar agar tetap kecil */
  height: 300px; /* Tinggi disamakan agar membentuk kotak sempurna */
  object-fit: cover;
  border-radius: 50%; /* Opsional: Membuat gambar berbentuk bulat, hapus baris ini jika ingin tetap kotak */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Pengaturan Area Teks */
.card-content {
  width: 100%;
}

.card-title {
  font-size: 2rem;
  color: rgb(181, 25, 25);
  margin-bottom: 50px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.card-text {
  font-size: 1.1rem;
  color: #000000;
  line-height: 1.8;
  margin-bottom: 16px;
  text-align: justify;
}

/* Menghilangkan margin bawah pada baris teks terakhir */
.card-text:last-child {
  margin-bottom: 0;
}

/* Media Queries (Responsivitas untuk Layar Lebih Kecil) */

/* Mode Tablet (Lebar layar di bawah 768px) */
@media (max-width: 768px) {
  .card-container {
    padding: 30px 5%;
  }
  .card-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: rgb(181, 25, 25);
  }
  .card-text {
    font-size: 1rem;
  }
  .card-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
}

/* Mode Smartphone (Lebar layar di bawah 480px) */
@media (max-width: 480px) {
  .card-container {
    padding: 20px 15px; /* Jarak minimal untuk layar HP yang sempit */
  }
  .card-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  .card-title {
    font-size: 1rem;
    margin-bottom: 5px;
    color: rgb(181, 25, 25);
  }
  .card-text {
    font-size: 0.75rem;
    line-height: 1.5;
    text-align: center;
    margin-right: 0.3rem;
  }
}

/* CSS UNTUK ANIMASI MARQUEE WRAPPER */
.marquee {
  background-color: #04045d;
  margin-top: 30px;
  margin-bottom: 0px;
  padding: 40px 0;
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.02),
    inset 0 -4px 10px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.marquee-tittle {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 20px;
}

.marquee-tittle h3 {
  color: #f0eb48;
  font-size: 22px;
  margin: 0 0 5px;
  font-weight: 700;
  text-align: center;
}

.marquee-tittle p {
  color: #ffffff;
  font-size: 16px;
  text-align: center;
  margin: 0 0 25px;
}

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-track {
  display: inline-flex;
  gap: 20px;
  padding: 10px 0;
  animation: jalanKiri 25s linear infinite;
}

/* Berhenti berjalan sejenak saat kursor ditaruh di atas foto */
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  width: 260px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  text-align: center;
  display: inline-block;
}

.marquee-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.marquee-item p {
  margin: 8px 0 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  white-space: normal;
}

/* Keyframes Pergerakan Kanan ke Kiri secara Loop Halus */
@keyframes jalanKiri {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-280px * 6));
  } /* Ukuran lebar item + gap dikali jumlah foto unik */
}

/* === ATURAN RESPONSIF (TABLET) === */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background-color: #122e4a;
    width: 50%;
    text-align: center;
    transition: 0.3s ease-in-out;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
    overflow-y: auto; /* Mencegah menu terpotong jika terlalu panjang */
    max-height: calc(100vh - 60px);
  }

  .nav-links li {
    margin: 1rem 0;
  }

  .nav-links.active {
    left: 0;
  }

  /* Penyesuaian Dropdown di Tablet */
  .dropdown-menu {
    position: static; /* Mengikuti aliran dokumen, tidak melayang */
    box-shadow: none;
    background-color: #1a252f; /* Warna lebih gelap untuk membedakan submenu */
    margin-top: 1rem;
    padding: 0;
    /* display: none; -> Diatur via JavaScript saat diklik */
  }

  .dropdown-menu.active {
    display: block;
  }

  .dropdown-menu li {
    margin: 0;
  }

  .dropdown-menu a {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    display: block;
  }

  .nav-links a:hover {
    color: #e7cd37;
  }

  .navbar .logo img {
    width: 10rem;
    height: auto;
  }

  .hero {
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .hero h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  .hero h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  .hero p {
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 10px;
  }

  .marquee {
    margin-top: 20px;
    margin-bottom: -10px;
    padding: 25px 0;
  }

  .marquee-tittle h3 {
    font-size: 18px;
  }

  .marquee-tittle p {
    font-size: 14px;
  }

  .marquee-item {
    width: 200px;
    border-radius: 10px;
    padding: 8px;
  }

  .marquee-item img {
    width: 100%;
    height: 130px;
    border-radius: 4px;
  }

  .marquee-item p {
    margin: 7px 0 0 0;
    font-size: 14px;
  }
}

/* === ATURAN RESPONSIF (SMARTPHONE) === */
@media (max-width: 480px) {
  .nav-links {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background-color: #122e4a;
    width: 70%;
    text-align: center;
    transition: 0.3s ease-in-out;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
    overflow-y: auto; /* Mencegah menu terpotong jika terlalu panjang */
    max-height: calc(100vh - 60px);
  }

  .nav-links li {
    margin: 0.7rem 0;
  }

  .nav-links.active {
    left: 0;
  }

  /* Penyesuaian Dropdown di smartphone */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background-color: #1a252f;
    padding: 0;
    display: none;
  }

  .dropdown-menu.active {
    display: block;
  }

  .dropdown-menu li {
    margin: 0;
  }

  .dropdown-menu a {
    padding: 1rem;
    margin-bottom: 0.5rem;
  }

  .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    display: block;
  }

  .nav-links a:hover {
    color: #e7cd37;
  }

  .navbar .logo img {
    width: 7rem;
    height: auto;
    margin-left: -20px;
  }

  .bar {
    margin-right: -10px;
  }

  .hero {
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .hero h2 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  .hero h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  .hero p {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .hero .btn-login {
    display: inline-block;
    padding: 8px 30px;
    margin-top: 50px;
    font-size: 14px;
  }

  .marquee {
    margin-top: 10px;
    margin-bottom: -20px;
    padding: 20px 0;
  }

  .marquee-tittle h3 {
    font-size: 14px;
  }

  .marquee-tittle p {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .marquee-item {
    width: 175px;
    border-radius: 10px;
    padding: 7px;
  }

  .marquee-item img {
    width: 100%;
    height: 100px;
    border-radius: 4px;
  }

  .marquee-item p {
    margin: 6px 0 0 0;
    font-size: 12px;
  }
}

/* === Style FOOTER === */
.main-footer {
  background-color: #03182e; /* Warna dasar abu-abu gelap yang kontras dan elegan */
  color: #ffffff;
  padding: 50px 0 0 0;
  margin-top: 30px;
  font-size: 14px;
  border-top: 4px solid #5b9bd5; /* Aksen garis biru muda di atas footer */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: block;
}

/* Menggantikan fungsi flex/grid agar kompatibel penuh dan rapi */
.footer-container::after {
  content: "";
  display: table;
  clear: both;
}

.footer-column {
  width: 31%;
  float: left;
  margin-right: 3.5%;
}

.footer-column:last-child {
  margin-right: 0;
}

/* Styling Isi Kolom */
.footer-logo-wrapper {
  display: block;
  margin-bottom: 15px;
}

.footer-logo-wrapper::after {
  content: "";
  display: table;
  clear: both;
}

.footer-logo-wrapper img {
  width: 45px;
  height: auto;
  float: left;
  margin-right: 12px;
}

.footer-logo-wrapper h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 45px;
  margin: 0;
}

.footer-about-text {
  color: #d7caca;
  line-height: 1.6;
  text-align: justify;
}

.footer-column h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #5b9bd5;
  display: inline-block;
}

/* Styling Tautan List Navigasi */
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #d7caca;
  text-decoration: none;
  transition:
    color 0.3s ease,
    padding-left 0.3s ease;
  display: inline-block;
}

.footer-links a i {
  font-size: 10px;
  margin-right: 5px;
}

.footer-links a:hover {
  color: #ea2727;
  padding-left: 5px;
}

/* Styling Info Kontak */
.footer-contact-info {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.footer-contact-info li {
  margin-bottom: 12px;
  color: #d7caca;
  display: block;
}

.footer-contact-info li::after {
  content: "";
  display: table;
  clear: both;
}

.footer-contact-info li i {
  color: #d7caca;
  width: 20px;
  float: left;
  margin-top: 4px;
}

.footer-contact-info li span {
  display: block;
  margin-left: 25px;
  line-height: 1.4;
}

/* Media Sosial Icons */
.footer-social-icons {
  margin-top: 15px;
}

.footer-social-icons a img {
  display: inline-block;
  width: 25px;
  height: 25px;
  margin-right: 20px;
  transition: all 0.3s ease;
}

.footer-social-icons a img:hover {
  transform: translateY(-3px);
}

/* Baris Copyright Hak Cipta */
.footer-bottom {
  background-color: #001429;
  text-align: center;
  padding: 15px 20px;
  color: #ffffff;
  font-size: 13px;
  border-top: 1px solid #34495e;
}

/* === Responsive Footer=== */
@media (max-width: 768px) {
  .footer-column {
    width: 100%;
    float: none;
    margin-right: 0;
    margin-bottom: 35px;
  }
  .main-footer {
    padding-top: 40px;
  }
}

@media (max-width: 480px) {
  .footer-column {
    width: 100%;
    float: none;
    margin-right: 0;
    margin-bottom: 25px;
  }
  .main-footer {
    padding-top: 40px;
  }
}
