:root {
  --bg-deep: #001a38;
  --bg-mid: #002a58;
  --bg-light: #003b74;
  --accent: #0047bb;
  --accent-dark: #003a99;
  --text-soft: #cdd9ee;
  --card: rgba(8, 28, 60, 0.78);
  --border: rgba(255, 255, 255, 0.14);
  --page-bg: #001a38;
  --page-bg-mid: #002a58;
  --page-bg-light: #003b74;
  --text-main: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: #0b0b0b;
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
}

html {
  scroll-behavior: smooth;
}

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

.anniversary-carousel {
  min-height: 100vh;
  position: relative;
}

.anniversary-carousel .carousel-inner,
.anniversary-carousel .carousel-item,
.anniversary-carousel img {
  height: 100vh;
}

.anniversary-carousel img {
  object-fit: cover;
  filter: sepia(0.35) contrast(1.05) saturate(0.9);
}

.anniversary-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
  background: linear-gradient(90deg, rgba(6, 22, 40, 0.65) 0%, rgba(6, 22, 40, 0.45) 45%, rgba(6, 22, 40, 0.18) 100%);
}

.anniversary-copy {
  max-width: 640px;
}

.anniversary-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 2;
  padding: 16px 0 22px;
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.anniversary-footer .footer-text {
  color: #ffffff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  font-size: 0.95rem;
}

.story-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.story-hero-carousel,
.story-hero-carousel .carousel-inner,
.story-hero-carousel .carousel-item,
.story-hero-carousel img {
  height: 100vh;
}

.story-hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.story-hero-carousel img {
  width: 100%;
  object-fit: cover;
  filter: sepia(0.35) contrast(1.1) saturate(0.9);
}

.story-hero-overlay {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(0, 20, 45, 0.75) 0%, rgba(0, 20, 45, 0.55) 45%, rgba(0, 20, 45, 0.2) 100%);
  padding-top: 84px;
  pointer-events: none;
}

.story-hero .carousel-fade .carousel-item {
  transition: opacity 1.2s ease-in-out;
}

.story-hero::before,
.story-hero::after {
  content: none;
}

.story-hero-content {
  max-width: 680px;
  pointer-events: auto;
}

.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero-half {
  min-height: 55vh;
}

.page-hero-overlay {
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding: 120px 0 48px;
  background: linear-gradient(90deg, rgba(0, 20, 45, 0.82) 0%, rgba(0, 20, 45, 0.6) 55%, rgba(0, 20, 45, 0.2) 100%);
}

.page-hero-content {
  max-width: 720px;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.info-section {
  position: relative;
  overflow: hidden;
}

.info-section.bg-panel {
  background: #f5efe6;
  border-top: 1px solid #e2d5c5;
  border-bottom: 1px solid #e2d5c5;
  color: #2b2b2b;
}

.info-section.bg-panel .text-white-50 {
  color: #4a3a2e !important;
}

.info-section .speaker-card {
  background: #f3eadf;
  border: 1px solid #e2d5c5;
  box-shadow: 0 14px 30px rgba(63, 49, 38, 0.18);
}

.info-section .speaker-card h5 {
  color: #3f3126;
}

.info-section .badge-soft {
  color: #3f3126;
  border-color: rgba(63, 49, 38, 0.25);
}

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

.info-ornament {
  position: absolute;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.28));
}

.info-section .ornament-tech {
  width: 140px;
  height: 140px;
  left: 5%;
  top: 20%;
}

.info-section .ornament-education {
  width: 150px;
  height: 150px;
  right: 6%;
  top: 10%;
}

.info-section .ornament-research {
  width: 150px;
  height: 150px;
  right: 10%;
  bottom: 12%;
}

.vertical-slider {
  position: relative;
  overflow: hidden;
  height: 420px;
  border-radius: 20px;
}

.vertical-slider-track {
  display: flex;
  gap: 16px;
  align-items: center;
  animation: horizontal-slide 18s linear infinite;
  width: max-content;
}

