/*
 * gov-portal.css
 * Government agency portal — the current site design system
 */

/* ==================
   Base Styles
   ================== */
body {
  background-color: var(--gov-blue);
  margin: 0;
  padding: 0;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 16px;
  color: #1a1a1a;
}

h1 {
  font-size: 22px;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: bold;
  margin: 0;
  color: var(--gov-green-dark);
}

hr {
  height: 3px;
  background: linear-gradient(to right, var(--gov-green-dark), var(--gov-green-bright), var(--gov-yellow));
  border: none;
  margin: 0;
}

img {
  margin: 5px;
}

/* ==================
   Government Header Banner
   ================== */
.gov-header {
  background-color: var(--gov-green-dark);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

a.gov-header-left,
.gov-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
}

.gov-header-seal {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 50%;
  background: var(--gov-yellow);
  padding: 3px;
}

.gov-header-text {
  color: white;
}

.gov-header-title {
  font-family: 'Georgia', serif;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
  color: var(--gov-yellow);
}

.gov-header-subtitle {
  font-family: 'Georgia', serif;
  font-size: 11px;
  color: #c4e8c0;
  margin-top: 2px;
}

.gov-header-lang {
  font-size: 12px;
  color: #c4e8c0;
}

.gov-header-lang a {
  color: var(--gov-yellow);
  text-decoration: underline;
}

.gov-header-lang .current-lang {
  color: white;
  font-weight: bold;
}

/* ==================
   Subheader yellow stripe
   ================== */
.gov-subheader {
  background-color: var(--gov-yellow);
  padding: 6px 20px;
  font-size: 12px;
  color: var(--gov-green-dark);
  font-weight: bold;
  font-family: 'Georgia', serif;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--gov-green-primary);
  text-align: left;
}

/* ==================
    Layout Containers
    ================== */
.page-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  background-color: white;
  border: 1px solid #ccc;
  padding: 0;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  overflow-x: hidden;
  box-sizing: border-box;
}

.content-wrap {
  text-align: left;
  padding: 25px 30px;
  box-sizing: border-box;
}

.footer-wrapper {
  background-color: var(--gov-green-dark);
  padding: 15px 30px;
  color: #c4e8c0;
  font-size: 12px;
}

.footer-wrapper a {
  color: var(--gov-yellow);
}

/* Language toggle for index page — hidden, moved to header */
.language-toggle-index {
  display: none;
}

/* ==================
   Welcome Section
   ================== */
.welcome-section {
  margin-bottom: 20px;
}

.welcome-section h1 {
  font-size: 24px;
  color: var(--gov-green-dark);
  margin-bottom: 5px;
}

.tagline {
  margin: 0;
}

.tagline-text {
  margin: 0;
  padding: 0;
  font-style: italic;
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gov-green-forest);
}

/* ==================
   Main Layout — side by side
   ================== */
.main-layout {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 30px;
  margin: 20px 0;
  padding: 0 40px;
}

/* ==================
   Official Seal (Logo)
   ================== */
.single-logo {
  flex-shrink: 0;
}

.logo-wrapper {
  position: relative;
  width: 140px;
  aspect-ratio: 221 / 453;
  margin-right: 10px;
}

.logo-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-placeholder::after {
  color: #888;
}

