.departments-page {
  background: #ffffff;
  color: #062a4c;
  font-size: 16px;
  line-height: 1.65;
}

.departments-page .section-label {
  color: #0088d4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.2;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.departments-container {
  max-width: 1240px;
}

.service-unit-cta {
  text-align: center;
  margin-top: 48px;
}

.departments-hero {
  background: url("../images/departments-banner.png") center 38% / cover no-repeat;
  min-height: 593px;
  position: relative;
}

.departments-hero__container {
  max-width: 1320px;
  padding-bottom: 72px;
  padding-top: 280px;
}

.departments-hero__breadcrumb {
  align-items: center;
  color: #526474;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 9px;
  line-height: 1.2;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.departments-hero__breadcrumb a {
  color: #0088d4;
  text-decoration: none;
}

.departments-hero__breadcrumb i {
  color: #8fa63e;
  font-size: 9px;
}

.departments-hero h1 {
  color: #062a4c;
  font-size: 58px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0 0 18px;
}

.departments-hero p {
  color: #24384e;
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  max-width: 840px;
}

.departments-hero__actions,
.departments-help-cta__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.departments-button,
.departments-card-link,
.department-office-link {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  letter-spacing: 0.4px;
  min-height: 48px;
  padding: 0 22px;
  text-decoration: none;
  text-transform: uppercase;
}

.departments-button i,
.departments-card-link i,
.department-office-link i {
  font-size: 9px;
  transform: rotate(-45deg);
}

.departments-button--primary,
.departments-card-link,
.department-office-link {
  background: #0088d4;
  color: #ffffff;
}

.departments-button--primary:hover,
.departments-card-link:hover,
.department-office-link:hover {
  background: #0076bb;
  color: #ffffff;
}

.departments-button--secondary {
  background: #ffffff;
  border: 1px solid rgba(6, 42, 76, 0.16);
  color: #062a4c;
}

.departments-button--secondary:hover {
  border-color: rgba(0, 136, 212, 0.44);
  color: #0088d4;
}

.departments-section-heading {
  margin: 0 auto 38px;
  max-width: 850px;
  text-align: center;
}

.departments-section-heading h2 {
  color: #062a4c;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.18;
  margin: 0 0 14px;
}

.departments-section-heading>p:last-child {
  color: #33465a;
  font-size: 17px;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 780px;
}

.departments-overview {
  background: #ffffff;
  padding: 86px 0 96px;
}

.main-department-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.main-department-card {
  background: #ffffff;
  border: 1px solid rgba(0, 136, 212, 0.3);
  border-radius: 8px;
  box-shadow: 4px 4px 26.3px 0 #0000001a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 30px 28px 28px;
  position: relative;
}

.main-department-card::after {
  background: linear-gradient(90deg, #0088d4 0%, #8fa63e 60%, #fcc839 100%);
  bottom: 0;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
}

.main-department-card__icon {
  align-items: center;
  background: rgba(0, 136, 212, 0.1);
  border-radius: 50%;
  color: #0088d4;
  display: inline-flex;
  font-size: 20px;
  height: 52px;
  justify-content: center;
  margin-bottom: 24px;
  width: 52px;
}

.main-department-card--green .main-department-card__icon {
  background: rgba(21, 150, 69, 0.1);
  color: #159645;
}

.main-department-card--purple .main-department-card__icon {
  background: rgba(156, 107, 237, 0.11);
  color: #8c53e6;
}

.main-department-card--gold .main-department-card__icon {
  background: rgba(246, 147, 48, 0.11);
  color: #e87412;
}

.main-department-card--teal .main-department-card__icon {
  background: rgba(42, 183, 169, 0.12);
  color: #129b91;
}

.main-department-card h3 {
  color: #062a4c;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 14px;
}

.main-department-card>p {
  color: #3e4f61;
  font-size: 15px;
  line-height: 1.66;
  margin: 0 0 22px;
}

.main-department-card h4 {
  color: #00884d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.2;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.main-department-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.main-department-card li {
  background: rgba(0, 136, 212, 0.08);
  border-radius: 999px;
  color: #233c55;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  padding: 7px 10px;
}

.departments-card-link {
  margin-top: auto;
  width: max-content;
}

.service-units,
.department-contacts {
  background: url("../images/ministry-services.png") center center / cover no-repeat;
  background-size: 100% 100%;
  padding: 86px 0 96px;
}

.service-unit-group {
  display: none;
  margin-top: 48px;
}

.service-unit-group.is-active {
  display: block;
}

.service-unit-group:first-of-type {
  margin-top: 0;
}

.service-unit-group>h3 {
  align-items: center;
  color: #062a4c;
  display: flex;
  font-size: 26px;
  font-weight: 800;
  gap: 18px;
  line-height: 1.25;
  margin: 0 0 22px;
}

.service-unit-group>h3::after {
  background: rgba(6, 42, 76, 0.14);
  content: "";
  flex: 1 1 auto;
  height: 1px;
}

.service-unit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 0 auto 34px;
  max-width: 980px;
}

.service-unit-tab {
  background: #ffffff;
  border: 1px solid rgba(6, 42, 76, 0.16);
  border-radius: 999px;
  color: #062a4c;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  min-height: 44px;
  padding: 0 20px;
  text-transform: uppercase;
}

.service-unit-tab--active {
  background: #eef6ff;
  border-color: #0088d4;
  color: #004a7d;
}

.service-unit-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-unit {
  background: #ffffff;
  border: 1px solid #C1C7D2;
  border-radius: 12px;
  padding: 24px 24px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.service-unit__icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(0, 136, 212, 0.1);
  color: #0088d4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 1;
}

.service-unit h4 {
  color: #062a4c;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.service-unit p {
  color: #414750;
  font-size: 15px;
  line-height: 1.8;
  margin: 8px 0 0;
  /* grid-column: 2; */
  font-weight: 400;
}

.facility-card,
.department-contact-card {
  background: #ffffff;
  border: 1px solid #C1C7D2;
  border-radius: 20px;
  box-shadow: none;
  padding: 0;
}

.facility-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.facility-card__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 24px;
  align-items: center;
  text-align: center;
}