.vertical-slider img {
  width: 320px;
  height: 240px;
  object-fit: cover;
  border: 1px solid #e2d5c5;
  box-shadow: 0 12px 26px rgba(63, 49, 38, 0.16);
}

.slider-image-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.slider-image-btn img {
  display: block;
}

.slider-group {
  display: flex;
  gap: 16px;
}

.vertical-slider:hover .vertical-slider-track {
  animation-play-state: paused;
}

@keyframes horizontal-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.story-hero-content h1,
.story-hero-content p,
.story-hero-caption {
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.chapter-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.chapter-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

.story-hero-caption {
  position: absolute;
  bottom: 22px;
  right: 24px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.story-section {
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.story-section-head {
  max-width: 640px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.story-section::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: 20px;
  background: radial-gradient(circle, rgba(0, 71, 187, 0.18), transparent 70%);
  opacity: 0.8;
  pointer-events: none;
}

.story-panel {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.story-panel::after {
  left: -60px;
  right: auto;
  top: auto;
  bottom: 10px;
}

.story-panel::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 100px;
  top: 24px;
  left: 8%;
  background: url("/assets/bthf/ornaments/monogram.svg") no-repeat center/contain;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.story-timeline {
  display: grid;
  gap: 18px;
  position: relative;
  padding-left: 24px;
}

.story-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(0, 71, 187, 0.6), rgba(255, 255, 255, 0.2));
}

.story-timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: start;
}

.story-time {
  font-weight: 700;
  color: #ffffff;
  font-size: 1rem;
}

.story-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  position: relative;
  z-index: 1;
}

.story-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  position: relative;
  z-index: 1;
}

.story-gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  filter: sepia(0.25) contrast(1.05) saturate(0.9);
}

.story-timeline {
  position: relative;
}

.story-timeline::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -40px;
  bottom: -30px;
  background: url("/assets/bthf/ornaments/rosette.svg") no-repeat center/contain;
  opacity: 0.35;
  pointer-events: none;
}

.story-cta {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: 18px;
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(0, 71, 187, 0.2), rgba(0, 26, 56, 0.85));
  position: relative;
  z-index: 1;
}

.story-contact-card {
  background: rgba(7, 28, 60, 0.85);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 1;
}

.story-footer {
  padding: 28px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  position: relative;
  overflow: hidden;
}

.story-footer .footer-text {
  color: #ffffff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.story-footer .footer-text {
  color: #ffffff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  font-size: 0.95rem;
}

.story-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/bthf/history-building.jpg") center/cover no-repeat;
  filter: sepia(0.35) contrast(1.1) saturate(0.9);
  z-index: 0;
}