.logo-gif {
  position: absolute;
  margin: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.logo-gif.loaded {
  opacity: 1;
}

.seal-label {
  text-align: center;
  font-size: 10px;
  color: var(--gov-green-forest);
  font-family: 'Georgia', serif;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==================
    Navigation — Government link list
    ================== */
.menu-container {
  flex: 1;
}

.menu-title {
  background-color: var(--gov-green-primary);
  color: white;
  font-weight: bold;
  font-size: 13px;
  font-family: 'Georgia', serif;
  padding: 6px 12px;
  letter-spacing: 0.5px;
  border-bottom: 3px solid var(--gov-yellow);
}

.menu-links {
  padding: 8px 0;
}

.nav-link {
  font-size: 15px;
  display: block;
  padding: 6px 12px;
  text-decoration: none;
  color: var(--gov-green-primary);
  border-left: 3px solid transparent;
  transition: all 0.15s;
  font-family: 'Georgia', serif;
}

.nav-link:hover {
  background-color: var(--gov-blue);
  border-left: 3px solid var(--gov-green-bright);
  color: var(--gov-green-dark);
}

.nav-link:active {
  background-color: var(--gov-yellow);
}

.nav-icon {
  width: 12px;
  height: 12px;
  margin-right: 6px;
  margin-left: 0;
  vertical-align: middle;
}

/* ==================
    Visitor Counter (in footer)
    ================== */
.visitor-counter {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: #c4e8c0;
  margin-bottom: 8px;
}

.counter-image {
  height: 18px;
  margin: 0;
  margin-left: 5px;
  vertical-align: middle;
}

/* ==================
    Government Notices & Decorative
    ================== */
/* ==================
    Government Alert Marquee
    ================== */
.gov-alert {
  background-color: #8b0000;
  border-top: 2px solid #ff4444;
  border-bottom: 2px solid #ff4444;
  margin: 25px 0 0;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}

.gov-alert-marquee {
  display: inline-block;
  animation: marquee 30s linear infinite;
  font-family: 'Georgia', serif;
  font-size: 13px;
  color: #ffffff;
  font-weight: bold;
  letter-spacing: 0.3px;
  padding-left: 100%;
}

.gov-alert-marquee span {
  display: inline-block;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* NEW badge */
.new-badge {
  display: inline-block;
  background-color: var(--gov-green-bright);
  color: var(--gov-yellow);
  font-size: 9px;
  font-weight: bold;
  padding: 1px 5px;
  margin-left: 6px;
  border-radius: 2px;
  font-family: 'Georgia', serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: blink 1.5s infinite;
}

.soldout-badge {
  background-color: darkred;
  color: #fff;
}

/* Footer styles */
.browser-compatibility {
  margin: 0;
  padding: 0;
  text-align: left;
}

.browser-logos {
  display: inline-block;
  margin-left: 10px;
}

.browser-icon {
  width: auto;
  height: 30px;
  margin: 0 3px;
  vertical-align: middle;
}

.footer-text {
  color: #c4e8c0;
  text-align: left;
  font-size: 12px;
  margin: 3px 0;
}

.gov-footer-official {
  font-size: 11px;
  color: var(--gov-yellow);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--gov-green-forest);
  font-family: 'Georgia', serif;
}

@media print {
  body:after {
    content: "Printing government documents without authorization may violate Bureau Directive 7.3.2";
    display: block;
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
  }
}

/* ==================
    Animations
    ================== */
@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* ==================
    Media Queries
    ================== */
@media (max-width: 850px) {
  .page-container {
    margin: 0;
    width: auto;
    border: none;
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 20px;
  }

  .gov-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 15px;
  }

  .gov-header-title {
    font-size: 16px;
  }

  .gov-header-lang {
    align-self: flex-end;
  }

  .content-wrap {
    padding: 15px;
  }

  .welcome-section {
    margin-bottom: 12px;
  }

  .welcome-section h1 {
    font-size: 20px;
  }

  .tagline-text {
    font-size: 14px;
    letter-spacing: 1.5px;
  }

  .counter-image {
    margin-top: 5px;
    height: 15px;
  }

  .visitor-counter {
    font-size: 12px;
  }

  .main-layout {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
    gap: 10px;
    margin: 10px 0;
  }

  .single-logo {
    margin-bottom: 0;
    order: -1;
  }

  .logo-wrapper {
    width: 120px;
    margin-right: 0;
  }

  .menu-container {
    width: 100%;
    box-sizing: border-box;
  }

  .nav-link {
    font-size: 14px;
    padding: 8px 12px;
  }

  .gov-alert {
    margin: 15px 0 0;
  }

  .footer-wrapper {
    padding: 12px 15px;
  }
}

@media (max-width: 350px) {
  .nav-link {
    font-size: 12px;
  }

  .logo-wrapper {
    width: 100px;
  }

  .gov-header-title {
    font-size: 14px;
  }

  .tagline-text {
    font-size: 13px;
    letter-spacing: 1px;
  }
}
