:root {
  --amber-honey: #eca400;
  --cream: #fbf7ef;
  --cerulean: #006992;
  --yale-blue: #27476e;
  --prussian-blue: #001d4a;
  --primary-color: var(--amber-honey);
  --bg: var(--cream);
  --surface: #ffffff;
  --surface-soft: #f7fbef;
  --text-color: var(--prussian-blue);
  --text-muted: #3e5878;
  --border-soft: rgba(0, 29, 74, 0.12);
  --shadow-soft: rgba(0, 29, 74, 0.18);
  --container-max: 1200px;
  --section-padding-y: 80px;
  --section-padding-x: 7%;
  --section-padding-y-tablet: 64px;
  --section-padding-x-tablet: 5%;
  --section-padding-y-mobile: 48px;
  --section-padding-x-mobile: 20px;
  --radius-lg: 20px;
  --radius-md: 15px;
  --radius-sm: 3px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

body {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: var(--text-color);
  background: #ffffff;
  letter-spacing: 0.2px;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

body.menu-open {
  overflow: hidden;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1,
h2,
h3,
.navbar-logo span,
.dropbtn,
.custom-navbar .navbar-nav a {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-color);
}

h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.3;
}

img {
  max-width: 100%;
  height: auto;
}

/* Override navbar logo span color */
nav.custom-navbar .navbar-logo span {
  color: #ffffff !important;
}

nav.custom-navbar.scrolled .navbar-logo span {
  color: #333 !important;
}

body,
h1,
h2,
h3,
a,
span {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*navbar*/
nav.custom-navbar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center;
  align-items: center;
  padding: 1rem 7%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition: all 0.3s ease;
}

nav.custom-navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 20px rgba(0, 29, 74, 0.18);
  backdrop-filter: blur(10px);
}

nav.custom-navbar .navbar-container {
  width: 100%;
  max-width: 1600px;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

nav.custom-navbar .navbar-logo {
  font-size: 1.5rem;
  font-weight: 500;
  color: #ffffff !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition:
    color 0.3s ease,
    gap 0.25s ease;
}

nav.custom-navbar.scrolled .navbar-logo {
  color: var(--prussian-blue) !important;
}

nav.custom-navbar .navbar-logo img {
  width: 35px;
  height: auto;
  margin-right: 0;
  opacity: 1;
  transform: scale(1);
  transition:
    width 0.25s ease,
    margin-right 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

@media (min-width: 769px) {
  body.home-page nav.custom-navbar:not(.scrolled) .navbar-logo {
    gap: 0;
  }

  body.home-page nav.custom-navbar:not(.scrolled) .navbar-logo img {
    width: 0;
    margin-right: 0;
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
  }
}

nav.custom-navbar .navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

nav.custom-navbar .navbar-nav a {
  color: #ffffff;
  font-size: 1.1rem;
  margin: 0 1rem;
  vertical-align: middle;
  align-items: center;
  line-height: 1;
  display: flex !important;
  flex-direction: row !important;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav.custom-navbar.scrolled .navbar-nav a {
  color: var(--prussian-blue);
}

.custom-navbar .navbar-nav a:hover {
  color: var(--amber-honey);
  transition: 0.2s linear;
}

.custom-navbar .navbar-nav a::after {
  content: "";
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid var(--primary-color);
  transform: scaleX(0);
  transition: 0.2s linear;
}

.custom-navbar .navbar-nav a:hover::after {
  transform: scaleX(1);
}

nav.custom-navbar .navbar-extra {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0.5rem;
  margin: 0 !important;
  padding: 0 !important;
}

.custom-navbar .navbar-extra a {
  color: #ffffff;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.custom-navbar.scrolled .navbar-extra a {
  color: var(--prussian-blue);
}

.custom-navbar .navbar-extra a:hover {
  color: var(--primary-color);
  transition: 0.2s linear;
}

#hamburger-menu {
  display: none;
}

#close-menu {
  display: none;
  color: var(--prussian-blue);
  margin-left: 0.5rem;
}

#close-menu:hover {
  color: rgb(84, 84, 84);
}

.custom-dropdown {
  position: relative;
  display: inline-block;
}

.custom-dropdown .dropbtn {
  color: var(--prussian-blue);
  font-size: 1.1rem;
  margin: 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: color 0.3s ease;
}