.story-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.story-footer .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .story-timeline-item {
    grid-template-columns: 1fr;
  }

  .story-hero-caption {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }

  .heritage-image-stack {
    grid-template-columns: 1fr;
  }

  .heritage-image {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 991px) {
  .heritage-image-stack {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

.anniversary-copy h1,
.anniversary-copy p,
.anniversary-copy .pill {
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.bg-glow {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 30% 30%, rgba(30, 170, 200, 0.08), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(30, 110, 200, 0.08), transparent 35%);
  z-index: -1;
}

.nav-glass {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
}

.nav-glass.navbar,
.nav-glass .navbar-collapse {
  background: transparent !important;
  background-color: transparent !important;
}

.nav-glass.is-scrolled {
  background: rgba(0, 26, 56, 0.78) !important;
  background-color: rgba(0, 26, 56, 0.78) !important;
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.nav-glass.is-scrolled .navbar-collapse {
  background: transparent !important;
}

.navbar .nav-link {
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.navbar .nav-link:hover {
  color: #fff;
}

.nav-glass .navbar-brand,
.nav-glass .theme-toggle {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.nav-logo {
  display: block;
  width: auto;
  height: 40px;
}

.lang-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-btn img {
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #031420;
  border: none;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(47, 208, 245, 0.25);
}

.btn-cta:hover {
  color: #031420;
  transform: translateY(-1px);
}

.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.pill {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(47, 208, 245, 0.15);
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.hero .display-4 {
  font-family: "Fraunces", "Times New Roman", serif;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 20px;
}

.meta-label {
  display: block;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--text-soft);
  letter-spacing: 0.08em;
}

.meta-value {
  font-weight: 600;
  color: #fff;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 30px 60px rgba(2, 14, 30, 0.35);
  animation: floatIn 0.8s ease forwards;
}

.media-card {
  background: rgba(6, 30, 50, 0.6);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}

.media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-card img,
.history-gallery img,
.image-strip img {
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.history-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.badge-soft {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.section-pad {
  padding: 80px 0;
}

.section-title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 2.2rem;
}

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

.scroll-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-fade {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.heritage-section {
  position: relative;
  overflow: hidden;
  background: #f5f1e6;
  color: #111111;
}

.heritage-fade {
  position: absolute;
  top: -220px;
  left: 0;
  right: 0;
  height: 320px;
  background: linear-gradient(
    180deg,
    rgba(245, 241, 230, 0) 0%,
    rgba(245, 241, 230, 0.35) 35%,
    rgba(245, 241, 230, 0.7) 65%,
    #f5f1e6 100%
  );
  pointer-events: none;
  z-index: 0;
}

.heritage-section::before,
.heritage-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.2;
  z-index: 0;
}

.heritage-section::before {
  width: 360px;
  height: 170px;
  left: -90px;
  top: 40px;
  background: url("/assets/bthf/ornaments/itb-vintage.svg") no-repeat center/contain;
}

.heritage-section::after {
  width: 320px;
  height: 160px;
  right: 2%;
  bottom: 50px;
  background: url("/assets/bthf/ornaments/gedung-sate-vintage.svg") no-repeat center/contain;
}

.heritage-ornament {
  position: absolute;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  filter: drop-shadow(0 18px 28px rgba(63, 49, 38, 0.18));
}

.ornament-tech {
  width: 140px;
  height: 140px;
  background-image: url("/assets/bthf/ornaments/tech-vintage.svg");
}

.ornament-education {
  width: 150px;
  height: 150px;
  background-image: url("/assets/bthf/ornaments/education-vintage.svg");
}

.ornament-research {
  width: 150px;
  height: 150px;
  background-image: url("/assets/bthf/ornaments/research-vintage.svg");
}

#history .ornament-tech {
  left: -20px;
  top: 24%;
}

#history .ornament-education {
  right: -30px;
  top: 12%;
}

#history .ornament-research {
  right: 6%;
  bottom: -10px;
}

#home-objectives .ornament-tech {
  left: 4%;
  bottom: -20px;
}

#home-objectives .ornament-education {
  right: -40px;
  top: 16%;
}

#home-objectives .ornament-research {
  right: 6%;
  bottom: 10%;
}

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

.heritage-intro {
  position: relative;
  z-index: 1;
}

.heritage-section .text-white-50 {
  color: #2b2b2b !important;
}

.heritage-section .section-title,
.heritage-section .activity-title {
  color: #111111;
}

.heritage-section .heritage-list {
  color: #2b2b2b;
}

.heritage-section .chapter-label {
  color: rgba(17, 17, 17, 0.6);
}

.heritage-section .chapter-label::before {
  background: #7b4b2a;
}

.heritage-image-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.heritage-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  filter: sepia(0.4) contrast(1.05) saturate(0.9);
}

.heritage-image-link {
  display: block;
  text-decoration: none;
  cursor: zoom-in;
  border: none;
  background: transparent;
  padding: 0;
  width: 100%;
}

.heritage-image-link .heritage-image {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.heritage-image-link:hover .heritage-image {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(2, 12, 24, 0.35);
}

.heritage-image-shadow {
  box-shadow: 0 24px 48px rgba(18, 10, 6, 0.45);
}

.heritage-card {
  background: rgba(7, 25, 45, 0.85);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 26px 48px rgba(3, 12, 24, 0.35);
}

.heritage-card-plain {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.heritage-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -20px;
  bottom: -20px;
  opacity: 0.18;
  background: url("/assets/bthf/ornaments/monogram.svg") no-repeat center/contain;
}

.heritage-card h5 {
  font-family: "Fraunces", "Times New Roman", serif;
  margin-bottom: 12px;
}

.heritage-card.accent-card {
  background: linear-gradient(135deg, rgba(118, 84, 34, 0.22), rgba(6, 24, 44, 0.92));
  border-color: rgba(255, 255, 255, 0.2);
}

.heritage-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
}

