/* =========================================================
   SDIT Tunas Muda Madani Batam — Design System
   Tema modern: warna tenang (emerald), aksen hangat (amber),
   tipografi Plus Jakarta Sans, sudut lembut, bayangan halus.
   ========================================================= */

:root {
  /* Palet utama */
  --primary-color: #0E7A6B;
  --primary-dark: #0A5F54;
  --primary-light: #14B8A6;
  --primary-soft: #E6F4F1;
  --secondary-color: #12A594;
  --accent-color: #F59E0B;
  --accent-soft: #FEF3C7;
  --text-color: #0F172A;
  --muted-color: #5B6878;
  --light-bg: #F7F9FC;
  --surface: #FFFFFF;
  --line: #E6EBF1;
  --line-strong: #D5DEE8;

  /* Radius & bayangan */
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-sm: 0 6px 18px -10px rgba(15, 23, 42, .18);
  --shadow-md: 0 18px 40px -22px rgba(15, 23, 42, .28);
  --shadow-lg: 0 36px 70px -35px rgba(15, 23, 42, .35);

  /* Tipografi */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;

  /* Selaraskan variabel Bootstrap */
  --bs-body-font-family: var(--font-sans);
  --bs-body-color: var(--text-color);
  --bs-body-bg: var(--light-bg);
  --bs-body-line-height: 1.7;
  --bs-border-color: var(--line);
  --bs-primary: #0E7A6B;
  --bs-primary-rgb: 14, 122, 107;
  --bs-link-color: var(--primary-color);
  --bs-link-color-rgb: 14, 122, 107;
  --bs-link-hover-color: var(--primary-dark);
  --bs-border-radius: 12px;
}

/* ---------- Dasar ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-color);
  background-color: var(--light-bg);
  background-image:
    radial-gradient(1100px 520px at 105% -5%, rgba(var(--bs-primary-rgb), .08), transparent 62%),
    radial-gradient(900px 480px at -5% 5%, rgba(245, 158, 11, .06), transparent 58%);
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-color);
}

h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

.text-white h1,
.text-white h2,
.text-white h3,
footer h1,
footer h2,
footer h3 {
  color: #fff !important;
}

p { margin-bottom: 1rem; }

a {
  color: var(--primary-color);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color .2s ease;
}

a:hover { color: var(--primary-dark); }

.lead { font-size: 1.06rem; line-height: 1.75; }
.text-muted { color: var(--muted-color) !important; }
hr { border-color: var(--line); opacity: 1; }

::selection {
  background: rgba(var(--bs-primary-rgb), .22);
  color: var(--text-color);
}

:focus-visible {
  outline: 3px solid rgba(var(--bs-primary-rgb), .45);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary-color);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 12px 0;
  z-index: 2000;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: rgba(255, 255, 255, .85) !important;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding: .85rem 0;
  transition: box-shadow .25s ease, padding .25s ease, background-color .25s ease;
}

.navbar.navbar-scrolled {
  padding: .5rem 0;
  background-color: rgba(255, 255, 255, .95) !important;
  box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .28);
}

.navbar-brand {
  color: var(--text-color) !important;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: normal;
  min-width: 0;
}

.navbar-brand .brand-logo {
  height: 46px;
  width: auto;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, .12));
}

.navbar-brand .brand-name {
  display: block;
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: .005em;
}

.navbar-brand .tagline-text {
  font-size: .63rem;
  letter-spacing: .18em;
  margin-top: .25rem;
}

.tagline-text {
  color: var(--accent-color) !important;
  font-weight: 700;
  text-transform: uppercase;
}

.navbar .nav-link {
  position: relative;
  font-weight: 600;
  font-size: .94rem;
  color: rgba(15, 23, 42, .78) !important;
  padding: .5rem .85rem !important;
  border-radius: 999px;
  transition: color .2s ease, background-color .2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--primary-color) !important;
  background-color: rgba(var(--bs-primary-rgb), .08);
}

.navbar .nav-link.active {
  color: var(--primary-color) !important;
  background-color: rgba(var(--bs-primary-rgb), .1);
}

.navbar-toggler {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: .4rem .55rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), .12);
}

.navbar .nav-cta {
  padding: .5rem 1.1rem !important;
  font-size: .9rem;
}

/* Dropdown */
.dropdown-menu {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  padding: .5rem;
  margin-top: .5rem;
}

