body {
    margin: 0;
    background-image: url(../images/gr.png);
    background-repeat: repeat-x;
    font: 14px / 1.231 arial, helvetica, clean, sans-serif;
}

#header {
    height: 5rem;
    align-items: center;
    display: flex;
}

#header .logo img,
#header .logo svg {
    display: inherit;
    height: 70px;
    width: auto;
    object-fit: contain;
}

.dropmenu ul {
    display: -ms-flexbox;
    display: flex;
    margin: 0 10px;
    white-space: nowrap;
    z-index: 999;
}

#body-wrapper .container {
    padding: 15px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    border-top: none;
    border-width: 3px;
    border-style: solid;
    border-image: linear-gradient(to right, transparent, gray 50%, transparent) 1;
}

.body-container {
    display: flex;
    gap: 20px;
    box-sizing: border-box;
}

.main-content {
    flex: 1 1 0;
    min-width: 0;
}

.dropmenu ul li {
    position: relative;
    margin: 0;
    border-right: 1px solid #fff;
    background: #0000FE;
    padding: 5px 0;
    font-size: 14px;
    color: #fff;

}

.dropmenu ul li a {
    color: #fff !important;
}

.dropmenu ul li a.active,
.dropmenu ul li a:focus,
.dropmenu ul li a:hover {
    color: #f5f5f5 !important;
}

.dropmenu.animated ul li {
    transition: background .5s, color .5s;
}

#footer {
    color: #3a414e;
    font-size: 14px;
}

.sidebar {
    flex: 0 0 25%;
    max-width: 25%;
    box-sizing: border-box;
    background-color: #fff;
    padding: 15px;
}

.office-block {
    text-align: left;
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 30px;
}

.office-title {
    color: rgb(0, 0, 255);
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding: 0;
}

.office-list div {
    color: rgb(0, 0, 255);
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 6px;

}

.center-text {
    margin-top: 20px;
}

.title-center h1,
.title-center h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-top: 2rem;
    color: #3a414e;
    font-weight: 600;
}

.center-text h5 {
    margin: 10px 0;
    text-align: center;
}

.hours-block {
    max-width: 800px;

}

.hours-title {
    text-align: left;
    color: rgb(255, 0, 0);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 5px 10px;
    font-size: 16px;
    color: #333;
}

.hours-table td:first-child {
    font-weight: 600;
    text-align: left;
    width: 40%;
}

.hours-table th {
    text-align: left;
    padding: 8px;
}

.hours-table td:last-child {
    text-align: left;
    width: 60%;
}


.about-us-flex {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.about-us-flex .office-column {
    flex: 1;
    min-width: 250px;
}

.loan-table-block {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

.loan-table {
    width: 100%;
    border-collapse: collapse;
}

.loan-table th,
.loan-table td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    vertical-align: top;
}

.loan-table th {
    background-color: #004080;
    color: #fff;
    text-align: left;
}

.loan-table td {
    background-color: #f9f9f9;
    color: #333;
}

.loan-table tr:nth-child(even) td {
    background-color: #f1f1f1;
}

.loan-table strong {
    color: #c00;
}

.loan-rates-block {
    width: 100%;
    font-family: Arial, sans-serif;
    color: #333;
    margin: 20px 0;
}

.loan-rates-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #004080;
}

.loan-rates-subtitle {
    text-align: center;
    font-size: 14px;
    margin-bottom: 15px;
}

.loan-rates-date {
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
}

.loan-section {
    margin-bottom: 30px;
}

.loan-section h3 {
    font-size: 18px;
    color: #004080;
    margin-bottom: 10px;
}

.loan-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.loan-table th,
.loan-table td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    text-align: center;
}

.loan-table th {
    background-color: #004080;
    color: #fff;
    font-weight: 600;
}

.loan-table td {
    background-color: #f9f9f9;
}

.loan-table tr:nth-child(even) td {
    background-color: #f1f1f1;
}

.loan-notes {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}

.autos-rates-block {
    width: 100%;
    font-family: Arial, sans-serif;
    color: #333;
    margin: 20px 0;
}

.rates-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #004080;
    margin-bottom: 15px;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.rates-table th,
.rates-table td {
    border: 1px solid #ccc;
    padding: 6px 10px;
    text-align: center;
}

.rates-table th {
    background-color: #004080;
    color: #fff;
    font-weight: 600;
}

.rates-table td {
    background-color: #f9f9f9;
}

.rates-table tr:nth-child(even) td {
    background-color: #f1f1f1;
}

.rates-notes {
    font-size: 13px;
    line-height: 1.5;
    margin-top: 10px;
    color: #333;
}

.services-fees-block {
    width: 100%;
    font-family: Arial, sans-serif;
    color: #333;
    margin: 20px 0;
}

.services-fees-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: #004080;
    margin-bottom: 15px;
}

.services-fees-table {
    width: 100%;
    border-collapse: collapse;
}

.services-fees-table td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    font-size: 16px;
}

.services-fees-table tr:nth-child(even) td {
    background-color: #f1f1f1;
}


.services-fees-table td:first-child {
    text-align: left;
    font-weight: 600;
    width: 70%;
}


.services-fees-table td:last-child {
    text-align: right;
    width: 30%;
}

.table-wrapper {
    width: 100%;             
    overflow-x: auto;       
    -webkit-overflow-scrolling: touch; 
    margin-bottom: 20px;
}

.loan-table {
    width: 100%;               
    border-collapse: collapse;
    table-layout: auto;
}

.loan-table th,
.loan-table td {
    border: 1px solid #ccc;
    padding: 6px 10px;
    text-align: center;
    white-space: nowrap;       
}

@media (max-width: 400px) {
    .loan-table th,
    .loan-table td {
        font-size: 10px;      
        padding: 3px 5px;
    }
}



@media (max-width: 768px) {
    .body-container {
        flex-direction: column;
    }

    .sidebar {
        max-width: 100%;
        flex: 1 1 auto;
    }

    .body-container aside {
        flex: 1 0 auto;
    }
    .loan-table {
        width: 100%;
        overflow-y: auto;
    }
    .loan-table th,
    .loan-table td {
    font-size: 12px;
}

}