/* === General Styles === */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif; /* Changed font to Roboto */
}

/* Banner Container */
.usa-banner {
  width: 100%;
}

.header_banner_container {
  background-color: #15263b;
  color: #FFF;
  padding: 0 1rem;       /* Removed top/bottom padding from container */
}

/* New CSS to control the layout */
.banner-header-group {
  display: flex;           /* Use flexbox */
  align-items: center;     /* Vertically align items */
  justify-content: flex-start; /* Align to the left */
}

.official-website-text {
  font-size: 0.9rem;
  margin-right: 10px;
  margin-bottom: 0;
}

.header_banner_accordion {
  width: auto;
  box-sizing: border-box;
}

/* Flag and Text */
.heder_banner_flag {
  display: inline-flex;    /* Use inline-flex */
  align-items: center;
  margin-right: 1rem;
}

.heder_banner_flag .container {
  background-image: url("../img/us_flag_small.png");
  background-size: contain;
  background-repeat: no-repeat;
  width: 20px;
  height: 15px;
  margin-right: 5px;
}

/* Accordion Styles */
.header_banner_accordion summary {
  cursor: pointer;
 /* padding: 0.1rem 0.3rem; */ /* Reduced padding on summary EVEN MORE */
         /* Added a slight negative margin */
  color: #fff;
  list-style: none;
  font-size: 0.9rem; /* Made "Here's how you know" text smaller */
  display: flex;       /* Use flexbox for summary */
  align-items: center; /* Vertically align items */
}

.header_banner_accordion summary::-webkit-details-marker {
  display: none;
}

.header_banner_accordion summary u {
  display: block;
}

/* Accordion Content */
.usa-banner__content {
  background-color: #15263b;
  color: #fff;
  padding: 0;          /* Removed padding from accordion content */
  box-sizing: border-box;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.header_banner_accordion[open] .usa-banner__content {
  max-height: 500px;
}

/* Grid Layout */
.grid-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  box-sizing: border-box;
}

.usa-banner__guidance {
  display: flex;
  align-items: flex-start;
}

.usa-banner__guidance.tablet\:grid-col-6 {
  flex: 1 1 300px;
  box-sizing: border-box;
  word-break: break-word;
}

/* Icon Styling */
.usa-banner__icon {
  width: 2rem;
  height: auto;
  margin-right: 0.5rem;
}

.icon-lock svg {
  fill: #fff;
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

/* Title Styling */
.stitle {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

/* Media query for larger screens */
@media (min-width: 768px) {
  .official-website-text {
    margin-right: 20px;
  }
}

/* Mobile styles - stack flag and text */
@media (max-width: 767px) {
    .header_banner_container {
        display: block;  /* Changed from flex to block */
    }

    .heder_banner_flag {
        margin-bottom: 0.5rem;
        display: block;  /* Changed from inline-flex to block */
    }

    .banner-header-group {
        display: block; /* Changed from inline-flex to block */
    }
}