.dropdown-item {
  font-weight: 500;
  font-size: .92rem;
  color: var(--text-color);
  border-radius: 10px;
  padding: .55rem .75rem;
  transition: color .18s ease, background-color .18s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--primary-color) !important;
  background-color: rgba(var(--bs-primary-rgb), .08) !important;
  transform: none;
}

.dropdown-divider { border-color: var(--line); }

@media (min-width: 992px) {
  /* Menu dropdown diposisikan absolut agar tidak menggeser tinggi navbar
     saat muncul, sehingga posisi menu tidak "meloncat" di bawah kursor. */
  .navbar .dropdown > .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
  }

  .navbar .dropdown > .dropdown-menu.dropdown-menu-end {
    left: auto;
    right: 0;
  }

  .navbar .dropdown:hover > .dropdown-menu,
  .navbar .dropdown > .dropdown-menu.show {
    display: block;
    margin-top: .4rem;
    animation: dropdownIn .18s ease both;
  }

  /* Jembatan transparan selebar menu yang menutupi celah margin di atas menu.
     Karena masih bagian dari elemen menu, hover pada area ini membuat
     .dropdown tetap :hover sehingga menu tidak menghilang saat kursor
     berpindah dari menu utama ke submenu. */
  .navbar .dropdown > .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -.5rem;
    left: 0;
    right: 0;
    height: .5rem;
  }

  .navbar .nav-cta { margin-left: .75rem; }
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: .9rem;
    padding: .75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
  }

  .navbar .nav-link { padding: .65rem .9rem !important; }
  .navbar .nav-cta { margin-top: .5rem; display: inline-block; }
}

/* ---------- Header halaman dalam ---------- */
.page-header-section {
  position: relative;
  padding: 3rem 0 2.25rem;
  background:
    radial-gradient(700px 260px at 50% -40%, rgba(var(--bs-primary-rgb), .16), transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, rgba(247, 249, 252, .6) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-header-section .section-title {
  margin-bottom: 0;
  font-weight: 800;
  color: var(--text-color);
}

.page-header-section .section-title::after {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.page-header-eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: .6rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 55%, var(--primary-light) 100%);
  color: #fff;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, .16), transparent 55%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.12rem;
  max-width: 620px;
  opacity: .92;
  margin-bottom: 1.75rem;
}

.hero-actions .btn-outline-light:hover { color: var(--primary-dark); }

/* Hero halaman beranda */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5.25rem) 0;
  background:
    radial-gradient(900px 420px at 8% 5%, rgba(var(--bs-primary-rgb), .16), transparent 60%),
    radial-gradient(720px 380px at 98% 0%, rgba(245, 158, 11, .18), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F3FAF8 100%);
  border-bottom: 1px solid var(--line);
}

.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.hero-section::before {
  width: 320px;
  height: 320px;
  left: -120px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(var(--bs-primary-rgb), .18), transparent 70%);
}

.hero-section::after {
  width: 260px;
  height: 260px;
  right: -90px;
  top: -80px;
  background: radial-gradient(circle, rgba(245, 158, 11, .22), transparent 70%);
}

.hero-section .container { position: relative; z-index: 1; }

.hero-section .hero-title {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
  color: var(--text-color);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 1.1rem;
}

.hero-title .text-gradient {
  background: linear-gradient(115deg, var(--primary-color) 10%, var(--primary-light) 55%, var(--accent-color) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-section .hero-subtitle {
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--muted-color);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 1.15rem;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .18);
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.4rem;
  color: var(--muted-color);
  font-size: .9rem;
  font-weight: 500;
}

