@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Rubik:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', sans-serif;
}

h1,
h2,
.header-menu li a {
  font-family: 'Rubik', sans-serif;
}

a {
  text-decoration: none;
}
.float-left {
  float: left;
}
.container {
  width: 1140px;
  margin: 0 auto;
}
.container::after {
  content: '';
  display: block;
  clear: both;
}
.bg-light {
  background-color: #fefefe;
}
.clearfix {
  clear: both;
}
.page-login {
  width: 100%;
  height: 100vh;
  background-color: #189ab4;
  display: flex;
  justify-content: center;
  align-items: center;
}

.box {
  border: 1px solid #ddd;
  background-color: #fff;
}

.box-header {
  padding: 16px;
  border-bottom: 1px solid #ddd;
  background-color: #f2f2f2;
}
.box-body {
  padding: 16px;
}
.box-footer {
  border-top: 1px solid #ddd;
  background-color: #f2f2f2;
  padding: 16px;
}
form {
  margin: 15px 0;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
}
.form-group .input-control {
  padding: 8px 16px;
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  border: 1px solid #ddd;
}

/* form pendaftaran siswa */
.form-container {
  max-width: 600px;
  margin: 50px auto;
  padding: 30px;
  background: #fefefe;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease;
}

.form-container h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #145da0;
  position: relative;
}