.heritage-list li {
  margin-bottom: 10px;
}

.heritage-list li:last-child {
  margin-bottom: 0;
}

.activity-grid {
  display: grid;
  gap: 18px;
}

.activity-block {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 20, 36, 0.65);
}

.activity-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffffff;
}

.sub-list {
  padding-left: 18px;
}

.heritage-modal {
  background: rgba(12, 10, 8, 0.35);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 16px 24px;
  backdrop-filter: blur(14px);
}

.subsidies-modal {
  background: #f5f1e6;
  color: #111111;
}

.materials-modal {
  background: #0b0b0b;
  color: var(--text-main);
}

.subsidies-modal .info-card {
  background: #ffffff;
  border-color: #e2d5c5;
  box-shadow: 0 14px 30px rgba(63, 49, 38, 0.12);
}

.heritage-modal-image {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  filter: sepia(0.25) contrast(1.05) saturate(0.95);
}

.heritage-modal-pdf {
  width: 100%;
  height: 70vh;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0b1118;
}

.modal-backdrop.show {
  background-color: rgba(12, 10, 8, 0.4);
  backdrop-filter: blur(6px);
}

.info-card,
.speaker-card,
.venue-card,
.cta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  height: 100%;
}

.info-card h5,
.speaker-card h5 {
  color: #fff;
}

.bg-panel {
  background: rgba(4, 24, 49, 0.7);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #e2d5c5;
  background: #f3eadf;
  box-shadow: 0 14px 30px rgba(63, 49, 38, 0.18);
}

.timeline-item .time {
  font-weight: 600;
  color: #6b5642;
}

.timeline-item h5 {
  color: #3f3126;
}

.timeline-item p {
  color: #5a4637;
}

.speaker-card {
  position: relative;
  overflow: hidden;
}

.speaker-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(47, 208, 245, 0.7), rgba(18, 120, 160, 0.4));
}

.tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.venue-card {
  background: rgba(6, 30, 50, 0.8);
}

.venue-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(47, 208, 245, 0.2), rgba(2, 30, 40, 0.8));
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  background: var(--page-bg);
  position: relative;
  overflow: hidden;
}

.footer::before,
.footer::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.18;
}

.footer::before {
  width: 220px;
  height: 140px;
  left: -40px;
  top: 10px;
  background: url("/assets/bthf/ornaments/arch.svg") no-repeat center/contain;
}

.footer::after {
  width: 160px;
  height: 160px;
  right: 6%;
  bottom: -20px;
  background: url("/assets/bthf/ornaments/rosette.svg") no-repeat center/contain;
}

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

.footer-monogram {
  position: absolute;
  left: 50%;
  bottom: -30px;
  width: min(360px, 70vw);
  height: 200px;
  transform: translateX(-50%);
  background: url("/assets/bthf/ornaments/monogram-tech.svg") no-repeat center/contain;
  opacity: 0.25;
  pointer-events: none;
}

.footer-light .footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.footer-light .footer-block {
  color: rgba(255, 255, 255, 0.75);
}

.footer-light .footer-block .fw-bold {
  color: #ffffff;
}

.footer-light .footer-logo img {
  display: block;
  width: auto;
  height: 40px;
}

.footer-light .footer-meta {
  text-align: right;
}

@media (max-width: 767px) {
  .footer-light .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-light .footer-meta {
    text-align: center;
  }
}

.home-page {
  background: #f6f1e6;
  color: #0f3b5c;
}

.home-page .bg-glow {
  background-image: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.7), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(230, 222, 210, 0.7), transparent 45%);
}

