/* =========================================================
   BCRLS GLOBAL DESIGN SYSTEM / READABILITY NORMALIZATION
   Loaded last so page-specific styles can remain intact while
   typography, spacing, controls and responsive sizing stay consistent.
   ========================================================= */

:root {
  --ds-font: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ds-text: #243447;
  --ds-muted: #5f6f7f;
  --ds-heading: #173b57;
  --ds-primary: #0b6e8e;
  --ds-primary-dark: #07536b;
  --ds-border: #dfe6ec;
  --ds-bg-soft: #f6f9fb;
  --ds-container: 1280px;
  --ds-radius: 12px;
  --ds-section-y: clamp(56px, 6vw, 96px);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--ds-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ds-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Prevent accidental horizontal overflow from oversized components. */
img, svg, video, canvas { max-width: 100%; }
img { height: auto; }

/* Readable global text. */
p, li, dd, blockquote { font-size: 1rem; line-height: 1.7; }
small, .small, .meta, .metadata { font-size: .875rem; line-height: 1.5; }

h1, h2, h3, h4, h5, h6 {
  color: var(--ds-heading);
  line-height: 1.2;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); }
h4 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Common content width without forcing full-width sections. */
.container,
.section-container,
.content-container,
.page-container,
main > .container {
  width: min(100% - 40px, var(--ds-container));
  margin-inline: auto;
}

/* Consistent section rhythm. */
section:not(.hero):not(.banner):not(.site-header):not(.site-footer) {
  scroll-margin-top: 90px;
}

/* Navigation and brand: readable but compact. */
.site-header .nav-link,
.site-header nav a,
.navbar a,
.nav-menu a {
  font-size: .95rem;
  line-height: 1.3;
}
.site-header .brand-text strong { font-size: 1.3rem; line-height: 1.15; }
.site-header .brand-text span { font-size: .75rem; line-height: 1.25; }

/* Buttons and interactive controls. */
button,
.btn,
.button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  min-height: 46px;
  padding: .7rem 1.15rem;
  font: inherit;
  font-size: .95rem;
  line-height: 1.2;
  border-radius: 8px;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  min-height: 46px;
  padding: .65rem .8rem;
  border-radius: 7px;
}
textarea { min-height: 120px; }
label { font-size: .95rem; line-height: 1.45; }

/* Cards/content blocks: preserve custom colors, normalize breathing room. */
.card,
[class*="-card"],
[class$="_card"],
.panel,
.info-box {
  line-height: 1.6;
}

/* Keep dense data readable. */
table { font-size: .95rem; }
th { font-size: .9rem; line-height: 1.4; }
td { font-size: .95rem; line-height: 1.55; }

/* Links should not become tiny because of inherited component rules. */
a { line-height: 1.5; }

/* Avoid tiny text except for deliberate utility/icon elements. */
body :where(p, li, td, th, label, input, select, textarea, button, a):not(.fa):not(.fas):not(.far):not(.fab) {
  letter-spacing: normal;
}

/* Desktop spacing normalization. */
@media (min-width: 1025px) {
  .container,
  .section-container,
  .content-container,
  .page-container,
  main > .container {
    width: min(100% - 64px, var(--ds-container));
  }

  section.section,
  .content-section,
  .page-section {
    padding-top: clamp(56px, 5vw, 88px);
    padding-bottom: clamp(56px, 5vw, 88px);
  }
}

/* Tablet. */
@media (max-width: 1024px) {
  html { font-size: 16px; }
  body { font-size: 16px; }
  .container,
  .section-container,
  .content-container,
  .page-container,
  main > .container {
    width: min(100% - 32px, 960px);
  }
  h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
  h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
  p, li, dd, blockquote { font-size: 1rem; }
}

/* Mobile. */
@media (max-width: 600px) {
  html { font-size: 16px; }
  body { font-size: 15.5px; line-height: 1.65; }
  .container,
  .section-container,
  .content-container,
  .page-container,
  main > .container {
    width: min(100% - 28px, 560px);
  }
  h1 { font-size: clamp(1.9rem, 9vw, 2.35rem); }
  h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
  h3 { font-size: clamp(1.3rem, 6vw, 1.65rem); }
  p, li, dd, blockquote { font-size: .98rem; line-height: 1.7; }
  small, .small, .meta, .metadata { font-size: .82rem; }
  button, .btn, .button, input[type="button"], input[type="submit"], input[type="reset"] {
    min-height: 46px;
    padding: .68rem 1rem;
  }
  input:not([type="checkbox"]):not([type="radio"]), select, textarea {
    min-height: 46px;
    font-size: 16px; /* prevents mobile browser zoom */
  }
}

