html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin-bottom: 60px;
  overflow-x: hidden;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ── Slider (Swiper) ── */
.pb-swiper {
    --pb-slider-nav: #ffffff;
    --pb-slider-dot: #ffffff;
}

.pb-swiper .swiper-slide {
    overflow: hidden;
    position: relative;
    height: 100%;
}

.pb-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.pb-swiper .pb-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: #fff;
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pb-swiper .pb-slide-caption h1,
.pb-swiper .pb-slide-caption h2,
.pb-swiper .pb-slide-caption h3 {
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
    margin-left: auto;
    margin-right: auto;
}

.pb-swiper .pb-slide-caption p {
    text-align: center;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
    margin-left: auto;
    margin-right: auto;
}

/* Navigation arrow color */
.pb-swiper .swiper-button-next::after,
.pb-swiper .swiper-button-prev::after {
    color: var(--pb-slider-nav);
}

/* Pagination dot color */
.pb-swiper .swiper-pagination-bullet {
    background: var(--pb-slider-dot);
    opacity: .5;
}

.pb-swiper .swiper-pagination-bullet-active {
    background: var(--pb-slider-dot);
    opacity: 1;
}

/* Carousel style presets */
.pb-carousel-swiper .swiper-button-next,
.pb-carousel-swiper .swiper-button-prev { transition: opacity .3s; }