.hero-highlights li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-highlights i { color: var(--primary-color); font-size: 1rem; }

.hero-visual {
  position: relative;
  display: inline-block;
  width: 100%;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 8% -6% -6% 10%;
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .22), rgba(245, 158, 11, .22));
  border-radius: 36% 64% 62% 38% / 42% 38% 62% 58%;
  filter: blur(2px);
  z-index: 0;
}

.hero-section .hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 7px solid #fff;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  animation: none;
}

@media (max-width: 575.98px) {
  .hero-section .hero-image { border-width: 5px; }
}

/* ---------- Judul bagian ---------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .7rem;
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(var(--bs-primary-rgb), .08);
  border: 1px solid rgba(var(--bs-primary-rgb), .14);
  padding: .35rem .8rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}

.section-title {
  position: relative;
  text-align: center;
  color: var(--text-color);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -.025em;
  margin-bottom: .75rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.section-subtitle {
  max-width: 640px;
  margin: 0 auto 2.25rem;
  text-align: center;
  color: var(--muted-color);
  font-size: .98rem;
}

/* ---------- Program unggulan ---------- */
.program-unggulan-section {
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(243, 250, 248, .7) 100%);
}

.feature-item {
  height: 100%;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem 1rem 1.35rem;
  box-shadow: var(--shadow-xs);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--bs-primary-rgb), .25);
  box-shadow: var(--shadow-md);
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: .9rem;
  background: rgba(var(--bs-primary-rgb), .1);
  color: var(--primary-color);
  box-shadow: none;
  transition: transform .28s ease;
}

.feature-item:hover .icon-circle { transform: scale(1.06) rotate(-3deg); }

.icon-circle.green  { background: #E7F6EC; color: #15803D; }
.icon-circle.blue   { background: #E8F0FE; color: #1D4ED8; }
.icon-circle.orange { background: #FEF3C7; color: #B45309; }
.icon-circle.purple { background: #F3E8FF; color: #7E22CE; }
.icon-circle.teal   { background: #E0F7F4; color: #0F766E; }

.feature-title {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-color);
}

/* ---------- Kartu ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.card-header,
.card-footer {
  background: transparent;
  border-color: var(--line);
}

.card-img-top { border-top-left-radius: var(--radius-md); border-top-right-radius: var(--radius-md); }

.home-post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.home-post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--bs-primary-rgb), .22);
  box-shadow: var(--shadow-lg);
}

.home-post-image-link {
  display: block;
  overflow: hidden;
  position: relative;
}

.home-post-image {
  height: 210px;
  width: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.home-post-card:hover .home-post-image { transform: scale(1.05); }

.home-post-image-placeholder {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(300px 160px at 20% 20%, rgba(255, 255, 255, .5), transparent 60%),
    linear-gradient(135deg, var(--primary-soft), rgba(var(--bs-primary-rgb), .18));
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
}

/* ---------- Carousel fasilitas ---------- */
.facility-carousel-section { background: #fff; }

.facility-carousel-section .carousel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.facility-carousel-section .carousel-item img {
  height: clamp(260px, 46vw, 480px);
  object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next { width: 8%; opacity: 1; }

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(15, 23, 42, .55);
  background-size: 45%;
  backdrop-filter: blur(4px);
  transition: background-color .2s ease, transform .2s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(var(--bs-primary-rgb), .85);
  transform: scale(1.05);
}

.carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: var(--primary-color);
  border: 0;
  opacity: .35;
}

.carousel-indicators .active { opacity: 1; width: 22px; }

/* ---------- Halaman fasilitas (statis) ---------- */
.facility-page { padding: 2.25rem 0 1rem; }

.facility-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, transform .3s ease;
}

.facility-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.facility-main-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.facility-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .75rem;
  background: #fff;
  border-top: 1px solid var(--line);
}

.facility-thumb {
  width: 64px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #F8FAFC;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.facility-thumb:hover { transform: translateY(-2px); }

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

.facility-thumb.is-active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .15);
}

.facility-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(var(--bs-primary-rgb), .1);
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* ---------- Halaman konten ---------- */
.page-content { padding: 2.5rem 0 4rem; }

.content-wrapper {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  line-height: 1.85;
}

.content-wrapper h2,
.content-wrapper h3 { margin-top: 1.6rem; }

.content-wrapper p:last-child { margin-bottom: 0; }

.content-wrapper img,
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.content-wrapper img[style*="float: left"],
.blog-content img[style*="float: left"] {
  margin: .5rem 1.5rem 1rem 0;
}

.content-wrapper img[style*="float: right"],
.blog-content img[style*="float: right"] {
  margin: .5rem 0 1rem 1.5rem;
}

.blog-content {
  line-height: 1.85;
  font-size: 1.03rem;
  color: #24303F;
}

.blog-content h2,
.blog-content h3 { margin-top: 1.8rem; }

.blog-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary-color);
  background: var(--primary-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-color);
  font-style: italic;
}

