/* =======================================
   Modifikasi Dev
======================================= */
body.bg-grey-lightest {
    background: transparent !important;
}

#slims-home {
    background: transparent !important;
}

.top-reader-section {
    background: transparent !important;
}

.opac-search-card {
    border: 1px solid var(--opac-border) !important;
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(16, 45, 72, 0.12) !important;
    background: var(--opac-surface);
    background-image: none !important;
}

.opac-search-title {
    margin-bottom: 6px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--opac-text);
}

.opac-search-subtitle {
    margin-bottom: 1rem;
    color: var(--opac-muted);
}

.search .input-transparent {
    border: 1px solid var(--opac-border);
    border-radius: 12px;
    background: #fff;
    font-size: 1rem;
    padding: 0.85rem 1rem;
}

.search .input-transparent::placeholder {
    color: #8c9aad;
    font-weight: 400;
}

.search .btn-primary {
    background: linear-gradient(135deg, #006ac9, #0056a7);
    border-color: #0056a7;
    border-radius: 10px;
    font-weight: 700;
}

.home-blue-panel {
    background: linear-gradient(135deg, #eef6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.12);
    padding: 1.75rem 1.5rem;
}

.home-blue-panel .subtitle-section {
    color: #334155;
}

.home-blue-panel .topic li {
    width: 160px;
    height: 160px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-blue-panel .topic li:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(30, 64, 175, 0.2);
}

.home-blue-panel .topic li a {
    color: #334155;
    opacity: 1;
    font-weight: 500;
}

.home-blue-panel .topic-illustration {
    width: 82px;
    height: 82px;
    padding: 8px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    border: 2px solid #93c5fd;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
    filter: saturate(1.25) contrast(1.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-blue-panel .topic li:hover .topic-illustration {
    transform: scale(1.06) rotate(-2deg);
    box-shadow: 0 10px 22px rgba(30, 64, 175, 0.28);
}

.services-feature {
    margin-top: 2.5rem;
}

.services-feature__grid {
    display: grid;
    grid-template-columns: 1fr;
}

.services-feature__media,
.services-feature__text {
    min-height: 320px;
}

.services-feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.services-feature__text {
    background: #e9ecef;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.75rem, 3vw, 3.5rem);
}

.services-feature__text h2 {
    color: rgba(0, 0, 204);
    font-size: clamp(1.7rem, 2.2vw, 2.45rem);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

.services-feature__text p {
    color: #1f2937;
    font-size: clamp(1rem, 1.05vw, 1.45rem);
    line-height: 1.6;
    max-width: 640px;
    margin-bottom: 0.5rem;
}

.services-feature__text a {
    color: #1f2937;
    font-size: clamp(1rem, 1.1vw, 1.4rem);
    text-decoration: none;
}

.services-feature__text a:hover {
    color: #0b79c8;
    text-decoration: underline;
}

@media (min-width: 992px) {
    .services-feature__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-feature__media,
    .services-feature__text {
        min-height: 420px;
    }
}

.services-feature--compact {
    margin-top: 1.2rem;
}

.services-feature--compact .services-feature__media,
.services-feature--compact .services-feature__text {
    min-height: 220px;
}

.services-feature--compact .services-feature__text {
    padding: clamp(1rem, 2vw, 2rem);
}

.services-feature--compact .services-feature__text h2 {
    font-size: clamp(1.35rem, 1.55vw, 1.85rem);
    margin-bottom: 0.5rem;
}

.services-feature--compact .services-feature__text p {
    font-size: clamp(0.92rem, 0.95vw, 1.05rem);
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

@media (min-width: 992px) {
    .services-feature--compact .services-feature__media,
    .services-feature--compact .services-feature__text {
        min-height: 280px;
    }
}




/* Home compact refinement for services section */
.services-feature--compact {
    margin: 1.2rem auto 0;
    max-width: 1140px;
    padding: 0 15px;
}

.services-feature--compact .services-feature__grid {
    gap: 10px;
}

.services-feature--compact .services-feature__media,
.services-feature--compact .services-feature__text {
    min-height: 160px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.services-feature--compact .services-feature__text {
    background: #f1f5f9;
    padding: clamp(0.75rem, 1.1vw, 0.95rem);
}

.services-feature--compact .services-feature__text h2 {
    color: rgba(0, 0, 204);
    font-size: clamp(0.98rem, 1.02vw, 1.12rem);
    line-height: 1.25;
    margin-bottom: 0.25rem;
}

.services-feature--compact .services-feature__text p {
    color: #475569;
    font-size: clamp(0.8rem, 0.82vw, 0.9rem);
    line-height: 1.35;
    margin-bottom: 0.2rem;
}

.services-feature--compact .services-feature__text a {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    color: #1f2937;
}

.services-feature--compact .services-feature__media img {
    transition: transform 0.28s ease;
}

.services-feature--compact .services-feature__media:hover img {
    transform: scale(1.01);
}

@media (min-width: 992px) {
    .services-feature--compact .services-feature__media,
    .services-feature--compact .services-feature__text {
        min-height: 185px;
    }
}

/* Services card layout (UGM-like) */
.services-feature {
    margin: 2.4rem 0 1rem;
}

.services-feature__container {
    padding-left: 0;
    padding-right: 0;
}

.services-feature__header {
    margin-bottom: 1.25rem;
}

.services-feature__header h3 {
    margin: 0;
    font-size: clamp(2rem, 2.7vw, 2.75rem);
    line-height: 1.2;
    color: #0f2547;
    font-weight: 700;
}

.services-feature__header p {
    margin: 0.7rem 0 0;
    max-width: 980px;
    color: #344968;
    font-size: clamp(1rem, 1.1vw, 1.35rem);
}

.services-feature__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.services-feature__card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #d7e1ee;
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(14, 37, 61, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.services-feature__card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.services-feature__card-body {
    padding: 1.35rem 1.45rem 1.2rem;
}

.services-feature__card-body h4 {
    margin: 0 0 0.75rem;
    color: #0f2547;
    font-size: clamp(1.5rem, 1.7vw, 2rem);
    line-height: 1.25;
    font-weight: 700;
}

.services-feature__card-body p {
    margin: 0;
    color: #334968;
    font-size: clamp(1rem, 1vw, 1.2rem);
    line-height: 1.65;
}

.services-feature__card-body a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.05rem;
    color: #0d4dff;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
}

.services-feature__card-body a:hover {
    text-decoration: underline;
}

.services-feature--compact {
    margin-top: 2rem;
    max-width: none;
    padding: 0;
}

.services-feature--compact .services-feature__header h3 {
    font-size: clamp(1.95rem, 2.4vw, 2.45rem);
}

.services-feature--compact .services-feature__header p {
    font-size: clamp(0.98rem, 1.02vw, 1.12rem);
}

.services-feature--compact .services-feature__cards {
    gap: 1.2rem;
}

.services-feature--compact .services-feature__card img {
    height: 220px;
}

.services-feature--compact .services-feature__card-body h4 {
    font-size: clamp(1.4rem, 1.35vw, 1.8rem);
}

.services-feature--compact .services-feature__card-body p {
    font-size: clamp(1rem, 0.93vw, 1.08rem);
}

@media (min-width: 992px) {
    .services-feature__cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

footer.py-4.bg-grey-darkest {
    background: #0f2c4a !important;
}

footer.py-4 .text-light,
footer.py-4 .text-grey-lighter,
footer.py-4 p,
footer.py-4 li a,
footer.py-4 h4,
footer.py-4 .mb-4 {
    color: #d4e1ee !important;
}

@media (max-width: 768px) {
    .opac-search-title {
        font-size: 1.4rem;
    }
}

.search {
    margin-top: 24px;
}

/* .opac-navbar .nav-link {
    color: #2a3f56 !important;
    font-weight: 600;
} */

.opac-navbar .navbar-brand .opac-brand-title {
    color: var(--opac-primary);
    font-weight: 700;
}

.opac-navbar .navbar-brand .opac-brand-subtitle {
    color: var(--opac-muted);
}

.home-blue-panel,
.result-search .wrapper .card.item,
.result-search .col-md-3 > * {
    background: #fff;
    border: 1px solid var(--opac-border);
    border-radius: 14px;
}

.result-search .wrapper .card.item {
    box-shadow: 0 8px 24px rgba(21, 47, 73, 0.08);
}

.result-search .search-found-info,
.result-search .search-keyword-info {
    color: #334e68;
}


/*....................................................................................................................................................................*/
body {
  background: #f5f7fa;
}

/* =======================================
   NAVBAR - BASE LAYOUT
   Mengatur posisi navbar secara global
======================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;

  /* transparan, blur dihandle di container */
  background: transparent !important;
  backdrop-filter: none;
}

/* =======================================
   NAVBAR CONTAINER (GLASS EFFECT)
   Wrapper utama navbar
======================================= */
.navbar-hidayat {
  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 70px;
  padding: 14px 40px;
  

  /* efek blur + background transparan */
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.4);

  /* animasi halus saat scroll */
  transition: background 0.3s ease, padding 0.3s ease, height 0.3s ease;

 
}

.navbar-hidayat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.6),
    rgba(0,0,0,0.35)
  );

  backdrop-filter: blur(10px);
}
/* =======================================
   NAVBAR TEXT DEFAULT (HERO STATE)
   Warna teks saat di atas (background gelap)
======================================= */
.navbar-hidayat .nav-link,
.navbar-hidayat .dropdown-toggle {
  color: #ffffff;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.25s ease;
  cursor: pointer;

  /* supaya tetap kebaca di background blur */
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.navbar-hidayat .dropdown-toggle:hover {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}
/* =======================================
   NAVBAR HOVER & ACTIVE
======================================= */
.navbar-hidayat .nav-link:hover {
  color: #2563eb;
  background: rgba(255,255,255,0.08);
}

.navbar-hidayat .nav-item.active .nav-link {
  color: #2563eb;
}

/* =======================================
   NAVBAR MENU LEFT (MAIN MENU)
======================================= */
.navbar-nav.mr-auto {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 20px;
}

/* underline animation */
.navbar-hidayat .navbar-nav.mr-auto > .nav-item > .nav-link {
  position: relative;
}

.navbar-hidayat .navbar-nav.mr-auto > .nav-item > .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;

  width: 0%;
  height: 2px;
  background-color: #2563eb;

  transition: width 0.3s ease;
}

.navbar-hidayat .navbar-nav.mr-auto > .nav-item > .nav-link:hover::after {
  width: 100%;
}

/* =======================================
   NAVBAR RIGHT SIDE (LOGIN, MEMBER, DLL)
======================================= */
.navbar-nav.ml-auto {
  display: flex;
  align-items: center;
  gap: 14px;
}


.btn-login, .btn-member {
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-login:hover {
  background-color: #1d4ed8;
  color: #fff;
}

.btn-member:hover {
  background-color: #2563eb;
  color: #fff;
}

/* =======================================
   LANGUAGE DROPDOWN PANEL
======================================= */

.dropdown-menu {
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(12px);
  border: none;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* item */
.dropdown-item {
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

/* hover item */
.dropdown-item:hover {
  background: rgba(255,255,255,0.1);
  color: #4da3ff;
}

/* flag spacing */
.dropdown-item img {
  margin-right: 10px;
  border-radius: 3px;
}
/* =======================================
   LOGIN BUTTON (PRIMARY CTA)
======================================= */
.navbar-hidayat .nav-link[href*="login"] {
  background: #2563eb;
  color: #fff;

  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
}

.navbar-hidayat .nav-link[href*="login"]:hover {
  background: #1e4fd1;
}

/* =======================================
   MEMBER BUTTON (SECONDARY CTA)
======================================= */
.navbar-hidayat .nav-link[href*="member"] {
  border: 2px solid #2f6fed;
  color: #2f6fed;

  padding: 8px 18px;
  border-radius: 10px;
}

.navbar-hidayat .nav-link[href*="member"]:hover {
  background: #2563eb;
  color: #fff;
}

/* =======================================
   NAVBAR STATE: SCROLLED
   Aktif saat user scroll ke bawah
======================================= */
body.scrolled .navbar-hidayat {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);

  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ubah warna teks saat background terang */
body.scrolled .navbar-hidayat .nav-link,
body.scrolled .navbar-hidayat .dropdown-toggle {
  color: #1f2937;
  text-shadow: none;
}

/* jaga warna tombol tetap konsisten */
body.scrolled .navbar-hidayat .nav-link[href*="login"] {
  color: #fff;
}

body.scrolled .navbar-hidayat .nav-link[href*="member"] {
  color: #2f6fed;
}

/* =======================================
   MOBILE NAVBAR (COLLAPSE)
======================================= */
.navbar-collapse.collapsing,
.navbar-collapse.collapse.show {
  background-color: #2d3748;

  padding: 16px;
  margin-top: 8px;
  border-radius: 4px;

  z-index: 1000;
}

/*....................................................................................................................................................................*/
/* =======================================
   HERO SECTION - LAYOUT
   Struktur utama hero (full screen)
======================================= */

.hero-section {
  position: relative;
  z-index: 10;
  height: 100vh;
  width: 100%;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding-top: 120px;
  padding-bottom: 60px;

}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
}

/* =======================================
   HERO BACKGROUND ANIMATION (ZOOM)
======================================= */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  /* ❌ HAPUS background image */
  background: transparent;
}

  /* animasi zoom */
  .hero-bg {
  animation: zoomHero 3s ease-in-out infinite alternate;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@keyframes zoomHero {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

/* =======================================
   HERO OVERLAY (DARK LAYER)
======================================= */
.hero-bg {
  position: absolute;
  inset: 0;

  background: rgba(0,0,0,0.75);
  z-index: 1;
}

/* =======================================
   HERO CONTENT (TEXT & LOGO)
======================================= */
.hero-content {
  position: relative;
  z-index: 5;

  color: #fff;
  margin-top: 40px;

  animation: fadeUp 1s ease;
}

/* animasi masuk */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* logo */
.hero-logo {
  width: 200px;
  margin-bottom: 8px;
  margin-top: 60px;
}

/* =======================================
   HERO TEXT (TITLE & SUBTITLE)
======================================= */
.hero-content h1 {
  font-size: 66px;
  font-weight: 600;

  text-align: center;

  max-width: 800px;
  margin: 5px auto 0;
}

.hero-content h2 {
  font-size: 72px;
  font-weight: 600;

  color: #4DA3FF;
  margin-bottom: 30px;
}

/*....................................................................................................................................................................*/
/* =======================================
   HERO SEARCH - WRAPPER
   Container utama search di hero
======================================= */
.hero-search {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;

  width: 90%;
  max-width: 430px;
  min-width: 300px;

  margin: 30px auto;
  margin-bottom: 20px;
}

/* =======================================
   SEARCH BOX (CONTAINER)
======================================= */
.search-box {
  position: relative;
  z-index: 7;
  width: 100%;

  padding: 6px;
  border-radius: 60px;

  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);

  /* efek glass ringan */
  backdrop-filter: blur(10px);

  transition: all 0.3s ease;
}

/* hover effect */
.search-box:hover {
  box-shadow: 0 8px 25px rgb(0, 0, 204);
}

/* =======================================
   SEARCH ICON
======================================= */
.search-box i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);

  color: #888;
}

/* =======================================
   SEARCH INPUT FIELD
======================================= */
.search-box input {
  width: 100%;

  border: none;
  outline: none;

  background: #ffffff;

  font-size: 16px;
  color: #333;

  padding: 10px 18px 10px 45px;
  border-radius: 50px;
}

/* placeholder */
.search-box input::placeholder {
  color: #888;
  white-space: nowrap;
}

/* khusus hero */
.hero-section .search-box input {
  background: #fff;
}
/*....................................................................................................................................................................*/

/* =======================================
   HERO GALLERY – APPLE STYLE
======================================= */

.hero-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  perspective: none;
  overflow: visible;
  transform: none;
  position: relative;
  cursor: grab;
  user-select: none;
  position: relative;
  z-index: 2;
  margin-top: 120px; 
}

.hero-gallery::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;

  /* transparan tapi jadi "zona aman" */
}

/* CARD */
.gallery-item {
  width: 140px;
  height: 200px;
  border-radius: 20px;
  overflow: visible;

  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
  transform-style: preserve-3d;

  opacity: 1;
}

/* IMAGE */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* ======================
   POSISI
====================== */

/* TENGAH (FOKUS) */
.gallery-item.active {
  transform: scale(1.15) translateY(0px) translateZ(60px);
  opacity: 1;
  z-index: 3;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

/* KIRI */
.gallery-item.prev {
  transform: scale(0.95) translateX(-40px);
  opacity: 0.7;
}

/* KANAN */
.gallery-item.next {
  transform: scale(0.95) translateX(40px);
  opacity: 0.7;
}

/* LAINNYA (blur halus) */
.gallery-item:not(.active):not(.prev):not(.next) {
  transform: scale(0.85);
  opacity: 0.2;
  filter: none;
}

/* =======================================
   DRAG INTERACTION
======================================= */

.hero-gallery.dragging {
  cursor: grabbing;
}

.gallery-item {
  will-change: transform;
}

/*....................................................................................................................................................................*/

/* =======================================
   IMAGE MODAL - OVERLAY
======================================= */
.img-modal {
  display: none;

  position: fixed;
  inset: 0;
  z-index: 9999;

  background: rgba(0,0,0,0.85);

  justify-content: center;
  align-items: center;
}

/* =======================================
   IMAGE MODAL - IMAGE
======================================= */
.img-modal img {
  max-width: 80%;
  max-height: 80%;

  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);

  animation: zoomIn 0.3s ease;
}

/* animasi zoom */
@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* tombol close */
.close-modal {
  position: absolute;
  top: 30px;
  right: 40px;

  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

/*....................................................................................................................................................................*/

/* =======================================
   SCROLL BUTTON - BASE
======================================= */
.scroll-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;

  width: 55px;
  height: 55px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;
  color: #fff;

  border-radius: 16px;
  background: linear-gradient(135deg, #4da3ff, #2563eb);

  cursor: pointer;

  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);

  z-index: 9999;

  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.6s ease;
  

  opacity: 1;
  transform: translateY(0);
}

/* =======================================
   SCROLL BUTTON - HIDE (IDLE)
======================================= */
.scroll-btn.hide {
  opacity: 0.2;
  transform: translateY(10px);
  pointer-events: none;
}

/* hover effect */
.scroll-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.6);
}