.form-container h2::after {
  content: '';
  width: 60px;
  border: 3px solid #189ab4;
  position: absolute;
  bottom: -10px;
  left: calc(50% - 30px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #2e8bc0;
  box-shadow: 0 0 8px rgba(46, 139, 192, 0.4);
}

.form-container button {
  width: 100%;
  padding: 12px;
  background: #2e8bc0;
  color: white;
  border: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.form-container button:hover {
  background: #1c6ca5;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.box-login {
  width: 300px;
}
.btn {
  border: 1px solid #ddd;
  padding: 8px 18px;
  font-size: 16px;
}
.btn:hover {
  cursor: pointer;
}
.btn-blue {
  background-color: #2e8bc0;
  color: #fff;
  border: 1px solid #2e8bc0;
}
.btn-blue:hover {
  background-color: #2a79a1;
}
.text-center {
  text-align: center !important;
}
.alert {
  padding: 10px 16px; /* Perbaiki '160x' menjadi '160px' */
  border: 1px solid;
  margin: 10px 0; /* Tambahkan margin untuk jarak antara pesan dan elemen lain */
  border-radius: 4px; /* Tambahkan border-radius untuk sudut yang lebih halus */
}

.alert-error {
  background-color: #fabec0; /* Warna latar belakang merah muda */
  border: 1px solid #e43d40; /* Warna border merah */
  color: #e43d40; /* Warna teks merah */
}
.alert-success {
  background-color: #c6e684; /* Warna latar belakang hijau muda */
  border: 1px solid #76d626; /* Warna border hijau */
  color: #3c761f; /* Warna teks hijau */
}
.navbar {
  height: 60px;
  width: 100%;
  background-color: #2e8bc0;
  position: fixed;
  top: 0;
  z-index: 1000;
}
.navbar a {
  color: #fff;
}
.nav_brand {
  display: inline-block;
  padding: 15px 0;
  margin-right: 30px;
}
.nav-menu {
  display: flex;
  list-style: none;
}
.nav-menu li a {
  padding: 20px 20px;
  display: inline-block;
}
.nav-menu li .dropdown {
  border: 1px solid #ddd;
  background-color: #fff;
  list-style: none;
  position: absolute;
  display: none;
}
.nav-menu li:hover {
  background-color: #145da0;
}
.nav-menu li .dropdown a {
  color: #333;
}
.nav-menu li .dropdown li:hover a {
  color: #fff;
}
.nav-menu li:hover .dropdown {
  display: block;
}
.content {
  padding: 80px 0 30px 0;
}
.footer {
  padding: 20px 0;
}

/* icon sosial media footer */
.sosial-media {
  margin-top: 10px;
  margin-bottom: 10px;
}

.sosmed-icon {
  color: rgb(0, 0, 0);
  margin: 10px 20px;
  width: 50px;
  font-size: 26px;
  transition: 0.3s;
}

.sosmed-icon:hover {
  color: #ffd700; /* warna kuning saat hover */
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}
.table th,
.table td {
  border: 1px solid #ddd;
  padding: 10px;
}
.table td:first-child {
  width: 50px;
  text-align: center;
}
.table td:last-child {
  width: 150px;
  text-align: center;
}
.text-red {
  color: #ff0000;
}
.text-blue {
  color: #0000ff;
}
.text-green {
  color: #008000;
}
.image {
  border: 1px solid #ddd;
  pad: 5px;
}
.header {
  border-bottom: 2px solid #145da0;
}
.header a {
  color: #333;
}
.header a:hover {
  color: #2e8bc0;
}

.header-logo {
  float: left;
  padding: 5px 0;
}
.header-logo img {
  float: left;
  margin-right: 10px;
}
.header-logo h1 {
  float: left;
  line-height: 75px;
}
.header-menu {
  float: right;
}
.header-menu li {
  float: left;
  list-style: none;
  padding: 35px 10px;
}

.header-menu li a {
  font-weight: 600;
  color: #333;
  padding: 5px 5px;
  border-radius: 6px;
  transition: all 0.3s ease;
  background-color: transparent;
}

.header-menu li a:hover {
  background-color: #f0f8ff; /* Warna latar saat hover */
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3); /* Efek timbul */
  transform: translateY(-3px); /* Sedikit naik */
  color: #007bff; /* Biru saat hover */
}

.banner {
  height: 85vh; /* Atau 400px misalnya */
  background-size: cover;
  background-position: center;
  position: relative;
}

.banner-slideshow {
  position: relative;
  height: 85vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.banner-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 25px 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-weight: bold;
  z-index: 2;
}

.section-visi {
  background-color: #14532d; /* Hijau tua */
  color: #ffffff; /* Supaya teks kontras */
  padding: 40px 0;
}

.section-misi {
  background-color: #bbf7d0; /* Hijau muda */
  color: #1f2937; /* Teks abu tua */
  padding: 40px 0;
}

.section-visi p {
  font-size: 20px;
}

.section-misi p {
  white-space: pre-line;
  font-size: 20px;
  line-height: 1.4;
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

.section h2 {
  margin-bottom: 15px;
  font-size: 28px;
  position: relative;
}

.section h2::after {
  content: '';
  display: block;
  width: 60px;
  border: 3px solid #0f766e;
  margin: 10px auto 0;
}

.section h2:hover {
  font-size: 35px;
  cursor: pointer;
}

.animate-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideLeft 1s ease forwards;
}

.animate-right {
  opacity: 0;
  transform: translateX(50px);
  animation: slideRight 1s ease forwards;
}

@keyframes slideLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.section {
  padding: 30px 0;
}
.section h2 {
  padding-bottom: 14px;
  margin-bottom: 20px;
  position: relative;
}
.section h2::after {
  content: '';
  display: block;
  width: 60px;
  border: 3px solid #189ab4;
  position: absolute;
  bottom: 0;
  left: calc(50% - 30px);
}

/* Tambahan container khusus untuk grid */
.container-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Kolomnya tetap */
.col-4 {
  width: calc(25% - 20px);
  min-height: 200px;
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  .col-4 {
    width: 48%;
  }
}
@media screen and (max-width: 480px) {
  .col-4 {
    width: 100%;
  }
}

.col-4 {
  min-height: 200px;
  width: 25%;
  float: left;
  padding: 10px;
}

.thumbnail-box {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

.thumbnail-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.thumbnail-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.thumbnail-text {
  padding: 12px;
  font-weight: 600;
  font-size: 16px;
  color: #333;
  background-color: #f9f9f9;
  text-align: center;
}

.thumbnail-link {
  color: #333;
}
.thumbnail-link :hover {
  color: #189ab4;
}

.col-4 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer {
  background-color: #1273ce;
  border: 1px solid;
  padding: 30px 0;
  color: #fff;
}
/* .box-gmaps {
  width: 75%;
} */
.mobile-menu-btn {
  width: 100%;
  float: left;
  padding: 10px;
  display: none;
}
.box-menu-mobile {
  display: none;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
}
.box-menu-mobile span {
  color: #fff;
  padding: 10px;
  position: absolute;
}
.box-menu-mobile ul {
  margin-top: 50px;
}

.box-menu-mobile ul li a {
  padding: 10px;
  display: inline-block;
  color: #fff;
}
/* css mobile */
@media screen and (max-width: 768px) {
  .container {
    width: 100%;
  }
  .col-4 {
    width: 40%;
  }
  .thumbnail-text {
    font-size: 14px;
  }
  .header-menu {
    display: none;
  }
  .box-gmaps {
    width: 100%;
  }
  .mobile-menu-btn {
    display: block;
  }
}
.page-break {
  page-break-before: always;
}

@media print {
  .gambar-dokumen h3 {
    page-break-before: always;
  }

  .dokumen-img {
    width: 100%;
    max-width: 700px;
    display: block;
    margin: auto;
  }
}