.facility-card h3,
.department-contact-card h3 {
  color: #062a4c;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.28;
  margin: 0 0 10px;
}

.facility-card p,
.department-contact-card p,
.facility-card address,
.department-contact-card address {
  color: #3e4f61;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.facility-card p span {
  color: #00884d;
  font-weight: 800;
}

.facilities-centres {
  background: #ffffff;
  padding: 86px 0 96px;
}

.facility-grid,
.department-contact-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.facility-card {
  display: block;
  overflow: hidden;
  border: 1px solid #C1C7D2;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: none;
  padding: 0;
}

.department-contact-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 210px;
  overflow: hidden;
  align-items: center;
  text-align: center;
  padding: 28px 24px;
  border: 1px solid #C1C7D2;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: none;
}

.department-contact-card__icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #D3E4FF;
  color: #0088d4;
  font-size: 24px;
  opacity: 1;
}

.department-contact-card h3 {
  color: #062a4c;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.department-contact-card address,
.department-contact-card p {
  color: #3e4f61;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.department-contact-card address {
  font-style: normal;
}

.department-contact-card a {
  color: #006fba;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.department-contact-card a:hover {
  color: #062a4c;
}

.facility-card span {
  color: #00884d;
  font-weight: 800;
}

.department-contact-card span {
  color: #0088d4;
  font-weight: 700;
}

.facility-card a,
.department-contact-card a {
  color: #006fba;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.facility-card a:hover,
.department-contact-card a:hover {
  color: #062a4c;
}

.department-office-link {
  margin: 30px auto 0;
}

.department-contacts .departments-container {
  display: flex;
  flex-direction: column;
}

.departments-help-cta {
  background: linear-gradient(90deg, #0088d4 0%, #8fa63e 58%, #fcc839 100%);
  color: #ffffff;
  padding: 56px 0;
}

.departments-help-cta__container {
  align-items: center;
  display: flex;
  gap: 34px;
  justify-content: space-between;
  max-width: 1120px;
}

.departments-help-cta h2 {
  color: #ffffff;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 10px;
}

.departments-help-cta p {
  color: rgba(255, 255, 255, 0.94);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  max-width: 720px;
}

.departments-help-cta .departments-button--secondary {
  border-color: rgba(255, 255, 255, 0.42);
}

@media (min-width: 1200px) and (max-width: 1440.98px) {
  .departments-hero h1 {
    font-size: 48px;
    line-height: 1.12;
  }

  .departments-section-heading h2 {
    font-size: 40px;
    line-height: 1.2;
  }

  .departments-help-cta h2 {
    font-size: 32px;
  }

  .departments-hero p,
  .departments-section-heading>p:last-child,
  .departments-help-cta p {
    font-size: 16px;
  }

  .main-department-card h3 {
    font-size: 21px;
  }

  .service-unit-group>h3 {
    font-size: 24px;
  }

  .service-unit h4,
  .facility-card h3,
  .department-contact-card h3 {
    font-size: 17px;
  }
}

@media (max-width: 1199.98px) {
  .departments-hero__container {
    padding-top: 106px;
  }

  .departments-container,
  .departments-help-cta__container {
    max-width: 960px;
  }

  .main-department-grid,
  .service-unit-grid,
  .facility-grid,
  .department-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-department-card,
  .main-department-card:nth-child(4),
  .main-department-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .departments-hero h1 {
    font-size: 46px;
    line-height: 1.14;
  }

  .departments-section-heading h2 {
    font-size: 38px;
    line-height: 1.2;
  }

  .departments-help-cta h2 {
    font-size: 30px;
  }

  .departments-hero p,
  .departments-section-heading>p:last-child,
  .departments-help-cta p {
    font-size: 15px;
  }

  .main-department-card h3 {
    font-size: 20px;
  }

  .service-unit-group>h3 {
    font-size: 22px;
  }

  .service-unit h4,
  .facility-card h3,
  .department-contact-card h3 {
    font-size: 16px;
  }
}

@media (max-width: 991.98px) {
  .departments-hero {
    min-height: 500px;
  }

  .departments-hero h1 {
    font-size: 46px;
  }

  .departments-section-heading h2 {
    font-size: 38px;
  }

  .departments-help-cta__container {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .departments-hero {
    min-height: 430px;
  }

  .departments-hero__container {
    padding-bottom: 56px;
    padding-top: 76px;
  }

  .departments-hero h1,
  .departments-section-heading h2 {
    font-size: 34px;
  }

  .departments-hero p,
  .departments-section-heading>p:last-child,
  .departments-help-cta p {
    font-size: 16px;
  }

  .departments-overview,
  .service-units,
  .facilities-centres,
  .department-contacts {
    padding: 58px 0;
  }

  .main-department-grid,
  .service-unit-grid,
  .facility-grid,
  .department-contact-grid {
    grid-template-columns: 1fr;
  }

  .main-department-card,
  .service-unit,
  .facility-card,
  .department-contact-card {
    padding: 24px 22px;
  }

  .main-department-card h3,
  .service-unit-group>h3 {
    font-size: 24px;
  }

  .departments-help-cta h2 {
    font-size: 28px;
  }
}

@media (max-width: 575.98px) {

  .departments-hero h1,
  .departments-section-heading h2 {
    font-size: 31px;
  }

  .departments-button,
  .departments-card-link,
  .department-office-link,
  .departments-help-cta__actions {
    width: 100%;
  }

  .departments-button,
  .departments-card-link,
  .department-office-link {
    min-height: 48px;
  }

  .service-unit-group>h3 {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-unit-group>h3::after {
    width: 100%;
  }
}

/* ==========================================================================
   Human Services Dedicated Page Styles
   ========================================================================== */

.departments-button--alert {
  background: #c81e1e;
  border: 1px solid #9b1c1c;
  color: #ffffff !important;
}

.departments-button--alert:hover {
  background: #9b1c1c;
  color: #ffffff !important;
}

.dhs-emergency-banner {
  margin-top: -50px;
  position: relative;
  z-index: 10;
  margin-bottom: 50px;
}

.dhs-emergency-card {
  background: linear-gradient(135deg, #ffffff 0%, #fffbfb 100%);
  border: 2px solid #f98080;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(200, 30, 30, 0.08);
  padding: 36px 40px;
}

.dhs-emergency-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fde8e8;
  color: #9b1c1c;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.dhs-emergency-card__header h2 {
  color: #9b1c1c;
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px;
}

.dhs-emergency-card__header p {
  color: #4b5563;
  font-size: 15px;
  margin: 0 0 24px;
  max-width: 820px;
}

.dhs-hotline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.dhs-hotline-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px 24px;
  transition: all 0.2s ease;
}

.dhs-hotline-item--police {
  border-left: 5px solid #0088d4;
}

.dhs-hotline-item--dhs {
  border-left: 5px solid #c81e1e;
}

.dhs-hotline-item__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.dhs-hotline-item--police .dhs-hotline-item__icon {
  background: #e1effe;
  color: #0088d4;
}

.dhs-hotline-item--dhs .dhs-hotline-item__icon {
  background: #fde8e8;
  color: #c81e1e;
}

.dhs-hotline-item__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 2px;
}

.dhs-hotline-item__number {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  text-decoration: none;
  line-height: 1.2;
}

.dhs-hotline-item__number:hover {
  color: #0088d4;
  text-decoration: underline;
}

.dhs-hotline-item__note,
.dhs-hotline-item__alt {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.dhs-hotline-item__alt a {
  color: #0088d4;
  font-weight: 700;
  text-decoration: none;
}

.dhs-hotline-item__alt a:hover {
  text-decoration: underline;
}

/* Highlights section */
.dhs-mandate-section {
  padding: 50px 0 60px;
  background: #fafbfc;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
}

.dhs-overview-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.dhs-highlight-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dhs-highlight-box__icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #eff6ff;
  color: #0088d4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.dhs-highlight-box h3 {
  font-size: 19px;
  font-weight: 700;
  color: #062a4c;
  margin: 0 0 10px;
}

.dhs-highlight-box p {
  font-size: 14.5px;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
}

/* Divisions Section */
.dhs-divisions-section {
  padding: 70px 0;
}

.dhs-division-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.dhs-division-card__header {
  padding: 32px 36px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.dhs-division-card--cps .dhs-division-card__header {
  border-top: 5px solid #0088d4;
}

.dhs-division-card--cpss .dhs-division-card__header {
  border-top: 5px solid #8fa63e;
}

.dhs-division-card--compar .dhs-division-card__header {
  border-top: 5px solid #7c3aed;
}

.dhs-division-card--atip .dhs-division-card__header {
  border-top: 5px solid #d97706;
}

.dhs-division-card__tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #0088d4;
  background: #e1effe;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.dhs-division-card--cpss .dhs-division-card__tag {
  color: #8fa63e;
  background: #f2f7e4;
}

.dhs-division-card--compar .dhs-division-card__tag {
  color: #7c3aed;
  background: #ede9fe;
}

.dhs-division-card--atip .dhs-division-card__tag {
  color: #d97706;
  background: #fef3c7;
}

.dhs-division-card__header h3 {
  font-size: 25px;
  font-weight: 800;
  color: #062a4c;
  margin: 0 0 10px;
}

.dhs-division-card__lead {
  font-size: 15.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
  max-width: 960px;
}

.dhs-division-card__body {
  padding: 32px 36px;
}

/* Definition card */
.dhs-definition-card {
  background: #f8fafc;
  border-left: 4px solid #0088d4;
  border-radius: 6px;
  padding: 18px 22px;
  margin-bottom: 28px;
}

.dhs-definition-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
}

.dhs-definition-card p {
  font-size: 14.5px;
  color: #334155;
  margin: 0;
  line-height: 1.6;
}

/* Abuse Types */
.dhs-abuse-types-container h4 {
  font-size: 16px;
  font-weight: 700;
  color: #062a4c;
  margin: 0 0 16px;
}

.dhs-abuse-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.dhs-abuse-chip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fdfefe;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
}

.dhs-abuse-chip i {
  font-size: 18px;
  color: #0088d4;
  margin-top: 2px;
}

.dhs-abuse-chip strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
  margin-bottom: 2px;
}

