﻿@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700;800&family=Merriweather:wght@700&display=swap");
:root {
  --uis-navy: #13294b;
  --uis-blue: #1d4f91;
  --uis-mid: #385f91;
  --uis-sky: #eaf3fb;
  --uis-border: #c8d9ea;
  --uis-gold: #e84a27;
  --text: #1f2d3d;
  --muted: #4d6378;
  --focus: #ffbf47;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0 !important;
  color: var(--text);
  background: linear-gradient(180deg, #eef5fb 0%, #f8fbfe 300px, #f6f9fc 100%) !important;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--uis-blue);
  text-underline-offset: 2px;
}

a:hover { color: var(--uis-navy); }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 9999;
  background: #fff;
  color: var(--uis-navy);
  border: 2px solid var(--uis-navy);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

table[width="740"] {
  width: min(1280px, 96vw) !important;
  table-layout: auto;
}

td.side_bar,
td.side_bar_up,
td.side_bar_down {
  width: 30% !important;
}

td.main,
td.main1 {
  width: 70% !important;
}

/* Override old fixed-width table cells used in legacy HTML */
table[width="740"] td[width="239"] {
  width: 26% !important;
}

table[width="740"] td[width="500"] {
  width: 74% !important;
}

/* Ensure homepage main column renders wider */
td.home-main {
  width: 100% !important;
  max-width: none !important;
}

#logo {
  height: 168px !important;
  border: 0 !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 46, 84, 0.2);
  background: linear-gradient(90deg, #13294b, #1d4f91) !important;
  margin-top: 8px;
}

#logo td { position: relative; }

.uis-brand {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.2rem;
  color: #fff;
}

.uis-brand .kicker {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.86;
}

.uis-brand .title {
  margin: 0.22rem 0 0;
  font-family: "Merriweather", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
  max-width: 35ch;
}

.uis-brand .subtitle {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  opacity: 0.92;
}

#top_menu,
#bottom_table { border-radius: 10px; overflow: hidden; }

#top_menu {
  margin-top: 12px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--uis-navy), #0a4f84) !important;
  box-shadow: 0 5px 12px rgba(0, 46, 84, 0.15);
}

#top_menu tr { display: flex; flex-wrap: wrap; }

#top_menu td {
  flex: 1 1 128px;
  width: auto !important;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

#top_menu td:last-child { border-right: 0; }

#top_menu td a {
  display: block;
  padding: 0.72rem 0.5rem;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

#top_menu td a:hover,
#top_menu td a[aria-current="page"] {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.16);
}

.main,
.main1,
.side_bar,
.side_bar_up,
.side_bar_down { border: 0 !important; }

.main,
.main1 {
  background: #fff;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 10px 24px rgba(15, 46, 77, 0.1);
  font-size: 1rem;
  padding: 1rem 0.7rem 1.15rem !important;
}

.side_bar,
.side_bar_up,
.side_bar_down {
  background-color: var(--uis-sky) !important;
  border-radius: 12px 0 0 12px;
  padding: 1rem 0.85rem 1rem 1rem !important;
  color: #143957;
}

.main h1,
.main1 h1,
.main h2,
.main1 h2,
.main h3,
.main1 h3 {
  margin: 0.1rem 0 0.85rem;
  padding-left: 0 !important;
  color: var(--uis-navy);
  font-family: "Merriweather", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  font-variant: normal;
  text-transform: none;
}

.main h3,
.main1 h3 { font-size: 1.38rem; }

.main p,
.main1 p,
.main li,
.main1 li {
  color: var(--text);
  font-size: 1.01rem;
}

.main p,
.main1 p {
  margin-left: 0 !important;
  margin-right: 0;
}

#topics { width: auto; }

#topics a {
  width: 100%;
  color: #113653;
  border: 1px solid var(--uis-border);
  border-left: 5px solid var(--uis-mid);
  border-radius: 7px;
  margin-bottom: 0.4rem;
  background: #fff;
  text-align: left;
  padding: 0.5rem 0.65rem;
  font-weight: 700;
  line-height: 1.4;
}

#topics a:hover {
  border-color: var(--uis-mid);
  color: #0f304b;
  background: #f7fbff;
}

.welcome {
  border: 1px solid #d6e3ef;
  border-radius: 12px;
  margin: 0.85rem 0;
  padding: 0.95rem 1.05rem;
  background: #fff;
}

.main table,
.main1 table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.main table td,
.main1 table td {
  vertical-align: top;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

/* Force legacy fixed-width content to use full main column width */
.main > div,
.main1 > div,
.main > section,
.main1 > section,
.main > table,
.main1 > table {
  width: 100% !important;
  max-width: none !important;
}

.main td[width],
.main1 td[width],
.main table[width],
.main1 table[width] {
  width: auto !important;
  max-width: none !important;
}

#officer {
  border: 1px solid #d8e4f0 !important;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(12, 43, 72, 0.08);
}

#bottom_table {
  margin-top: 12px;
  background: #103f67;
}

#bottom_table tr:first-child { display: flex; flex-wrap: wrap; }

