.page-template-government-template {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(221, 197, 178, 0.4) 100.1%
  );
}

.page-template-government-template::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url("/wp-content/uploads/2026/07/Website_Pattern_Single_Repeat_3-1.webp");
  background-size: inherit;
  background-repeat: repeat-y;
  background-position: right;
  pointer-events: none;
  z-index: -1;
}

.page-template-government-template .department-banner {
  min-height: 75vh;
  padding: calc(var(--header-height, 140px) + 48px) 8vw 160px;
  margin-bottom: 3rem;
}

.tosa-component-wrapper .dept-hero-overlap-section {
  margin-top: -120px;
  grid-column: 1 / -1;
  grid-row: 1;
}

.tosa-component-sidebar {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: start;
  position: sticky;
  top: 180px;
  z-index: 7;
  margin-bottom: 50px;
}

.tosa-component-wrapper,
.dept-hero-overlap-card .dept-wrapper-card{
  display: grid;
  grid-template-columns: 1fr 405px;
  column-gap: 160px;
  grid-template-rows: auto 1fr;
}

/* Card Section  */

.page-template-government-template .faqs_container {
  width: 66%;
}

.page-template-government-template .dept-contact-card {
  position: absolute;
  right: 0;
}

.government-content-image__heading {
  font-size: var(--h5-size);
  color: var(--color-dark-blue);
  font-family: var(--font-family-tiktok);
}

.dept-content-image__text h6,
.dept-content-image__text h5,
.dept-content-image__text h4 {
  font-size: 20px;
  text-transform: uppercase;
  font-weight: var(--fw-regular);
  color: var(--color-dark-blue);
  margin-top: 20px;
}

.dept-content-image__text ul {
  margin: 0;
}

.dept-content-image__text a {
  color: var(--color-black);
}

iframe {
  border: solid 1px var(--color-light-blue);
  border-radius: 12px;
}

iframe html body #top-nav nav.navbar,
iframe html body #top-nav form {
  background-color: var(--color-light-blue) !important;
}

.page-template-government-template .dept-contact-card a {
  color: var(--color-off-white);
  font-size: var(--p-size);
  /* text-decoration: underline; */
  display: block;
  margin-bottom: 15px;
  font-weight: var(--fw-semibold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  line-height: 1.8;
  transition: 0.2s all ease-in-out;
}

.page-template-government-template .dept-contact-card a:hover {
  text-decoration-thickness: 0px;
  text-decoration-color: transparent;
}

.image-option {
  background-color: #f6ede5;
  padding: 47px 57px;
  margin-top: 50px;
  border-radius: 12px;
}

.image-option h6 {
  color: rgba(0, 0, 0, 0.34);
  text-align: center;
  font-family: var(--font-family-tiktok);
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.page-template-government-template .dept-contact-card {
  margin-top: -100px;
}

.component-width {
  /* width: 60%; */
  border-bottom: solid 2px var(--color-light-blue);
}

.government-content:last-of-type .component-width,
.tosa-table-layout:last-of-type .component-width {
  border-bottom: 0;
}

.government-content,
.tosa-margin {
  margin-bottom: 3rem;
}

/* Table Component  */

.acf-department-table ul {
  margin: 0;
}

/* Table Year Component  */

.tosa-table-layout {
  z-index: 2;
}

.download-pdf-link {
  text-decoration: none !important;
  padding: 3px 9px;
  display: block;
  text-wrap: nowrap;
}

.download-pdf-link:hover {
  transform: none;
}

.tosa-table-controls.global-form {
  display: grid;
  gap: 20px;
  width: 100%;
  grid-template-columns: 2fr 1fr 1fr auto;
  align-items: end;
  padding: 20px;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0px 0px 6px -5px #0000006b;
}

.tosa-table-controls.global-form input,
.tosa-table-controls.global-form select,
.tosa-table-controls.global-form textarea {
  padding: 7px 10px;
}

.tosa-table-controls.global-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 25px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231c3866' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  background-size: 15px;
  background-color: var(--color-white);
}

.tosa-table__main th:nth-child(1),
.tosa-table__main td:nth-child(1) {
  width: 60%; /* adjust as needed, e.g. 40%, 300px, etc. */
}
.tosa-table__main td:nth-child(2) {
  text-wrap: nowrap;
}

.tosa-table-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
}