.dhs-abuse-chip p {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Subservice layout for CPSS and ATIP */
.dhs-subservice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.dhs-subservice-col h4 {
  font-size: 17px;
  font-weight: 700;
  color: #062a4c;
  margin: 0 0 16px;
}

.dhs-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dhs-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #334155;
  margin-bottom: 12px;
  line-height: 1.5;
}

.dhs-checklist li i {
  color: #8fa63e;
  font-size: 13px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Program callout boxes */
.dhs-program-callout {
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}

.dhs-program-callout--foster {
  background: #f9fbf2;
  border: 1px solid #dce8b6;
}

.dhs-program-callout--foster h4 {
  color: #496317;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
}

.dhs-program-callout--adoption {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.dhs-program-callout--adoption h4 {
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
}

.dhs-foster-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.dhs-tier {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
}

.dhs-tier__title {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
}

.dhs-tier__desc {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.35;
}

.dhs-callout-footer {
  font-size: 13.5px;
  color: #1e293b;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}

.dhs-callout-footer a {
  color: #0088d4;
  font-weight: 700;
  text-decoration: none;
}

/* COMPAR Dual Grid */
.dhs-programs-dual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.dhs-program-panel {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 10px;
  padding: 26px;
}

.dhs-program-panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ede9fe;
  color: #6b21a8;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.dhs-program-panel h4 {
  font-size: 18px;
  font-weight: 800;
  color: #4c1d95;
  margin: 0 0 10px;
}

.dhs-program-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e9d5ff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dhs-program-meta div strong {
  display: block;
  font-size: 12.5px;
  color: #581c87;
}

.dhs-program-meta div span {
  font-size: 13.5px;
  color: #374151;
  line-height: 1.4;
}

.dhs-science-note {
  background: #ffffff;
  border-left: 3px solid #7c3aed;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  color: #4b5563;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0;
}

.dhs-science-note i {
  color: #7c3aed;
  margin-top: 2px;
}

.dhs-community-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.dhs-tag {
  background: #ffffff;
  border: 1px solid #d8b4fe;
  color: #6b21a8;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

.dhs-community-extra {
  font-size: 12.5px;
  color: #4c1d95;
  margin-top: 12px;
}

/* Alternative Care subservice box */
.dhs-subservice-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 24px;
  height: 100%;
}

.dhs-subservice-box h4 {
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
}

.dhs-bullet-list {
  padding-left: 18px;
  margin: 14px 0 0;
  font-size: 13.5px;
  color: #451a03;
  line-height: 1.55;
}

/* District Offices Grid */
.dhs-district-section {
  padding: 60px 0 70px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.dhs-search-bar {
  max-width: 500px;
  margin: 0 auto 36px;
}

.dhs-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.dhs-search-input-wrap i.fa-magnifying-glass {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  font-size: 15px;
}

.dhs-search-input-wrap input {
  width: 100%;
  padding: 14px 44px 14px 44px;
  border: 1px solid #cbd5e1;
  border-radius: 30px;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  outline: none;
}

.dhs-search-input-wrap input:focus {
  border-color: #0088d4;
  box-shadow: 0 0 0 3px rgba(0, 136, 212, 0.15);
}

.dhs-search-clear {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
}

.dhs-district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.dhs-district-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dhs-district-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.dhs-district-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.dhs-district-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #e1effe;
  color: #0088d4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.dhs-district-card__header h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: #062a4c;
  margin: 0;
  line-height: 1.3;
}

.dhs-district-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #475569;
  margin: 0 0 6px;
}

.dhs-district-phone i {
  color: #8fa63e;
  font-size: 12px;
}

.dhs-district-phone a {
  color: #0088d4;
  font-weight: 700;
  text-decoration: none;
}

.dhs-district-phone a:hover {
  text-decoration: underline;
}

.dhs-no-results {
  text-align: center;
  padding: 30px 20px;
  color: #64748b;
}

.dhs-api-contacts-card {
  margin-top: 36px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 22px 26px;
}

.dhs-api-contacts-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #062a4c;
  margin: 0 0 12px;
}

