/* =========================
   GLOBAL
========================= */
html {
  scroll-behavior: smooth;
}

:root {
  --primary: #0d6efd;
  --dark: #0b1c3d;
}

body {
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

/* =========================
   NAVBAR PREMIUM
========================= */

/* =========================
   NAVBAR FIX PREMIUM
========================= */
/* ========================================
   NAVBAR PREMIUM FULL FIX
======================================== */

#navbar {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;

  z-index: 999;

  padding: 14px 0;

  transition: all 0.4s ease;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.25)
  );

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* saat scroll */
#navbar.scrolled {
  background: rgba(15, 23, 42, 0.96);

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

/* ========================================
   BRAND
======================================== */

.navbar-brand {
  display: flex;
  align-items: center;

  gap: 10px;

  color: white !important;

  font-size: 1.4rem;

  font-weight: 700;

  white-space: nowrap;
}

.navbar-brand img {
  border-radius: 50%;
}

/* ========================================
   NAV MENU
======================================== */

.navbar-nav {
  margin-left: auto;

  align-items: center;

  gap: 5px;
}

/* LINK */

.navbar .nav-link {
  position: relative;

  color: white !important;

  font-weight: 500;

  padding: 10px 12px !important;

  transition: 0.3s;
}

/* hover warna */
.navbar .nav-link:hover {
  color: #ffc107 !important;
}

/* ========================================
   HOVER LINE
   HANYA MENU BIASA
======================================== */

.navbar-nav .nav-item:not(.dropdown) .nav-link::after {
  content: "";

  position: absolute;

  left: 50%;

  bottom: 3px;

  transform: translateX(-50%);

  width: 0%;

  height: 2px;

  border-radius: 10px;

  background: #ffc107;

  transition: 0.3s ease;
}

/* animasi garis */
.navbar-nav .nav-item:not(.dropdown) .nav-link:hover::after {
  width: 70%;
}

/* ========================================
   DROPDOWN
======================================== */

.dropdown-menu {
  border: none;

  border-radius: 15px;

  overflow: hidden;

  background: rgba(15, 23, 42, 0.97);

  backdrop-filter: blur(10px);

  padding: 8px;

  margin-top: 10px;
}

.dropdown-item {
  color: white;

  border-radius: 10px;

  padding: 10px 15px;

  transition: 0.3s;
}

.dropdown-item:hover {
  background: #ffc107;

  color: #000;
}

/* dropdown arrow */
.dropdown-toggle::after {
  margin-left: 5px;

  vertical-align: middle;
}

/* ========================================
   BUTTON SPMB
======================================== */

.btn-warning {
  border-radius: 12px;

  padding: 10px 20px;

  font-weight: 600;

  transition: 0.3s;
}

.btn-warning:hover {
  transform: translateY(-2px);
}

/* ========================================
   TOGGLER
======================================== */

.navbar-toggler {
  border: none;

  box-shadow: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(15, 23, 42, 0.98);

    padding: 20px;

    border-radius: 15px;

    margin-top: 15px;
  }

  .navbar-nav {
    gap: 0;
  }

  .navbar .nav-link {
    padding: 12px !important;
  }
}
/* =========================
   HERO
========================= */
.hero-slide {
  min-height: 100vh;
  height: auto;
  background-size: cover;
  background-position: center;
  position: relative;
  padding-top: 80px;
  display: flex;
  align-items: center;
  margin-top: 0;
}

.hero-slide h1 {
  font-size: 48px;
  font-weight: 700;
}

.hero-slide p {
  font-size: 18px;
  margin-bottom: 20px;
}

/* ========================================
   FLOATING HERO CARD
======================================== */
/* ========================================
   FLOATING HERO CARD PREMIUM
======================================== */

.hero-info-wrapper {
  position: relative;
  margin-top: -65px;
  z-index: 20;
}

/* CARD WRAPPER */

.hero-info-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* ITEM CARD */
.info-box {
  background: rgba(255, 255, 255, 0.96);

  backdrop-filter: blur(10px);

  border-radius: 20px;

  padding: 20px 22px;

  display: flex;

  align-items: center; /* center vertical */

  justify-content: center; /* center isi */

  gap: 18px;

  min-height: 115px;

  transition: 0.35s ease;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.5);

  text-align: left;
}

/* HOVER */

.info-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* TEXT */

.info-box h5 {
  margin: 0;

  line-height: 1.5;

  display: flex;

  align-items: center;

  height: 100%;
}

/* ICON */

.info-box i {
  font-size: 2.8rem;
  color: #2563eb;
  transition: 0.35s ease;
}

/* ICON HOVER */

.info-box:hover i {
  transform: scale(1.1) rotate(-5deg);
  color: #0d6efd;
}

.hero-info-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
/* RESPONSIVE */

