html {
    min-width: 350px;
}

.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: auto;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

a.anchor {
    display: block;
    position: relative;
    top: -260px;
    visibility: hidden;
}

/* Removed duplicate header-title styles - using enhanced version below */

body {
    font-weight: 400;
    line-height: 1.8;
    /*font-family: Century Gothic', 'Lucida Grande', 'Lucida Sans', 'Verdana', sans-serif;*/
    font-family: Poppins, Helvetica, Arial, sans-serif;
    padding-top: 0 !important;
}

h1 {
    font-family: Poppins;
    font-size: 2.2rem;
    font-weight: bold;
}

h2 {
    font-family: Poppins;
    font-size: 1.5rem;
}

h1.smaller-header {
    font-size: 1.5rem;
}


h1.measure-status.card-header {
    font-size: 1rem;
}

h1.card-header {
    font-size: 1.5rem;
    font-weight: 500;
}

h2.card-header, h3.card-header {
    font-size: 1.5rem;
}

h2.namecard {
    font-size: 1.3rem;
}

div.justify-content-begin > h2 {
    font-size: 1.75rem;
}

div.card-body > h2 {
    font-size: 1.25rem;
}

.card-body div {
    flex-grow: 1;
}

div.banner-overlay-text > h2 {
    font-size: 2rem;
    text-align: center;
}

h2.card-title {
    font-size: 1.25rem;
}

.card-header.secondary-page > h1, h2, h3 {
    font-size: 1.5rem
}

h3.card-title {
    font-size: 1.25rem;
}

a {
    color: mediumblue;
    cursor: pointer;
    background-color: transparent;
    text-decoration: underline;
}

a:visited {
    color: #884488;
}

hr {
    display: block;
    unicode-bidi: isolate;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    margin-inline-start: auto;
    margin-inline-end: auto;
    overflow: hidden;
    border-style: inset;
    border-width: 1px;
    border-color: #f2f2f2;
}

ul {
    /*    margin: 0;
    padding: 0;*/
    color: black;
}

ul.no-style-type li {
    list-style-type: none;
}

/*li {
    text-decoration: none;
    color: black;
    padding-top: 2px;
    list-style-position: outside;
}*/

.table.hearingnotice {
    font-size: .87rem;
    text-wrap: nowrap;
}

.table.hearingnotice th {
    padding: 1rem;
    text-wrap: nowrap;
}

.ac-hidden {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

    .ac-hidden:focus {
        clip: auto;
        height: auto;
        overflow: auto;
        position: absolute;
        width: auto;
    }

.normal {
    font-size: 1rem;
    font-weight: normal;
    display: inline;
}

li a:hover {
    color: #007bff;
    text-decoration: underline;
    list-style-image: none;
}

li a {
    text-decoration: none;
    color: #124D79;
}

li a.li-link {
    color: #3344dd;
    text-decoration: underline;
    font-size: 1.1rem;
}

li a.li-link:hover {
    color: #007bff;
    text-decoration: none;
    list-style-image: none;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: gray#808080;
    font-size: 0.9rem;
    text-align: center;
}

.form-control::placeholder {
    color: #3C4144;
}

.custom-select:focus {
    border-color: #004085;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgb(0,64,133);
}

.uppercase {
    text-transform: uppercase;
}

/* fixed header
#main-content {
    margin-top: 160px;
}*/


.tblSubmitTestimonySS td {
    padding-bottom: 15px;
}

    .tblSubmitTestimonySS td.ptop {
        padding-top: 12px;
    }

    .tblSubmitTestimonySS td.last {
        padding-bottom: 0px;
    }


.tblSubmitTestimonySS .radioBL input[type="radio"] {
    margin-right: 7px;
    word-break: break-all;
}

.tblSubmitTestimonySS .radioBL label {
    display: inline !important;
    padding-bottom: 10px;
}

.reversed {
    display: flex;
    flex-direction: column-reverse;
}

.topalert-danger {
    color: #1a1a1a;
    background-color: #f5c6cb;
    border-color: #f5c6cb;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.topalert-warning {
    color: #1a1a1a;
    background-color: #efcf01;
    border-color: #c9a400;
    width: 100%;
    box-sizing: border-box;
}

.topalert-normal {
    color: #ffffff;
    background-color: #1166cb;
    border-color: #1166cb;
    width: 100%;
    box-sizing: border-box;
}

/* WCAG 2.1 AA (4.5:1) — body text, links, :visited on alert backgrounds */
.topalert-danger .header-notice-text,
.topalert-danger .header-notice-text strong {
    color: #1a1a1a;
}

.topalert-danger a:link {
    color: #003d73;
    text-decoration: underline;
    text-decoration-thickness: max(1px, 0.08em);
    text-underline-offset: 0.15em;
}

.topalert-danger a:visited {
    color: #5c1a4d;
}

.topalert-danger a:hover,
.topalert-danger a:active {
    color: #00264a;
}

.topalert-warning .header-notice-text,
.topalert-warning .header-notice-text strong {
    color: #1a1a1a;
}

.topalert-warning a:link {
    color: #00264d;
    text-decoration: underline;
    text-decoration-thickness: max(1px, 0.08em);
    text-underline-offset: 0.15em;
}

.topalert-warning a:visited {
    color: #4a0e3d;
}

.topalert-warning a:hover,
.topalert-warning a:active {
    color: #001a33;
}

.topalert-normal .header-notice-text,
.topalert-normal .header-notice-text strong {
    color: #ffffff;
}

.topalert-normal a:link {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: max(1px, 0.08em);
    text-underline-offset: 0.15em;
}

.topalert-normal a:visited {
    color: #e3f2fd;
}

.topalert-normal a:hover,
.topalert-normal a:active {
    color: #ffffff;
    text-decoration-thickness: max(2px, 0.12em);
}

.topalert-danger a:focus-visible,
.topalert-warning a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.topalert-normal a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Mobile responsive adjustments for alert classes */
@media (max-width: 768px) {
    .topalert-danger,
    .topalert-warning,
    .topalert-normal {
        font-size: 0.8125rem;
        padding: 0.4rem 0.5rem !important;
    }
    
    .topalert-danger p,
    .topalert-warning p,
    .topalert-normal p {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .topalert-warning p {
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
    }
}

/* Fixed alert stack above the fixed header / minimized bar */
#header-alert {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10020;
    width: 100%;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

#header-alert[hidden] {
    display: none !important;
}

#header-alert > div {
    display: none;
}

#header-alert > div:not(:empty) {
    display: block;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

#header-alert > [hidden],
#header-alert > div[hidden] {
    display: none !important;
}

.header-notice-inner {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 3rem 0.85rem 1rem;
}

.header-notice-text {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.header-notice-close {
    position: absolute;
    top: 0.6rem;
    right: 0.65rem;
    min-width: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0.35rem;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.08);
    color: inherit;
}

.topalert-warning .header-notice-close {
    background-color: rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
}

