* {
    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 BLUE DMV TABLE
   Use for older dark-header tables only:
   <table class="table table-striped dmv-blue-table">
========================================================= */

.table.dmv-blue-table {
    width: 100%;
    border-collapse: collapse !important;
    margin-bottom: 0 !important;
}

.table.dmv-blue-table thead th {
    background-color: #005a94 !important;
    color: #fff !important;
    border: 1px solid #005a94 !important;
    border-bottom: none !important;
    --bs-table-bg: #005a94 !important;
    --bs-table-color: #fff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    font-family: roboto !important;
    padding: 1rem !important;
    text-align: left !important;
    vertical-align: middle !important;
}

.table.dmv-blue-table.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: #fff !important;
    --bs-table-accent-bg: #fff !important;
    background-color: #fff !important;
}

.table.dmv-blue-table.table-striped > tbody > tr:nth-of-type(even) > * {
    --bs-table-bg-type: #f5f5f5 !important;
    --bs-table-accent-bg: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
}

.table.dmv-blue-table tbody td,
.table.dmv-blue-table tbody th {
    border-color: #f0f0f0 !important;
    font-size: 18px !important;
    font-family: roboto !important;
    color: #000 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 1.25rem 1rem !important;
    vertical-align: middle !important;
    text-align: left !important;
}

.table.dmv-blue-table tbody tr:hover {
    outline: 2px solid var(--color-bg-grey) !important;
}

/* =========================================================
   LIGHT DMV TABLE
   Use for the screenshot/reference light-blue header tables:
   <table class="table table-bordered align-middle mb-0 dmv-light-table">
========================================================= */

.table.dmv-light-table {
    width: 100%;
    border-collapse: collapse !important;
    border: 1px solid #d9d9d9 !important;
    background-color: #fff !important;
    margin-bottom: 0 !important;
    --bs-table-bg: transparent !important;
    --bs-table-striped-bg: transparent !important;
    --bs-table-hover-bg: transparent !important;
}

.table.dmv-light-table thead,
.table.dmv-light-table thead tr {
    background-color: #f0f9ff !important;
    --bs-table-bg: #f0f9ff !important;
    --bs-table-accent-bg: #f0f9ff !important;
}

.table.dmv-light-table thead th {
    background-color: #f0f9ff !important;
    color: #003e67 !important;
    border: 1px solid #d9d9d9 !important;
    font-family: roboto !important;
    font-weight: 700 !important;
    padding: 14px 16px !important;
    text-align: left !important;
    vertical-align: middle !important;
    line-height: 1.25 !important;
    --bs-table-bg: #f0f9ff !important;
    --bs-table-color: #003e67 !important;
    --bs-table-accent-bg: #f0f9ff !important;
}

.table.dmv-light-table thead th.h5 {
    font-size: 1.125rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0 !important;
}

.table.dmv-light-table tbody tr:nth-of-type(odd) > * {
    background-color: #fff !important;
    --bs-table-bg: #fff !important;
    --bs-table-accent-bg: #fff !important;
    --bs-table-striped-bg: #fff !important;
}

.table.dmv-light-table tbody tr:nth-of-type(even) > * {
    background-color: #f5f5f5 !important;
    --bs-table-bg: #f5f5f5 !important;
    --bs-table-accent-bg: #f5f5f5 !important;
    --bs-table-striped-bg: #f5f5f5 !important;
}

.table.dmv-light-table tbody td,
.table.dmv-light-table tbody th {
    color: #212529 !important;
    border: 1px solid #d9d9d9 !important;
    font-size: 16px !important;
    font-family: roboto !important;
    padding: 14px 16px !important;
    vertical-align: middle !important;
    line-height: 1.45 !important;
    text-align: left !important;
}

.table.dmv-light-table tbody td.fw-bold,
.table.dmv-light-table tbody th.fw-bold {
    font-weight: 700 !important;
}

.table.dmv-light-table tbody tr:hover {
    outline: none !important;
}

.table.dmv-light-table.table-bordered > :not(caption) > * {
    border-width: 1px !important;
}

.table.dmv-light-table.table-bordered > :not(caption) > * > * {
    border-width: 1px !important;
    border-color: #d9d9d9 !important;
}

/* Yes / No mini badges for table cells */

.dmv-table-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 8px 8px;
    font-weight: 700;
    line-height: 1;
}

.dmv-table-badge img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-right: 6px;
}

.dmv-table-badge-yes {
    background-color: #f0f9ff;
    border: 1px solid #bee9ff;
    color: #003e67;
}

.dmv-table-badge-no {
    background-color: #fff1f2;
    border: 1px solid #ffc9c9;
    color: #b42318;
}

/* General table fallback */

.table td {
    border-color: #f0f0f0;
}

/* Responsive */

@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;
    }

    .table.dmv-light-table thead th,
    .table.dmv-light-table tbody td,
    .table.dmv-light-table tbody th {
        font-size: 15px !important;
        padding: 12px 14px !important;
    }

    .table.dmv-light-table thead th.h5 {
        font-size: 1rem !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 links */

.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;
}