.home-page .nav-glass {
  border-bottom: 1px solid rgba(15, 59, 92, 0.08);
  background: transparent !important;
  backdrop-filter: blur(4px);
}

.home-page .nav-glass.is-scrolled {
  background: rgba(246, 241, 230, 0.95) !important;
  border-bottom-color: rgba(15, 59, 92, 0.12);
  box-shadow: 0 12px 30px rgba(15, 59, 92, 0.08);
}

.home-page .navbar .nav-link {
  color: #0f3b5c;
  font-weight: 600;
  text-shadow: none;
}

.home-page .navbar .nav-link.active,
.home-page .navbar .nav-link:hover {
  color: #f28c28;
}

.home-page .dropdown-menu {
  border-radius: 14px;
  border: 1px solid rgba(15, 59, 92, 0.12);
  box-shadow: 0 18px 40px rgba(15, 59, 92, 0.12);
}

.home-page .dropdown-menu .dropdown-item {
  color: #0f3b5c;
  font-weight: 500;
}

.home-page .dropdown-menu .dropdown-item:hover,
.home-page .dropdown-menu .dropdown-item:focus {
  background: rgba(242, 140, 40, 0.12);
  color: #0f3b5c;
}

.home-page .lang-btn {
  border-color: rgba(15, 59, 92, 0.2);
  background: rgba(255, 255, 255, 0.8);
  color: #0f3b5c;
}

.home-page .lang-btn.active {
  border-color: rgba(242, 140, 40, 0.5);
  color: #f28c28;
}

.home-page .story-hero-carousel img {
  filter: grayscale(0.1) sepia(0.25) contrast(1.05) brightness(1.05);
}

.home-page .story-hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(246, 241, 230, 0.95) 0%,
    rgba(246, 241, 230, 0.8) 45%,
    rgba(246, 241, 230, 0.35) 100%
  );
}

.home-page .story-hero-content {
  max-width: 560px;
}

.home-page .story-hero-content h1,
.home-page .story-hero-content p,
.home-page .story-hero-caption {
  text-shadow: none;
}

.home-page .story-hero-content h1 {
  color: #0f3b5c;
  font-weight: 700;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

.home-page .story-hero-content p {
  color: #5c6b73;
}

.home-page .story-hero-content .text-white {
  color: #0f3b5c !important;
}

.home-page .story-hero-content .text-white-50 {
  color: #5c6b73 !important;
}

.home-page .chapter-label {
  color: rgba(15, 59, 92, 0.6);
}

.home-page .chapter-label::before {
  background: #2a77b8;
}

.home-page .pill {
  background: #e8eff6;
  color: #2a77b8;
}

.home-page .btn-cta {
  background: #f28c28;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(242, 140, 40, 0.28);
}

.home-page .btn-cta:hover {
  color: #ffffff;
  background: #e67f1d;
}

.home-page .btn-outline-light {
  color: #2a77b8;
  border-color: rgba(42, 119, 184, 0.5);
  background: transparent;
}

.home-page .btn-outline-light:hover {
  background: rgba(42, 119, 184, 0.08);
  color: #1f5c8d;
}

.home-page .section-title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: #0f3b5c;
}

.home-page .heritage-section {
  background: #f6f1e6;
}

.home-page .heritage-section .text-white-50,
.home-page .heritage-section .heritage-list {
  color: #5c6b73 !important;
}

.home-page #history .history-doc-card {
  background: transparent;
  border: 1px solid rgba(15, 59, 92, 0.18);
  box-shadow: none;
}

.home-page #history .history-doc-card h5 {
  color: #f28c28;
}

.home-page #history .history-doc-card .text-white-50 {
  color: #0f3b5c !important;
}

.home-page #home-objectives .heritage-list li {
  font-size: 0.95rem;
}

.home-page .history-gallery {
  display: none;
}

.home-page .timeline {
  gap: 20px;
}

.home-page .timeline-item {
  border-radius: 20px;
  border: 1px solid #eadfce;
  background: #f7efe3;
  padding: 22px 28px;
  box-shadow: 0 18px 36px rgba(67, 52, 38, 0.12);
}