/* Dropdown putih di hero section */
nav.custom-navbar .custom-dropdown .dropbtn {
  color: #ffffff !important;
}

/* Dropdown gelap saat scrolled ke bagian putih */
nav.custom-navbar.scrolled .custom-dropdown .dropbtn {
  color: var(--prussian-blue) !important;
}

/* --- Animasi fade + slide --- */
.dropdown-content {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  background-color: var(--surface);
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 29, 74, 0.18);
  border-radius: 2px;
  top: 100%;
  left: 0;
  transform: translateY(10px);
  transition: all 0.25s ease-in-out;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

/* Dropdown di hero section (transparent navbar) */
nav.custom-navbar:not(.scrolled) .dropdown-content {
  background-color: var(--surface);
  backdrop-filter: blur(5px);
}

nav.custom-navbar:not(.scrolled) .dropdown-content a {
  color: var(--prussian-blue);
}

nav.custom-navbar:not(.scrolled) .dropdown-content a:hover {
  background-color: rgba(236, 164, 0, 0.16);
  color: var(--amber-honey);
}

/* Saat hover: tampil dan naik perlahan */
.custom-dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Link di dalam dropdown */
.dropdown-content a {
  color: var(--prussian-blue);
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  font-size: 1rem;
  border-radius: 2px;
}

.dropdown-content a:hover {
  background-color: rgba(236, 164, 0, 0.16);
  color: var(--amber-honey);
  transition: 0.2s;
}

/* Warna saat hover tombol utama */
.custom-dropdown:hover .dropbtn {
  color: var(--amber-honey);
  transition: 0.2s;
}

/* User Menu Dropdown Styles */
.navbar-extra .custom-dropdown {
  display: inline-block;
}

.navbar-extra .user-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--cerulean), var(--yale-blue));
  color: white !important;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 105, 146, 0.28);
}

.navbar-extra .user-menu-btn:hover {
  background: linear-gradient(135deg, var(--yale-blue), var(--prussian-blue));
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 29, 74, 0.3);
  color: white !important;
}

.navbar-extra .user-menu-btn::after {
  display: none;
}

.navbar-extra .dropdown-content {
  right: 0;
  left: auto;
  min-width: 200px;
}

.navbar-extra .dropdown-content a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
}

.navbar-extra .dropdown-content a svg {
  width: 18px;
  height: 18px;
}

.navbar-extra .login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--amber-honey), #d88f00);
  color: white !important;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(236, 164, 0, 0.3);
}

.navbar-extra .login-btn:hover {
  background: linear-gradient(135deg, #d88f00, #b97a00);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(236, 164, 0, 0.36);
  color: white !important;
}

/* new hero section styles */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--section-padding-y) var(--section-padding-x);
  overflow: hidden;
  background: #111827;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  z-index: 0;
}

.home-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
}

.home-hero-bg.is-active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  color: #ffffff;
  text-align: center;
}

.hero-logo {
  display: block;
  width: clamp(92px, 12vw, 150px);
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}

.hero-eyebrow,
.section-eyebrow {
  display: inline-block;
  margin: 0 auto 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber-honey);
}

.home-hero h1 {
  max-width: 680px;
  margin: 0 auto 1rem;
  color: #ffffff;
}

.hero-lead {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: medium;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.scroll-reveal .reveal-item,
.scroll-reveal.reveal-item {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  will-change: opacity, transform;
}

.scroll-reveal.reveal-visible .reveal-item,
.scroll-reveal.reveal-visible.reveal-item,
.scroll-reveal .reveal-item.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
  padding-top: 1rem;
}

.reveal-delay-3 {
  transition-delay: 0.36s;
}

/* section umum */

.home-section {
  padding: var(--section-padding-y) var(--section-padding-x);
  display: flex;
  flex-direction: column;
}

.home-section .tentang-gereja {
  min-height: 75vh;
}

.tentang-gereja {
  background: #ffffff;
}

.section-highlight,
.jadwal-misa {
  background: var(--cream)
}

.berita-terkini {
  background: #ffffff;
}

.section-cta {
  background: linear-gradient(
    135deg,
    var(--yale-blue) 0%,
    var(--prussian-blue) 100%
  );
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 10px;
}

/* tentang section */

.about-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  flex: 1;
}

.about-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.about-copy {
  padding: 1rem 5;
}

.about-copy h2 {
  margin-bottom: 1.25rem;
  font-size: 2rem;
  color: var(--prussian-blue);
}

