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

:root {
  --blue: #003d7a;
  --blue-mid: #005baa;
  --blue-light: #0073c6;
  --red: #c0392b;
  --gray-bg: #f4f6f9;
  --gray-border: #e0e4ea;
  --text: #222;
  --text-light: #555;
  --white: #fff;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: "Quicksand", sans-serif;
  color: var(--text);
  background: url("../img/bg.png") center center / cover fixed no-repeat;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* ── HEADER ── */
header {
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-wrap img {
  height: 68px;
}
.logo-text h1 {
  font-family: "Quicksand", serif;
  font-size: 17px;
  color: var(--blue);
  line-height: 1.3;
}
.logo-text p {
  font-size: 11.5px;
  color: var(--text-light);
  letter-spacing: 0.4px;
}

/* ── NAV ── */
nav {
  display: flex;
  gap: 0;
}
.nav-item {
  position: relative;
}
.nav-item > a {
  display: block;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
  border-radius: 4px;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
}
.nav-item > a:hover,
.nav-item:hover > a {
  background: var(--blue);
  color: #fff;
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-top: 3px solid var(--blue-light);
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 200;
}
.dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid #f0f2f5;
  transition:
    background 0.12s,
    color 0.12s;
}
.dropdown a:hover {
  background: var(--blue);
  color: #fff;
}
.nav-item:hover .dropdown {
  display: block;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

/* ── HERO ── */
.hero {
  color: var(--white);
  padding: 64px 80px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}
.hero-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-text h2 {
  font-family: "Quicksand", serif;
  font-size: 32px;
  line-height: 1.35;
  margin-bottom: 18px;
  color: #096ea8;
}
.hero-text p {
  font-size: 15.5px;
  line-height: 1.7;
  color: #577a91;
  max-width: 70%;
}
.hero-img img {
  border-radius: 12px;
}

/* ── ONLINE SERVICES ── */
.online-services {
  padding: 40px;
  background: white;
  margin-inline: 200px;
}
.online-services h2 {
  font-family: "Quicksand", serif;
  font-size: 22px;
  color: var(--blue);
  margin-bottom: 24px;
  text-align: center;
}
.services-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.service-card {
  background: #bfe1fb;
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  padding: 22px 30px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  min-width: 300px;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 61, 122, 0.15);
}

/* ── HOURS TABLE ── */
.hours-section {
  padding: 48px 200px;
}
.hours-section h2 {
  font-family: "Quicksand", serif;
  font-size: 22px;
  color: var(--blue);
  padding: 14px;
  background-color: transparent;
  border: white 5px solid;
  margin-bottom: 5px;
  text-align: center;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.hours-table th {
  background: transparent;
  color: #000000;
  border-top: white 5px solid;
  border-bottom: white 5px solid;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 18px;
}

.hours-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--gray-border);
  font-size: 18px;
}
.hours-table th:first-child {
  font-weight: 600;
  border-left: white 5px solid;
}

.hours-table th:last-child {
  font-weight: 600;
  border-right: white 5px solid;
}

.hours-table tr:nth-child(odd) td {
  background: var(--gray-bg);
}
.hours-table tr:hover td {
  background: #ddeeff;
}
.emergency-note {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--red);
  padding: 10px;
  font-size: 18px;

  background: white;
  border: black 2px solid;
  font-weight: 600;
  font-style: italic;
}

/* ── CONTACT STRIP ── */
.contact-strip {
  color: #096ea8;
  text-align: center;
}
.contact-strip h2 {
  font-family: "Quicksand", serif;
  font-size: 18px;
  margin-bottom: 6px;
}
.contact-strip p {
  font-size: 13.5px;
  color: #096ea8;
  margin-bottom: 20px;
}
.contacts-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.contact-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #25a6f2;
  gap: 4px;
}
.contact-item .contact-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-item span {
  font-size: 16px;
}
.contact-item a {
  font-weight: 700;
}

/* ══════════════════════════════════════
   DEPARTMENTS CAROUSEL
══════════════════════════════════════ */
.departments {
  padding: 52px 40px;
}
.departments h2 {
  font-family: "Quicksand", serif;
  font-size: 22px;
  color: var(--blue);
  margin-bottom: 30px;
  text-align: center;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
}

/* The grid slides horizontally; each "page" is 100% wide */
.dept-grid {
  display: grid;
  /* 3 cols × N rows — each page block is 100vw-equivalent via translate */
  grid-template-columns: repeat(3, calc(100% / 3));
  grid-auto-rows: auto;
  grid-auto-flow: column; /* fill columns first */
  /* We show 2 rows × 3 cols = 6 cards per page.
     We tile all 16 cards left-to-right as column strips. */
  width: calc(100% * 3); /* enough room for all pages; JS handles offset */
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/*
  Override: lay cards out as a simple wrapping row inside pages.
  We use a different approach below — page strips side-by-side.
*/

/* ── Page-strip approach ── */
.dept-grid {
  display: flex; /* override grid */
  width: 100%;
  flex-wrap: nowrap;
}

.carousel-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 4px 2px;
}

/* Individual card */
.dept-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  padding: 22px 14px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}
.dept-card:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 61, 122, 0.2);
}
.dept-card .dept-icon {
  font-size: 60px;
  margin-bottom: 10px;
}
.dept-card a {
  color: inherit;
  font-size: 11.5px;
  text-decoration: underline;
  display: block;
  margin-top: 6px;
}
.dept-card:hover a {
  color: #acd;
}