.home-page .timeline-item .time {
  color: #e07b2c;
  font-weight: 600;
  font-size: 0.95rem;
}

.home-page .timeline-item h5 {
  color: #0f3b5c;
  font-weight: 600;
}

.home-page .timeline-item p {
  color: #5c6b73;
}

.home-page .subsidies-list {
  margin: 0;
  padding-left: 20px;
  color: #5c6b73;
  display: grid;
  gap: 14px;
}

.home-page .subsidies-list li {
  line-height: 1.5;
}

.home-page .subsidies-year {
  color: #e07b2c;
  font-weight: 600;
  margin-right: 6px;
}

.home-page .subsidies-media {
  position: sticky;
  top: 120px;
}

.home-page .subsidies-media .carousel {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(35, 45, 56, 0.16);
  border: 1px solid rgba(15, 59, 92, 0.08);
}

.home-page .subsidies-media .carousel-item {
  height: 520px;
}

.home-page .subsidies-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f7efe3;
}

.home-page .ganesha-section .table-responsive {
  border-radius: 18px;
  border: 1px solid rgba(15, 59, 92, 0.08);
  background: #f7efe3;
  box-shadow: 0 18px 36px rgba(67, 52, 38, 0.12);
}

.home-page .ganesha-section table {
  color: #0f3b5c;
  margin-bottom: 0;
}

.home-page .ganesha-section thead th {
  background: #0b3b5c;
  color: #ffffff;
  font-weight: 600;
  border-bottom: none;
}

.home-page .ganesha-section tbody td {
  border-color: rgba(15, 59, 92, 0.08);
}

.home-page .ganesha-section tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.5);
}

.home-page .apply-section .process-card {
  background: #f7efe3;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #eadfce;
  box-shadow: 0 18px 36px rgba(67, 52, 38, 0.12);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.home-page .apply-section .process-title {
  font-size: 1.35rem;
  color: #0f3b5c;
  margin-bottom: 8px;
}

.home-page .apply-section .process-timeline {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 14px;
}

.home-page .apply-section .process-timeline li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  align-items: start;
  color: #5c6b73;
  border-top: 1px solid rgba(15, 59, 92, 0.08);
  padding-top: 12px;
}

.home-page .apply-section .process-timeline li:first-child {
  border-top: none;
  padding-top: 0;
}

.home-page .apply-section .process-month {
  font-weight: 600;
  color: #e07b2c;
}

.home-page .news-section .carousel {
  border-radius: 24px;
}

.home-page .news-section .news-mobile-list {
  display: none;
  gap: 16px;
}

.home-page .news-section .carousel-control-prev,
.home-page .news-section .carousel-control-next {
  width: 48px;
}

.home-page .news-section .carousel-control-prev-icon,
.home-page .news-section .carousel-control-next-icon {
  filter: invert(1);
}

.home-page .news-section .news-card {
  background: #f7efe3;
  border-radius: 20px;
  border: 1px solid #eadfce;
  box-shadow: 0 18px 36px rgba(67, 52, 38, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-page .news-section .news-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.home-page .news-section .news-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #0f3b5c;
}

.home-page .news-section .news-meta {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a6a4a;
  font-weight: 600;
}

.home-page .news-section .news-title {
  font-size: 1.05rem;
  margin: 0;
  color: #0f3b5c;
}

.home-page .news-section .news-excerpt {
  margin: 0;
  color: #5c6b73;
}

.home-page .news-section .news-readmore {
  margin-top: auto;
  color: #e07b2c;
  font-weight: 600;
  text-decoration: none;
}

.home-page .news-section .news-readmore:hover {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .home-page .news-section .carousel {
    display: none;
  }

  .home-page .news-section .news-mobile-list {
    display: grid;
  }

  .home-page .news-section .news-card-image img {
    height: 160px;
  }
}

.home-page .news-detail-section .ornament-tech {
  left: -30px;
  top: 48%;
}

.home-page .news-detail-section .ornament-education {
  right: -50px;
  top: 10%;
}

.home-page .news-detail-section .ornament-research {
  right: 6%;
  bottom: -30px;
}

.news-detail-card {
  background: #f7efe3;
  border-radius: 20px;
  border: 1px solid #eadfce;
  box-shadow: 0 18px 36px rgba(67, 52, 38, 0.12);
  overflow: hidden;
}

.news-detail-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.95rem;
  margin-top: 20px;
  margin-bottom: 12px;
  color: rgba(17, 17, 17, 0.6);
}