/* Very small screens. */
@media (max-width: 380px) {
  .container,
  .section-container,
  .content-container,
  .page-container,
  main > .container { width: calc(100% - 22px); }
  body { font-size: 15px; }
}

/* =========================================================
   FINAL RESPONSIVE / HEADER / HOMEPAGE POLISH
   ========================================================= */

html, body { overflow-x: hidden; }

.site-header { width: 100%; }
.site-header .header-inner {
  width: min(1600px, calc(100% - 48px));
  gap: 18px;
}
.site-header .brand { min-width: 0; }
.site-header .brand-text { min-width: 0; }
.site-header .brand-text span { overflow: hidden; text-overflow: ellipsis; }
.site-header .main-nav {
  flex: 1 1 auto;
  min-width: 0;
  gap: 0;
  justify-content: flex-end;
}
.site-header .nav-link,
.site-header .nav-dropdown-toggle {
  padding: 9px 8px;
  font-size: 13.5px;
}

/* Keep every desktop navigation item visible on wide PC screens. */
@media (min-width: 1501px) {
  .site-header .header-inner { width: min(1660px, calc(100% - 44px)); }
  .site-header .nav-link,
  .site-header .nav-dropdown-toggle { font-size: 13.5px; padding-inline: 7px; }
}

/* Medium PC / laptop: switch to the same reliable menu used on tablets. */
@media (max-width: 1500px) and (min-width: 769px) {
  body .site-header { height: 72px !important; }
  body .site-header .header-inner { width: calc(100% - 36px) !important; }
  body .site-header .main-nav {
    top: 72px !important;
    height: calc(100vh - 88px) !important;
    max-height: calc(100vh - 88px) !important;
  }
  body .site-header .menu-toggle { display: flex !important; }
  body .site-header .main-nav {
    position: fixed !important;
    right: 16px !important;
    left: auto !important;
    width: min(390px, 90vw) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 14px !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid rgba(20,90,65,.12) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(20,60,45,.18) !important;
    overflow-y: auto !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(110%) !important;
    z-index: 3500 !important;
  }
  body .site-header .main-nav.active,
  body .site-header .main-nav.mobile-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
  }
  body .site-header .main-nav .nav-link,
  body .site-header .main-nav .nav-dropdown-toggle {
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    justify-content: space-between !important;
  }
  body .site-header .main-nav .dropdown-menu { position: static !important; width: 100% !important; min-width: 0 !important; box-shadow: none !important; border: 0 !important; border-left: 2px solid rgba(24,123,89,.12) !important; border-radius: 0 !important; margin: 0 0 5px 8px !important; }
  body .site-header .main-nav .dropdown-menu a { font-size: 14px !important; min-height: 42px !important; }
}

/* Homepage hero: stable two-column desktop layout. */
.hero-container {
  width: min(1280px, calc(100% - 56px));
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .92fr);
  gap: clamp(40px, 5vw, 78px);
}
.hero-content { padding-inline: 0 !important; }
.hero h1 { font-size: clamp(42px, 4.1vw, 60px) !important; line-height: 1.06 !important; letter-spacing: -1.5px !important; }
.hero-content > p { font-size: 16px; max-width: 620px; }
.hero-image-card { width: 100%; max-width: 600px; height: auto; aspect-ratio: 1 / 1; }

/* Tablet */
@media (max-width: 1100px) {
  .hero { min-height: auto; padding-top: 72px; }
  .hero-container {
    width: min(920px, calc(100% - 40px));
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 55px;
    padding-bottom: 65px;
  }
  .hero-content { max-width: 760px !important; margin-inline: auto; }
  .hero h1 { font-size: clamp(40px, 6vw, 54px) !important; }
  .hero-visual { max-width: 700px; margin-inline: auto; }
  .hero-image-card { max-width: 700px; aspect-ratio: 16 / 11; }
}