.blog-featured {
  max-height: 400px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* ---------- Formulir ---------- */
.form-label {
  font-weight: 600;
  font-size: .88rem;
  color: #334155;
  margin-bottom: .4rem;
}

.form-text { color: var(--muted-color); }

.form-control,
.form-select {
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  padding: .6rem .85rem;
  color: var(--text-color);
  background-color: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control::placeholder { color: #9AA6B5; }

.form-control:focus,
.form-select:focus {
  border-color: rgba(var(--bs-primary-rgb), .55);
  box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), .12);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #DC2626;
}

.form-check-input { border-color: var(--line-strong); }

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  border-color: rgba(var(--bs-primary-rgb), .55);
  box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), .12);
}

.input-group-text {
  border-radius: 12px;
  background: #F8FAFC;
  border-color: var(--line-strong);
  color: var(--muted-color);
}

textarea.form-control { min-height: 120px; }

/* ---------- Tombol ---------- */
.btn {
  border-radius: 999px;
  font-weight: 600;
  font-size: .93rem;
  padding: .62rem 1.4rem;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn:active { transform: translateY(1px); }

.btn-lg { padding: .8rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: .4rem .95rem; font-size: .84rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: 0;
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(var(--bs-primary-rgb), .9);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)) !important;
  border: 0 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -16px rgba(var(--bs-primary-rgb), .95);
}

.btn-outline-primary {
  color: var(--primary-color);
  border: 1.5px solid rgba(var(--bs-primary-rgb), .35);
  background: rgba(255, 255, 255, .6);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -16px rgba(var(--bs-primary-rgb), .9);
}

.btn-light {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text-color);
}

.btn-light:hover {
  background: #F8FAFC;
  border-color: var(--line-strong);
  color: var(--primary-dark);
}

.btn-outline-secondary {
  color: var(--muted-color);
  border: 1.5px solid var(--line-strong);
}

.btn-outline-secondary:hover {
  background: var(--muted-color);
  border-color: var(--muted-color);
  color: #fff;
}

/* ---------- Badge, alert, tabel, pagination ---------- */
.badge {
  font-weight: 600;
  padding: .38em .7em;
  border-radius: 999px;
  letter-spacing: .01em;
}

.badge.bg-primary { background-color: var(--primary-color) !important; }

.alert {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .94rem;
}

.alert-success {
  background: #ECFDF5;
  border-color: #BBF7D0;
  color: #166534;
}

.alert-danger {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #991B1B;
}

.alert-info {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1E40AF;
}

.alert-warning {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #92400E;
}

.table { --bs-table-border-color: var(--line); }

.table > thead th {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted-color);
  font-weight: 700;
  border-bottom-width: 1px;
}

.pagination {
  --bs-pagination-color: var(--text-color);
  --bs-pagination-active-bg: var(--primary-color);
  --bs-pagination-active-border-color: var(--primary-color);
  --bs-pagination-hover-color: var(--primary-color);
  --bs-pagination-border-color: var(--line);
  gap: .3rem;
}