.news-detail-breadcrumb a {
  color: rgba(17, 17, 17, 0.75);
  text-decoration: none;
  font-weight: 600;
}

.news-detail-breadcrumb a:hover {
  text-decoration: underline;
}

.news-detail-image {
  width: 100%;
  height: auto;
  display: block;
}

.news-detail-body {
  padding: 24px;
  color: #0f3b5c;
}

.news-detail-desc {
  margin-bottom: 0;
  color: #5c6b73;
}

.home-page .contact-section .contact-card {
  background: #f7efe3;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #eadfce;
  box-shadow: 0 18px 36px rgba(67, 52, 38, 0.12);
  height: 100%;
}

.home-page .contact-section .contact-card-plain {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.home-page .contact-section .contact-card-title {
  font-size: 1.3rem;
  color: #0f3b5c;
  margin-bottom: 16px;
}

.home-page .contact-section .contact-people {
  display: grid;
  gap: 16px;
}

.home-page .contact-section .contact-people--three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 991.98px) {
  .home-page .contact-section .contact-people--three-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .home-page .contact-section .contact-people--three-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .home-page .contact-section .contact-person {
    gap: 12px;
  }

  .home-page .contact-section .contact-person img {
    width: 68px;
    height: 68px;
    border-radius: 14px;
  }
}

.home-page .contact-section .contact-person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-page .contact-section .contact-person img {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(15, 59, 92, 0.12);
}

.home-page .contact-section .contact-photo-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.home-page .contact-section .contact-photo-btn img {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-page .contact-section .contact-photo-btn:hover img {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(35, 45, 56, 0.2);
}

.home-page .contact-modal {
  background: rgba(12, 10, 8, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 16px 16px 20px;
  backdrop-filter: blur(14px);
}

.home-page .contact-modal-image {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-page .contact-modal-caption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-weight: 600;
}

.home-page .contact-section .contact-name {
  font-weight: 600;
  color: #0f3b5c;
}

.home-page .contact-section .contact-role {
  color: #5c6b73;
  font-size: 0.95rem;
}

.home-page .contact-section .contact-meta {
  color: #5c6b73;
  display: grid;
  gap: 8px;
}

.home-page .contact-section .contact-list {
  margin: 0;
  padding-left: 20px;
  color: #5c6b73;
  display: grid;
  gap: 8px;
}

.home-page .subsidies-section .ornament-tech {
  left: -40px;
  top: 55%;
}

.home-page .subsidies-section .ornament-education {
  right: -50px;
  top: 6%;
}

.home-page .subsidies-section .ornament-research {
  right: 8%;
  bottom: -40px;
}

.home-page .ganesha-section .ornament-tech {
  left: -30px;
  top: 40%;
}

.home-page .ganesha-section .ornament-education {
  right: -50px;
  top: 8%;
}

.home-page .ganesha-section .ornament-research {
  right: 6%;
  bottom: -30px;
}

.home-page .apply-section .ornament-tech {
  left: -40px;
  top: 52%;
}

.home-page .apply-section .ornament-education {
  right: -50px;
  top: 6%;
}

.home-page .apply-section .ornament-research {
  right: 6%;
  bottom: -40px;
}

.home-page .news-section .ornament-tech {
  left: -30px;
  top: 48%;
}

.home-page .news-section .ornament-education {
  right: -50px;
  top: 10%;
}

.home-page .news-section .ornament-research {
  right: 6%;
  bottom: -30px;
}

.home-page .contact-section .ornament-tech {
  left: -40px;
  top: 48%;
}

.home-page .contact-section .ornament-education {
  right: -50px;
  top: 8%;
}

.home-page .contact-section .ornament-research {
  right: 7%;
  bottom: -35px;
}

.home-page .ganesha-search {
  min-width: 260px;
}

.home-page .ganesha-search .form-control {
  border-radius: 999px;
  border: 1px solid rgba(15, 59, 92, 0.2);
  background: #ffffff;
  color: #0f3b5c;
  padding: 10px 16px;
}

.home-page .ganesha-search .form-control::placeholder {
  color: rgba(15, 59, 92, 0.5);
}

.home-page .ganesha-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

.home-page .ganesha-pagination .page-btn {
  border: 1px solid rgba(15, 59, 92, 0.2);
  background: #ffffff;
  color: #0f3b5c;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 0.9rem;
}

.home-page .ganesha-pagination .page-btn.active {
  background: #f28c28;
  border-color: #f28c28;
  color: #ffffff;
}

.home-page .ganesha-pagination .page-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 991px) {
  .home-page .subsidies-media {
    position: static;
  }

  .home-page .subsidies-media .carousel-item {
    height: 360px;
  }

  .home-page .apply-section .process-timeline li {
    grid-template-columns: 1fr;
  }

  .home-page .ganesha-search {
    width: 100%;
  }

  .home-page .ganesha-pagination {
    justify-content: flex-start;
  }
}

.home-page #home-objectives .heritage-card-plain p {
  color: #5c6b73;
}