.topalert-normal .header-notice-close {
    background-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.header-notice-close:hover {
    filter: brightness(0.95);
}

.topalert-danger .header-notice-close:focus {
    outline: 2px solid #003d73;
    outline-offset: 2px;
}

.topalert-warning .header-notice-close:focus {
    outline: 2px solid #00264d;
    outline-offset: 2px;
}

.topalert-normal .header-notice-close:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

#header-alert > div p {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .header-notice-inner {
        padding: 0.75rem 2.75rem 0.75rem 0.9rem;
    }
}

.modal-confirm .modal-header {
    background: #47c9a2;
    border-bottom: none;
    position: relative;
    text-align: center;
    margin: -20px -20px 0;
    border-radius: 5px 5px 0 0;
    padding: 35px;
}

/* YouTube modal */
#myModal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 70%;
    transform: translate(-50%, -50%);
}

.modal-content {
    width: 700px;
}

/*-------------------------------------SESSION INFO--------------------------------------------*/
.session-time {
    font-weight: bold;
}


/*-------------------------------------HEADER--------------------------------------------*/

#main-nav {
    z-index: 10002;
    position: relative;
    overflow: visible !important; /* Allow dropdowns to extend beyond navbar */
}

#header-blue-nav,
#header-container .container,
#header-container .d-flex,
.container-fluid {
    overflow: visible !important; /* Allow dropdowns to extend beyond containers */
}

.main-nav {
    min-height: 45px !important;
    padding: 0.3rem 0 !important;
}

#header-seal {
    height: auto;
    min-height: 115px;
}

#main-content .container {
    padding: 1rem 0;
}

.banner {
    margin-top: 0 !important;
}

div#search-bar > * {
    font-size: 1rem;
}

.sub-menu {
    padding: 0 10px 0 4px;
}

.navbar-nav  {
    color: #fff;
}

#header-container {
    background: linear-gradient(135deg, #124D78 0%, #1B73B4 100%) !important;
    position: fixed !important;
    top: var(--header-alert-height, 0px);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
    will-change: transform, opacity;
}

body.header-compact #header-container {
    transform: translateY(calc(-100% - 1rem));
    opacity: 0;
    pointer-events: none;
}

#header-spacer {
    height: 0;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#minimized-menu-bar {
    position: fixed;
    top: var(--header-alert-height, 0px);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #124D78 0%, #1B73B4 100%);
    z-index: 10001;
    height: 60px;
    display: flex; /* Always flex — visibility controlled by transform/opacity/visibility */
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: transform, opacity;
}

#minimized-menu-bar.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#minimized-menu-bar .minimized-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
}

#minimized-menu-bar .minimized-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

#minimized-menu-bar .minimized-logo span {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
}

#minimized-menu-bar .minimized-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

#minimized-menu-bar .minimized-nav .nav-item {
    position: relative;
}

#minimized-menu-bar .minimized-nav .nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

#minimized-menu-bar .minimized-nav .nav-link:hover {
    background: rgba(255,255,255,0.2);
}

/* Minimized menu dropdown styles */
#minimized-menu-bar .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 0.3rem 0;
    min-width: 180px;
    backdrop-filter: blur(10px);
    margin-top: 0.25rem;
    z-index: 1001;
}

/* Remove bullet points from dropdown lists */
#minimized-menu-bar .dropdown-menu ul,
#minimized-menu-bar .dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

#minimized-menu-bar .dropdown-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

#minimized-menu-bar .dropdown-item {
    padding: 0.4rem 0.8rem;
    font-weight: 500;
    color: #124D78;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border-radius: 6px;
    margin: 0.1rem 0.3rem;
    font-size: 0.8rem;
}

#minimized-menu-bar .dropdown-item:hover {
    background: linear-gradient(135deg, #124D78, #1B73B4);
    color: white;
    transform: translateX(2px);
}

/* Show dropdown on hover */
#minimized-menu-bar .nav-item:hover .dropdown-menu {
    display: block;
}

#minimized-menu-bar .nav-item.open .dropdown-menu {
    display: block;
}

#minimized-menu-bar .expand-trigger {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

#minimized-menu-bar .expand-trigger:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}


/* Hide mobile menu toggle on desktop */
#minimized-menu-bar .mobile-menu-toggle,
.login-bar-row .mobile-menu-toggle {
    display: none !important;
}

/* Mobile navigation drawer - slides in from the right (above fixed alert + minimized bar) */
#mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    z-index: 100060;
    background: linear-gradient(180deg, #0A2F4A 0%, #0E4A72 100%);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    box-shadow: -4px 0 16px rgba(0,0,0,0.35);
}

#mobile-nav-drawer.no-transition {
    transition: none !important;
}

#mobile-nav-drawer.ready {
    display: block;
}

#mobile-nav-drawer.open {
    transform: translateX(0);
}

.mobile-nav-drawer-header {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.mobile-nav-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 1.25rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.mobile-nav-close:hover,
.mobile-nav-close:focus {
    color: white;
    background: rgba(255,255,255,0.12);
    outline: 2px solid rgba(255,255,255,0.5);
}

.mobile-nav-section {
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.mobile-nav-section-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    color: white;
    padding: 0.9rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    text-align: left;
    font-family: 'Poppins', sans-serif;
}

.mobile-nav-section-toggle .fa {
    transition: transform 0.2s ease;
    font-size: 0.75rem;
    opacity: 0.8;
}

.mobile-nav-section.open > .mobile-nav-section-toggle .fa {
    transform: rotate(90deg);
}

.mobile-nav-section-items {
    display: none;
    background: rgba(0,0,0,0.15);
    padding: 0.3rem 0;
}

.mobile-nav-section.open > .mobile-nav-section-items {
    display: block;
}

.mobile-nav-item {
    display: block;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 0.65rem 1.5rem;
    font-size: 0.85rem;
    transition: background-color 0.15s;
}

.mobile-nav-item:visited {
    color: rgba(255,255,255,0.9);
}

.mobile-nav-item.sub:visited {
    color: rgba(255,255,255,0.65);
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    background: rgba(255,255,255,0.12);
    color: white;
    text-decoration: none;
}

.mobile-nav-item.sub {
    padding-left: 2.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
}

#mobile-nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100050;
    background: rgba(0,0,0,0.35);
}

#mobile-nav-backdrop.visible {
    display: block;
}
/* makes the first sibling after the header start right below the header*/
/* Removed - header is now in normal flow, so no padding needed */
/* #header-container + * {
    padding-top: 170px !important;
} */ 

/* Enhanced Header Title */
#header-title {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

/* .main-header-text-lg {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
} */

