@charset "UTF-8";
:root { --gap: 30px; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { background: none; }

body {
  font-size: clamp(0.9rem, 1vw + 0.4rem, 1.1rem);
}

.container { width: 100%; margin: 0 auto;  }

main > section:last-of-type {
  margin-bottom: 2px !important; /* keeps sections snugly stacked */
  padding-bottom: 0;
}

.carouselSection {
  margin-top: 10px;      /* already reduced from before */
  margin-bottom: 30px;   /* reduce bottom spacing (was 60px) */
  max-width: 1400px;
}

.carouselSection h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.5em;
  line-height: 1.1;
}


.carousel-wrapper {
  position: relative;
  max-width: 1200px; /* keeps layout centered and contained */
  margin: 0 auto;
  padding: 0 5vw; /* keeps arrows off window edges */
}

.nav-button.prev,
.nav-button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

/* fine-tuned symmetrical placement */
.nav-button.prev {
  left: clamp(20px, 4vw, 60px);
}

.nav-button.next {
  right: clamp(20px, 4vw, 60px);
}



.carousel-container { overflow: hidden; width: 100%; }

.carousel-region {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  grid-column: 2;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: var(--gap);
  will-change: transform;
}

/* Accessibility-only skip link */
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip-link:focus-visible {
  clip: auto; clip-path: none;
  width: auto; height: auto;
  padding: 8px 16px; margin: 0;
  top: 10px; left: 10px;
  z-index: 100;
  background: #2c5f7c; color: #fff;
  border-radius: 4px; text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* Alternating card backgrounds + border */
.card {
  flex: 0 0 calc((100% - 2*var(--gap)) / 3);
  min-width: calc((100% - 2*var(--gap)) / 3);
  border-radius: 15px;
  padding: 24px;
  border: 2px solid #d7d7d7;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}
.card:nth-child(odd) {
  background-color: #e5f4f9;
}
.card:nth-child(even) {
  background-color: #f6f2e9;
}

/* Image styling: square corners, thick white border */
.card-image {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 14px;
  border-radius: 0; /* no rounding */
  border: 8px solid white;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.3);
}

.card h3 {
  font-size: clamp(0.95em, 1.3vw, 1.25em);
  color: #2c5f7c; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 0.6px;
}
.card-info {
  text-align: left; width: 100%; margin-bottom: 8px;
  line-height: 1.25; 
}
.card-info p {
  margin: 6px 0; color: #333;
  font-size: clamp(0.8em, 0.95vw, 0.95em);
}
.card-info strong { color: #2c5f7c; }

/* Navigation buttons with animated SVG arrows */
.nav-button {
  background: #2c5f7c;
  border: 2px solid #2c5f7c;
  color: white;
  width: 50px; height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease, background 0.3s ease, border-color 0.3s ease;
  z-index: 10;
  flex-shrink: 0;
}
.nav-button svg {
  width: 20px; height: 20px;
  fill: none; stroke: white; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s ease, stroke 0.3s ease;
}
.nav-button:hover, .nav-button:focus {
  background: #4a9ebd;
  border-color: #4a9ebd;
  outline: 3px solid #2c5f7c;
  outline-offset: 2px;
}
.nav-button.prev:hover svg {
  transform: translateX(-3px) scale(1.08);
}
.nav-button.next:hover svg {
  transform: translateX(3px) scale(1.08);
}
.nav-button:active svg {
  transform: scale(0.9);
}
.nav-button.prev { grid-column: 1; }
.nav-button.next { grid-column: 3; }
.nav-button:disabled { opacity: 0.3; cursor: not-allowed; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.live-region { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding: 10px 0;
  position: relative;
  top: auto;
  bottom: auto;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dot:hover,
.dot:focus {
  transform: scale(1.2);
  outline: 2px solid #2c5f7c;
  outline-offset: 3px;
}

.dot.active {
  background: #2c5f7c;
  width: 30px;
  border-radius: 6px;
}

@media (max-width: 1024px) {
  .card { flex: 0 0 calc((100% - var(--gap)) / 2); min-width: calc((100% - var(--gap)) / 2); }
.carouselSection h2 { font-size: 2em; }
}
@media (max-width: 768px) {
  .card { flex: 0 0 100%; min-width: 100%; }
  .carouselSection h2 { font-size: 1.6em; }
  .carousel-wrapper { gap: 10px; }
  .nav-button { width: 40px; height: 40px; }
  .nav-button svg { width: 16px; height: 16px; stroke-width: 2.5; }
}