/* ── Arrow buttons ── */
.carousel-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: var(--white);
  color: var(--blue);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.15s;
  box-shadow: 0 2px 8px rgba(0, 61, 122, 0.12);
}
.carousel-btn:hover {
  background: var(--blue);
  color: #fff;
  transform: scale(1.08);
}
.carousel-btn:active {
  transform: scale(0.96);
}

/* ── Dot indicators ── */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: transparent;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
  padding: 0;
}
.carousel-dot.active {
  background: var(--blue);
  transform: scale(1.25);
}
.carousel-dot:hover {
  background: var(--blue-light);
}

/* ── HOLIDAYS ── */
.holidays {
  width: 50%;
}
.holidays h2 {
  font-family: "Quicksand", serif;
  font-size: 22px;
  color: var(--blue);
  margin-bottom: 24px;
  text-align: center;
}

.holiday-card {
  display: flex;
  border: 3px white solid;
  padding: 10px;
  width: 100%;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(12px);
}
.holiday-card .left-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.holiday-title {
  color: #052b49;
  font-weight: 600;
}

.holiday-date {
  color: #052b49;
  font-size: 13px;
}
/* ── NEWS + NOTICES ── */
.news-section {
  padding: 52px 40px;
  background: var(--gray-bg);
}
.news-section h2 {
  font-family: "Quicksand", serif;
  font-size: 22px;
  color: var(--blue);
  margin-bottom: 24px;
  text-align: center;
}
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--gray-border);
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
}
.tab-btn.active,
.tab-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.news-item {
  background: var(--white);
  border-left: 4px solid var(--blue-light);
  border-radius: 6px;
  padding: 14px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.news-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 6px;
  line-height: 1.4;
}
.news-item h4 a:hover {
  color: var(--red);
}
.news-item .meta {
  font-size: 12px;
  color: var(--text-light);
}
.news-item p {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
  line-height: 1.5;
}

/* ── EXECUTIVES ── */
.executives {
  padding: 52px 40px;
  background: var(--white);
}
.executives h2 {
  font-family: "Quicksand", serif;
  font-size: 22px;
  color: var(--blue);
  margin-bottom: 30px;
  text-align: center;
}
.exec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 170px);
  gap: 22px;
  justify-content: center;
}
.exec-card {
  text-align: center;
  background: var(--gray-bg);
  border-radius: 12px;
  padding: 24px 16px;
  border: 1px solid var(--gray-border);
  transition: box-shadow 0.2s;
}
.exec-card:hover {
  box-shadow: 0 8px 24px rgba(0, 61, 122, 0.12);
}
.exec-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 14px;
  object-fit: cover;
  border: 3px solid var(--blue-light);
  background: #c5d8ef;
}
.exec-card h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}
.exec-card p {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
}
.exec-card a {
  font-size: 11.5px;
  color: var(--blue-light);
}

/* ── FOOTER ── */
.links-footer {
  background: #052b49;
  color: #c8dff5;
  padding: 40px;
}
.links-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}
.links-col h3 {
  font-family: "Quicksand", serif;
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.links-col a {
  display: block;
  font-size: 12.5px;
  color: #98c0e8;
  margin-bottom: 7px;
  transition: color 0.15s;
}
.links-col a:hover {
  color: #fff;
}
.footer-logo img {
  height: 60px;
  margin-bottom: 14px;
  /* filter: brightness(10);
  opacity: 0.85; */
}
.footer-logo p {
  font-size: 12.5px;
  line-height: 1.6;
  color: #98c0e8;
}
.footer-bottom {
  background: #001f44;
  text-align: center;
  color: #fff;
  font-size: 14px;
  padding: 14px;
}

.holiday-health {
  padding-top: 48px;

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-inline: 200px;
}

.strip {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
  background: #052b49;
  color: white;
  padding-block: 20px;
}
.strip-content:nth-child(2n) {
  border-right: 2px white solid;
  border-left: 2px white solid;
}
.strip-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.strip-head {
  font-family: "Quicksand", serif;
  font-size: 68px;
}

@media (max-width: 900px) {
  .strip {
    flex-direction: column;
  }
  .strip-content:nth-child(2n) {
    border-top: 2px white solid;
    border-bottom: 2px white solid;
    border-left: none;
    border-right: none;
  }
  .holiday-health {
    flex-direction: column;
    padding-inline: 20px;
    gap: 24px;
  }
  header {
    padding: 12px 20px;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid var(--blue);
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }
  nav.open {
    display: flex;
  }
  .nav-item > a {
    border-radius: 0;
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-border);
  }
  .dropdown {
    position: static;
    border: none;
    border-top: 1px solid #e8f0fb;
    box-shadow: none;
  }
  .hamburger {
    display: flex;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 36px 20px;
    justify-content: center;
    text-align: center;
  }
  .hero-img {
    display: none;
  }
  .hero-text h2 {
    font-size: 24px;
  }
  .hero-text p {
    text-align: center;
    max-width: 100%;
  }
  .hours-section,
  .departments,
  .holidays,
  .news-section,
  .executives,
  .links-footer {
    padding: 36px 20px;
  }
  .links-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .online-services,
  .contact-strip {
    padding: 32px 20px;
    margin-inline: 10px;
  }
  .carousel-page {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .links-footer-inner {
    grid-template-columns: 1fr;
  }
  .exec-grid {
    grid-template-columns: 1fr 1fr;
  }
  .carousel-page {
    grid-template-columns: 1fr 1fr;
  }
  .carousel-btn {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
}