/* Phone */
@media (max-width: 768px) {
  .site-header { height: 68px !important; }
  .site-header .header-inner { width: calc(100% - 24px) !important; }
  .brand { gap: 9px; }
  .brand-logo { width: 44px; height: 44px; border-radius: 12px; }
  .brand-logo img { width: 36px; height: 36px; }
  .brand-text strong { font-size: 18px !important; }
  .brand-text span { font-size: 8.5px !important; max-width: 210px; }
  .hero { padding-top: 68px; }
  .hero-container { width: calc(100% - 28px); padding-top: 38px; padding-bottom: 48px; gap: 34px; }
  .hero-content { padding: 0 !important; }
  .eyebrow { font-size: 10px; padding: 7px 11px; }
  .hero h1 { font-size: clamp(34px, 10vw, 46px) !important; line-height: 1.08 !important; letter-spacing: -1px !important; margin-top: 16px !important; }
  .hero-content > p { font-size: 15px !important; line-height: 1.7 !important; margin-top: 20px !important; }
  .hero-actions { margin-top: 24px; gap: 10px; }
  .hero-actions .btn { flex: 1 1 180px; min-height: 48px; }
  .hero-stats { margin-top: 34px; gap: 14px 0; }
  .hero-stat { min-width: 33%; padding-right: 14px; margin-right: 14px; }
  .hero-stat strong { font-size: 12px; }
  .hero-stat span { font-size: 10px; }
  .hero-image-card { aspect-ratio: 4 / 3; border-radius: 24px; }
  .hero-image-overlay { left: 18px; right: 18px; bottom: 18px; }
  .hero-image-title strong { font-size: 27px; }

  .video-wrapper { grid-template-columns: 1fr !important; gap: 18px !important; padding: 12px !important; border-radius: 20px !important; }
  .video-frame { width: 100% !important; aspect-ratio: 16 / 9 !important; min-height: 0 !important; }
  .video-frame iframe { display: block !important; visibility: visible !important; opacity: 1 !important; width: 100% !important; height: 100% !important; min-height: 200px !important; }
  .video-info { padding: 14px 8px 8px !important; }
  .video-info h3 { font-size: 25px !important; }
}