.main-header-text-lg {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.main-header-text-sm {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
    font-style: italic;
}

/* Modern Integrated Search Interface */
.modern-search-container {
    max-width: 800px !important;
    width: 100% !important;
    margin: 0 auto !important;
    position: relative !important;
}

.modern-search-bar {
    background: rgba(255,255,255,0.9) !important;
    border-radius: 30px !important;
    padding: 0 !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08), inset 0 1px 3px rgba(0,0,0,0.1) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    width: 100% !important;
    backdrop-filter: blur(10px) !important;
    overflow: hidden !important;
    min-height: 40px !important;
    /* Prevent unwanted touch behaviors on mobile */
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}

.modern-search-bar:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px) !important;
    border-color: rgba(0,123,255,0.2) !important;
}

/* search-input-wrapper styles merged into modern-search-bar */

/* Search icon removed */

.search-input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 0.875rem 1rem !important;
    font-size: 1rem !important;
    color: #2c3e50 !important;
    outline: none !important;
    font-weight: 500 !important;
    border-radius: 0 !important;
    height: 100% !important;
    transition: all 0.2s ease !important;
    margin-right: 0.5rem !important;
    /* Prevent unwanted touch behaviors on mobile */
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    user-select: text !important;
    -webkit-user-select: text !important;
}

.search-input:focus {
    color: #1a1a1a !important;
    font-weight: 500 !important;
}

.search-input::placeholder {
    color: #8e9aaf !important;
    font-weight: 400 !important;
    opacity: 0.8 !important;
}

.clear-btn {
    position: absolute !important;
    right: 3.2rem !important;
    background: rgba(108, 117, 125, 0.15) !important;
    border: none !important;
    color: #6c757d !important;
    font-size: .7rem !important;
    padding: 0.2rem !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    z-index: 3 !important;
    opacity: 0.8 !important;
}

.clear-btn:hover {
    background: rgba(108, 117, 125, 0.2) !important;
    color: #495057 !important;
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

/* Search Help Link */
.search-help-link {
    margin-top: 0.5rem !important;
    text-align: right !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 0.75rem !important;
    flex-wrap: wrap !important;
}

.search-help {
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    transition: all 0.2s ease !important;
    opacity: 0.85 !important;
    cursor: pointer !important;
    padding: 0.25rem 0.5rem !important;
    /* Ensure proper touch handling on mobile */
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2) !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    pointer-events: auto !important;
    min-height: 44px !important; /* Minimum touch target size */
    min-width: 44px !important;
}

.search-help:hover {
    color: rgba(255, 255, 255, 1) !important;
    opacity: 1 !important;
    text-decoration: underline !important;
}

.search-help:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5) !important;
    outline-offset: 2px !important;
}

.search-help i {
    font-size: 0.9rem !important;
}

/* Filter toggle button removed - filters now auto-expand on focus */

/* Filter Section */
.filter-section {
    background: rgba(255,255,255,0.95) !important;
    border-radius: 12px !important;
    margin-top: 0.75rem !important;
    padding: 1rem !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
    /* Ensure filter section is touchable on mobile */
    touch-action: manipulation !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 100 !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    animation: slideDown 0.3s ease-out !important;
    display: none !important; /* Hidden by default */
    transition: all 0.3s ease-out !important;
}

.filter-section.show {
    display: block !important;
    animation: slideDown 0.3s ease-out !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1rem !important;
}

.filter-title {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-weight: 600 !important;
    color: #495057 !important;
    font-size: 0.9rem !important;
}

.filter-chevron {
    font-size: 0.75rem !important;
    transition: transform 0.2s ease !important;
}

.enable-all-btn {
    background: none !important;
    border: none !important;
    color: #007bff !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
}

.enable-all-btn:hover {
    color: #0056b3 !important;
}

.filter-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}

.filter-pill {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 20px !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #495057 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    white-space: nowrap !important;
    /* Ensure proper touch handling on mobile */
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(0, 123, 255, 0.2) !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
}

.filter-pill:hover {
    background: #e9ecef !important;
    border-color: #adb5bd !important;
    transform: translateY(-1px) !important;
}

.filter-pill.active {
    background: #007bff !important;
    border-color: #007bff !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3) !important;
}

.filter-pill i {
    font-size: 0.75rem !important;
}

.search-submit-btn {
    background: #007bff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    color: white !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: none !important;
    margin: 0.5rem .5rem .5rem .5rem !important;
    text-decoration: none !important;
    /* Ensure LinkButton (renders as <a>) looks like a button */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.search-submit-btn:hover {
    background: #0056b3 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

.search-submit-btn:active {
    background: #004085 !important;
    color: white !important;
    transform: translateY(0) !important;
    box-shadow: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-search-container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .modern-search-bar {
        padding: 0 !important;
    }
    
    .search-input {
        padding: 0.625rem 0.75rem !important;
        font-size: 16px !important; /* must be >= 16px to prevent iOS auto-zoom on focus */
    }
    
    /* On mobile, filter section is visible ONLY when user has typed (data-search-has-text set by JS) */
    .filter-section {
        display: none !important;
        padding: 0.75rem !important;
        margin-top: 0.5rem !important;
    }
    .filter-section[data-search-has-text="true"] {
        display: block !important;
        animation: slideDown 0.3s ease-out !important;
    }
    
    .filter-pills {
        gap: 0.375rem !important;
    }
    
    .filter-pill {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.8rem !important;
        /* Ensure larger touch target on mobile */
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    .search-submit-btn {
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        margin: 0 !important;
        position: absolute !important;
        right: 6px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 2 !important;
    }

    .clear-btn {
        position: absolute !important;
        right: 44px !important; /* Position to the left of search button (32px + 6px right + 6px gap) */
        z-index: 3 !important;
    }
    
    .modern-search-bar {
        min-height: 36px !important;
        flex-direction: row !important; /* Ensure horizontal layout */
        align-items: center !important;
        display: flex !important;
    }
    
    .search-input {
        margin-right: 0 !important;
        padding-right: 5.5rem !important; /* room for both clear btn and search btn */
    }
    
    /* Show search help links in mobile view with mobile-friendly styling */
    .search-help-link {
        display: flex !important;
        justify-content: center !important;
        margin-top: 0.75rem !important;
        gap: 1rem !important;
        flex-wrap: wrap !important;
    }
    
    .search-help {
        display: inline-flex !important;
        font-size: 0.8rem !important;
        padding: 0.5rem 0.75rem !important;
        min-height: 44px !important; /* Ensure touch-friendly size */
        min-width: auto !important;
    }
    
    /* Modal mobile adjustments */
    #searchHelpModal .modal-dialog {
        margin: 1rem !important;
        max-width: calc(100% - 2rem) !important;
    }
    
    #searchHelpModal .modal-content {
        border-radius: 8px !important;
    }
    
    #searchHelpModal .modal-header,
    #searchHelpModal .modal-body,
    #searchHelpModal .modal-footer {
        padding: 1rem !important;
    }
}

@media (max-width: 480px) {
    .filter-pills {
        flex-direction: column !important;
    }
    
    .filter-pill {
        justify-content: center !important;
        width: 100% !important;
    }
}