.pb-carousel-swiper.swiper-nav-dark .swiper-button-next::after,
.pb-carousel-swiper.swiper-nav-dark .swiper-button-prev::after { color: #1e293b; }

.pb-carousel-swiper.swiper-nav-light .swiper-button-next::after,
.pb-carousel-swiper.swiper-nav-light .swiper-button-prev::after { color: #fff; }

/* Gallery: Masonry */
.pb-gallery-masonry {
    column-count: 3;
    column-gap: 12px;
}

@media (max-width: 767px) {
    .pb-gallery-masonry { column-count: 2; }
}

.pb-gallery-masonry-item {
    break-inside: avoid;
    margin-bottom: 12px;
    display: block;
}

.pb-gallery-masonry-item img { width: 100%; height: auto; display: block; border-radius: 6px; }

/* Gallery: Puzzle */
.pb-gallery-puzzle {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 8px;
}

@media (max-width: 767px) {
    .pb-gallery-puzzle { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
}

.pb-gallery-puzzle-item { overflow: hidden; border-radius: 6px; }
.pb-gallery-puzzle-item:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
.pb-gallery-puzzle-item:nth-child(7n+6) { grid-column: span 2; }
.pb-gallery-puzzle > .col-6, .pb-gallery-puzzle > [class*="col-"] { padding: 0; }
.pb-gallery-puzzle > .col-6:nth-child(7n+1), .pb-gallery-puzzle > [class*="col-"]:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
.pb-gallery-puzzle > .col-6:nth-child(7n+6), .pb-gallery-puzzle > [class*="col-"]:nth-child(7n+6) { grid-column: span 2; }
.pb-gallery-puzzle img { width: 100% !important; height: 100% !important; object-fit: cover; aspect-ratio: unset !important; }

/* Logo Band: Logo Carousel */
.pb-logo-swiper { overflow: hidden; }
.pb-logo-swiper .swiper-slide { display: flex; align-items: center; justify-content: center; }
.pb-logo-swiper .swiper-button-next::after,
.pb-logo-swiper .swiper-button-prev::after { font-size: 1rem; color: #6c757d; }

/* Logo Band: Marquee */
.pb-logo-scroll-wrap { overflow: hidden; }
.pb-logo-scroll-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: pbLogoScroll 24s linear infinite;
}

.pb-logo-scroll-track:hover { animation-play-state: paused; }
.pb-logo-scroll-item { flex-shrink: 0; }

@keyframes pbLogoScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Gallery Lightbox */
#pb-lightbox {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,.92);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
    padding: 1rem;
}

#pb-lightbox.is-open { opacity: 1; visibility: visible; }

.pb-lb-content {
    position: relative; display: flex; flex-direction: column;
    align-items: center; gap: .5rem;
    max-width: min(90vw, 1200px);
}

.pb-lb-img {
    max-width: min(90vw, 1200px); max-height: 80vh;
    object-fit: contain; border-radius: 6px;
    opacity: 0; transition: opacity .25s ease;
    box-shadow: 0 12px 60px rgba(0,0,0,.6);
    user-select: none;
}

.pb-lb-img.loaded { opacity: 1; }

.pb-lb-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pbLbSpin .7s linear infinite;
    position: absolute;
}

@keyframes pbLbSpin { to { transform: rotate(360deg); } }

.pb-lb-caption {
    color: rgba(255,255,255,.8); font-size: .9rem;
    text-align: center; max-width: 600px;
    min-height: 1.2em;
}

.pb-lb-counter {
    color: rgba(255,255,255,.4); font-size: .78rem;
    letter-spacing: .05em;
}

.pb-lb-close, .pb-lb-prev, .pb-lb-next {
    position: absolute; background: rgba(255,255,255,.12);
    border: none; color: #fff; cursor: pointer;
    border-radius: 50%; width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; line-height: 1;
    transition: background .18s, transform .18s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    -webkit-tap-highlight-color: transparent;
    z-index: 10001;
}

.pb-lb-close:hover, .pb-lb-prev:hover, .pb-lb-next:hover {
    background: rgba(255,255,255,.28);
    transform: scale(1.08);
}

.pb-lb-close { top: .75rem; right: .75rem; font-size: 1rem; width: 38px; height: 38px; }
.pb-lb-prev  { left: .75rem;  top: 50%; transform: translateY(-50%); }
.pb-lb-next  { right: .75rem; top: 50%; transform: translateY(-50%); }
.pb-lb-prev:hover  { transform: translateY(-50%) scale(1.08); }
.pb-lb-next:hover  { transform: translateY(-50%) scale(1.08); }

/* Hide nav when only 1 image */
#pb-lightbox.single .pb-lb-prev,
#pb-lightbox.single .pb-lb-next { display: none; }

/* Cursor hint */
a.pb-lb-trigger { cursor: zoom-in; }

@media (max-width: 576px) {
    .pb-lb-prev  { left: .2rem; }
    .pb-lb-next  { right: .2rem; }
    .pb-lb-img   { max-height: 68vh; }
    .pb-lb-close { top: .4rem; right: .4rem; }
}

/* Event Timeline */
.event-timeline { position: relative; padding-left: 90px; }
.event-timeline::before {
    content: ''; position: absolute; left: 72px; top: 0; bottom: 0;
    width: 2px; background: linear-gradient(to bottom, var(--bs-primary) 0%, #dee2e6 100%);
}
.event-timeline-past::before {
    background: #dee2e6;
}
.event-timeline-item {
    position: relative; margin-bottom: 1.5rem;
    display: flex; align-items: flex-start; gap: 1.25rem;
}
.event-timeline-dot {
    position: absolute; left: -22px; top: 18px;
    width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid #fff; box-shadow: 0 0 0 2px currentColor;
    z-index: 1;
}
.event-timeline-date {
    flex-shrink: 0; width: 56px; text-align: center;
    position: absolute; left: -90px; top: 4px;
}
.event-timeline-card { flex: 1; transition: transform .2s, box-shadow .2s; }
.event-timeline-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,.1) !important; }

@media (max-width: 576px) {
    .swiper {
        height: 230px !important;
    }
    .event-timeline {
        padding-left: 60px;
    }

    .event-timeline::before {
        left: 42px;
    }

    .event-timeline-date {
        left: -60px;
        width: 40px;
    }

    .event-timeline-date .fw-bold {
        font-size: 1.2rem !important;
    }

    .event-timeline-dot {
        left: -19px;
    }

    /* Hero Video: mobile overflow safety */
    .pb-hero-video video,
    .pb-hero-video > video {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}