.pagination .page-link { border-radius: 10px; }

/* ---------- Footer ---------- */
.site-footer,
footer.site-footer {
  position: relative;
  margin-top: 4rem;
  padding: 3.75rem 0 0;
  color: #C7D2DE;
  background:
    radial-gradient(800px 320px at 8% 0%, rgba(var(--bs-primary-rgb), .22), transparent 62%),
    radial-gradient(700px 320px at 92% 8%, rgba(245, 158, 11, .14), transparent 60%),
    #0B1220;
}

.site-footer h4,
.site-footer h5 {
  color: #fff;
  font-weight: 700;
}

.site-footer h4 { font-size: 1.15rem; letter-spacing: -.01em; }

.footer-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #94A3B8 !important;
  margin-bottom: 1.1rem;
}

.site-footer p { color: #A9B6C6; font-size: .93rem; line-height: 1.75; }

.footer-link {
  display: inline-block;
  color: #C7D2DE;
  text-decoration: none;
  font-size: .93rem;
  padding: .18rem 0;
  transition: color .2s ease, transform .2s ease;
}

.footer-link:hover {
  color: #fff;
  transform: translateX(3px);
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #E2E8F0;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.social-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

.footer-hours {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}

.footer-hours .icon { color: var(--primary-light); }

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, .09);
  opacity: 1;
  margin: 2.5rem 0 0;
}

.footer-bottom {
  padding: 1.35rem 0;
  font-size: .86rem;
  color: #93A2B4;
}

.footer-bottom a { color: #C7D2DE; }

.footer-bottom i.bi-heart-fill { color: #F87171; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--primary-color);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background-color .2s ease;
  z-index: 1040;
}

.back-to-top:hover { background: var(--primary-dark); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Animasi masuk (aktif hanya jika JS berjalan) ---------- */
.reveal-init {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal-init.is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- Utilitas ---------- */
.hover-lift { transition: transform .28s ease, box-shadow .28s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.hover-white:hover { color: #fff !important; }
.transition-all { transition: all .25s ease; }

.rounded-4 { border-radius: var(--radius-md) !important; }

.text-gradient {
  background: linear-gradient(115deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Panel admin ---------- */
.admin-sidebar {
  min-width: 240px;
  min-height: 100vh;
  background: #0B1220 !important;
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, .8) !important;
  border-radius: 10px;
  padding: .45rem .75rem !important;
  font-size: .92rem;
  transition: background-color .2s ease, color .2s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, .1);
  border-radius: 10px;
}

.admin-sidebar .nav-link.active { background: var(--primary-color) !important; }

.admin-content {
  background: #F4F7FB;
  min-height: 100vh;
}

.admin-thumb {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
}

/* ---------- Responsif ---------- */
@media (max-width: 991.98px) {
  .hero-section { padding: 2.75rem 0 3rem; }
  .hero-visual { margin-top: 2.5rem; }
  .section-title { margin-bottom: .6rem; }
  .page-header-section { padding: 2.25rem 0 1.75rem; }
}

@media (max-width: 767.98px) {
  body { font-size: .96rem; }
  .home-post-image,
  .home-post-image-placeholder { height: 190px; }
  .content-wrapper { padding: 1.25rem; }
  .site-footer { padding-top: 2.75rem; }
}

@media (max-width: 575.98px) {
  .navbar-brand { gap: .5rem !important; }
  .navbar-brand .brand-logo { height: 38px; }
  .navbar-brand .brand-name { font-size: .82rem; line-height: 1.2; }
  .navbar-brand .tagline-text { font-size: .56rem; letter-spacing: .12em; }
  .hero-section .hero-title { font-size: clamp(1.75rem, 8.4vw, 2.4rem); }
  .hero-section .hero-subtitle { font-size: .98rem; }
  .btn-lg { padding: .7rem 1.35rem; font-size: .94rem; }
}

/* ---------- Hormati preferensi kurangi gerak ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal-init { opacity: 1; transform: none; }
}