@media (max-width: 420px) {
  .brand-text span { max-width: 165px; }
  .menu-toggle { width: 42px !important; height: 42px !important; }
  .hero-container { width: calc(100% - 22px); }
  .hero h1 { font-size: 34px !important; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-stat { min-width: 0; margin-right: 0; padding-right: 10px; }
  .hero-stat:nth-child(2) { border-right: 0; }
}


/* =========================================================
   FINAL SITE HEADER / NAVIGATION STABILITY
   ========================================================= */
.site-header { min-width: 0; }
.site-header .header-inner {
  width: min(1720px, calc(100% - 48px));
  min-width: 0;
  gap: 26px;
}
.site-header .brand {
  flex: 0 1 390px;
  min-width: 310px;
  max-width: 410px;
}
.site-header .brand-text { min-width: 0; }
.site-header .brand-text span {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.site-header .main-nav {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
  justify-content: flex-end;
  gap: 1px;
}
.site-header .nav-link,
.site-header .nav-dropdown-toggle {
  padding: 9px 7px;
  font-size: 13.25px;
}
.site-header .nav-dropdown-toggle.active { color: var(--primary); }
.site-header .menu-toggle { flex: 0 0 auto; }

@media (max-width: 1420px) and (min-width: 901px) {
  .site-header .header-inner { width: calc(100% - 32px); gap: 16px; }
  .site-header .brand { flex-basis: 340px; min-width: 285px; }
  .site-header .brand-text span { font-size: 9px; }
  .site-header .nav-link,
  .site-header .nav-dropdown-toggle { font-size: 12.5px; padding-inline: 5px; }
}

/* Switch before the navigation becomes cramped. */
@media (max-width: 1200px) and (min-width: 769px) {
  body .site-header { height: 72px !important; }
  body .site-header .header-inner { width: calc(100% - 28px) !important; gap: 12px; }
  body .site-header .brand { flex: 1 1 auto; min-width: 0; max-width: none; }
  body .site-header .main-nav {
    position: fixed !important;
    top: 80px !important;
    right: 14px !important;
    left: auto !important;
    width: min(390px, calc(100vw - 28px)) !important;
    max-height: calc(100vh - 96px) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 14px !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid rgba(20,90,65,.12) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(20,60,45,.18) !important;
    overflow-y: auto !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(110%) !important;
    z-index: 3500 !important;
  }
  body .site-header .main-nav.mobile-open,
  body .site-header .main-nav.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
  }
  body .site-header .menu-toggle { display: flex !important; }
  body .site-header .main-nav .nav-link,
  body .site-header .main-nav .nav-dropdown-toggle {
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    justify-content: space-between !important;
  }
  body .site-header .main-nav .dropdown-menu {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 5px 8px !important;
    box-shadow: none !important;
    border: 0 !important;
    border-left: 2px solid rgba(24,123,89,.12) !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}

@media (max-width: 600px) {
  .site-header .header-inner { width: calc(100% - 18px); gap: 8px; }
  .site-header .brand { min-width: 0; }
  .site-header .brand-text span { max-width: 190px; white-space: nowrap; font-size: 8px !important; }
}

/* =========================================================
   EVENT ARCHIVE / HOME EVENT IMAGES
   ========================================================= */
.home-event-archive-grid { align-items: stretch; }
.home-event-archive-grid .gallery-item {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  display: block;
  background: #eef4f1;
  border-radius: 18px;
}
.home-event-archive-grid .gallery-item img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform .35s ease;
}
.home-event-archive-grid .gallery-item:hover img { transform: scale(1.04); }
.home-event-archive-grid .gallery-item-label {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(8,42,32,.78);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.archive-sync-note { margin-top: 16px; font-size: 13px; color: #71817c; }

@media (max-width: 768px) {
  .home-event-archive-grid { grid-template-columns: 1fr 1fr !important; }
  .home-event-archive-grid .gallery-item,
  .home-event-archive-grid .gallery-item img { height: 190px; min-height: 190px; }
}
@media (max-width: 480px) {
  .home-event-archive-grid { grid-template-columns: 1fr !important; }
}

/* FINAL HEADER LOGO FIX */
.site-header .brand-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
}
.site-header .brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 768px) {
  .site-header .brand-logo { width: 44px; height: 44px; flex-basis: 44px; }
  .site-header .brand-logo img { width: 100%; height: 100%; }
}


/* FINAL HEADER ALIGNMENT — keep brand on one horizontal header row */
.site-header .header-inner {
  min-height: 72px;
  align-items: center !important;
}
.site-header .brand {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  flex: 0 0 335px;
  width: 335px;
  min-width: 335px;
  max-width: 335px;
  height: 58px;
}
.site-header .brand-logo {
  width: 50px; height: 50px; flex: 0 0 50px;
}
.site-header .brand-logo img { width: 44px; height: 44px; }
.site-header .brand-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  min-width: 0;
  line-height: 1 !important;
}
.site-header .brand-text strong {
  display: block;
  margin: 0 !important;
  font-size: 21px !important;
  line-height: 1.05 !important;
  white-space: nowrap;
}
.site-header .brand-text span {
  display: block;
  margin: 4px 0 0 !important;
  font-size: 9px !important;
  line-height: 1.15 !important;
  letter-spacing: .55px;
  white-space: nowrap !important;
}
.site-header .main-nav {
  align-items: center !important;
}
.site-header .nav-link,
.site-header .nav-dropdown-toggle {
  font-size: 14px !important;
  line-height: 1.2 !important;
  padding: 8px 7px !important;
  white-space: nowrap;
}

@media (max-width: 1200px) and (min-width: 769px) {
  .site-header .brand {
    flex: 1 1 auto; width: auto; min-width: 0; max-width: none;
  }
}
@media (max-width: 768px) {
  .site-header .brand {
    width: auto; min-width: 0; max-width: none; height: 54px;
  }
  .site-header .brand-logo { width: 44px; height: 44px; flex-basis: 44px; }
  .site-header .brand-logo img { width: 39px; height: 39px; }
  .site-header .brand-text strong { font-size: 18px !important; }
  .site-header .brand-text span { font-size: 8px !important; max-width: 230px; }
}