/* Enhanced Account Navigation - Reduced by 20% */
#section-login {
    background: rgba(255,255,255,0.1);
    border-radius: 16px; /* 20px * 0.8 = 16px */
    padding: 0.4rem 0.8rem; /* 0.5rem * 0.8 = 0.4rem, 1rem * 0.8 = 0.8rem */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.8em; /* Reduce overall font size by 20% */
}

#section-login a {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.2rem 0.4rem; /* 0.25rem * 0.8 = 0.2rem, 0.5rem * 0.8 = 0.4rem */
    border-radius: 8px; /* 10px * 0.8 = 8px */
    font-size: 0.8em; /* Reduce link font size by 20% */
}

#section-login a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.navbar-light .navbar-nav .nav-link {
    color: #fff;
    /* color: rgba(0, 0, 0, .5); */
}

.navbar .navbar-nav .nav-link:hover {
    background: rgba(255,255,255,0.15) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    color: #fff !important;
}

/* Ensure dropdown menus are visible and hoverable */
.dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 99999 !important; /* Very high z-index to ensure visibility above all content */
    background: rgba(255,255,255,0.95) !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
    padding: 0.3rem 0 !important;
    min-width: 180px !important;
    backdrop-filter: blur(10px) !important;
    margin-top: 0 !important;
    overflow: visible !important; /* Ensure content isn't clipped */
}

/* Show dropdown when Bootstrap adds .show class */
.dropdown-menu.show {
    display: block !important;
}

.nav-item.dropdown:hover .dropdown-menu,
.dropdown:hover .dropdown-menu {
    display: block !important;
}

.nav-item.dropdown {
    position: relative !important;
}

/* Ensure dropdown stays open when hovering over menu items */
.dropdown-menu:hover {
    display: block !important;
}

/* Add a small invisible bridge to prevent gap issues */
.nav-item.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 5px;
    background: transparent;
    z-index: 9998;
}

.dropdown-item {
    padding: 0.5rem 1rem !important;
    font-weight: 500 !important;
    color: #124D78 !important;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease !important;
    border-radius: 6px !important;
    margin: 0.1rem 0.3rem !important;
    font-size: 0.85rem !important;
}

    .dropdown-item:hover {
        background: linear-gradient(135deg, #124D78, #1B73B4) !important;
        color: white !important;
        transform: translateX(2px) !important;
    }

/* Ensure modals appear above navigation menu */
.modal {
    z-index: 100000 !important;
}

.modal-backdrop {
    z-index: 99999 !important;
}

/* Video modal (hearing stream): header row with title and close button */
.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 0.5rem 0;
}

.video-modal-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #124D79;
    margin: 0;
}

.video-modal-close {
    position: static;
    flex-shrink: 0;
    margin: 0;
    padding: 0.25rem;
}

.video-modal-notice-wrap {
    margin-bottom: 0.75rem;
}

.video-modal-notice-wrap a {
    color: #124D79;
    font-weight: 500;
}

.page-header {
    text-align: center;
    color: #111;
    padding: 1rem;
    text-align: center;
    /*border-top: 1px solid #C0C0C0;
    border-bottom: 1px solid #C0C0C0;*/
    margin-bottom: 1rem;
}

    .page-header h1 {
        font-size: 2.5rem;
        font-weight: 700;
        line-height: 64px;
        text-transform: uppercase;
        margin: 0;
    }

    .page-header select {
        font-size: 2.5rem;
    }

/*.banner-overlay span {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: #fff;
}*/

.banner-overlay div#search {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: #fff;
}

h1 span.banner {
    font-weight: normal;
}

.wide-text {
    line-height: 1.1em;
    letter-spacing: .04em;
    font-weight: 500;
}



nav#section-login * {
    color: white;
}

a.dropdown-item {
    width: inherit;
    padding: 0.5em;
}

    a.dropdown-item:hover {
        color: white;
        background-color: #ABB5BF;
    }

.dropdown-menu {
    padding-top: 0;
    padding-bottom: 0;
    z-index: 2;
}


.menu-seal-img {
    width: 90px;
    height: 90px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.menu-seal-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
}

#main-header-banner {
    padding-top: 50px;
}

#main-header {
    background-size: cover;
    width: 100%;
    object-fit: cover;
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.4);
    height: 275px;
}

h1.banner {
    font-size: 4rem;
    color: #ffffff;
    padding-top: 2rem;
}

h2.banner {
    font-size: 2rem;
}

#main-menu {
    width: 100%;
}

#grey-header {
    background-color: #f4f4f4;
    height: 35px;
    font-size: 0.8rem;
}

.grey-header {
    background-color: #f4f4f4;
    height: 35px;
    font-size: 0.8rem;
}


#account-search-bar {
    margin-top: 15px;
}

#account-search-bar a.dropdown-item {
    color: black;
}

.account-nav a, #account-search-bar a, #account-search-bar a:hover {
    color: white;
    font-size: 0.9rem;
}



.navbar-toggler {
    background-color: #f8f9fa;
}


#header-image:hover {
    cursor: pointer;
}

/* Ensure state-seal maintains position when search filters expand */
.state-seal {
    margin-top: 0.5rem; /* Slight offset to maintain visual centering */
}


.leftr {
    position: relative;
    width: 100%;
    right: 68%;
    min-height: 800px;
}

li.new::after {
    font-family: FontAwesome;
    color: orange;
    content: '\f0f3';
}

li.new a {
    margin-right: 3px;
}

div#announcements {
    padding-bottom: 4px;
    padding-top: 4px;
    text-transform: none;
    text-decoration: none;
    color: #CB593C;
}


.loggedin-icon {
    color: orange;
}