.dhs-api-contacts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dhs-api-contact-pill {
  background: #f1f5f9;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: #334155;
}

.dhs-api-contact-pill a {
  color: #0088d4;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 768px) {
  .dhs-emergency-card {
    padding: 24px 20px;
  }

  .dhs-emergency-banner {
    margin-top: -20px;
  }

  .dhs-division-card__header,
  .dhs-division-card__body {
    padding: 24px 20px;
  }

  .dhs-foster-tiers {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Family Support & Gender Affairs Department (FSGAD) Styles
   ========================================================================== */

/* Quick Exit Bar */
.fsgad-quick-exit-bar {
  background: #1e293b;
  color: #f8fafc;
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fsgad-quick-exit-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.fsgad-quick-exit-note {
  font-size: 13px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fsgad-quick-exit-btn {
  background: #dc2626;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.fsgad-quick-exit-btn:hover {
  background: #b91c1c;
}

/* Motto Badge */
.fsgad-motto-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.fsgad-hero-tagline {
  font-size: 20px;
  font-weight: 700;
  color: #8fa63e !important;
  margin: 0 0 12px !important;
}

.fsgad-hero-lead {
  font-size: 16.5px;
  color: #334155 !important;
  line-height: 1.65 !important;
  max-width: 880px !important;
}

/* Hotline Banner */
.fsgad-hotline-banner {
  margin-top: -45px;
  position: relative;
  z-index: 10;
  margin-bottom: 50px;
}

.fsgad-hotline-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
  border: 2px solid #fdba74;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.08);
  padding: 32px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.fsgad-hotline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffedd5;
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.fsgad-hotline-card__info h2 {
  color: #9a3412;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px;
}

.fsgad-hotline-card__info p {
  color: #4b5563;
  font-size: 14.5px;
  margin: 0;
  max-width: 650px;
}

.fsgad-hotline-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.fsgad-hotline-dial-btn {
  background: #ea580c;
  color: #ffffff !important;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
  transition: background 0.2s ease;
}

.fsgad-hotline-dial-btn:hover {
  background: #c2410c;
}

.fsgad-hotline-dial-btn i {
  font-size: 24px;
}

.fsgad-hotline-dial-btn small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.9;
}

.fsgad-hotline-dial-btn strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.fsgad-card-quick-exit-btn {
  background: #dc2626;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
  transition: background 0.2s ease;
}

.fsgad-card-quick-exit-btn:hover {
  background: #b91c1c;
}

.fsgad-hotline-alt {
  font-size: 13px;
  color: #6b7280;
}

.fsgad-hotline-alt a {
  color: #0088d4;
  font-weight: 700;
  text-decoration: none;
}

/* Service Navigator */
.fsgad-navigator-section {
  padding: 60px 0;
  background: #fafbfc;
  border-top: 1px solid #eef2f6;
  border-bottom: 1px solid #eef2f6;
}

.fsgad-navigator-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 30px;
  margin-top: 36px;
  align-items: start;
}

.fsgad-navigator-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fsgad-nav-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.fsgad-nav-btn:hover {
  border-color: #8fa63e;
  transform: translateX(3px);
}

.fsgad-nav-btn--active {
  background: #f4f8ea;
  border-color: #8fa63e;
  box-shadow: 0 4px 12px rgba(143, 166, 62, 0.15);
}

.fsgad-nav-btn__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0088d4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.fsgad-nav-btn--active .fsgad-nav-btn__icon {
  background: #8fa63e;
  color: #ffffff;
}

.fsgad-nav-btn__text {
  flex-grow: 1;
}

.fsgad-nav-btn__text strong {
  display: block;
  font-size: 14.5px;
  color: #062a4c;
  line-height: 1.3;
}

.fsgad-nav-btn__text small {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.fsgad-nav-btn__arrow {
  font-size: 13px;
  color: #94a3b8;
}

.fsgad-nav-btn--active .fsgad-nav-btn__arrow {
  color: #8fa63e;
}

/* Result Card */
.fsgad-result-card {
  background: #ffffff;
  border: 2px solid #8fa63e;
  border-radius: 12px;
  padding: 32px 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.fsgad-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f2f7e4;
  color: #496317;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.fsgad-result-card h3 {
  font-size: 23px;
  font-weight: 800;
  color: #062a4c;
  margin: 0 0 12px;
}

.fsgad-result-desc {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 20px;
}

.fsgad-result-programs {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.fsgad-result-programs strong {
  display: block;
  font-size: 13px;
  color: #1e293b;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.fsgad-result-programs ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fsgad-result-programs li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #334155;
}

.fsgad-result-programs li i {
  color: #8fa63e;
  font-size: 13px;
}

.fsgad-result-action-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.fsgad-result-action-label {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
}

.fsgad-result-hotline-link {
  font-size: 14px;
  font-weight: 700;
  color: #ea580c;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fsgad-result-hotline-link:hover {
  text-decoration: underline;
}

/* Mission / Vision */
.fsgad-about-section {
  padding: 60px 0;
}

.fsgad-mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.fsgad-mv-box {
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.fsgad-mv-box--mission {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.fsgad-mv-box--vision {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.fsgad-mv-box__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.fsgad-mv-box--mission .fsgad-mv-box__badge {
  background: #dcfce7;
  color: #15803d;
}

.fsgad-mv-box--vision .fsgad-mv-box__badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.fsgad-mv-box h3 {
  font-size: 21px;
  font-weight: 800;
  color: #062a4c;
  margin: 0 0 10px;
}

.fsgad-mv-box p {
  font-size: 15px;
  color: #334155;
  line-height: 1.6;
  margin: 0;
}

/* Values Grid */
.fsgad-values-container {
  margin-top: 48px;
}

.fsgad-values-title {
  font-size: 20px;
  font-weight: 800;
  color: #062a4c;
  margin-bottom: 20px;
  text-align: center;
}

.fsgad-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.fsgad-value-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.fsgad-value-chip__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8fa63e;
  margin-top: 6px;
  flex-shrink: 0;
}

.fsgad-value-chip strong {
  display: block;
  font-size: 14.5px;
  color: #0f172a;
  margin-bottom: 4px;
}

.fsgad-value-chip p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

/* Programs Section */
.fsgad-programs-section {
  padding: 60px 0 70px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.fsgad-program-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 36px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.fsgad-program-card__header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.fsgad-program-card--green .fsgad-program-card__header {
  border-top: 5px solid #8fa63e;
}

.fsgad-program-card--gold .fsgad-program-card__header {
  border-top: 5px solid #d97706;
}

.fsgad-program-card--blue .fsgad-program-card__header {
  border-top: 5px solid #0088d4;
}

.fsgad-program-card--purple .fsgad-program-card__header {
  border-top: 5px solid #7c3aed;
}

.fsgad-program-card--teal .fsgad-program-card__header {
  border-top: 5px solid #0d9488;
}

.fsgad-program-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #8fa63e;
  background: #f2f7e4;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.fsgad-program-card__header h3 {
  font-size: 23px;
  font-weight: 800;
  color: #062a4c;
  margin: 0 0 8px;
}

.fsgad-program-card__lead {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.fsgad-program-card__body {
  padding: 28px 32px;
}

.fsgad-dual-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

.fsgad-dual-columns h4 {
  font-size: 16px;
  font-weight: 700;
  color: #062a4c;
  margin: 0 0 14px;
}

.fsgad-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fsgad-check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
}

.fsgad-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #8fa63e;
  font-weight: 800;
}

.fsgad-highlight-panel {
  background: #f8fafc;
  border-left: 4px solid #8fa63e;
  border-radius: 6px;
  padding: 18px 22px;
}

.fsgad-highlight-panel--alert {
  background: #fef2f2;
  border-left-color: #ef4444;
}

.fsgad-highlight-panel h4 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 8px;
}

.fsgad-highlight-panel p {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

.fsgad-ordered-list {
  padding-left: 18px;
  margin: 8px 0 0;
  font-size: 13px;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Facilities Subgrid */
.fsgad-facilities-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.fsgad-facility-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
}

.fsgad-facility-box__icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #ccfbf1;
  color: #0f766e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.fsgad-facility-box h4 {
  font-size: 18px;
  font-weight: 800;
  color: #062a4c;
  margin: 0 0 8px;
}

.fsgad-facility-box p {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 14px;
}

.fsgad-facility-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: #0f766e;
  background: #e6fffa;
  padding: 4px 10px;
  border-radius: 12px;
}

/* District section */
.fsgad-district-section {
  padding: 60px 0;
}

@media (max-width: 900px) {
  .fsgad-navigator-grid {
    grid-template-columns: 1fr;
  }

  .fsgad-mission-vision-grid {
    grid-template-columns: 1fr;
  }

  .fsgad-dual-columns {
    grid-template-columns: 1fr;
  }

  .fsgad-facilities-subgrid {
    grid-template-columns: 1fr;
  }
}