/* =======================================
   SCROLL ICON (ARROW)
======================================= */
#scrollIcon {
  display: inline-block;
}

/* arah bawah */
#scrollIcon.down {
  animation: floatDown 2.5s ease-in-out infinite;
}

/* arah atas */
#scrollIcon.up {
  animation: floatUp 1.5s ease-in-out infinite;
}

/* =======================================
   SCROLL ICON ANIMATION
======================================= */
@keyframes floatDown {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(6px); }
  100% { transform: translateY(0); }
}

@keyframes floatUp {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* =========================
   FIX HERO FULL WIDTH
========================= */

.hero-section {
  width: 100%;
  min-height: 100vh;

  position: relative;
  overflow: hidden;
}

/* Background harus FULL */
.hero-bg {
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background: url('../images/perpus-bg.jpg') center/cover no-repeat;

  z-index: 1;
}

/* Konten di atas */
.hero-content {
  position: relative;
  z-index: 2;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* 🔥 penting */
}

.hero-section::before {
  content: none !important;
  display: none !important;
}

.hero-section::after {
  content: none !important;
  display: none !important;
}
/*....................................................................................................................................................................*/

/* =======================================
   Mode Mobile
======================================= */
@media (max-width: 768px) {

  .hero-section {
    height: auto;
    min-height: 100vh;
    padding: 100px 15px 40px;
  }

  .hero-content {
    margin-top: 20px;
  }

}

@media (max-width: 768px) {

  .hero-logo {
    width: 100px;
    margin-bottom: 10px;
  }

  .hero-content h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .hero-content h2 {
    font-size: 30px;
    margin-bottom: 20px;
  }

}

@media (max-width: 768px) {

  .hero-search {
    width: 100%;
    margin: 20px 0;
  }

  .search-box {
    width: 100%;
  }

}

@media (max-width: 768px) {

  .hero-gallery {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 0;
    scroll-snap-type: x mandatory;

    justify-content: flex-start; /* 🔥 penting */
  }

  .gallery-item {
    flex: 0 0 auto;
    width: 120px;
    height: 170px;

    scroll-snap-align: center;
  }

}

@media (max-width: 768px) {

  .gallery-item.active,
  .gallery-item.prev,
  .gallery-item.next {
    transform: none !important;
    opacity: 1 !important;
  }

}

@media (max-width: 768px) {

  .hero-search {
    width: 100%;
    padding: 0 10px;
  }

  .search-box {
    padding: 4px;
    border-radius: 40px;
  }

  .search-box input {
    padding: 10px 15px 10px 40px; /* 🔥 kecilin */
    font-size: 14px;
  }

}

@media (max-width: 768px) {

  .navbar-nav.ml-auto {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .navbar-hidayat .nav-link[href*="member"] {
    display: block;
    text-align: center;
    width: 100%;
  }

}

@media (max-width: 768px) {

  .navbar-hidayat .nav-link[href*="member"] {
    background: #2563eb;
    color: #fff !important;
    border-radius: 8px;
  }

}

@media (max-width: 768px) {

  .scroll-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
    bottom: 20px;
    right: 20px;
  }

}

@media (max-width: 768px) {

  .gallery-item {
    width: 100px;
    height: 140px;
  }

  .hero-gallery {
    gap: 8px;
    margin-top: 30px;
  }

}

/*....................................................................................................................................................................*/
/*Section 2*/
/* =======================================
   SUBJECT SECTION (OVERRIDE SLiMS)
======================================= */

.home-blue-panel {
  background: radial-gradient(circle at center,#0e2c4a);
  border-radius: 0;
  padding: 60px 30px 80px;;
  border: none;
  
}
.home-blue-panel h4 {
  color: #ffffff !important;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 60px !important;
  letter-spacing: 0.5px;
}

.topic {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.topic li {
  width: 200px;
  height: 230px;

  border-radius: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 12px !important;

  transition: all 0.3s ease;
  background: rgba(255,255,255,0.9);

  flex: 0 0 auto;
  scroll-snap-align: center;
}

.topic li:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.topic li a {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  height: 100%;
  width: 100%;

  text-align: center;
  padding: 20px 10px;

  color: #374151;
  font-weight: 500;
  line-height: 1.3;
  font-size: 14px;
}

/* .topic-illustration {
  width: 70px !important;
  height: 70px !important;

  display: none !important;
  align-items: center;
  justify-content: center;

  border-radius: 16px;
  background: #0f2a44;

  position: relative;

  margin-bottom: 18px !important;
} */

.topic-illustration img {
  width: 32px;
  height: 32px;
  object-fit: contain;

  display: block;
}

.topic-illustration::before {

  display: none !important;
}

.topic li:nth-child(1) .topic-illustration::before { border-color: #38bdf8; }
.topic li:nth-child(2) .topic-illustration::before { border-color: #22c55e; }
.topic li:nth-child(3) .topic-illustration::before { border-color: #ef4444; }
.topic li:nth-child(4) .topic-illustration::before { border-color: #f59e0b; }


.topic-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0;
}

.topic-track {
  display: flex;
  gap: 24px;
  padding: 10px 20px;
}

.topic-card {
  min-width: 180px;
  height: 180px;
  background: #d9d9d9;
  border-radius: 20px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  transition: all 0.4s ease;
}

.icon-box {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  background: #0b2a45;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 14px;
  overflow: hidden;
}

.icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.glow-0:hover { box-shadow: 0 0 25px #00c2ff; }
.glow-1:hover { box-shadow: 0 0 25px #00ff88; }
.glow-2:hover { box-shadow: 0 0 25px #ff4d4d; }
.glow-3:hover { box-shadow: 0 0 25px #ff9f1c; }
.glow-4:hover { box-shadow: 0 0 25px #6c5ce7; }
.glow-5:hover { box-shadow: 0 0 25px #00cec9; }
.glow-6:hover { box-shadow: 0 0 25px #fd79a8; }
.glow-7:hover { box-shadow: 0 0 25px #ffeaa7; }
.glow-8:hover { box-shadow: 0 0 25px #74b9ff; }
.glow-9:hover { box-shadow: 0 0 25px #55efc4; }

.topic-card a p {
  position: relative;
  display: inline-block;
  color: #0d6efd;
  font-weight: 500;
}

.topic-card a p::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 0;              /* mulai dari kanan */
  width: 0%;
  height: 2px;
  background: #0d6efd;
  transition: width 0.3s ease;
}

.topic-card:hover a p::after {
  width: 100%;
  left: 0;
  right: auto;
}
/* =======================================
   MOBILE FIX
======================================= */

@media (max-width: 768px) {

  .topic {
    overflow-x: auto;
    flex-wrap: nowrap !important;
  }

  .topic li {
    min-width: 160px;
    height: 200px;
  }

}


@media (max-width: 768px) {

  .topic-card {
    min-width: 140px;
    height: 150px;
  }

  .icon-box {
    width: 55px;
    height: 55px;
  }

  .icon-box img {
    width: 26px;
  }

}

/* ....................................................................................................................................................................Section3 */

/* =========================================================
   SECTION 3 — POPULAR COLLECTION (FINAL CLEAN VERSION)
   ========================================================= */

/* === CONTAINER UTAMA SECTION === */
.home-popular {
  background: #f8fbff;

  padding: 50px 40px 35px;

  position: relative;
  z-index: 1;
}

/* === FADE EDGE (EFEK GRADIENT KIRI & KANAN — NETFLIX STYLE) === */
.home-popular::before,
.home-popular::after {

  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 3;
  pointer-events: none;

}

.home-popular::before {
  /* left: 0;
  background: linear-gradient(to right, #f5f7fa, transparent); */

    left: 0;

  background: linear-gradient(
    to right,
    #f8fbff,
    transparent
  );
}

.home-popular::after {
  /* right: 0;
  background: linear-gradient(to left, #f5f7fa, transparent); */
    right: 0;

  background: linear-gradient(
    to left,
    #eef4ff,
    transparent
  );
}

.home-popular .section-title {
  color: #1f2937;
}

.home-popular .section-subtitle {
  color: #6b7280;
}

.home-popular .btn-outline-secondary {
  background: #ffffff !important;
  color: #374151 !important;

  border: 1px solid #d1d5db !important;
}

.home-popular .btn-outline-secondary:hover {
  background: #0d6efd !important;
  color: #fff !important;
}
/* =========================================================
   HEADER (JUDUL + DESKRIPSI)
   ========================================================= */

/* === JUDUL UTAMA === */
.home-popular .section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1f2937;

  position: relative;
  display: inline-block;

  margin-bottom: 10px;

  text-shadow: 0 2px 10px rgba(13,110,253,0.15);
}

/* === ACCENT LINE (GARIS PREMIUM DI BAWAH JUDUL) === */
.home-popular .section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;

  width: 70px;
  height: 4px;

  background: linear-gradient(90deg, #0d6efd, #00c2ff);
  border-radius: 2px;

  box-shadow: 0 0 12px rgba(13,110,253,0.35);
}

/* === DESKRIPSI / SUBTITLE === */
.home-popular .section-subtitle {
 font-size: 18px;

  color: #64748b;

  line-height: 1.7;

  max-width: 700px;

  margin-top: 10px !important;
  margin-bottom: 16px !important;
}

/* =========================================================
   SUBJECT TAG (CHIP STYLE — GOOGLE STYLE)
   ========================================================= */

/* Container chip */
slims-group-subject {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

/* Default chip */
slims-group-subject a {
  display: inline-block;
  padding: 8px 18px;

  border-radius: 999px;
  background: rgba(13,110,253,0.08);
  color: #0d6efd;

  font-size: 14px;
  font-weight: 500;

  border: 1px solid rgba(13,110,253,0.2);

  transition: all 0.25s ease;
}

/* Hover chip */
slims-group-subject a:hover {
  background: #0d6efd;
  color: #fff;

  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(13,110,253,0.3);
}

/* Override style dari SLiMS (btn bawaan) */
.home-popular .btn-outline-secondary {
  border-radius: 999px !important;
  padding: 8px 18px !important;

  background: rgba(13,110,253,0.08) !important;
  color: #0d6efd !important;

  border: 1px solid rgba(13,110,253,0.25) !important;

  font-size: 14px !important;
  font-weight: 500;

  transition: all 0.25s ease !important;
  backdrop-filter: blur(6px);
}

/* Hover + Active state */
.home-popular .btn-outline-secondary:hover,
.home-popular .btn-outline-secondary.active,
.home-popular .btn-outline-secondary:focus {
  background: #0d6efd !important;
  color: #fff !important;
  border-color: #0d6efd !important;

  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(13,110,253,0.3);
}

/* =========================================================
   BOOK LIST (HORIZONTAL SCROLL — NETFLIX STYLE)
   ========================================================= */

slims-collection {
  display: flex !important;
  gap: 20px;

  overflow-x: auto;
  scroll-snap-type: x mandatory;

  padding: 20px 0;

  -webkit-overflow-scrolling: touch;
}

/* Hilangkan scrollbar */
slims-collection::-webkit-scrollbar {
  display: none;
}

/* Item buku */
slims-collection .item {
  flex: 0 0 auto;
  width: 160px;

  scroll-snap-align: start;

  transition: all 0.35s ease;
}

/* Hover zoom (premium feel) */
slims-collection .item:hover {
  transform: scale(1.08);
  z-index: 2;
}

/* Gambar buku */
slims-collection img {
  width: 100%;
  height: 220px;
  object-fit: cover;

  border-radius: 12px;
}

/*....................................................................................................................................................................*/
/* =========================================================
   SECTION 4 — BACKGROUND
   ========================================================= */

.home-latest {
  background: #f8fbff;

  padding: 5px 0 45px !important;

  position: relative;
}


.home-latest .badge,
.home-latest .btn-outline-secondary {
  display: none !important;
}
/* =========================================================
   SECTION 4 — TITLE
   ========================================================= */

.home-latest .section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1f2937;

  letter-spacing: 0.5px;
  line-height: 1.2;

  position: relative;
  display: inline-block;

  margin-bottom: 18px;

  text-shadow: 0 2px 10px rgba(13,110,253,0.12);
}

/* Accent line */
.home-latest .section-title::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -10px;

  width: 70px;
  height: 4px;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    #0d6efd,
    #38bdf8
  );

  box-shadow: 0 0 12px rgba(13,110,253,0.25);
}

/* =========================================================
   SUBTITLE
   ========================================================= */

.home-latest .section-subtitle {
  margin-top: 10px;
  margin-bottom: 35px;

  font-size: 18px;
  line-height: 1.7;

  letter-spacing: 0.2px;

  color: #64748b;

  max-width: 760px;
}

/* =========================================================
   SECTION 4 — MODERN BOOK CAROUSEL
   ========================================================= */

/* =========================================================
   CAROUSEL WRAPPER
   ========================================================= */

.home-latest .collection {
  display: flex !important;
  flex-wrap: nowrap !important;

  gap: 34px;

  overflow-x: auto !important;
  overflow-y: visible !important;

  padding: 15px 0 10px !important;

  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* hide scrollbar */
.home-latest .collection::-webkit-scrollbar {
  display: none;
}

/* =========================================================
   ITEM
   ========================================================= */

.home-latest .collection > div,
.home-latest .collection .w-48 {
  flex: 0 0 auto !important;

  width: 280px !important;

  padding: 0 !important;
  margin: 0 !important;
}

/* =========================================================
   CARD
   ========================================================= */

.home-latest .card {
  border: 2px solid rgba(13,110,253,.35) !important;

  border-radius: 28px !important;

  background: #ffffff !important;

  overflow: hidden;

  padding: 20px 18px 24px !important;

  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;

  box-shadow:
    0 10px 30px rgba(0,0,0,.04),
    0 3px 10px rgba(0,0,0,.03);
}

/* hover card */
.home-latest .card:hover {
  transform: translateY(-10px);

  border-color: #0d6efd !important;

  box-shadow:
    0 24px 45px rgba(13,110,253,.14),
    0 10px 20px rgba(0,0,0,.08);
}

/* =========================================================
   IMAGE WRAPPER
   ========================================================= */

.home-latest .card-image {
  overflow: hidden;

  border-radius: 22px;

  background: #f8fafc;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 10px;
}

/* =========================================================
   IMAGE
   ========================================================= */

.home-latest .card-image img {
  width: 100% !important;

  max-width: 210px !important;

  height: auto !important;

  aspect-ratio: 2 / 3;

  object-fit: cover !important;

  display: block;

  margin: 0 auto;

  border-radius: 20px;

  transition:
    transform .45s ease,
    box-shadow .45s ease;

  box-shadow:
    0 10px 25px rgba(0,0,0,.10),
    0 4px 10px rgba(0,0,0,.05);
}

/* hover image */
.home-latest .card:hover img {
  transform: scale(1.05);

  box-shadow:
    0 22px 45px rgba(13,110,253,.18),
    0 10px 25px rgba(0,0,0,.12);
}

/* =========================================================
   TITLE
   ========================================================= */

.home-latest .card-text {
  margin-top: 20px !important;

  padding-top: 18px;

  border-top: 2px solid rgba(13,110,253,.15);

  text-align: center !important;

  font-size: 13px !important;
  font-weight: 700 !important;

  line-height: 1.6 !important;

  color: #334155 !important;

  white-space: normal !important;

  min-height: 120px;
}

/* =========================================================
   LINK
   ========================================================= */

.home-latest a.card {
  text-decoration: none !important;
}

/* =========================================================
   SUBTITLE SPACING
   ========================================================= */

.home-latest .section-subtitle {
  margin-bottom: 16px !important;
}

/*....................................................................................................................................................................*/

/* =========================================================
   SECTION 5 — LAYANAN PERPUSTAKAAN
   ========================================================= */

/* SECTION BACKGROUND */
.services-feature {
  background: #f8fbff;

  padding: 45px 0 70px !important;
}

/* =========================================================
   CARD WRAPPER
   ========================================================= */

.services-feature__cards {
  gap: 28px !important;
}

/* =========================================================
   CARD
   ========================================================= */

.services-feature .card,
.services-feature__cards > div,
.services-feature__cards article {
  background: #ffffff !important;

  border-radius: 30px !important;

  overflow: hidden;

  border: 1px solid rgba(13,110,253,.12);

  transition:
    transform .4s ease,
    box-shadow .4s ease,
    border-color .4s ease;

  box-shadow:
    0 10px 30px rgba(0,0,0,.04),
    0 3px 10px rgba(0,0,0,.03);
}

/* =========================================================
   HOVER EFFECT
   ========================================================= */

.services-feature .card:hover,
.services-feature__cards > div:hover,
.services-feature__cards article:hover {
  transform: translateY(-12px);

  border-color: rgba(13,110,253,.25);

  box-shadow:
    0 28px 55px rgba(13,110,253,.14),
    0 12px 24px rgba(0,0,0,.08);
}

/* =========================================================
   IMAGE
   ========================================================= */

.services-feature img {
  width: 100% !important;

  height: 260px !important;

  object-fit: cover !important;

  transition: transform .6s ease;
}

/* ZOOM IMAGE */
.services-feature .card:hover img,
.services-feature__cards > div:hover img,
.services-feature__cards article:hover img {
  transform: scale(1.06);
}
/* =========================================================
   SECTION 5 — TITLE FINAL
   ========================================================= */
.services-feature__header h3 {
  font-size: 36px !important;
  font-weight: 700 !important;

  color: #1f2937 !important;

  letter-spacing: 0.5px !important;
  line-height: 1.2 !important;

  position: relative !important;

  display: inline-block !important;

  margin-bottom: 14px !important;

  text-shadow:
    0 2px 10px rgba(13,110,253,0.12);
}

/* garis biru */
.services-feature__header h3::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -10px;

  width: 70px;
  height: 4px;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    #0d6efd,
    #38bdf8
  );

  box-shadow:
    0 0 12px rgba(13,110,253,0.25);
}
/* subtitle */
.services-feature p {
  font-size: 18px !important;

  line-height: 1.7 !important;

  color: #64748b !important;

  max-width: 760px;

  margin-top: 10px !important;
  margin-bottom: 16px !important;
}

/* =========================================================
   HIDE SELENGKAPNYA
   ========================================================= */

.services-feature__cards a:last-child {
  display: none !important;
}

/* =========================================================
   REMOVE SECTION SEPARATOR
   ========================================================= */

.home-popular,
.home-latest,
.services-feature {
  margin: 0 !important;

  border: none !important;

  box-shadow: none !important;
}

/* hilangkan garis/container bawaan */
.home-latest::before,
.home-latest::after,
.services-feature::before,
.services-feature::after,
.home-popular::before,
.home-popular::after {
  box-shadow: none !important;
}

/* samakan semua background */
.home-popular,
.home-latest,
.services-feature {
  background: #f8fbff !important;
}

/*....................................................................................................................................................................*/
/* =========================================================
   SECTION 6 — LOKASI PERPUSTAKAAN
   ========================================================= */

.location-section {
  background: #f8fbff;

  padding: 20px 0 80px;
}

/* title */
.location-section .section-title {
  font-size: 36px;
  font-weight: 700;

  color: #1f2937;

  position: relative;
  display: inline-block;

  margin-bottom: 16px;
}

/* garis biru */
.location-section .section-title::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -10px;

  width: 70px;
  height: 4px;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    #0d6efd,
    #38bdf8
  );
}

/* subtitle */
.location-section .section-subtitle {
  font-size: 18px;
  line-height: 1.7;

  color: #64748b;

  margin-bottom: 45px;
}

/* wrapper */
.location-wrapper {
  display: grid;

  grid-template-columns: 1.8fr 1fr;

  gap: 30px;

  align-items: start;
}

/* map */
.location-map {
  overflow: hidden;

  border-radius: 28px;

  box-shadow:
    0 10px 30px rgba(0,0,0,.05);

    border: 1px solid rgba(7, 7, 7, 0.08);
}

.location-map iframe {
  width: 100%;
  height: 500px;

  border: 0;

  display: block;
}

/* info card */
.location-info {
  background: #fff;

  border-radius: 28px;

  padding: 35px;

  box-shadow:
    0 10px 30px rgba(0,0,0,.05);

  border: 1px solid rgba(13,110,253,.08);
}

/* item */
.location-item {
  display: flex;

  gap: 18px;

  margin-bottom: 30px;
}

/* icon */
.location-item i {
  width: 60px;
  height: 60px;

  border-radius: 18px;

  background: #dbeafe;

  color: #2563eb;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;

  flex-shrink: 0;
}

/* label */
.location-label {
  font-size: 15px;
  color: #6b7280;

  margin-bottom: 5px;
}

/* text */
.location-text {
  font-size: 17px;
  max-width: 760px;
  font-weight: 600;

  color: #1f2937;

  line-height: 1.7;
}

/* divider */
.location-divider {
  height: 1px;

  background: #e5e7eb;

  margin: 25px 0;
}

.location-info {
  transition:
    transform .35s ease,
    box-shadow .35s ease;
}

.location-info:hover {
  transform: translateY(-6px);

  box-shadow:
    0 20px 40px rgba(13,110,253,.10),
    0 10px 20px rgba(0,0,0,.06);
}

/* =========================================================
   RESPONSIVE — MOBILE & TABLET
   ========================================================= */

@media (max-width: 992px) {

  /* ========================================
     SECTION TITLE
  ======================================== */

  .section-title,
  .home-popular .section-title,
  .home-latest .section-title,
  .services-feature__header h3,
  .location-section .section-title {
    font-size: 30px !important;
  }

  .section-subtitle,
  .home-popular .section-subtitle,
  .home-latest .section-subtitle,
  .services-feature p,
  .location-section .section-subtitle {
    font-size: 16px !important;
    line-height: 1.7;
  }

  /* ========================================
     SECTION SPACING
  ======================================== */

  .home-popular,
  .home-latest,
  .services-feature,
  .location-section {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  /* ========================================
     SECTION 3 — CHIP
  ======================================== */

  slims-group-subject {
    gap: 10px;
  }

  .home-popular .btn-outline-secondary {
    font-size: 13px !important;
    padding: 7px 14px !important;
  }

  /* ========================================
     SECTION 4 — BOOK CARD
  ======================================== */

  .home-latest .collection {
    gap: 18px !important;
  }

  .home-latest .collection > div,
  .home-latest .collection .w-48 {
    width: 220px !important;
  }

  .home-latest .card {
    padding: 16px !important;
  }

  .home-latest .card-image img {
    max-width: 160px !important;
  }

  .home-latest .card-text {
    font-size: 12px !important;
    min-height: auto;
  }

  /* ========================================
     SECTION 5 — LAYANAN
  ======================================== */

  .services-feature__cards {
    grid-template-columns: 1fr !important;
  }

  .services-feature img {
    height: 220px !important;
  }

  /* ========================================
     SECTION 6 — LOKASI
  ======================================== */

  .location-wrapper {
    grid-template-columns: 1fr !important;
  }

  .location-map iframe {
    height: 350px !important;
  }

  .location-info {
    padding: 25px !important;
  }
}

/* =========================================================
   MOBILE KECIL
   ========================================================= */

@media (max-width: 576px) {

  /* title */
  .section-title,
  .home-popular .section-title,
  .home-latest .section-title,
  .services-feature__header h3,
  .location-section .section-title {
    font-size: 26px !important;
  }

  /* subtitle */
  .section-subtitle,
  .home-popular .section-subtitle,
  .home-latest .section-subtitle,
  .services-feature p,
  .location-section .section-subtitle {
    font-size: 15px !important;
  }

  /* spacing */
  .home-popular,
  .home-latest,
  .services-feature,
  .location-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* chip */
  .home-popular .btn-outline-secondary {
    font-size: 12px !important;
    padding: 6px 12px !important;
  }

  /* buku */
  .home-latest .collection > div,
  .home-latest .collection .w-48 {
    width: 180px !important;
  }

  .home-latest .card-image img {
    max-width: 135px !important;
  }

  /* layanan */
  .services-feature img {
    height: 190px !important;
  }

  /* maps */
  .location-map iframe {
    height: 280px !important;
  }

  /* info */
  .location-item {
    gap: 14px;
  }

  .location-item i {
    width: 50px;
    height: 50px;

    font-size: 20px;
  }

  .location-text {
    font-size: 16px !important;
  }
}

/*....................................................................................................................................................................*/
/* =========================================================
   SECTION VIDEO
   ========================================================= */

.video-section {
  background: #f8fbff;

  padding:5px 0 90px;
}

/* =========================================================
   HEADER
   ========================================================= */

.video-header {
  display: flex;
  align-items: flex-start;

  gap: 18px;

  margin-bottom: 35px;
}

/* icon */
.video-icon {
  width: 82px;
  height: 82px;

  min-width: 82px;

  border-radius: 24px;

  background: linear-gradient(
    180deg,
    #dbeafe 0%,
    #bfdbfe 100%
  );

  color: #2563eb;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 34px;

  flex-shrink: 0;

  box-shadow:
    0 10px 25px rgba(37,99,235,.12);

  margin-top: 4px;
}

/* title */
.video-section .section-title {
  font-size: 36px;
  font-weight: 700;

  color: #1f2937;

  position: relative;
  display: inline-block;

  margin-bottom: 16px;
}

/* garis biru bawah title */
.video-section .section-title::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -10px;

  width: 70px;
  height: 4px;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    #0d6efd,
    #38bdf8
  );

  box-shadow:
    0 0 12px rgba(13,110,253,0.25);
}

.video-icon i {
  margin-left: 4px;
}

/* subtitle */
.video-section .section-subtitle {
  font-size: 17px;

  color: #64748b;

  line-height: 1.7;
}

/* =========================================================
   VIDEO WRAPPER
   ========================================================= */

.video-wrapper {
  position: relative;

  overflow: hidden;

  border-radius: 30px;

  background: #000;

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

  transition:
    transform .4s ease,
    box-shadow .4s ease;
}

/* hover */
.video-wrapper:hover {
  transform: translateY(-6px);

  box-shadow:
    0 28px 60px rgba(13,110,253,.12),
    0 12px 25px rgba(0,0,0,.10);
}

/* video */
.video-wrapper video {
  width: 100%;

  display: block;

  border-radius: 30px;

  object-fit: cover;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

  .video-header {
    flex-direction: column;
    gap: 14px;
  }

  .video-section .section-title {
    font-size: 28px;
  }

  .video-section .section-subtitle {
    font-size: 15px;
  }

  .video-icon {
    width: 50px;
    height: 50px;

    font-size: 18px;
  }
}


/*....................................................................................................................................................................*/

/* hide tombol SLiMS footer */
.btn-success,
.btn-outline-light {
  display: none !important;
}

/* =========================================================
   FOOTER IMPROVEMENT
   ========================================================= */

footer .row.py-4 {
  padding-top: 10px !important;
  padding-bottom: 55px !important;

  align-items: flex-start;
}

/* logo */
footer img {
  width: 72px !important;
  height: auto !important;

  margin-bottom: 18px !important;
}

/* title footer */
footer h4 {
  font-size: 34px;
  font-weight: 700;

  margin-bottom: 28px !important;

  color: #ffffff;
}

/* body text */
footer p,
footer li,
footer a {
  line-height: 1.8;
}

/* search input */
footer .form-control {
  height: 50px;

  border-radius: 14px 0 0 14px !important;

  border: none !important;
}

/* search button */
footer .btn-primary {
  border-radius: 0 14px 14px 0 !important;

  padding: 0 22px;
}

footer a {
  transition: all .25s ease;
}

footer a:hover {
  color: #60a5fa !important;

  text-decoration: none;

  transform: translateX(2px);
}

/* =========================================================
   FOOTER ALIGNMENT
   ========================================================= */

/* kolom footer */
footer .col-md-3,
footer .col-md-4 {
  text-align: center;
}

footer .col-md-5 {
  text-align: left;
}

footer .col-md-5 h4 {
  text-align: center;
}

/* heading footer */
footer h4 {
  text-align: center;

  margin-bottom: 28px !important;
  margin-top: 8px;
}

/* logo */
footer img {
  display: block;

  margin:
    0 auto 18px auto !important;
}

/* nama perpustakaan */
footer .mb-4 {
  text-align: center;

  font-weight: 600;

  max-width: 260px;

  margin:
    0 auto 20px auto !important;
}

/* list menu kiri */
footer ul {
  padding-left: 0;

  list-style: none;
}

footer ul li {
  margin-bottom: 6px;
}

/* about us justify */
footer .col-md-5 p {
  text-align: justify;

  line-height: 1.9;

  max-width: 620px;

  margin: 0 auto;

  font-size: 17px;
}

/* search description */
footer .col-md-4 .mb-2 {
  text-align: center;

  max-width: 420px;

  margin:
    0 auto 18px auto !important;
}

/* form search */
footer form {
  max-width: 520px;

  margin: 0 auto;
}

footer hr {
  border-color: rgba(255,255,255,.08);
}

footer .flex.font-thin.text-sm {
  padding-top: 14px;
}

/* list menu kiri */
footer ul li {
  margin-bottom: 6px;
}

/* link menu footer */
footer ul li a {
  position: relative;

  display: inline-block;

  padding: 4px 0;

  transition:
    color .25s ease,
    transform .25s ease;
}

/* hover effect */
footer ul li a:hover {
  color: #60a5fa !important;

  transform: translateX(4px);
}

/* garis animasi bawah */
footer ul li a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 0;

  width: 0%;
  height: 2px;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    #60a5fa,
    #38bdf8
  );

  transition: width .25s ease;
}

/* animasi garis */
footer ul li a:hover::after {
  width: 100%;
}

/* =========================================================
   MOBILE HERO FIX FINAL
   ========================================================= */
@media (max-width: 768px) {

  /* HERO */
  .hero-section {
    min-height: 100vh;
    height: auto;

    padding:
      90px 20px 40px;

    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  

  /* CONTENT */
  .hero-content {
    margin-top: 0;
    width: 100%;
  }

  /* LOGO */
  .hero-logo {
    width: 110px;

    margin-top: 0;
    margin-bottom: 18px;
  }

  /* TITLE */
  .hero-content h1 {
    font-size: 34px;
    line-height: 1.2;

    margin-bottom: 6px;
  }

  .hero-content h2 {
    font-size: 30px;
    line-height: 1.2;

    margin-bottom: 22px;
  }

  /* SEARCH */
  .hero-search {
    width: 100%;
    max-width: 100%;

    padding: 0;
    margin: 0 auto 18px !important;
  }

  .search-box {
    border-radius: 40px;
    padding: 5px;
  }

  .search-box input {
    height: 56px;

    font-size: 15px;

    padding-left: 48px;
  }

  .search-box i {
    left: 18px;
    font-size: 18px;
  }

  /* GALLERY */
  .hero-gallery {
    margin-top: 20px !important;

    gap: 10px;

    overflow-x: auto;

    justify-content: flex-start;

    padding:
      10px 0 20px;

    scroll-snap-type: x mandatory;

    -webkit-overflow-scrolling: touch;
  }

  /* CARD */
  .gallery-item {
    flex: 0 0 auto;

    width: 110px;
    height: 155px;

    border-radius: 20px;

    scroll-snap-align: center;
    position: relative !important;
    top: auto !important;
  }

  .gallery-item img {
    border-radius: 20px;
  }

  /* MATIKAN EFFECT DESKTOP */
  .gallery-item.active,
  .gallery-item.prev,
  .gallery-item.next,
  .gallery-item:not(.active):not(.prev):not(.next) {
    transform: none !important;

    opacity: 1 !important;

    filter: none !important;
  }

  /* HIDE SCROLLBAR */
  .hero-gallery::-webkit-scrollbar {
    display: none;
  }
}