#bottom_table .bottom_menu {
  flex: 1 1 128px;
  width: auto !important;
  background: transparent !important;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

#bottom_table .bottom_menu:last-child { border-right: 0; }

#bottom_table .bottom_menu a {
  display: block;
  padding: 0.66rem 0.5rem;
  color: #fff !important;
  font-size: 0.92rem;
}

#bottom_table .bottom_menu a:hover { background: rgba(255, 255, 255, 0.15); }

#bottom_table .copyright {
  display: block;
  width: 100% !important;
  color: #d7e6f5;
  padding: 0.74rem 0.5rem 0.9rem;
  height: auto;
  font-size: 0.9rem;
}

.marquee-fallback {
  margin-top: 0.75rem;
  border-left: 4px solid var(--uis-gold);
  background: #fff;
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  color: #12354f;
  font-weight: 600;
}

.uis-site-footer {
  width: min(1180px, 94vw);
  margin: 12px auto 20px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f3558;
  color: #e3eef8;
  box-shadow: 0 8px 20px rgba(9, 32, 54, 0.18);
}

.uis-site-footer .inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
}

.uis-site-footer h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: #fff;
}

.uis-site-footer p,
.uis-site-footer li,
.uis-site-footer a {
  color: #dbe9f8;
  font-size: 0.93rem;
}

.uis-site-footer ul {
  margin: 0;
  padding-left: 1rem;
}

.uis-site-footer .legal {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.65rem 1.2rem 0.8rem;
  font-size: 0.82rem;
  color: #bfd4ea;
}

@media (max-width: 900px) {
  table, tbody, tr, td { display: block; width: 100% !important; height: auto !important; }

  #logo, #top_menu, #bottom_table, table[width="740"] {
    width: calc(100vw - 20px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .side_bar,
  .side_bar_up,
  .side_bar_down,
  .main,
  .main1 {
    border-radius: 12px;
    margin-bottom: 10px;
  }

  #top_menu td,
  #bottom_table .bottom_menu {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .main,
  .main1 { padding: 1rem 0.9rem 1.2rem !important; }

  .uis-site-footer .inner {
    grid-template-columns: 1fr;
  }
}

/* Homepage layout enhancements */
.home-main .home-hero {
  background: linear-gradient(135deg, #13294b, #1d4f91);
  color: #fff;
  border-radius: 14px;
  padding: 1.15rem 1.15rem 1.25rem;
  margin: 0.25rem 0.35rem 1rem;
  box-shadow: 0 10px 24px rgba(10, 48, 82, 0.24);
}

.home-main .home-hero .eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  opacity: 0.88;
}

.home-main .home-hero h1 {
  margin: 0.35rem 0 0.6rem;
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.home-main .home-hero p {
  color: #e8f3ff;
  margin: 0 0 0.85rem;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.uis-btn {
  display: inline-block;
  border-radius: 999px;
  background: #e84a27;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border: 1px solid #bf3719;
}

.uis-btn:hover {
  color: #fff;
  background: #cf3f1f;
}

.uis-btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.uis-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.home-news-card,
.home-mission-card {
  margin-top: 0.85rem;
}

.home-side .side-highlight {
  border: 1px solid #bfd2e5;
  background: #fff;
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  margin: 0 0.15rem 0.85rem;
}

.home-side .side-highlight h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: #0f3658;
}

.home-side .side-highlight ul {
  margin: 0;
  padding-left: 1rem;
}

.home-side .side-highlight li {
  margin-bottom: 0.3rem;
}

@media (max-width: 900px) {
  .home-main .home-hero {
    margin-left: 0;
    margin-right: 0;
  }
}


/* Pixel-close homepage rhythm */
.home-main {
  display: block;
}

.home-breadcrumb {
  margin: 0 0.35rem 0.55rem;
  color: #4a627a;
  font-size: 0.9rem;
}

.home-breadcrumb a {
  color: #1d4f91;
  text-decoration: none;
}

.home-breadcrumb span {
  margin: 0 0.3rem;
}

.home-main .welcome {
  margin-top: 1rem;
}

.home-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0.75rem 0.35rem 0.25rem;
}

.highlight-card {
  background: #ffffff;
  border: 1px solid #d6e3ef;
  border-top: 4px solid var(--uis-mid);
  border-radius: 10px;
  padding: 0.7rem 0.75rem 0.8rem;
  box-shadow: 0 3px 10px rgba(10, 41, 70, 0.08);
}

.highlight-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #0f3c63;
}

.highlight-card p {
  margin: 0;
  font-size: 0.93rem;
  color: #2b465f;
}

.home-news-card {
  border-top: 4px solid #1a5c90;
}

.home-mission-card {
  border-top: 4px solid #214a73;
}

.home-security-card {
  border-top: 4px solid #4a5f7a;
}

.home-security-card ul {
  margin-top: 0.2rem;
}

.home-security-card li {
  margin-bottom: 0.35rem;
}

@media (max-width: 1000px) {
  .home-highlights {
    grid-template-columns: 1fr;
  }
}