.card .card-header.secondary-page {
    color: #000;
    background-color: #EAF4FB;
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4 {
    margin-bottom: 0;
    text-align: left;
}

.card li {
    color: #124D79;
}

/*    .card li a {
        text-decoration: none;
    }

    .card li a:hover {
        text-decoration: underline;
    }*/

.member-nav, .member-nav a, .member-nav-header {
    color: #6D2D1D;
}

    .member-nav.icon-nav a:hover {
        color: #ff3400;
    }

.icon-nav a {
    font-size: .95rem;
}

.icon-nav i {
    font-size: 2rem;
}



.loggedin-icon {
    color: orange;
}

.card .card-header.secondary-page {
    color: #000;
    background-color: #EAF4FB;
}

.card-featured .card {
    color: #003E6B;
    background: lightgray;
}

.main, .btn-main {
    /*background: -webkit-gradient(linear, left top, left bottom, from(#E1ECF9), to(#EAF4FB));*/
    /*background-color: #1B73B4;*/
    /*border-color: #124D79;*/
    background-color: #EB8D00;
    border-color: #EB8D00;
    color: black;
}


    .btn-main:focus,
    .form-control:focus {
        border-color: #004085;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgb(0,64,133);
    }

    .main:hover, .main:active, .btn-main:hover, .btn-main:active {
        /*background-color: #124D78;*/
        background-color: #EBA400;
        border-color: #EBA400;
    }

.bg-dark-gray {
    background-color: #45494d;
}


.focus-visible:focus {
    outline: 3px solid #0056b3; /* Adjust the color to ensure a contrast ratio of at least 3:1 */
    outline-offset: 2px;
}

/*-------------------------------------BANNER IMAGE--------------------------------------------*/
.banner-lg .banner-img {
    width: 100%;
    height: 375px;
    object-fit: cover;
    object-position: 0 55%;
}

.banner-lg .banner-overlay-text {
    color: #fff;
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    text-align: center;
    /*box-shadow: inset 0 0 0 2000px rgb(0 0 0 / 40%);*/
}

.carousel-btn {
    box-sizing: content-box;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    width: 20px;
    height: 3px;
    text-indent: -999px;
    cursor: pointer;
    background-color: #fff;
    background-clip: padding-box;
    border: 5px solid transparent;
    opacity: .5;
}

.banner-lg .banner-overlay-text {
    padding-top: 110px;
}

.carousel-indicators {
    list-style-type: none;
    display: flex;
    padding: 10px;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
    width: 50px;
    height: 50px;
}

.carousel-control-next:focus > .carousel-control-next-icon,
.carousel-control-prev:focus > .carousel-control-prev-icon {
    box-shadow: 0 0 2px 2px white;
}

.carousel-control-prev-icon:hover, .carousel-control-next-icon:hover {
    width: 75px;
    height: 75px;
}

.banner-img.house {
    object-position: bottom;
}

.banner-sm .banner-img, .banner-lg .banner-img {
    filter: brightness(60%);
}

.banner-sm .banner-img {
    width: 100%;
    height: 275px;
    object-fit: cover;
    object-position: 0 50%;
}


.banner-sm .banner-overlay-text {
    color: #fff;
    position: absolute;
    z-index: 1;
    width: 100%;
    /*box-shadow: inset 0 0 0 2000px rgb(0 0 0 / 40%);*/
    height: 275px;
}

    .banner-sm .banner-overlay-text h1 {
        padding-top: 5rem;
        font-size: 3rem;
        text-align: center;
    }

    .banner-sm .banner-overlay-text h3 {
        font-size: 2rem;
        text-align: center;
    }


.banner-sm .overlay-text-long h1 {
    padding-top: 4rem;
    font-size: 4rem;
}


.form-control {
    display: inline;
    width: 75%;
}

.required:after {
    content: " *";
    color: red;
}

.btn-navy {
    background-color: #124D78;
    color: #fff;
}

.card-header h6 {
    font-weight: bold;
}

.card {
    margin-bottom: 15px;
}

.card-columns {
    column-count: 2;
}

/*----------------------------------------GRADIENTS-----------------------------------------------*/
.gradientgray {
    /* fallback (Opera) */
    background: #F4F4F4;
    /* Mozilla: */
    background: -moz-linear-gradient(top, #FFFFFF, #E1E1E1);
    /* Chrome, Safari:*/
    background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#E1E1E1));
}

.gradientgrayreverse {
    /* fallback (Opera) */
    background: #F4F4F4;
    /* Mozilla: */
    background: -moz-linear-gradient(top, #E1E1E1, #FFFFFF);
    /* Chrome, Safari:*/
    background: -webkit-gradient(linear, left top, left bottom, from(#E1E1E1), to(#FFFFFF));
}

.gradientlightblue {
    /* fallback (Opera) */
    background: #BADEF2;
    /* Mozilla: */
    background: -moz-linear-gradient(top, #F5FAFF, #84C5E6);
    /* Chrome, Safari:*/
    background: -webkit-gradient(linear, left top, left bottom, from(#F5FAFF), to(#84C5E6));
}

.gradientlightbluereverse {
    /* fallback (Opera) */
    background: #BADEF2;
    /* Mozilla: */
    background: -moz-linear-gradient(top, #BADEF2, #E2E2E2);
    /* Chrome, Safari:*/
    background: -webkit-gradient(linear, left top, left bottom, from(#BADEF2), to(#E2E2E2));
}

.gradientdarkblue {
    /* fallback (Opera) */
    background: #124D79;
    /* Mozilla: */
    background: -moz-linear-gradient(top, #124D79, #1B73B4);
    /* Chrome, Safari:*/
    background: -webkit-gradient(linear, left top, left bottom, from(#124D79), to(#1B73B4));
}

.gradientorange {
    /* fallback (Opera) */
    background: #FFF0E1;
    /* Mozilla: */
    background: -moz-linear-gradient(top, #FFFFFF, #FFF0E1);
    /* Chrome, Safari:*/
    background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#FFF0E1));
    border: 1px solid #FFE1C4;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.gradientyellow {
    /* fallback (Opera) */
    background: #FFFFE1; /* Mozilla: */
    background: -moz-linear-gradient(top, #FFFFFF, #FFFFE1); /* Chrome, Safari:*/
    background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#FFFFE1));
    border: 1px solid #FFE1C4;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.bluebox {
    border: 1px solid #CAE3F4;
    background-color: #EAF4FB;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.blue-header {
    min-height: 50px !important;
    background-color: #124d79 !important;
}

#btn-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
}


.blue {
    color: #d9eef7;
    border: solid 1px #0076a3;
    background: #0095cd;
    background: -webkit-gradient(linear, left top, left bottom, from(#00adee), to(#0078a5));
    background: -moz-linear-gradient(top, #00adee, #0078a5);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00adee', endColorstr='#0078a5');
}

    .blue:hover {
        background: #007ead;
        background: -webkit-gradient(linear, left top, left bottom, from(#0095cc), to(#00678e));
        background: -moz-linear-gradient(top, #0095cc, #00678e);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0095cc', endColorstr='#00678e');
    }

    .blue:active {
        color: #80bed6;
        background: -webkit-gradient(linear, left top, left bottom, from(#0078a5), to(#00adee));
        background: -moz-linear-gradient(top, #0078a5, #00adee);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0078a5', endColorstr='#00adee');
    }

.gray {
    color: #333333;
    border: solid 1px #808080;
    background: #0095cd;
    background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#C0C0C0));
    background: -moz-linear-gradient(top, #FFFFFF, #C0C0C0);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr= '#FFFFFF', endColorstr= '#C0C0C0' );
}

    .gray:hover {
        background: #000000;
        background: -webkit-gradient(linear, left top, left bottom, from(#E9E9E9), to(#C0C0C0));
        background: -moz-linear-gradient(top, #E9E9E9, #C0C0C0);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#E9E9E9', endColorstr='#C0C0C0');
    }

    .gray:active {
        color: #333333;
        background: -webkit-gradient(linear, left top, left bottom, from(#C0C0C0), to(#E9E9E9));
        background: -moz-linear-gradient(top, #C0C0C0, #E9E9E9);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#C0C0C0', endColorstr='#E9E9E9');
    }

.account-header {
    border-width: 1px;
    border-color: #C0C0C0;
    padding: 6px 28px 6px 24px;
    border-style: solid none solid none;
    font-size: 1.5rem;
    color: #124D79;
    margin-bottom: 15px;
}

    .account-header .sub-header {
        font-size: 1.2rem;
    }

.solid-gray {
    background-color: #F2F2F2;
}

a:visited {
    color: #8A1E93;
}


/*-------------------------------------Home page card "View" links--------------------------------------------*/

.card-featured {
    flex: 1 1 0;
    width: 0;
    padding: .2rem;
}



.hvr-curl-bottom-right {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

.hvr-curl-bottom-right:before {
    pointer-events: none;
    position: absolute;
    content: '';
    height: 0;
    width: 0;
    bottom: 0;
    right: 0;
    background: white;
    /* IE9 */
    background: linear-gradient(315deg, white 45%, #aaaaaa 50%, #cccccc 56%, white 80%);
    box-shadow: -1px -1px 1px rgba(0, 0, 0, 0.4);
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: width, height;
    transition-property: width, height;
}

.hvr-curl-bottom-right:hover:before, .hvr-curl-bottom-right:focus:before, .hvr-curl-bottom-right:active:before {
    width: 25px;
    height: 25px;
}

.featured p {
    text-align: center;
}

.view a {
    font-size: 15px;
    color: #000;
    padding: 10px 25px;
    border-radius: 4px;
    /*background: #124D79;*/
    background: #EB8D00;
    text-decoration: none;
    transition: .5s all;
    -webkit-transition: .5s all;
    -moz-transition: .5s all;
    -o-transition: .5s all;
    -ms-transition: .5s all;
}



/*-------------------------------------Icon Cards--------------------------------------------*/


.icon-card-lg {
    width: 5.375rem;
    height: 11.375rem;
}

.icon-card {
    width: 9.375rem;
    height: 9.375rem;
}

.icon-card, .icon-card-lg, .icon-card-sm {
    border-radius: 5px;
}

.icon-card, .icon-card-lg {
    background-color: #f6f6f6;
    text-align: center;
    box-sizing: border-box;
    padding-top: 1.25rem;
}

.icon-card a, .icon-card-lg a {
    display: block;
    width: 100%;
    height: 100%;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    transition: none;
    line-height: 1;
    padding: 1.1rem;
}

.icon-card-sm {
    min-width: 200px;
    /*max-width: 200px;*/
    height: 100px;
    background-color: lightgray;
    text-align: center;
    box-sizing: border-box;
    font-size: 10px;
}

.icon-card-sm a {
    display: block;
    width: 100%;
    height: 100%;
    font-size: 1rem;
    font-weight: 700;
    color: #0C273C;
    text-align: center;
    transition: none;
    padding-top: 1.3rem;
    text-decoration: none;
    white-space: nowrap;
}

#member-nav-buttons a:visited {
    color: inherit;
}


.icon-card:hover, .icon-card-lg:hover, .icon-card-sm:hover {
    color: #fff;
    background-color: #f6f6f6;
    background-color: #1D6194;
}

    .icon-card:hover a, .icon-card-lg:hover a, .icon-card-sm:hover a {
        color: #fff;
        text-decoration: none;
    }

.icon-card-sm.account-active, .icon-card-sm.account-active a {
    color: #fff;
    background-color: #1D6194;
}

.icon-card-sm.account-active:hover {
    color: #fff;
    text-decoration: none;
}

.icon-card-sm:not(.account-active):hover {
    /* background-color: #1D6194;*/
    background-color: #1D6194;
}

.icon-card-sm:not(.account-active):hover {
    color: black;
    text-decoration: none;
}

div.contact-box-footer .btn.focus {
    outline: 0; 
    box-shadow: 0px 0px 0px .3rem black; 
}
.HRS .icon-card-sm {
    padding-right: 5px;
}

div.account-active {
    pointer-events: none;
}

tr.testimony-list th {
    padding: 0.75rem .4rem 0.75rem .2rem;
    margin-bottom: 0;
    background-color: rgba(0,0,0,.03);
    border-bottom: 1px solid rgba(0,0,0,.125);
    font-weight: bold;
    font-size: 1.1rem;
}

.testimony-list-row {
    vertical-align: top;
}

.testimony-list-row td {
    padding: .5rem;
}

#hearing-notice .form-control-sm {
    flex: 1 1 auto;
    border: 1px solid #ced4da;
}



/*-------------------------------------Measure Status--------------------------------------------*/

#measure-info tr:not(:last-child) {
    border-bottom: solid 1px;
}

.measure-header {
    font-size: 2rem;
    font-weight: bold;
    color: #124D79;
}

.measure-header-notClickable {
    font-size: 2rem;
    font-weight: bold;
    color: #124D79;
    pointer-events:none;
}

.date-label, .measure-label {
    width: 120px;
}

.measure-label {
    color: #124D79;
    vertical-align: top;
}

.measure-main {
    display: flex;
    /*padding: 5px 10px;*/
    flex-flow: row wrap;
    font-weight: 500;
}

.main-col {
    flex: 1 0 65%;
    padding-right: 1rem;
}

.side-col {
    flex: 1 0 35%;
    /*min-width: 335px;*/
}

.measure-number {
    display: flex;
    flex: 1 0 65%;
    align-items: center;
}

.measure-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-left: auto;
    margin-bottom: 8px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.measure-actions .submit-testimony {
    flex: 0 0 auto;
    text-align: left;
}

.measure-actions .submit-testimony .btn {
    font-size: 14px;
}


.submit-testimony {
    flex: 1 0 35%;
    text-align: right;
}

.img-button {
    margin-right: .5rem;
}

.measure-status .card-header {
    font-weight: bold;
    color: #ffffff;
    /*background: -webkit-gradient(linear, left top, left bottom, from(#124D79), to(#1B73B4));*/
    background: #124D78;
}

.measure-status-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #124D79;
    margin-bottom: 0.5rem;
}

/*-------------------------------------Member Cards--------------------------------------------*/
.contact-box {
    text-align: center;
    border: 1px solid #e7eaec;
    padding: 20px;
    /*margin-bottom: 20px;*/
    font-size: 1rem;
    width: 350px;
}


.legislator-list .contact-box {
    width: 340px;
}


.contact-box h4 {
    font-size: 1.3rem;
}

.contact-box > a {
    color: inherit;
}

.contact-box > * {
    padding-left: 0 15px 0 15px;
}

.contact-box.center-version {
    border: 1px solid #e7eaec;
    border-bottom: none;
    padding: 0;
    text-align: center;
}

.contact-box img {
    border-radius: 5%;
    object-fit: cover;
    object-position: top;
}

.contact-box.center-version > a img {
    width: 140px;
    height: 140px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.contact-box.center-version address {
    margin-bottom: 0;
}

.contact-box .district {
    padding: 15px;
}

.contact-box-horizontal .mobile-footer {
    border-top: 1px solid #e7eaec;
    /*margin-top: 5px;*/
    padding: 5px 0 5px 0;
}

.contact-box-horizontal .contact-info {
    height: 220px;
    font-size: .95rem;
}

.contact-info-img {
    width: 33%;
}

    .contact-info-img img {
        height: 100%;
        object-fit: cover;
    }

.contact-info a.rep-name {
    color: black;
}

.gray-background {
    background-color: #E2E2E2;
}

.leadership-img {
    max-width: 250px;
    height: auto;
    margin: auto;
}

.member-page h1, .member-page h2 {
    color: #124D79;
}

span#MainContent_LabelNews img {
    height: auto;
    width: 100%;
    max-width: 500px;
}

#member-link {
    color: #1D6194;
}

.footer-disclaimer a {
    text-decoration: underline;
    color: #fff;
}

a.novisited, a.novisited:visited, a.novisited:hover, a.novisited:active {
    color: inherit;
}

/*-------------------------------------Committee--------------------------------------------*/

#committee-header {
    line-height: 1;
    margin: auto;
    border-width: 1px;
    border-color: #C0C0C0;
    font-family: Garamond;
    border-style: solid none solid none;
    font-size: 36pt;
    color: #124D79;
    width: auto;
}

.committee-chair .contact-box-footer {
    padding: 1rem 0;
    border-top: 1px solid #e7eaec;
}

.card-header.committee-blue {
    color: #FFFFFF;
    background-color: #124d79;
    font-weight: bold;
}


@media (min-width: 990px) {
    #account-nav {
        display: none;
    }

    #account-search-bar {
        width: 50%;
    }
}

.lg-view {
    display: inline-block;
}

.lg-view-table {
    display: table-cell;
}

.sm-view, .sm-view-table {
    display: none;
}

/*-------------------------------------Jobs--------------------------------------------*/

.leg-jobs h2, leg-jobs h3 {
    color: #124d79;
}

.leg-jobs h2 {
    font-size: 1.5rem;
}

.leg-jobs h3 {
    font-size: 1.1rem;
    color: #124d79;
    font-weight: bold;
}

.leg-jobs section {
    padding: 0;
}


/* MISC */

/*Needed stop prevent styling issues input asp calenderextender control*/
.ajax__calendar_container {
    word-wrap: normal;
}

/*-------------------------------------Footer--------------------------------------------*/
footer.footer-main {
    width: 100%;
    background-color: #575757;
    color: #fff;
    border-top: solid 2px #575757;
    font-size: .8rem;
    padding-top: .5rem;
}

    footer.footer-main h1 {
        font-size: 1rem;
        margin-bottom: 1rem;
        font-weight: normal;
    }

    div.footer-section {
        font-size: 1rem;
        margin-bottom: 1rem;
        font-weight: normal;
    }

    footer.footer-main ul {
        color: #fff;
        list-style-type: none;
        margin-left: auto;
        display: inline;
        padding: 0;
    }

    footer.footer-main li {
        padding-bottom: 0;
        margin-bottom: .5rem;
    }

    footer.footer-main section.footer-disclaimer {
        background-color: #363636;
        color: white;
        padding-top: .5rem;
        padding-bottom: .5rem;
        margin-top: .5rem;
    }
/*-------------------------------------Acessibility--------------------------------------------*/
.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/*------------------------------------- Account Pages --------------------------------------------*/

/* Keeps list grid inside the card when editing list name (fixed layout + fluid inputs). */
.measure-tracking-lists-gv {
    width: 100%;
    word-wrap: break-word;
}

    .measure-tracking-lists-gv input[type="text"] {
        max-width: 100%;
        box-sizing: border-box;
    }
.measure-tracking-live-region {
    pointer-events: none;
}

/*-------------------------------------Media Queries--------------------------------------------*/

@media (max-width: 768px) {

    .form-control {
        width: 100%;
    }

    h1 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: .9rem;
    }

    /* Mobile Header Improvements */

    /* Login bar row: links left, hamburger right */
    .login-bar-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        margin-top: 1rem;
        padding-top: 0.5rem;
    }

    /* Nav shrinks to fit its content only */
    .login-bar-row #section-login {
        flex: 0 1 auto;
        text-align: left;
    }

    /* Hamburger button inside expanded header login bar */
    .login-bar-row .mobile-menu-toggle {
        background: rgba(255,255,255,0.1);
        border: none;
        color: white;
        min-width: 44px;
        min-height: 44px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 1.1rem;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        vertical-align: middle;
        transition: background-color 0.2s;
        margin-left: auto;
        -webkit-tap-highlight-color: transparent;
    }

    .login-bar-row .mobile-menu-toggle:hover,
    .login-bar-row .mobile-menu-toggle:active {
        background: rgba(255,255,255,0.2);
    }

    #header-container {
        padding: 0.5rem 0;
    }
    
    /* Mobile collapsible header adjustments */
    #minimized-menu-bar {
        height: 50px;
        padding: 0 0.5rem;
    }
    
    #minimized-menu-bar .minimized-logo span {
        font-size: 0.9rem;
    }
    
    #minimized-menu-bar .minimized-logo img {
        width: 35px;
        height: 35px;
    }
    
    #minimized-menu-bar .minimized-nav {
        display: none; /* Hide nav links on mobile - too cramped */
    }
    
    /* Show a simplified mobile menu */
    #minimized-menu-bar .mobile-menu-toggle {
        display: block !important;
        background: rgba(255,255,255,0.1);
        border: none;
        color: white;
        padding: 0.75rem;
        border-radius: 6px;
        cursor: pointer;
        font-size: 1.1rem;
        min-width: 44px;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }
    
    #minimized-menu-bar .expand-trigger {
        display: none; /* Hide expand trigger on mobile */
    }
    
    #minimized-menu-bar .mobile-menu-toggle {
        display: flex !important;
        min-width: 44px;
        min-height: 44px;
    }


    #header-image {
        width: 100%;
        justify-content: center;
    }

    #header-seal {
        height: auto;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .menu-seal-img {
        width: 80px;
        height: 80px;
        margin-bottom: 0.5rem;
    }

    .main-header-text-lg {
        font-size: 1.6rem;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 0.25rem;
    }

    .main-header-text-sm {
        font-size: 0.9rem;
        opacity: 0.9;
    }

    #account-search-bar {
        width: 100%;
        margin-top: 0.5rem;
        align-items: flex-start !important;
    }

    #section-login {
        margin-bottom: 0.4rem !important;
        margin-top: 0;
        padding: 0.3rem 0.5rem;
        width: auto;
        font-size: 0.8em;
        text-align: left;
    }

    #search-bar {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        flex-direction: column;
        gap: 0.5rem;
    }

    #search-bar .custom-select,
    #search-bar .form-control {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    #search-bar .form-control {
        width: 100% !important;
    }

    #btnSearch {
        width: 100%;
        border-radius: 20px;
        height: 45px;
    }


    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }

    .navbar-nav .nav-item {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .navbar-nav .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin: 0;
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        margin-top: 0.5rem;
    }

    .dropdown-item {
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        margin: 0.125rem 0;
    }

    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: none;
    }

    #member-nav-buttons {
        display: none;
    }

    .menu-search * {
        font-size: .8rem;
    }

    .card-featured {
        width: auto;
    }

    .page-header h1, .page-header select {
        font-size: 1.5rem;
    }

    .lg-view, .lg-view-table {
        display: none;
    }

    .sm-view {
        display: inline-block;
    }

    .sm-view-table {
        display: table-cell;
    }

    .icon-card-sm {
        width: 100%;
    }

    .icon-card-sm, .hrs-icon {
        padding: .3rem;
        height: 100%;
        margin-bottom: .3rem;
    }

        .icon-card-sm a, .hrs-icon {
            padding: .3rem;
        }

            .icon-card-sm i, .icon-card-sm br, .hrs-icon i, .hrs-icon br {
                display: none;
            }

    .hrs-icon {
        background-color: lightgrey;
        padding: .5rem;
    }

    .carousel-caption:not(.welcome) {
        left: 15%;
        width: 75%;
    }

    .carousel-caption.welcome {
        position: absolute;
        right: 15%;
        left: 15%;
        top: 100px;
        z-index: 10;
        padding-top: 0px;
        padding-bottom: 20px;
        color: #fff;
        text-align: center;
    }

        .carousel-caption.welcome h1 {
            font-size: 2.5rem;
        }

    .banner-sm .banner-overlay-text.house h1 {
        padding-top: 3rem;
    }

    .banner-sm .banner-overlay-text.senate h1 {
        padding-top: 4.5rem;
    }

    .banner-sm .banner-overlay-text h1 {
        font-size: 2.2rem;
        text-align: center;
    }

    .member-page h1 {
        font-size: 1.1rem;
        font-weight: bold;
    }

    .member-page h2 {
        font-size: 1rem;
        font-style: italic;
    }

    .committee-info-list-email {
        font-size: .7rem;
    }
}

@media (max-width: 990px) {
    .submit-testimony {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .measure-number {
        flex-wrap: wrap;
    }

    .measure-actions {
        flex-wrap: wrap !important;
        justify-content: flex-start;
        white-space: normal;
        margin-left: 0;
        flex: 1 0 100%;
        gap: 0.5rem;
    }

    /* Keep buttons in same row when possible: don't force full width so Log In + Submit Testimony stay side by side */
    .measure-actions .submit-testimony {
        flex: 0 1 auto;
        width: auto;
        text-align: left;
    }

    .submit-testimony {
        flex: 0 1 auto;
        width: auto;
        text-align: left;
    }

    /* Buttons keep their size; allow slight shrink so Log In + Submit Testimony fit on one row on small screens */
    .measure-actions .submit-testimony .btn {
        min-width: 0;
        max-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    body {
        zoom: 80%;
    }
    
    /* Ensure header positioning works correctly with zoom */
    #header-container {
        transform-origin: top center;
    }
    
    #minimized-menu-bar {
        transform-origin: top center;
    }
    
    /* Keep transform-based animations working - don't override with display */
    /* The JavaScript handles collapse/expand with transforms, which work correctly with zoom */
    /* Removed display: none/block overrides that were breaking the animations */
}

@media (max-width: 1199px) {

    #account-search-bar {
        width: 100%;
        margin: 0;
    }

    #header-seal, #account-search-bar {
        padding-bottom: .5rem;
    }

    .modal-content {
        width: 100%;
    }



    /* fixed header
    #main-content {
        margin-top: 210px;
    } */

    /*.container {
        width: fit-content;
    }*/


}


@media (min-width: 768px) {

    .mobile-footer, .contact-box-footer-legislators {
        display: none;
    }

    .carousel-caption:not(.welcome) {
        left: 60%;
        width: 25%;
    }
}

@media print {

    .noprint, #header-container, footer {
        display: none;
    }

    .measure-header {
        font-size: 3rem;
    }

    .main-col {
        flex: 1 0 100%;
        font-size: 1.3rem;
    }
}


/*430 px being the largest phone width used and 320 being the smallest*/
@media screen and (max-width: 500px) {
    .testimony-responsive a, .table-responsive div, .table-responsive span {
        font-size: 11px !important;
    }
    .testimony-responsive td {
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
}

/*-------------------------------------GIA Application--------------------------------------------*/
.gia-application-btn {
    padding: 10px 15px;
    background-color: #EB8D00;
    color: black;
    border: none;
    border-radius: 90px;
    font-weight: normal;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .gia-application-btn:hover {
        background-color: #EBA400;
    }


/*-------------------------------------Leg Info--------------------------------------------*/
.nonlink {
    color: black;
}

/*-------------------------------------Measure individual - video dialog modal--------------------------------------------*/
#measure-video-dialog {
    max-width: 90vw;
    width: 800px;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    background: #fff;
    margin: auto;
}
#measure-video-dialog[open] {
    display: block;
}
#measure-video-dialog::backdrop {
    background: rgba(0,0,0,0.5);
}
.measure-video-dialog-inner {
    padding: 1rem;
    position: relative;
    overflow: hidden;
}
.measure-video-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.measure-video-dialog-title {
    margin: 0;
    font-size: 1.25rem;
}
.measure-video-dialog-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
}
.measure-video-notice-wrap {
    margin: 0 0 0.75rem 0;
}
.measure-video-sr-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}
.measure-video-ctrl {
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 0.75rem;
    box-sizing: border-box;
}
.measure-video-ctrl-hidden {
    display: none !important;
}
.measure-video-player-wrap.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}
.measure-video-player-wrap.embed-responsive::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}
.measure-video-player-wrap .embed-responsive-item,
.measure-video-player-wrap #measure-video-player {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}
.measure-video-player-wrap:focus {
    outline: none;
}
#measure-video-player iframe {
    pointer-events: auto;
}

@media (max-width: 768px) {
    #main-content .container {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }
    .main-col {
        padding-right: 0;
    }

    /* Bias scroll-into-view so the Log In fields stay in view without overscrolling to Register */
    #TextBoxEmail,
    #TextBoxPassword {
        scroll-margin-top: min(32vh, 260px);
    }
}
/* Keep the menu visible on tablets and small laptops */
@media (min-width: 992px) and (max-width: 1199px) {
    #main-nav {
        display: block !important;
    }
    
    /* You may also need to hide the mobile 'hamburger' toggle 
       so you don't have two menus at once */
    .login-bar-row .mobile-menu-toggle {
        display: none !important;
    }
}