@media (max-width: 1200px) {
  .hero-info-card {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-info-wrapper {
    margin-top: -40px;
  }

  .hero-info-card {
    grid-template-columns: 1fr;
  }

  .info-box {
    min-height: auto;
  }
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  color: white;
}

/* animasi */
.animate-text {
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

.carousel-item.active .animate-text {
  animation: fadeUp 1s forwards;
}

.delay-1 {
  animation-delay: 0.3s;
}
.delay-2 {
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   SECTION
========================= */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: var(--primary);
  display: block;
  margin: 10px auto 0;
  border-radius: 10px;
}

/* =========================
   CARD
========================= */
.card-custom {
  border: none;
  border-radius: 15px;
  transition: 0.3s;
}

.card-custom:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* =========================
   BERITA
========================= */
.berita-card {
  border: none;
  overflow: hidden;
  transition: 0.3s;
}

.berita-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.img-wrapper {
  position: relative;
  overflow: hidden;
}

.img-wrapper img {
  transition: 0.4s;
}

.berita-card:hover img {
  transform: scale(1.1);
}

.kategori {
  position: absolute;
  top: 10px;
  left: 10px;
}

/* =========================
   GALERI
========================= */
.gallery-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}
@media (max-width: 768px) {
  .gallery-img {
    height: 150px;
  }
}
.gallery-item {
  overflow: hidden;
  border-radius: 10px;
}

.gallery-img:hover {
  transform: scale(1.05);
}

/* =========================
   TESTIMONI
========================= */
.testi-card {
  max-width: 500px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 15px;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: var(--dark);
}

.footer a {
  color: #ccc;
}

.footer a:hover {
  color: white;
}

/* =========================
   RESPONSIVE (RAPI)
========================= */

/* tablet */
@media (max-width: 768px) {
  .hero-slide {
    height: 80vh;
  }

  .hero-slide h1 {
    font-size: 28px;
  }

  .hero-slide p {
    font-size: 14px;
  }

  .section {
    padding: 60px 0;
    text-align: center;
  }
}

/* mobile kecil */
@media (max-width: 576px) {
  .navbar-brand span {
    font-size: 14px;
  }

  .navbar-brand img {
    height: 30px;
  }

  .gallery-img {
    height: 180px;
  }
}

.stats {
  background: linear-gradient(135deg, #0d6efd, #0b1c3d);
  color: white;
  text-align: center;
}

.stats h1 {
  font-size: 40px;
  font-weight: bold;
}

.stats p {
  margin-top: 5px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .footer {
    text-align: center;
  }

  .footer .row > div {
    margin-bottom: 20px;
  }

  .social-icons {
    justify-content: center;
  }

  .social-icons a {
    margin: 0 8px;
  }
}

/* ======================================
   FOOTER
====================================== */

.footer {
  background: #0f172a;
}

/* BRAND */
.footer-brand {
  display: flex;

  align-items: center;

  gap: 15px;

  margin-bottom: 15px;
}

/* LOGO */
.footer-brand img {
  width: 70px;

  height: 70px;

  object-fit: cover;

  border-radius: 50%;

  border: 3px solid rgba(255, 255, 255, 0.15);

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

/* TITLE */
.footer-brand h5 {
  margin: 0;

  font-size: 1.2rem;

  font-weight: 700;
}

/* DESC */
.footer p {
  line-height: 1.8;
}

/* MENU */
.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  color: rgba(255, 255, 255, 0.75);

  text-decoration: none;

  transition: 0.3s;
}

.footer ul li a:hover {
  color: #ffc107;

  padding-left: 5px;
}

/* SOCIAL */
.social-icons {
  display: flex;

  gap: 12px;
}

.social-icons a {
  width: 42px;

  height: 42px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);

  color: white;

  display: flex;

  align-items: center;

  justify-content: center;

  text-decoration: none;

  transition: 0.3s;

  font-size: 18px;
}

.social-icons a:hover {
  background: #ffc107;

  color: #000;

  transform: translateY(-4px);
}

/* COPYRIGHT */
.footer hr {
  opacity: 0.15;
}

/* ======================================
   MOBILE
====================================== */

@media (max-width: 768px) {
  .footer {
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;

    justify-content: center;
  }

  .footer-brand img {
    width: 85px;

    height: 85px;
  }

  .footer .row > div {
    margin-bottom: 30px;
  }

  .social-icons {
    justify-content: center;
  }
}

/* ======================================
   PAGE HERO
====================================== */

.page-hero {
  height: 55vh;

  background:
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("../images/slide1.jpg");

  background-size: cover;

  background-position: center;

  display: flex;

  align-items: center;

  justify-content: center;

  position: relative;

  text-align: center;
}

.page-hero h1 {
  font-size: 3rem;

  font-weight: 800;
}

.page-hero p {
  max-width: 700px;

  margin: auto;
}

/* ======================================
   VISI MISI
====================================== */

.vm-card {
  background: white;

  padding: 40px;

  border-radius: 25px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  transition: 0.3s;
}

.vm-card:hover {
  transform: translateY(-5px);
}

.vm-icon {
  width: 75px;

  height: 75px;

  border-radius: 20px;

  background: #0d6efd;

  color: white;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 28px;

  margin-bottom: 25px;
}

.vm-list {
  padding-left: 18px;
}

.vm-list li {
  margin-bottom: 12px;

  color: #555;
}

/* ======================================
   MOBILE
====================================== */

@media (max-width: 768px) {
  .page-hero {
    height: 45vh;

    padding: 20px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .vm-card {
    padding: 30px;
  }
}

/* ======================================
   GTK
====================================== */

.gtk-card {
  background: #fff;

  border-radius: 20px;

  overflow: hidden;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

  transition: 0.3s;

  height: 100%;
}

.gtk-card:hover {
  transform: translateY(-5px);
}

.gtk-img {
  width: 100%;

  height: 280px;

  background: #f5f5f5;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;
}

.gtk-img img {
  width: 100%;

  height: 100%;

  object-fit: contain;

  transition: 0.4s;
}

.gtk-card:hover img {
  transform: scale(1.03);
}

.gtk-content {
  padding: 25px;
}
/* MOBILE */
@media (max-width: 768px) {
  .gtk-img {
    height: 240px;
  }
}

/* ======================================
   ALUMNI
====================================== */

.alumni-card {
  background: #fff;

  border-radius: 20px;

  overflow: hidden;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

  transition: 0.3s;

  height: 100%;
}

.alumni-card:hover {
  transform: translateY(-5px);
}

.alumni-img {
  width: 100%;

  height: 280px;

  background: #f5f5f5;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;
}

.alumni-img img {
  width: 100%;

  height: 100%;

  object-fit: contain;

  transition: 0.4s;
}

/* .alumni-card:hover img {
  transform: scale(1.03);
}

.alumni-content {
  padding: 25px;
} */
.alumni-card:hover .alumni-img img {
  transform: scale(1.08);
}

.alumni-content {
  padding: 30px;
}

.alumni-badge {
  display: inline-block;

  background: #0d6efd;

  color: white;

  padding: 6px 14px;

  border-radius: 30px;

  font-size: 14px;

  margin-top: 8px;
}

.alumni-social {
  display: flex;

  gap: 12px;

  margin-top: 20px;
}

.alumni-social a {
  width: 40px;

  height: 40px;

  border-radius: 50%;

  background: #f1f5f9;

  color: #0f172a;

  display: flex;

  align-items: center;

  justify-content: center;

  text-decoration: none;

  transition: 0.3s;
}

.alumni-social a:hover {
  background: #0d6efd;
  color: white;
  transform: translateY(-4px);
}

/* MOBILE */
@media (max-width: 768px) {
  .alumni-img {
    height: 260px;
  }
}

/* ======================================
   CONTACT
====================================== */

.contact-info {
  background: white;
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #0d6efd;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-form .form-control {
  border-radius: 14px;
  padding: 14px 18px;
  border: 1px solid #dbe2ea;
  box-shadow: none;
}

.contact-form .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

/* MOBILE */
@media (max-width: 768px) {
  .contact-info,
  .contact-form {
    padding: 30px;
  }
}

/* ======================================
   FOTO SEJARAH
====================================== */

.img-sejarah {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: 0.3s;
}

.img-sejarah:hover {
  transform: scale(1.02);
}

/* MOBILE */
@media (max-width: 768px) {
  .img-sejarah {
    height: 250px;
    margin-bottom: 20px;
  }
}

.detail-berita {
  line-height: 1.9;
  font-size: 17px;
  color: #444;
}

.detail-berita img {
  max-width: 100%;
  border-radius: 12px;
  margin: 20px 0;
}

.detail-berita p {
  margin-bottom: 20px;
}

.testi-card {
  max-width: 700px;
  background: white;
  padding: 40px;
  border-radius: 25px;
}

.testi-card p {
  font-size: 18px;
  color: #555;
}

.carousel-control-prev,
.carousel-control-next {
  width: auto;
}

@media (max-width: 768px) {
  .testi-card {
    padding: 25px;
  }
}

/* =========================
   FACILITY CARD
========================= */

.facility-card {
  background: #fff;

  border-radius: 25px;

  padding: 35px 25px;

  text-align: center;

  height: 100%;

  position: relative;

  overflow: hidden;

  transition: 0.35s ease;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* HOVER */
.facility-card:hover {
  transform: translateY(-10px);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ICON */
.facility-icon {
  width: 85px;

  height: 85px;

  margin: auto auto 25px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 34px;

  color: white;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* TITLE */
.facility-card h4 {
  font-weight: 700;

  margin-bottom: 15px;

  color: #222;
}

/* DESC */
.facility-card p {
  color: #777;

  line-height: 1.8;

  font-size: 15px;
}

/* EFFECT */
.facility-card::before {
  content: "";

  position: absolute;

  width: 150px;
  height: 150px;

  background: rgba(78, 115, 223, 0.06);

  border-radius: 50%;

  top: -50px;
  right: -50px;
}

/* MOBILE */
@media (max-width: 768px) {
  .facility-card {
    padding: 30px 20px;
  }

  .facility-icon {
    width: 75px;
    height: 75px;

    font-size: 28px;
  }
}
