html {
    margin: 0;
    font-family: sans-serif;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Default Header Styles */
.header-default {
    /* ... your existing styles ... */
    background-color: #f0f0f0; /* Added for visual distinction during testing */
    /* Add a transition for opacity and max-height for smoother hide/show */
    transition: opacity 0.3s ease-out, max-height 0.3s ease-out;
    overflow: hidden; /* Important for max-height transition to work cleanly */
}
/* ... rest of .header-default styles ... */
.header-default .top-bar {
    background-color: #194210; color: white; padding: 2.0em 1em;
    display: flex; justify-content: space-between; align-items: center; font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}
.header-default .top-bar-left-spacer,
.header-default .top-bar-right-content { flex: 1; }
.header-default .top-bar-right-content { display: flex; justify-content: flex-end; }
.header-default .top-bar-center-logo { flex: 0 1 auto; text-align: center; }
.header-default .top-bar-center-logo h1 { margin: 0; font-size: 2.2em; display: inline-block; font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; }
.header-default .search-bar-area form { display: flex; align-items: center;padding-right:30px}

.header-default .search-bar-area input[type="text"].search-input {
    padding: 10px 12px;
    font-size: 1em;
    border: none;
    border-radius: 5px 0 0 5px;
    background-color: #f8f5f5;
    color: #333;
    min-width: 180px;
    max-width: 300px;
}
.header-default .search-bar-area input[type="text"].search-input::placeholder {
    color: #888;
}
.header-default .search-bar-area button[type="submit"].search-button {
    padding: 10px 15px;
    font-size: 1em;
    background-color: #8cb98c;
    color: white;
    border:none ;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    margin-left: -1px;
}
.header-default nav { background-color: #e0dcc2; padding: 0.5em; text-align: center; }
.header-default nav ul { list-style-type: none; margin: 0; padding: 0; }
.header-default nav ul li { display: inline; margin-right: 20px; }
.header-default nav ul li a {
    color:#172006;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease-out, transform 0.2s ease-out;
    display: inline-flex;
    align-items: center;
}
.header-default nav ul li a:hover {
    color:#596444;
    transform: translateY(-2px);
}
.header-default nav ul li a:hover .nav-icon {
    color: #596444;
}
.nav-icon {
    margin-right: 6px;
    font-size: 0.95em;
}
.header-default .search-bar-area .search-by-select {
    padding: 10px 8px;
    font-size: 0.95em;
    border: none;
    border-radius: 5px;
    background-color: #f8f5f5;
    color: #1a1b19;
    margin-right: -1px;
    height: 39.6px;
    outline: none;
}
.header-default .search-bar-area .search-by-select + .search-input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}


/* --- Collapsed, Fixed Header (Sticks to Top) --- */
.header-collapsed {
    background-color: #194210; /* Dark green */
    color: white;
    padding: 0.5em 1em;
    position: fixed;
    top: 0;
    left: 0; width: 100%;
    box-sizing: border-box;
    z-index: 2000;
    display: flex;
    justify-content: flex-start; /* Aligns logo to the left */
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);

    /* Initial hidden state */
    opacity: 0;
    transform: translateY(-100%); /* Start off-screen */
    pointer-events: none;         /* Not interactive when hidden */

    /* Transition for appearing/disappearing */
    /* IMPORTANT: CSS transitions on properties JS also directly manipulates can cause issues.
       JS will add/remove 'visible' class. This rule defines how it animates. */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.header-collapsed.visible {
    opacity: 1;
    transform: translateY(0); /* Move into view */
    pointer-events: auto;     /* Interactive when visible */
}

.header-collapsed .collapsed-logo h1 {
    margin: 0;
    font-size: 1.5em;
    color: white;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    /* Removed text-align: left - flexbox on parent handles alignment */
}


/* Styles for the page content pusher */
.page-content-pusher {
    flex: 1 1 auto; /* Allow it to grow and shrink, basis is auto */
    display: flex;
    flex-direction: column;
    margin-top: 0px; /* JS will set this using margin-top */
    /* Add transition for margin-top if you want it to animate.
       Be aware this can sometimes be less performant than transform/opacity. */
    transition: margin-top 0.3s ease-out;
}

.content-wrapper {
    flex: 1 0 auto; /* Grow, don't shrink, basis is auto */
    padding: 20px;
    background-color: #ffffff; /* Example background */
}

footer {
    background-color: #194210; /* Dark green */
    text-align: center;
    padding: 10px;
    flex-shrink: 0; /* Prevent footer from shrinking */
    color: white;
}

.marquee {
    width: 100%;
    overflow: hidden;
    background-color: white;
    padding: 8px 0;
  }
  
  .marquee__inner {
    display: flex;
    width: max-content;
    white-space: nowrap;
    /* The animation is now defined here */
    animation: scrollLeft linear infinite;
  }
  
  .marquee__text {
    display: inline-block;
    color: darkred;
    font-size: 14px;
    font-family: Arial, sans-serif;
    padding-right: 60vw;
  }
  
  /* A single, simple animation for a seamless loop */
  @keyframes scrollLeft {
    0% {
      transform: translateX(0);
    }
    100% {
      /* Moves the element left by half its own width (the width of one span) */
      transform: translateX(-50%);
    }
  }
  
  /* TOS modal tweaks */
  #tosConsentModal .modal-body ul {
      margin-left: 1rem;
  }

  #tosConsentModal .modal-title {
      font-weight: 600;
  }