* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

.site-header {
    background-color: #1d70b8;
    color: white;
    padding: 20px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.logo-image {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: -1px;
}

.tagline {
    font-size: 14px;
    flex: 0 0 auto;
    margin-right: auto;
}

.header-icons {
    display: flex;
    gap: 16px;
}

.icon-link {
    display: flex;
    align-items: center;
    color: white;
    transition: opacity 0.2s;
}

.icon-link:hover {
    opacity: 0.8;
}

.search-section {
    display: flex;
    gap: 0;
}

.search-input {
    padding: 10px 16px;
    border: none;
    font-size: 14px;
    width: 240px;
    outline: none;
}

.search-button {
    padding: 10px 24px;
    background-color: #d3e3f2;
    color: #1d70b8;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: #ffffff;
}

.sign-in-button {
    padding: 10px 24px;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
    display: inline-block;
}

.sign-in-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.main-nav {
    background-color: #e8e8e8;
    border-bottom: 1px solid #d0d0d0;
    position: relative;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    z-index: 100;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 0;
}

.nav-item {
    padding: 16px 24px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border-right: 1px solid #d0d0d0;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item:first-child {
    border-left: 1px solid #d0d0d0;
}

.nav-item:hover {
    background-color: #d8d8d8;
}

.dropdown-arrow {
    font-size: 10px;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 32px;
    text-align: center;
}

.popular-pages {
    margin-bottom: 60px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.page-card {
    background-color: #1d70b8;
    color: white;
    padding: 40px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 140px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.page-card:hover {
    background-color: #155a93;
}

.page-card h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.news-section {
    margin-bottom: 60px;
}

.news-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.featured-news {
    background-color: white;
    border: 1px solid #ddd;
}

.news-image-placeholder {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
}

.news-content {
    padding: 24px;
}

.news-date {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.featured-news h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}

.featured-news p {
    color: #555;
    margin-bottom: 16px;
    line-height: 1.6;
}

.read-more {
    color: #1d70b8;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.read-more:hover {
    color: #155a93;
    text-decoration: underline;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-item {
    background-color: white;
    border: 1px solid #ddd;
    padding: 20px;
}

.news-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.useful-links {
    margin-bottom: 60px;
}

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

.link-card {
    background-color: white;
    border: 1px solid #ddd;
    padding: 24px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.link-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #155a93;
}

.link-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d70b8;
    margin-bottom: 8px;
}

.link-card p {
    color: #666;
    font-size: 14px;
}

.site-footer {
    background-color: #f5f5f5;
    border-top: 3px solid #1d70b8;
    padding: 40px 0 32px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.footer-logo-image {
    width: 140px;
    height: auto;
}

.newsletter-card {
    flex: 1;
    background-color: white;
    padding: 24px;
    border: 1px solid #ddd;
}

.newsletter-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.newsletter-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 0;
}

.newsletter-input {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    background-color: white;
    border: 1px solid #ddd;
    outline: none;
}

.newsletter-input:focus {
    border-color: #1d70b8;
}

.newsletter-button {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background-color: #1d70b8;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.newsletter-button:hover {
    background-color: #155a93;
}

.footer-links {
    padding-top: 24px;
    border-top: 1px solid #ddd;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 16px;
}

.footer-links-list li {
    margin-bottom: 0;
}

.footer-links-list a {
    font-size: 14px;
    color: #1d70b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links-list a:hover {
    color: #155a93;
    text-decoration: underline;
}

.footer-copyright {
    font-size: 14px;
    color: #666;
}

@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-container {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 16px 0;
    }

    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .logo-section {
        justify-content: center;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .tagline {
        margin-right: 0;
        text-align: center;
        font-size: 13px;
    }
    
/* hide from header */
.header-container .header-icons,
.header-container .sign-in-button {
    display: none;
}
    
    .search-section {
        width: 100%;
        order: 3;
    }
    
    .search-input {
        flex: 1;
        width: auto;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .nav-container {
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-container.active {
        max-height: 500px;
    }
    
    .nav-item {
        width: 100%;
        text-align: left;
        justify-content: space-between;
        padding: 14px 20px;
        border-right: none;
        border-bottom: 1px solid #d0d0d0;
    }
    
    .nav-item:first-child {
        border-left: none;
        border-top: 1px solid #d0d0d0;
    }
    
    main {
        padding: 24px 16px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .popular-pages {
        margin-bottom: 40px;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .page-card {
        padding: 24px 16px;
        min-height: 100px;
    }
    
    .page-card h3 {
        font-size: 15px;
    }
    
    .news-section {
        margin-bottom: 40px;
    }
    
    .news-image-placeholder {
        height: 200px;
    }
    
    .news-content {
        padding: 16px;
    }
    
    .featured-news h3 {
        font-size: 20px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .link-card {
        padding: 20px;
    }
    
    .site-footer {
        padding: 32px 0 24px;
    }
    
    .footer-container {
        padding: 0 16px;
    }
    
    .newsletter-card {
        padding: 20px;
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
    }
    
    .newsletter-title {
        font-size: 18px;
    }
    
    .newsletter-description {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 8px;
    }
    
    .newsletter-input {
        width: 100%;
        padding: 12px 14px;
    }
    
    .newsletter-button {
        width: 100%;
        padding: 12px 24px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 28px;
    }
    
    .footer-logo {
        order: -1;
        padding: 0;
        justify-content: flex-start;
    }
    
    .footer-logo-image {
        width: 100px;
    }
    
    .footer-links {
        padding-top: 20px;
    }
    
    .footer-links-list {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .footer-links-list a {
        font-size: 14px;
    }
    
    .footer-copyright {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .useful-links {
        margin-bottom: 40px;
    }

/* show inside hamburger */
.nav-container .mobile-menu-extra {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px;
    border-top: 1px solid #d0d0d0;
}

/* center icons nicely */
.nav-container .header-icons {
    justify-content: center;
}

/* full width sign in */
.nav-container .sign-in-button {
    width: 100%;
    text-align: center;
}

}

@media (max-width: 480px) {
    .logo-text {
        font-size: 20px;
    }
    
    .logo-image {
        width: 36px;
        height: 36px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .page-card {
        padding: 20px 16px;
        min-height: 80px;
    }
    
    .page-card h3 {
        font-size: 16px;
    }
    
    .news-image-placeholder {
        height: 180px;
    }
    
    .featured-news h3 {
        font-size: 18px;
    }
    
    .link-card h3 {
        font-size: 16px;
    }
    
    main {
        padding: 20px 12px;
    }
    
    .site-footer {
        padding: 24px 0 20px;
    }
    
    .newsletter-card {
        padding: 16px;
        margin-left: -12px;
        margin-right: -12px;
        width: calc(100% + 24px);
    }
    
    .newsletter-title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .newsletter-description {
        font-size: 12px;
    }
    
    .newsletter-input {
        padding: 11px 12px;
        font-size: 13px;
    }
    
    .newsletter-button {
        padding: 11px 20px;
        font-size: 13px;
    }
    
    .footer-top {
        gap: 20px;
        margin-bottom: 24px;
    }
    
    .footer-logo-image {
        width: 80px;
    }
    
    .footer-links {
        padding-top: 16px;
    }
    
    .footer-links-list {
        gap: 10px;
    }
    
    .footer-links-list a {
        font-size: 13px;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
}

.gov-banner {
  background-color: #f1f1f1;
  border-bottom: 1px solid #ccc;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1b1b1b;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.gov-banner__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.25rem 1rem; /* 👈 reduce height */
}

.gov-banner__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem; /* 👈 tighter spacing */
}

.gov-banner__icon img {
  width: 28px;
  height: 28px;
}

.gov-banner__icon {
  font-size: 1.4rem;
  line-height: 1;
}

.gov-banner__text {
  font-weight: 500;
  margin-right: auto; /* pushes toggle to the right on larger screens */
}

.gov-banner__toggle {
  background: none;
  border: none;
  color: #005ea2;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.1s;
}

.gov-banner__toggle:hover {
  border-bottom-color: currentColor;
}

.gov-banner__toggle:focus-visible {
  outline: 2px solid #005ea2;
  outline-offset: 2px;
  border-radius: 2px;
}

.gov-banner__toggle-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.gov-banner__toggle[aria-expanded="true"] .gov-banner__toggle-icon {
  transform: rotate(180deg);
}

.gov-banner__panel {
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 0;
  padding: 0 1rem; /* 👈 important: remove vertical padding */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);

  /* animation base */
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;

  max-height: 0;          /* 👈 THIS FIXES YOUR ISSUE */
  overflow: hidden;       /* 👈 hides content */

  transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.25s ease;
}

.gov-banner__panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;

  max-height: 500px; /* 👈 enough to fit content */
  padding: 0.75rem 1rem; /* restore spacing when open */

  margin-top: 0.75rem; /* 👈 move it here */
}

.gov-banner__panel-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .gov-banner__panel-content {
    flex-direction: row;
    gap: 2rem;
  }
}

.gov-banner__panel-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.gov-banner__panel-item strong {
  font-weight: 700;
  color: #1e1e1e;
}

.gov-banner__panel-item span {
  color: #3d3d3d;
}

.mobile-menu-extra {
    display: none;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .gov-banner__header {
  flex-wrap: nowrap;          /* 👈 stop stacking */
  justify-content: space-between;
  align-items: center;
}

  .gov-banner {
    z-index: 9;
  }

  .gov-banner__text {
  width: auto;
  text-align: left;
  font-size: 0.8rem; /* optional: keeps it tighter */
}

  .gov-banner__icon {
    margin-left: auto;
    margin-right: auto;
  }

  .gov-banner__toggle {
    margin-left: auto;
    margin-right: auto;
  }

.gov-banner__toggle {
  font-size: 0.8rem;
}

}

.search-button svg {
    width: 18px;
    height: 18px;
    stroke: #1d70b8;
}

.nav-container .mobile-menu-extra .icon-link {
    color: #1d70b8;
}

.nav-container .mobile-menu-extra .sign-in-button {
    color: #1d70b8;
    border: 2px solid #1d70b8;
}