/* Homepage event archive — preserve complete poster images */
.home-event-archive-grid .gallery-item img { object-fit: contain !important; object-position: center; background: #eef3f1; }

/* Event poster display: show complete poster without cropping */
.events-section .event-card-image, .event-modal-image-wrap { background: #f7f9f8; }
.events-section .event-card-image img { width:100%; height:100%; object-fit:contain; object-position:center; background:#fff; }
.event-modal-image-wrap img, #eventModalImage { width:100%; height:100%; object-fit:contain !important; object-position:center; background:#fff; }
.home-event-archive-grid .gallery-item { background:#fff; overflow:hidden; }
.home-event-archive-grid .gallery-item img { width:100%; height:100%; object-fit:contain !important; object-position:center; background:#fff; display:block; }


/* =========================================================
   HOMEPAGE EVENT ARCHIVE — PROFESSIONAL SINGLE-POSTER CAROUSEL
========================================================= */
.home-event-archive-slider {
  position: relative;
  width: min(100%, 980px);
  margin: 30px auto 0;
  padding: 0 52px 44px;
}

.home-event-viewport {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(23, 52, 58, .10);
  touch-action: pan-y;
}

.home-event-track {
  display: flex;
  width: 100%;
  transform: translate3d(-100%, 0, 0);
  will-change: transform;
}

.home-event-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 500px;
  display: block;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
}

.home-event-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(7, 28, 25, .30), transparent 34%);
}

.home-event-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.home-event-slide .gallery-item-label {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 22px;
  padding: 14px 18px;
  border-radius: 11px;
  background: rgba(23, 52, 58, .90);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
}

.home-event-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(23, 72, 58, .10);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .96);
  color: #17483a;
  box-shadow: 0 10px 28px rgba(23, 52, 58, .16);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.home-event-arrow:hover {
  transform: translateY(-50%) scale(1.08);
  background: #f2f7f4;
  box-shadow: 0 13px 32px rgba(23, 52, 58, .20);
}

.home-event-arrow:active {
  transform: translateY(-50%) scale(.96);
}

.home-event-prev { left: 0; }
.home-event-next { right: 0; }

.home-event-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.home-event-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #b7c8c1;
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.home-event-dot.active {
  width: 25px;
  background: #17483a;
}

@media (max-width: 900px) {
  .home-event-slide { height: 430px; }
}

@media (max-width: 768px) {
  .home-event-archive-slider { padding: 0 38px 40px; }
  .home-event-slide { height: 350px; }
  .home-event-slide .gallery-item-label {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 14px;
    padding: 11px 13px;
  }
  .home-event-arrow { width: 36px; height: 36px; font-size: 12px; }
}

@media (max-width: 480px) {
  .home-event-archive-slider { padding: 0 30px 36px; margin-top: 20px; }
  .home-event-slide { height: 290px; }
  .home-event-arrow { width: 31px; height: 31px; font-size: 11px; }
  .home-event-dot { width: 6px; height: 6px; }
  .home-event-dot.active { width: 18px; }
}


/* Homepage event carousel: no arrows or dot indicators */
.home-event-arrow,
.home-event-dots,
.home-event-dot {
  display: none !important;
}

/* =========================================================
   HOMEPAGE — UPCOMING + EVENT ARCHIVE ALIGNMENT
========================================================= */
.homepage .events-section .event-grid,
.events-section .event-grid {
  width: min(100%, 980px);
  margin: 0 auto;
}

.events-section .event-card {
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 380px;
  align-items: stretch;
}

.events-section .event-card .home-upcoming-image {
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f9f8;
  padding: 22px;
}

.events-section .event-card .home-upcoming-image img {
  width: 100%;
  height: 100%;
  max-height: 336px;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.events-section .event-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 48px;
  min-width: 0;
}

.events-section .event-content .event-type {
  margin-bottom: 10px;
  font-size: 12px;
}

.events-section .event-content h3 {
  margin: 0;
  font-size: clamp(25px, 2.3vw, 34px);
  line-height: 1.18;
  max-width: 620px;
}

.events-section .event-content p {
  margin: 18px 0 0;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.75;
}

.events-section .event-content .card-link {
  margin-top: 24px;
  align-self: flex-start;
  font-size: 13px;
}

/* Keep the archive carousel visually aligned with the page container. */
.gallery-section .section-header-row {
  width: 100%;
  align-items: flex-end;
}

.gallery-section .home-event-archive-slider {
  width: min(100%, 900px);
  margin: 34px auto 0;
  padding: 0 0 0;
}

.gallery-section .home-event-viewport {
  width: 100%;
  height: 500px;
  display: flex;
  align-items: stretch;
}

.gallery-section .home-event-slide {
  height: 500px;
}

@media (max-width: 900px) {
  .events-section .event-card {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .events-section .event-card .home-upcoming-image,
  .gallery-section .home-event-viewport,
  .gallery-section .home-event-slide {
    min-height: 430px;
    height: 430px;
  }

  .events-section .event-content {
    padding: 32px 30px;
  }
}

@media (max-width: 700px) {
  .events-section .event-card {
    grid-template-columns: 1fr;
  }

  .events-section .event-card .home-upcoming-image {
    height: 330px;
    min-height: 330px;
    padding: 18px;
  }

  .events-section .event-card .home-upcoming-image img {
    max-height: 294px;
  }

  .events-section .event-content {
    padding: 28px 24px 30px;
  }

  .events-section .event-content h3 {
    font-size: 27px;
  }

  .events-section .event-content p {
    font-size: 16px;
  }

  .gallery-section .home-event-archive-slider {
    width: 100%;
    margin-top: 26px;
  }

  .gallery-section .home-event-viewport,
  .gallery-section .home-event-slide {
    height: 390px;
    min-height: 390px;
  }
}

@media (max-width: 480px) {
  .events-section .event-card .home-upcoming-image {
    height: 290px;
    min-height: 290px;
  }

  .events-section .event-card .home-upcoming-image img {
    max-height: 254px;
  }

  .events-section .event-content {
    padding: 24px 20px 28px;
  }

  .events-section .event-content h3 {
    font-size: 24px;
  }

  .gallery-section .home-event-viewport,
  .gallery-section .home-event-slide {
    height: 330px;
    min-height: 330px;
  }
}


/* =========================================================
   FINAL HOMEPAGE — UPCOMING EVENTS + EVENT ARCHIVE POLISH
========================================================= */
@media (min-width: 901px) {
  body:has(#newsletter) .events-preview > .container,
  body:has(#newsletter) .gallery-section > .container {
    width: min(100% - 80px, 1280px);
    margin-inline: auto;
  }

  body:has(#newsletter) .events-preview .section-header-row,
  body:has(#newsletter) .gallery-section .section-header-row {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 38px;
  }

  body:has(#newsletter) .events-preview .event-grid {
    width: min(100%, 1000px);
    margin: 0 auto;
    grid-template-columns: 1fr;
  }

  body:has(#newsletter) .events-preview .event-card {
    width: 100%;
    min-height: 390px;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: stretch;
  }

  body:has(#newsletter) .events-preview .home-upcoming-image {
    min-height: 390px;
    height: 100%;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body:has(#newsletter) .events-preview .home-upcoming-image img {
    width: 100%;
    height: 100%;
    max-height: 342px;
    object-fit: contain;
    object-position: center;
  }

  body:has(#newsletter) .events-preview .event-content {
    padding: 42px 52px;
    justify-content: center;
  }

  body:has(#newsletter) .events-preview .event-content h3 {
    max-width: 700px;
    font-size: clamp(28px, 2.2vw, 36px);
    line-height: 1.2;
  }

  body:has(#newsletter) .events-preview .event-content p {
    max-width: 680px;
    margin-top: 18px;
    line-height: 1.75;
  }

  body:has(#newsletter) .gallery-section .home-event-archive-slider {
    width: min(100%, 1000px);
    margin: 0 auto;
  }

  body:has(#newsletter) .gallery-section .home-event-viewport,
  body:has(#newsletter) .gallery-section .home-event-slide {
    height: 520px;
  }
}

@media (max-width: 900px) {
  body:has(#newsletter) .events-preview .section-header-row,
  body:has(#newsletter) .gallery-section .section-header-row {
    margin-bottom: 28px;
  }

  body:has(#newsletter) .events-preview .event-grid {
    width: 100%;
    margin: 0 auto;
  }

  body:has(#newsletter) .events-preview .event-card {
    width: 100%;
  }
}

@media (max-width: 700px) {
  body:has(#newsletter) .events-preview > .container,
  body:has(#newsletter) .gallery-section > .container {
    width: calc(100% - 32px);
  }

  body:has(#newsletter) .events-preview .section-header-row,
  body:has(#newsletter) .gallery-section .section-header-row {
    align-items: flex-start;
    gap: 14px;
  }

  body:has(#newsletter) .events-preview .event-card {
    grid-template-columns: 1fr;
  }

  body:has(#newsletter) .events-preview .home-upcoming-image {
    min-height: 320px;
    height: 320px;
  }

  body:has(#newsletter) .events-preview .event-content {
    padding: 28px 24px 32px;
  }

  body:has(#newsletter) .events-preview .event-content h3 {
    font-size: 27px;
  }
}

@media (max-width: 480px) {
  body:has(#newsletter) .events-preview .home-upcoming-image {
    min-height: 280px;
    height: 280px;
  }

  body:has(#newsletter) .events-preview .event-content {
    padding: 24px 20px 28px;
  }

  body:has(#newsletter) .events-preview .event-content h3 {
    font-size: 24px;
  }
}