.tosa-table-pagination button {
  padding: 5px 15px;
  border: 1px solid var(--color-dark-blue, #1e3a8a);
  border-radius: 6px;
  background: #fff;
  color: var(--color-dark-blue, #1e3a8a);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.tosa-table-pagination button:hover:not(:disabled) {
  background-color: var(--color-dark-blue, #1e3a8a);
  color: var(--color-white);
}

.tosa-table-pagination button:disabled {
  color: #b0b7c3;
  border-color: #d0d5dd;
  cursor: not-allowed;
}

.tosa-table-pagination button:focus-visible {
  outline: 3px solid var(--color-dark-blue, #005fcc);
  outline-offset: 2px;
}

.tosa-pagination-status {
  font-size: var(--p-size);
  color: var(--color-dark-blue);
}

/* ════════════════════════════════════════════════════════════
   ACCORDION 1 — DEPARTMENT MENU
═══════════════════════════════════════════════════════════════ */

/* Accordion wrapper */
.dept-sidebar-accordion {
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-family-tiktok);
  background-color: var(--color-burgendy);
  padding: 48px 50px;
  right: 60px;
  position: relative;
}

/* Accordion item — separator between panels */
.dept-sidebar-accordion .accordion-item {
  border: none;
  background-color: transparent;
}

.dept-sidebar-accordion .accordion-item:first-child .accordion-body {
  padding: 0;
}

.dept-sidebar-accordion .accordion-item:first-child {
  border-top: none;
}

/* Accordion button (header) */
.dept-sidebar-accordion .accordion-button {
  background-color: transparent;
  font-family: var(--font-family-tiktok);
  color: var(--color-off-white);
  font-size: var(--h5-size);
  margin: 0 0 16px 0;
  font-weight: var(--fw-bold);
  border-radius: 0 !important;
  box-shadow: none;
  gap: 10px;
  justify-content: center;
  padding: 0;
  text-align: center;
}

.dept-sidebar-accordion .accordion-button::after {
  filter: brightness(0) invert(1);
  margin-left: inherit;
}

.dept-sidebar-accordion .accordion-button:not(.collapsed) {
  background-color: transparent;
  box-shadow: none;
}

/* Accordion body */
.dept-sidebar-accordion .accordion-body {
  padding: 0px 30px 40px;
  background-color: var(--color-burgendy);
  /* text-align: center; */
}

/* Parent menu items */
.dept-sidebar-menu {
  margin: 0;
  padding: 0;
}

.dept-sidebar-menu__item {
  /* border-bottom: 1px solid var(--color-tan); */
  margin-bottom: 7px;
}

.dept-sidebar-menu__item:last-child {
  border-bottom: none;
}

.dept-sidebar-menu__item > a {
  display: block;
  padding: 12px 18px;
  color: var(--color-off-white);
  font-size: var(--p-size);
  font-weight: var(--fw-regular);
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    padding-left 0.18s ease;
  border-radius: 6px;
}

.dept-sidebar-menu__item > a:hover,
.dept-sidebar-menu__item > a:focus {
  background-color: var(--color-off-white);
  color: var(--color-dark-blue);
  padding-left: 24px;
  text-decoration: none;
}

/* Active / current page */
.dept-sidebar-menu__item > a.current-menu-item,
.dept-sidebar-menu__item > a[aria-current="page"],
.dept-sidebar-menu__child-item > a[aria-current="page"] {
  background-color: var(--color-tan);
  color: var(--color-dark-blue);
  font-weight: var(--fw-semibold);
}

.dept-sidebar-menu__item:has(> .dept-sidebar-menu__children)
  > a.current-menu-item,
.dept-sidebar-menu__item:has(> .dept-sidebar-menu__children)
  > a[aria-current="page"] {
  border-radius: 6px 6px 0px 0px;
}

/* Highlight the parent link when a child page is currently active */
.dept-sidebar-menu__item:has(
    > .dept-sidebar-menu__children a[aria-current="page"]
  )
  > a,
.dept-sidebar-menu__item:has(> .dept-sidebar-menu__children a.current-menu-item)
  > a {
  background-color: var(--color-off-white);
  color: var(--color-dark-blue);
  font-weight: var(--fw-semibold);
  border-radius: 6px 6px 0px 0px;
}

/* Child (nested) menu list */
.dept-sidebar-menu__children {
  background-color: var(--color-off-white);
  margin: 0;
  padding: 0;
  border-radius: 0px 0px 6px 6px;
}

/* .dept-sidebar-menu__child-item {
  border-top: 1px solid var(--color-tan);
} */

.dept-sidebar-menu__children li:last-child a {
  border-radius: 0px 0px 6px 6px;
}

.dept-sidebar-menu__child-item a {
  display: block;
  padding: 10px 18px 10px 32px;
  color: var(--color-dark-blue);
  font-size: var(--p-size);
  font-weight: var(--fw-regular);
  text-decoration: none;
  position: relative;
  transition:
    background-color 0.18s ease,
    padding-left 0.18s ease;
}

/* .dept-sidebar-menu__child-item a::before {
  content: "–";
  color: var(--color-dark-blue);
  font-weight: var(--fw-regular);
  padding-right: 10px;
} */

.dept-sidebar-menu__child-item a:hover,
.dept-sidebar-menu__child-item a:focus {
  background-color: var(--color-tan);
  color: var(--color-dark-blue);
  padding-left: 36px;
  text-decoration: none;
}

/* ════════════════════════════════════════════════════════════
   ACCORDION 2 — CONTACT INFORMATION
   ACCORDION 3 — HELPFUL LINKS
   Both panels render on the dark burgendy body.
═══════════════════════════════════════════════════════════════ */

.dept-sidebar-accordion__contact-body,
.dept-sidebar-accordion__links-body {
  padding: 20px 18px;
}

/* Contact wysiwyg content */

.dept-sidebar-contact__content {
  text-align: center;
}
.dept-sidebar-contact__content p {
  color: var(--color-off-white);
  font-size: var(--p-size);
  line-height: var(--body-line-height);
  margin-bottom: 30px;
}

.dept-sidebar-contact__hours {
  margin-top: 20px;
}

.dept-sidebar-contact__content h5,
.dept-sidebar-contact__content h4,
.dept-sidebar-contact__hours h4 {
  color: var(--Off-White, #f6ede5);
  font-size: var(--body-medium);
  font-weight: 400;
  line-height: normal;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 12px;
  text-align: center;
}

.dept-sidebar-contact__content p:last-child {
  margin-bottom: 0;
}

.dept-sidebar-contact__content a {
  color: var(--color-off-white);
  font-weight: var(--fw-regular);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

.dept-sidebar-contact__content a:hover {
  color: var(--color-off-white);
}

/* Hours block inside contact panel */

.dept-sidebar-contact__hours-content p {
  color: var(--color-off-white);
  font-size: var(--p-size);
  text-align: center;
  margin: 0 0 4px;
}

/* Helpful links list */

.dept-sidebar-accordion__links-body a {
  display: block;
  margin-bottom: 20px;
  color: var(--color-off-white);
  font-size: var(--p-size);
  font-weight: var(--fw-regular);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  line-height: 1.5;
  transition: color 0.18s ease;
  text-align: center;
}

/* .dept-sidebar-accordion__links-body a:hover,
.dept-sidebar-accordion__links-body a:focus {
  color: var(--color-off-white);
  text-decoration-color: transparent;
} */

.dept-sidebar-mobile-trigger {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: var(--color-burgendy);
  color: var(--color-off-white);
  border: none;
  font-weight: var(--fw-semibold);
  text-align: center;
}

.dept-sidebar-backdrop {
  display: none;
}

@media (min-width: 1024px) {
  .dept-sidebar-mobile-trigger,
  .dept-sidebar-backdrop,
  .dept-sidebar-sheet__header {
    display: none !important;
  }
  .tosa-component-sidebar{
    z-index: 6;
  }
}

@media (max-width: 1600px) {
  .tosa-component-wrapper,
  .dept-hero-overlap-card .dept-wrapper-card {
    grid-template-columns: 1fr 350px;
    column-gap: 100px;
  }
  .tosa-component-sidebar {
    top: 140px;
  }
  .dept-sidebar-accordion {
    padding: 30px 30px;
  }
}

@media (max-width: 1340px) {
  .page-template-government-template .dept-contact-card {
    margin-top: -50px;
  }
  /* .component-width {
    width: 55%;
  } */
  .page-template-government-template .faqs_container {
    width: 62%;
  }
  .tosa-component-sidebar {
    top: 120px;
  }
}

@media (max-width: 1200px) {
  .tosa-component-wrapper,
  .dept-hero-overlap-card .dept-wrapper-card {
    grid-template-columns: 1fr 305px;
  }
  .dept-sidebar-accordion {
    padding: 48px 30px;
  }
}

@media (max-width: 1024px) {
  .component-width,
  .page-template-government-template .faqs_container {
    width: 100%;
  }

  .page-template-government-template .dept-contact-card {
    position: relative;
  }
  .dept-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
  }

  .dept-sidebar-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .dept-sidebar-sheet {
    position: fixed;
    left: 50px;
    right: 50px;
    bottom: 0px;
    z-index: 1045;
    /* max-height: 65vh;
    overflow-y: auto; */
    background-color: var(--color-burgendy);
    border-radius: 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  .dept-sidebar-sheet.is-open {
    transform: translateY(0);
    bottom: 57px;
  }

  .dept-sidebar-sheet.is-open .dept-sidebar-sheet__header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px 13px;
    margin-top: -65px;
  }

  .dept-sidebar-sheet__title {
    color: var(--color-off-white);
    font-family: var(--font-family-tiktok);
    font-size: var(--h5-size);
    font-weight: var(--fw-bold);
  }

  .dept-sidebar-sheet__close {
    background: var(--color-off-white);
    border: none;
    color: var(--color-dark-blue);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
  }

  body.dept-sidebar-sheet-open {
    overflow: hidden;
  }

  .tosa-component-wrapper,
  .dept-hero-overlap-card .dept-wrapper-card {
    grid-template-columns: 1fr;
    column-gap: 0;
    gap: 0;
  }

  .dept-hero-overlap-card__left {
    max-width: 100%;
  }
  .dept-sidebar-accordion {
    right: 0px;
    max-height: 70vh;
    overflow-y: auto;
    padding-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-template-government-template .department-banner {
    min-height: 33vh;
    padding: calc(var(--header-height, 140px) + 32px) 2vw 100px;
  }
  .page-template-government-template::before {
    content: none;
  }
  .page-template-government-template .dept-contact-card {
    margin-top: 0px;
  }
  .page-template-government-template
    .department-banner
    + .dept-hero-overlap-section {
    margin-top: -60px;
  }
  .dept-sidebar-accordion {
    padding: 30px 20px;
  }
}

@media (max-width: 580px) {
  .dept-hero-overlap-section {
    padding: 0;
  }

  .dept-hero-overlap-card {
    border-radius: 0px;
  }

  .tosa-table-controls.global-form {
    grid-template-columns: 1fr 1fr;
  }
  .tosa-table-search {
    grid-area: 1 / 1 / span 1 / span 2;
  }
  .dept-sidebar-sheet {
    left: 20px;
    right: 20px;
  }
}