.home-page .heritage-image {
  border-radius: 18px;
  border: 1px solid rgba(15, 59, 92, 0.08);
}

.home-page .heritage-image-shadow {
  box-shadow: 0 24px 48px rgba(35, 45, 56, 0.18);
}

.home-page .footer {
  background: #0b3b5c;
  border-top: none;
}

.home-page .footer::before,
.home-page .footer::after,
.home-page .footer-monogram {
  content: none;
  display: none;
}

.wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 120px;
  fill: rgba(4, 24, 49, 0.8);
}

.theme-toggle {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-weight: 600;
}

.theme-toggle:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.16);
}

body.theme-light {
  --page-bg: #f3f7fb;
  --page-bg-mid: #e6eef6;
  --page-bg-light: #dce7f2;
  --text-main: #0c2236;
  --text-soft: #4c6376;
  --card: #ffffff;
  --border: rgba(12, 34, 54, 0.12);
}

body.theme-light .bg-glow {
  background-image: radial-gradient(circle at 30% 30%, rgba(47, 208, 245, 0.12), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(10, 90, 140, 0.08), transparent 35%);
}

body.theme-light .nav-glass {
  background: rgba(255, 255, 255, 0.9);
}

body.theme-light .bg-panel {
  background: #ffffff;
}

body.theme-light .wave {
  fill: #ffffff;
}

body.theme-light .text-white {
  color: var(--text-main) !important;
}

body.theme-light .text-white-50 {
  color: rgba(12, 34, 54, 0.7) !important;
}

body.theme-light .navbar .nav-link {
  color: rgba(12, 34, 54, 0.75);
}

body.theme-light .navbar .nav-link:hover {
  color: var(--text-main);
}

body.theme-light .btn-outline-light {
  color: var(--text-main);
  border-color: rgba(12, 34, 54, 0.3);
}

body.theme-light .btn-outline-light:hover {
  background: rgba(12, 34, 54, 0.08);
  color: var(--text-main);
}

body.theme-light #objectives,
body.theme-light #objectives .text-white,
body.theme-light #objectives .text-white-50 {
  color: #0c2236 !important;
}

body.theme-light .section-title {
  color: #0c2236;
}

@media (max-width: 991px) {
  .hero {
    padding-top: 90px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-card {
    animation: floatIn 0.8s ease forwards;
  }

  .info-card,
  .speaker-card,
  .venue-card,
  .cta-card {
    animation: riseIn 0.8s ease both;
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
