* {
    font-family: 'Roboto' !important;
}

.hero-slide {
    display: block;
    width: 100%;
    font-family: roboto !important;
}

/* --- Image Fitting --- */
.hero-left img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.border-blue {
    border: 1px solid #bee9ff !important;
    border-radius: 8px;
    padding: 16px;
    background-color: #fff;
}

.border-grey {
    border: 1px solid #c4c4c4 !important;
    border-radius: 8px;
    padding: 16px;
    background-color: #fff;
}

.border-blue-withbg {
    border: 1px solid #bee9ff !important;
    border-radius: 8px;
    padding: 16px;
    background-color: #f0f9ff;
}

/* Tabs section */

.custom-pill-bar {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    padding: 6px;
    display: inline-flex;
    width: auto;
}

.custom-pill-bar .nav-link {
    border-radius: 50px;
    color: #212529 !important;
    font-weight: 700;
    padding: 10px 25px;
    border: none;
    background: transparent;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.custom-pill-bar .nav-link.active {
    background-color: #00406c !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(0, 64, 108, 0.2);
}

.custom-pill-bar .nav-link:hover:not(.active) {
    background-color: #e9ecef;
}

.tab-pane:focus {
    outline: none;
}

.rec-icon {
    width: 20px;
    height: 20px;
}

.icon-box-rounded {
    background-color: #f1f8fe;
    color: #00406c;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-footer {
    background-color: #f8fbff;
    border-top: 1px solid #e9ecef;
    transition: background-color 0.2s;
    margin-top: 8px;
    border-radius: 0 0 12px 12px !important;
}

.card-footer:hover {
    background-color: #eef5ff;
}

/* 
   Dark DMV table style.
   Use this ONLY when you want the dark blue DMV table header:
   <table class="table table-striped dmv-blue-table">
*/
.dmv-blue-table thead th {
    background-color: #005a94 !important;
    color: white !important;
    border-bottom: none;
    --bs-table-bg: #0076b6 !important;
    --bs-table-color: white !important;
    font-size: 20px !important;
    font-family: roboto !important;
}

.dmv-blue-table.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: #fff !important;
    background-color: var(--bs-table-bg-type) !important;
}

.dmv-blue-table.table-striped > tbody > tr:nth-of-type(even) > * {
    background-color: #f5f5f5 !important;
}

.dmv-blue-table.table-striped > tbody > tr > * {
    border-color: #f0f0f0 !important;
    font-size: 18px !important;
    font-family: roboto !important;
    color: black !important;
    border-bottom: 1px solid #f5f5f5 !important;
}

.dmv-blue-table td {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-color: #f0f0f0;
}

.dmv-blue-table tbody tr:hover {
    outline: 2px solid var(--color-bg-grey) !important;
}

/* 
   Light DMV table style.
   Use this for tables like "Important Things to Know":
   <table class="table table-bordered dmv-light-table">
*/
.dmv-light-table {
    border-color: #d9d9d9 !important;
    background-color: #fff !important;
}

.dmv-light-table thead th {
    background-color: #f0f9ff !important;
    color: #003e67 !important;
    border: 1px solid #d9d9d9 !important;
    font-weight: 700 !important;
    padding: 14px 16px !important;
    text-align: left !important;
    --bs-table-bg: #f0f9ff !important;
    --bs-table-color: #003e67 !important;
}

.dmv-light-table thead th.h5 {
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
}

.dmv-light-table tbody tr:nth-of-type(odd) td {
    background-color: #fff !important;
    --bs-table-bg-type: #fff !important;
}

.dmv-light-table tbody tr:nth-of-type(even) td {
    background-color: #f5f5f5 !important;
    --bs-table-bg-type: #f5f5f5 !important;
}

.dmv-light-table tbody td {
    color: #212529 !important;
    border: 1px solid #d9d9d9 !important;
    font-size: 16px !important;
    padding: 14px 16px !important;
    vertical-align: middle !important;
}

.dmv-light-table tbody tr:hover {
    outline: none !important;
}

/* General table fallback */
.table td {
    border-color: #f0f0f0;
}

@media screen and (min-width: 1024px) {
    .h-blue {
        height: 441.781px;
    }
}

@media (max-width: 767px) {
    .h-blue {
        height: 100%;
    }

    .hero-left img {
        height: auto !important;
    }
}

/* Modal image zoom */
button[data-bs-toggle="modal"] img {
    cursor: zoom-in;
    transition: transform 0.2s;
}

button[data-bs-toggle="modal"]:hover img {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.news-link {
    color: var(--color-primary-blue-600);
    transition: color 0.2s ease-in-out;
}

.news-link:hover {
    color: #0056b3;
    text-decoration: underline !important;
}

.news-link img {
    transition: transform 0.2s ease;
}

.news-link:hover img {
    transform: translateX(5px);
}

.news-updates-section h2,
.news-updates-section h3 {
    color: #212529 !important;
}

.news-updates-section .card {
    transition: transform 0.3s ease;
}

.news-updates-section .card:hover {
    transform: translateY(-5px);
}

/* DMV custom top tabs */
.dmv-custom-tabs {
    background-color: #003e67 !important;
    border: none !important;
    display: flex;
    padding: 0;
}

.dmv-custom-tabs .nav-item {
    margin-bottom: 0;
}

.dmv-custom-tabs .nav-link {
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 500;
    padding: 15px 30px;
    border: none !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    margin: 0;
}

.dmv-custom-tabs .nav-link.active {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-bottom: 4px solid #00b4d8 !important;
}

.link-dmv-blue {
    color: #003e67 !important;
    text-underline-offset: 3px;
}

/* DAC FAQ accordion */
.dac-faq-accordion .accordion-item {
    background-color: #fff;
    border: 1px solid #d9d9d9 !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.dac-faq-accordion .accordion-button {
    background-color: #fff !important;
    color: #212529 !important;
    padding: 1.25rem 1.5rem;
    box-shadow: none !important;
    border: 0 !important;
    outline: 0;
}

.dac-faq-accordion .accordion-button:not(.collapsed) {
    background-color: #fff !important;
    color: #212529 !important;
    box-shadow: none !important;
    border: 0 !important;
}

.dac-faq-accordion .accordion-button:focus {
    box-shadow: none !important;
    border-color: transparent !important;
    outline: 0;
}

.dac-faq-accordion .accordion-button:focus-visible {
    outline: 3px solid #003e67 !important;
    outline-offset: -3px;
    box-shadow: 0 0 0 3px rgba(0, 62, 103, .25) !important;
}

.dac-faq-accordion .accordion-header {
    margin-bottom: 0;
}

.dac-faq-accordion .accordion-collapse {
    border-top: 0 !important;
}

.dac-faq-accordion .accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: #212529;
    border-top: 0 !important;
}

.dac-faq-accordion .accordion-body p:last-child,
.dac-faq-accordion .accordion-body ul:last-child {
    margin-bottom: 0;
}

.dac-faq-accordion .accordion-button::after {
    width: 1rem;
    height: 1rem;
    background-size: 1rem;
}

.dac-faq-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

#dacFaqExpandAll:focus {
    box-shadow: none !important;
}

#dacFaqExpandAll:focus-visible {
    outline: 3px solid #003e67 !important;
    outline-offset: 3px;
    border-radius: 4px;
}