:root {
  --bulma-primary: <?= htmlspecialchars($settings['primary_color']) ?>;
  --bulma-footer-padding: 0.75rem 1.5rem 1.25rem;
  --navbar-height: 7.5rem;
  --navbar-height-shrink: 6.25rem;
  --navbar-logo-max: 6.5rem;
  --navbar-logo-shrink: 5.25rem;
}

html, body {
  height: 100%;
}

/* Default navbar */
.navbar {
  height: var(--navbar-height);
  transition: height 0.25s ease, box-shadow 0.25s ease;
}

/* Logo */
.navbar-brand img {
  max-height: var(--navbar-logo-max);
  transition: max-height 0.25s ease;
}

/* ===== Navbar ===== */
.navbar {
  min-height: var(--navbar-height);
  height: var(--navbar-height);
  transition: height 0.25s ease, box-shadow 0.25s ease;
}

.navbar-brand img {
  max-height: var(--navbar-logo-max);
  transition: max-height 0.25s ease;
}

/* Shrunk */
.navbar.is-shrunk {
  height: var(--navbar-height-shrink);
  min-height: var(--navbar-height-shrink);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.navbar.is-shrunk .navbar-brand img {
  max-height: var(--navbar-logo-shrink);
}

/* Body offset sync */
body.site {
  padding-top: var(--navbar-height);
}

body.site.navbar-shrunk {
  padding-top: var(--navbar-height-shrink);
}

.section.page-section {
  padding-top: 1.0rem;
  padding-bottom: 1.5rem;
}

.page-header {
  margin-bottom: 1.25rem;
}

.page-title {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.page-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--bulma-primary);
  margin-top: 6px;
  border-radius: 2px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  min-height: auto;
}

.breadcrumb .container,
.breadcrumb ul {
  display: flex;
  align-items: center;
}

.breadcrumb a {
  line-height: 1.0rem;
  color: #7a7a7a;
}

.breadcrumb a:hover {
  color: var(--bulma-primary);
}

/* ================================
   HERO SLIDER (FULL VIEWPORT)
================================ */

.hero-slider {
  position: relative;
  width: 100%;
  height: 300px;        /* Fixed height */
  overflow: hidden;
}

/* Ensure Splide fills wrapper */
.hero-splide,
.hero-splide .splide__track,
.hero-splide .splide__list,
.hero-splide .splide__slide {
  height: 100%;
}

/* Images fill slide */
.hero-splide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Dark overlay */

/* ================================
   HERO CAPTION
================================ */

.hero-caption {
  position: absolute;
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
  z-index: 5;

  width: min(92%, 900px);
 /* padding: 2rem 2.5rem; */

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

  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 14px;

  box-shadow:
    0 8px 32px rgba(0,0,0,0.25);

  color: #ffffff;
  text-align: center;

  animation: heroFadeUp 1.9s ease both;
}


.hero-caption h1 {
  font-size: clamp(1.2rem, 1.8vw, 1.3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.3rem;
}

.hero-caption p {
  font-size: 0.90rem; /* clamp(1rem, 2vw, 1.2rem); */
  line-height: 1.6;
  margin-bottom: 0.3rem;
  opacity: 0.95;
}


/* Animation */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translate(-50%, 24px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ================================
   MOBILE: HIDE HERO
================================ */
/*
@media (max-width: 768px) {
  .hero-slider {
    display: none;
  }
}
*/
/* ================================
   HERO VIDEO
================================ */

.hero-video {
  position: relative;
  width: 100%;
  min-height: 300px;
  height: calc(100vh - var(--navbar-height, 4.5rem));
  overflow: hidden;
}

/* Video fills container */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark overlay */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.65)
  );
}

/* ================================
   HERO CAPTION (REUSED)
================================ */

.hero-video .hero-caption {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  z-index: 3;

  width: min(92%, 900px);
  padding: 2rem 2.5rem;

  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);

  color: #fff;
  text-align: center;
  border-radius: 8px;

  animation: heroFadeUp 0.9s ease both;
}

.hero-video .hero-caption h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero-video .hero-caption p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

/* Animation */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translate(-50%, 24px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ================================
   MOBILE FALLBACK
================================ */
/*
@media (max-width: 768px) {
  .hero-video {
    display: none;
  }
}
*/

/* ===== Hero Embed ===== */
.hero-embed {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--navbar-height, 4.5rem));
  overflow: hidden;
}

/* Iframe must overflow for crop */
.hero-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  pointer-events: none; /* no clicks */
}

/* Dark overlay */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.65)
  );
}

/* Caption */
.hero-caption {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  z-index: 3;

  width: min(92%, 900px);
  padding: 2rem 2.5rem;

  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);

  color: #fff;
  text-align: center;
  border-radius: 8px;
}

/* Hide on mobile */
@media (max-width: 768px) {
  .hero-embed {
    display: none;
  }
}

/* ===== Footer Widgets ===== */
.footer-widgets-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-widget {
  height: 100%;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--bulma-scheme-main-bis);
  padding: var(--bulma-footer-padding);
  font-size: 0.875rem;
  line-height: 1.4;
}

.footer-widgets {
  margin-bottom: 0.5rem;
}

.footer-widgets a {
  color: #ddd;
}

.footer-widgets a:hover {
  color: #fff;
}

.footer { padding: 1rem 1.5rem 1rem !important; }


main > .section:last-child {
  padding-bottom: 1rem;
}


.recent-thumb {
    width: 100%;
    aspect-ratio: 278 / 148;
    overflow: hidden;
    border-radius: 6px;
}

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

.recent-thumb img {
    transition: transform .3s ease;
}

.recent-thumb:hover img {
    transform: scale(1.05);
}

/* BLOG CARD */
.blog-card {
  border-radius: 10px;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #eee;
  transition: all 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* TITLE */
.blog-card .title a {
  color: #222;
  transition: color 0.2s ease;
}

.blog-card:hover .title a {
  color: var(--bulma-primary);
}

/* META */
.blog-meta {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 0.5rem;
}

/* IMAGE */
.media-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.blog-card:hover img {
  transform: scale(1.05);
}

/* MINIMAL */
.blog-minimal {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.blog-minimal a {
  color: #222;
}

.blog-minimal a:hover {
  color: var(--bulma-primary);
}

.blog-date {
  font-size: 0.75rem;
  color: #999;
}

.is-normal-link {
  color: white !important;
/*  color: inherit !important; */
  text-decoration: none !important;
}

.no-decoration {
  text-decoration: none;
  color: inherit;
}

.no-decoration:hover,
.no-decoration:focus {
  text-decoration: none;
  color: inherit;
}