.about-copy p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: justify;
}

.btn-primary-home {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.9rem 1.4rem;
  background: #b80f0a;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 992px) {
  .home-hero,
  .home-section,
  .container-satu,
  .container-dua,
  .container-tiga {
    padding: var(--section-padding-y-tablet) var(--section-padding-x-tablet);
  }

  .about-grid,
  .highlight-card,
  .cta-box {
    gap: 1.5rem;
  }

  .highlight-card,
  .cta-box {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-logo {
    width: clamp(78px, 22vw, 110px);
    margin-bottom: 1.1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-media img {
    height: 260px;
  }

  .home-hero,
  .home-section,
  .container-satu,
  .container-dua,
  .container-tiga {
    padding: var(--section-padding-y-mobile) var(--section-padding-x-mobile);
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .highlight-card,
  .cta-box {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    border-radius: var(--radius-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-reveal .reveal-item,
  .scroll-reveal.reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* jadwal ringkas section */

.highlight-card {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.highlight-copy,
.highlight-media {
  flex: 1;
}

.highlight-copy h3,
.info-card h3,
.service-card h3,
.berita-info h3 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.highlight-copy p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.schedule-preview {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.schedule-item {
  padding: 1rem 1.1rem;
  border-radius: 5px;
  background: rgba(194, 194, 194, 0.42);
  opacity: 0.9;
}

.schedule-title {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.3rem;
  font-weight: 1000;
  color: var(--prussian-blue);
}

.schedule-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a8490;
}

.highlight-media img {
  width: 100%;
  max-width: 460px;
  height: 320px;
  margin-left: auto;
  display: block;
  object-fit: cover;
  border-radius: 2px;
}

.berita-container-home {
  max-width: 1120px;
}

.berita-card-home {
  border-radius: 1px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.btn-primary-home,
.btn-secondary-home,
.service-card a,
.btn-selengkapnya {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: 1px;
  border: 1px solid #4b5563;
  font-weight: 700;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.btn-primary-home,
.service-card a,
.btn-selengkapnya {
  background: var(--amber-honey);
  color: var(--prussian-blue);
  box-shadow: 0 10px 24px rgba(236, 164, 0, 0.25);
}

.btn-secondary-home {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-secondary-light {
  background: var(--surface);
  color: var(--yale-blue);
  border: 1px solid rgba(39, 71, 110, 0.15);
  padding-top: 1rem;
}

.btn-primary-home:hover,
.btn-secondary-home:hover,
.service-card a:hover,
.btn-selengkapnya:hover {
  transform: translateY(-2px);
}

.section-action,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-box {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
}

.section-cta h2,
.section-cta p {
  color: #ffffff;
}

.empty-state {
  text-align: center;
  color: #66727f;
}

/* ====== Layout ====== */
.berita-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.berita-card {
  background: var(--surface);
  border-radius: 2px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  width: 320px;
  overflow: hidden;
  text-align: left;
  transition: 0.3s ease all;
  display: flex;
  flex-direction: column;
}

.berita-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* ====== Gambar ====== */
.berita-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.berita-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex:1;
}

.berita-info h2 {
  font-size: 1.3rem;
  color: var(--prussian-blue);
  margin-bottom: 10px;
  font-weight: 600;
}

.ringkasan {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 15px;
}

.btn-selengkapnya {
  display: inline-block;
  background: var(--amber-honey);
  color: var(--prussian-blue);
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 1px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.3s ease;
  margin-top: auto; /* Agar tombol berada di bawah */
  width: fit-content;
}

.btn-selengkapnya:hover {
  background: #d99500;
}

/* Responsif */
@media (max-width: 768px) {
  .berita-card {
    width: 100%;
    max-width: 400px;
  }

  /* Mobile styles for user menu */
  .navbar-extra .user-menu-btn {
    padding: 6px 10px;
    font-size: 0.85rem;
    gap: 4px;
  }

  .navbar-extra .user-menu-btn span {
    display: none;
  }

  .navbar-extra .login-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .navbar-extra .dropdown-content {
    min-width: 160px;
    right: -10px;
  }
}

/* Footer */
.footer {
  background-color: var(--prussian-blue);
  color: #ecf0f1;
  padding-top: 2rem;
  padding-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

.footer-container {
  display: flex;
  flex-wrap: wrap; /* Agar responsif di layar kecil */
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Garis pemisah */
}

.footer-section {
  flex: 1; /* Memberi ruang yang sama */
  min-width: 250px; /* Lebar minimum per bagian */
  margin: 1.5rem 1rem 0; /* Margin atas, samping, bawah */
}

.footer-section h3 {
  color: var(--amber-honey);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 500;
  border-bottom: 2px solid rgba(236, 164, 0, 0.45);
  padding-bottom: 0.5rem;
  width: fit-content;
}

.footer-section p {
  display: flex;
  align-items: center;
  gap: 8px; /* jarak antara ikon dan teks */
  margin-bottom: 0.5rem;
}

.footer-section p i {
  margin-right: 10px;
  margin-top: 3px;
  color: #ecf0f1;
}

.footer-section a {
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--amber-honey);
}

/* Quick Links Styling */
.quick-links ul {
  list-style: none;
  padding: 0;
}

.quick-links ul li {
  margin-bottom: 0.5rem;
}

.footer-map {
  margin-top: 1rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.footer-map iframe {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: 10px;
}

/* Social Media Styling */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 1rem;
}

.social-links a {
  color: #ecf0f1;
  font-size: 1.5rem;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.social-links a:hover {
  background-color: var(--amber-honey);
  border-color: var(--amber-honey);
  color: var(--prussian-blue);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Media Query untuk Responsif */

@media (max-width: 768px) {
  .footer .dropdown-content,
  .navbar-extra .dropdown-content {
    position: static;
    box-shadow: none;
    background-color: transparent;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .footer .dropdown-content a,
  .navbar-extra .dropdown-content a {
    color: var(--bg);
    background: none;
    padding-left: 2rem;
  }

  .footer .dropdown:hover .dropdown-content,
  .navbar-extra .dropdown:hover .dropdown-content {
    transform: none;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section {
    min-width: 100%;
    margin: 1.5rem 0;
  }

  .footer-section h3 {
    margin: 0 auto 1rem;
  }

  .footer-section p {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }
}

/*media queries*/

/* Laptop */
@media (max-width: 1200px) {
  html {
    font-size: 93.75%;
  }
}

/* Tablet */
@media (max-width: 768px) {
  html {
    font-size: 87.5%;
  }

  #hamburger-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  nav.custom-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    padding: 0.9rem 0;
    z-index: 1100;
    background: #ffffff;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
  }

  nav.custom-navbar .navbar-container {
    padding: 0 1.25rem;
    justify-content: center;
  }

  nav.custom-navbar .navbar-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
  }

  nav.custom-navbar.active .navbar-logo img {
    display: none;
  }

  nav.custom-navbar .navbar-logo img {
    display: none;
    width: 44px;
    height: 44px;
  }

  nav.custom-navbar .navbar-logo,
  nav.custom-navbar .navbar-logo span {
    color: var(--prussian-blue) !important;
  }

  nav.custom-navbar .navbar-logo span {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: block;
    width: 100%;
  }

  nav.custom-navbar .navbar-extra a i {
    width: 22px;
    height: 22px;
  }

  nav.custom-navbar .navbar-nav {
    position: fixed;
    inset: 0;
    height: 100vh;
    background: var(--surface);
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 0.28s ease,
      visibility 0.28s ease,
      transform 0.28s ease;
    z-index: 1090;
    overflow-x: hidden;
    padding: 6.5rem 1.25rem 2rem;
  }

  nav.custom-navbar .navbar-nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    overflow-y: auto;
  }

  nav.custom-navbar .navbar-nav::before {
    content: "";
    display: block;
    width: 50px;
    height: 130px;
    margin: 0 auto 2rem;
    background-image: url("../img/logo-Yp.webp"); /* pastikan path sesuai */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  nav.custom-navbar .navbar-nav a {
    color: var(--prussian-blue) !important;
    font-size: 1.22rem;
    padding: 1.2rem 1.6rem;
    border-radius: 0;
    width: 100%;
    text-align: left;
    transition:
      background 0.3s ease,
      color 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    font-weight: 600;
    border-bottom: 1px solid rgba(39, 71, 110, 0.12);
  }

  nav.custom-navbar .navbar-nav a:hover {
    background: rgba(234, 248, 191, 0.45);
    color: var(--prussian-blue);
  }

  nav.custom-navbar .navbar-nav a::after {
    display: none;
  }

  nav.custom-navbar .navbar-nav a:hover:after {
    transform: none;
  }

  nav.custom-navbar .navbar-extra {
    z-index: 1110;
    position: relative;
    margin-left: auto !important;
  }

  nav.custom-navbar .navbar-extra a {
    color: var(--prussian-blue) !important;
    margin: 0;
  }

  nav.custom-navbar .navbar-extra a:hover {
    color: var(--amber-honey) !important;
  }

  #hamburger-menu,
  #close-menu {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--surface);
    border: none;
  }

  #hamburger-menu {
    cursor: pointer;
  }

  nav.custom-navbar.active #close-menu {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1115;
  }

  nav.custom-navbar.active .navbar-logo {
    opacity: 0;
    pointer-events: none;
  }

  nav.custom-navbar .custom-dropdown {
    width: 100%;
    text-align: left;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(39, 71, 110, 0.12);
    overflow: hidden;
  }

  nav.custom-navbar .custom-dropdown .dropbtn {
    font-size: 1.22rem;
    display: flex !important;
    align-items: center;
    gap: 6px;
    justify-content: space-between;
    width: 100%;
    margin: 0 !important;
    padding: 1.2rem 1.6rem;
    border-radius: 0;
    color: #1f2937 !important;
    color: var(--prussian-blue) !important;
    border-bottom: none !important;
    background: var(--surface);
    transition:
      background-color 0.28s ease,
      color 0.28s ease,
      padding 0.28s ease;
  }

  nav.custom-navbar .custom-dropdown.active .dropbtn {
    background: rgba(236, 164, 0, 0.12);
    color: var(--amber-honey) !important;
    padding-left: 1.8rem;
    padding-right: 1.8rem;
  }

  nav.custom-navbar .dropdown-content {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    min-width: 100%;
    background: var(--surface);
    text-align: left;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    box-shadow: none;
    border-top: 1px solid rgba(39, 71, 110, 0.1);
    transition:
      max-height 0.38s ease,
      opacity 0.25s ease,
      visibility 0.28s ease;
    border-radius: 0;
    margin-top: 0;
    transform: none !important;
    z-index: auto;
  }

  nav.custom-navbar .custom-dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    max-height: 320px;
  }

  nav.custom-navbar .dropdown-content a {
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.95rem 1.8rem 0.95rem 2.2rem;
    width: 100%;
    display: block !important;
    text-align: left;
    border-bottom: 1px solid rgba(39, 71, 110, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition:
      opacity 0.26s ease,
      transform 0.3s ease,
      background 0.2s ease;
  }

  nav.custom-navbar .custom-dropdown.active .dropdown-content a {
    opacity: 1;
    transform: translateY(0);
  }

  nav.custom-navbar .dropdown-content a:last-child {
    border-bottom: none;
  }

  nav.custom-navbar .dropdown-content a:hover {
    background: rgba(234, 248, 191, 0.45);
    color: var(--prussian-blue);
  }

  nav.custom-navbar .dropbtn i {
    transition: transform 0.3s ease;
    width: 22px;
    height: 22px;
  }

  nav.custom-navbar .custom-dropdown.active .dropbtn i {
    transform: rotate(180deg);
  }
}

.custom-navbar.active #hamburger-menu,
.custom-navbar.active #search {
  display: none;
}

.custom-navbar.active #close-menu {
  display: inline-block;
}

#close-menu {
  position: relative;
  z-index: 1002;
  cursor: pointer;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 576px) {
  html {
    font-size: 81.25%;
  }

  nav.custom-navbar .navbar-container {
    padding: 0 1rem;
  }

  nav.custom-navbar .navbar-nav.active {
    padding-top: 6rem;
    padding-bottom: 1.5rem;
  }

  nav.custom-navbar .navbar-logo span {
    font-size: 1rem;
  }

  nav.custom-navbar .navbar-nav a {
    font-size: 1.08rem;
    padding: 1rem 1.2rem;
  }

  nav.custom-navbar .custom-dropdown .dropbtn {
    font-size: 1.08rem;
    padding: 1rem 1.2rem;
  }

  nav.custom-navbar .dropdown-content a {
    font-size: 0.95rem;
    padding: 0.9rem 1.8rem;
  }

  #hamburger-menu,
  #close-menu {
    width: 44px;
    height: 44px;
  }
}
