:root {
    --black-color: #000;
    --rich-black-color: #000009;
    --white-color: #fff;
    --anti-flash-white-color: #f2f2f2;
    --gainsboro-color: #ddd;
    --granite-gray-color: #666;
    --dark-charcoal-color: #333;
    --sonic-silver-color: #777;
    --blue-color: #0000ff;
    --vista-blue-color: #9090ee;
    --lime-green-color: #32CD32;
    --light-green-color: #90EE90;
    --green-success-color: #04F404;
    --inchworm-color: #C3F550;
    --lust-color: #e9301d;
    --middle-yellow-color: #FFEB00;
    --warning-yellow-color: #E9D502;
    --red-orange-color: #FF3F00;
    --forest-green-color: #218838;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

.top-header {
    height: 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.top-header-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--black-color);
}

.top-header-icon-img {
    height: 20px;
}

.middle-header {
    background: var(--black-color);
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.middle-header-img {
    height: 60px;
}

.middle-header-nmls {
    color: var(--white-color);
    font-size: 18px;
    font-weight: 700;
}

.middle-header-icon-img {
    height: 30px;
    width: 30px;
    border: 1px solid var(--white-color);
    border-radius: 30%;
    padding: 5px;
}

.middle-header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.middle-header-text {
    margin: 0 5px;
    color: var(--white-color);
    font-size: 18px;
}

.short-text {
    font-size: 12px;
}

.bottom-header {
    margin: 5px 0;
    height: 60px;
    background-color: var(--lime-green-color);
    position: relative;
    z-index: 1000;
}

.bottom-header-ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-header-li {
    margin: 8px 0;
}

.bottom-header-a {
    color: var(--black-color);
    background-color: var(--white-color);
    padding: 5px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
}

.bottom-header-a:hover {
    color: var(--white-color);
    background-color: var(--black-color);
    border-radius: 8px;
}

.active-btn {
    color: var(--white-color);
    background-color: var(--black-color);
}

.active-btn:hover {
    color: var(--black-color);
    background-color: var(--white-color);
}

/* Dropdown menu styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--inchworm-color);
    min-width: 200px;
    z-index: 1;
    border-radius: 8px;
}

.dropdown-content a {
    color: var(--black-color);
    padding: 8px;
    text-decoration: none;
    display: block;
    border-radius: 8px;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: var(--white-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Hamburger menu styles */
.hamburger-menu {
    display: none;
    cursor: pointer;
}

.hamburger-img {
    height: 40px;
    height: 40px;
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.slider-national-average {
    margin: 30px 20px;
    display: flex;
    justify-content: space-around;
}

.slider-section {
    width: 80%;
}

.slide-box {
    position: relative;
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 20px;
}

.slide-box img {
    vertical-align: middle;
    width: 100%;
    height: 500px;
}

.slider {
    max-width: 100%;
    position: relative;
    margin: auto;
}

.previous,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 10px;
    margin-top: -22px;
    color: var(--black-color);
    font-weight: 900;
    font-size: 30px;
    transition: 0.5s ease;
}

.previous {
    left: 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.next {
    right: 0;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.previous:hover,
.next:hover {
    background-color: var(--black-color);
    color: var(--white-color);
}

.slide-number {
    color: var(--light-green-color);
    font-size: 18px;
    font-weight: 700;
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
}

.rounded_btn {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background: var(--black-color);
    border-radius: 50%;
    display: inline-block;
}

.active,
.rounded_btn:hover {
    background: var(--dark-charcoal-color);
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .5;
    }

    to {
        opacity: 1;
    }
}

.national-average-section {
    margin: 10px 20px;
    width: 20%;
}

.national-average-header {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--lust-color);
}

.national-average-table {
    margin: 20px 0;
    border-collapse: collapse;
    width: 100%;
}

/* Style for table header */
.national-average-th {
    background-color: var(--inchworm-color);
    padding: 8px;
    text-align: left;
    border: 1px solid var(--anti-flash-white-color);
}

/* Style for table data */
.national-average-td {
    padding: 8px;
    text-align: left;
    border: 1px solid var(--anti-flash-white-color);
}

/* Style for even rows */
/* .national-average-tr:nth-child(even) {
    background-color: var(--black-color);
} */

/* Style for odd rows */
.national-average-tr:nth-child(odd) {
    background-color: var(--anti-flash-white-color);
}

.national-average-tr:hover {
    background-color: var(--gainsboro-color);
}

.services-container {
    background-color: var(--black-color);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    justify-items: center;

}

.services-content {
    margin: 20px auto;
    background-color: var(--white-color);
    width: 140px;
    height: 140px;
    text-align: center;
    padding: 8px;
    border-radius: 10px;
    /* margin: 5px; */
    cursor: pointer;
    transition: transform 0.3s ease;
}

.services-content:hover {
    transform: scale(1.05);
}

.services-img {
    height: 80px;
    width: 80px;
}

.services-text {
    margin: 5px;
    font-size: 18px;
    font-weight: 700;
    color: var(--black-color);
}

.subscribe-container {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: var(--black-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

.subscribe-container::before,
.subscribe-container::after {
    content: "";
    position: absolute;
    background-color: var(--light-green-color);
    border: 2px solid var(--inchworm-color);
    border-radius: 50%;
}

.subscribe-container::before {
    width: 120px;
    height: 120px;
    top: -50px;
    left: -50px;
}

.subscribe-container::after {
    width: 80px;
    height: 80px;
    bottom: -50px;
    right: -50px;
}

.subscribe-container:hover {
    background-color: var(--rich-black-color);
}

.subscribe-container-text {
    font-size: 14px;
    color: var(--red-orange-color);
    margin: 10px 0;
}

.subscribe-container-header {
    font-size: 30px;
    font-weight: 700;
    color: var(--white-color);
    margin: 10px 0;
}

.subscribe-form {
    margin: 20px 0;
}

.subscribe-input {
    width: 300px;
    font-size: 16px;
    padding: 8px;
    border: 3px solid var(--inchworm-color);
    border-radius: 20px;
}

.subscribe-btn {
    font-size: 16px;
    font-weight: 700;
    padding: 8px;
    border: 3px solid var(--inchworm-color);
    border-radius: 20px;
    background-color: var(--inchworm-color);
    color: var(--black-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.subscribe-btn:hover {
    transform: scale(1.02);
}

.our-service-section {
    margin: 30px 0;
}

.our-service-section-header {
    font-size: 24px;
    font-weight: 700;
    color: var(--lust-color);
    text-align: center;
    margin: 10px 0;
}

.our-service-section-desc {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin: 10px 0;
    font-style: italic;
}

/* What We Offer */
.what-we-offer {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--white-color);
}

.what-we-offer-header {
    color: var(--red-orange-color);
    font-size: 22px;
    font-weight: 700;
    margin: 10px 0;
}

.what-we-offer-sub-header {
    font-size: 30px 0;
    font-weight: 900;
    color: var(--lime-green-color);
    margin: 20px 0;
}

.what-we-offer-description {
    font-size: 16px;
    color: var(--granite-gray-color);
    margin: 30px 0;
}

.what-we-offer-loan-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 50px 0;
    justify-items: center;
}

.what-we-offer-loan-card {
    background-color: var(--white-color);
    border: 1px solid var(--lust-color);
    padding: 20px;
    box-shadow: 0 0 10px var(--inchworm-color);
    box-sizing: border-box;
    min-width: 280px;
    max-width: 300px;
    text-align: left;
    transition: transform 0.3s ease-in-out;
}

.what-we-offer-loan-card:hover {
    transform: scale(1.05);
}

.what-we-offer-title {
    display: flex;
    align-items: center;
    color: var(--red-orange-color);
    font-size: 18px;
    margin: 10px 0;
}

.what-we-offer-img {
    height: 30px;
    width: 30px;
    margin-right: 10px;
}

.what-we-offer-text {
    color: var(--sonic-silver-color);
    font-size: 14px;
    line-height: 1.6;
    margin: 15px 0;
}

.what-we-offer-ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.what-we-offer-li {
    color: var(--sonic-silver-color);
    font-size: 14px;
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.what-we-offer-li::before {
    content: '✔';
    color: var(--red-orange-color);
    margin-right: 10px;
}

.what-we-offer-button {
    background-color: var(--red-orange-color);
    color: var(--white-color);
    border: none;
    margin: 20px 0;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.what-we-offer-button:hover {
    background-color: var(--lust-color);
    border-radius: 8px;
}

/* How It Works*/
.how-it-works {
    text-align: center;
    padding: 50px 20px;
}

.how-it-works-header {
    font-size: 30px;
    margin: 10px 0;
    color: var(--red-orange-color);
}

.how-it-works-description {
    font-size: 16px;
    color: var(--granite-gray-color);
    margin: 30px 0;
}

.how-it-works-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    justify-items: center;
}

.how-it-works-step {
    background-color: var(--white-color);
    border: 3px dashed var(--gainsboro-color);
    padding: 20px;
    box-sizing: border-box;
    min-width: 200px;
    max-width: 300px;
    transition: transform 0.3s ease-in-out;
}

.how-it-works-step:hover {
    transform: scale(1.05);
}

.how-it-works-title {
    color: var(--red-orange-color);
    margin: 10px 0;
    font-size: 20px;
    font-weight: 700;
}

.how-it-works-text {
    color: var(--sonic-silver-color);
    font-size: 14px;
    line-height: 1.6;
}

/* Testimonial */
.testimonials {
    background-color: var(--black-color);
    text-align: center;
    padding: 50px 20px;
}

.testimonial-header {
    font-size: 30px;
    font-weight: 700;
    color: var(--red-orange-color);
    margin: 10px 0;
}

.testimonial-description {
    font-size: 18px;
    color: var(--gainsboro-color);
    margin: 40px 0;
}

.testimonial-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
}

.testimonial-content {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--gainsboro-color);
    padding: 20px;
    max-width: 300px;
    width: 100%;
    margin: 20px;
    transition: transform 0.3s ease-in-out;
}

.testimonial-content:hover {
    transform: scale(1.05);
}

.testimonial-text {
    color: var(--black-color);
    font-size: 18px;
    line-height: 1.6;
}

.testimonial-by {
    font-size: 14px;
    color: var(--lust-color);
    margin: 20px;
    font-weight: 600;
    float: right;
}

.testimonial-button {
    background-color: var(--red-orange-color);
    color: var(--white-color);
    border: none;
    margin: 20px 0;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.testimonial-button:hover {
    background-color: var(--lust-color);
    border-radius: 8px;
}

/* Feedback */


.rating-container {
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-box {
    position: relative;
    background-color: var(--white-color);
    padding: 25px 50px 35px;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
}

.rating-box-header {
    font-size: 24px;
    color: var(--red-orange-color);
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.ratings-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ratings-star {
    color: var(--gainsboro-color);
    font-size: 35px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ratings-star.active,
.ratings-star.hover {
    color: var(--red-orange-color);
    background-color: var(--white-color);
}

.rating-form {
    display: flex;
    flex-direction: column;
}

.rating-form label {
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-charcoal-color);
}

.rating-form input,
.rating-form textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid var(--gainsboro-color);
    border-radius: 5px;
    font-size: 16px;
}

.rating-form input:focus,
.rating-form textarea:focus {
    outline: none;
    border-color: var(--red-orange-color);
}

.rating-form textarea {
    resize: vertical;
    min-height: 100px;
}

.rating-form .rating-btn {
    padding: 10px 20px;
    background-color: var(--red-orange-color);
    border: none;
    border-radius: 5px;
    color: var(--white-color);
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.rating-form .rating-btn:hover {
    background-color: var(--lust-color);
}

/* Footer */
.footer-container {
    margin-top: 50px;
    background-color: var(--black-color);
}

.footer-boxs {
    padding: 30px;
    display: flex;
    justify-content: space-around;
}

.footer-logo-img {
    width: 200px;
}

.footer-box-header {
    font-size: 26px;
    font-weight: 700;
    color: var(--white-color);
}

.footer-box-ul {
    margin: 10px 0;
}

.footer-box-li {
    margin: 5px 0;
}

.footer-box-a {
    text-decoration: none;
    font-size: 18px;
    color: var(--dark-charcoal-color);
}

.footer-box-a:hover {
    color: var(--gainsboro-color);
}

.copywrite-text {
    margin-top: 30px;
    padding-bottom: 5px;
    color: var(--granite-gray-color);
    text-align: center;
    font-size: 12px;
}

.na-daily-update {
    background-color: var(--anti-flash-white-color);
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.na-daily-update-text {
    font-size: 16px;
    color: var(--dark-charcoal-color);
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.na-daily-update form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.na-daily-update input {
    padding: 8px;
    border: 1px solid var(--granite-gray-color);
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}

.na-daily-update button {
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: var(--lime-green-color);
    color: var(--white-color);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.na-daily-update button:hover {
    background-color: var(--green-success-color);
}

@media only screen and (max-width: 980px) {
    .middle-header {
        height: 40px;
    }

    .middle-header-img {
        height: 40px;
    }

    .middle-header-nmls {
        font-size: 10px;
    }

    .middle-header-icon-img {
        height: 20px;
        width: 20px;
    }

    .middle-header-text {
        font-size: 10px;
    }

    .short-text {
        font-size: 8px;
    }

    .bottom-header {
        height: 40px;
        margin: auto;
    }

    .short-text {
        font-size: 8px;
    }

    .bottom-header-ul {
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
        display: none;
    }

    .bottom-header-li {
        margin: 10px 0;
    }

    .dropdown {
        display: block;
    }

    .dropdown-content {
        display: none;
        position: relative;
        color: var(--black-color);
        min-width: 160px;
        z-index: 1;
        border-radius: 8px;
    }

    .hamburger-menu {
        display: block;
        position: fixed;
        right: 20px;
        z-index: 1001;
    }

    .bottom-header-ul.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: var(--lime-green-color);
        position: absolute;
        left: 0;
        width: 100%;
    }

    .slider-national-average {
        flex-direction: column;
        align-items: center;
    }

    .slider-section {
        width: 100%;
    }

    .national-average-section {
        width: 100%;
        margin: 20px;
    }

    .services-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .how-it-works-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .what-we-offer-loan-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-boxs {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }
}

@media only screen and (max-width: 680px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-it-works-steps {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    .what-we-offer-loan-options {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    .testimonial-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .rating-box {
        padding: 20px 30px;
    }

    .rating-box .ratings-stars {
        gap: 10px;
    }

    .rating-form input,
    .rating-form textarea {
        font-size: 14px;
    }

    .rating-form .rating-btn {
        font-size: 16px;
    }
}


@media only screen and (max-width: 480px) {
    .middle-header {
        height: 160px;
        flex-direction: column;
    }

    .subscribe-input {
        width: 180px;
    }

    .subscribe-container-header {
        font-size: 18px;
    }

    .subscribe-btn {
        font-size: 12px;
    }
}

@media screen and (max-width: 400px) {
    .rounded_btn {
        height: 12px;
        width: 12px;
        margin: 0 1px;
    }
}

@media only screen and (max-width: 380px) {
    .top-header-text {
        font-size: 12px;
    }

    .top-header-icon-img {
        height: 10px;
    }

    .how-it-works-step {
        min-width: 150px;
        max-width: 220px;
        padding: 5px;
    }

    .what-we-offer-loan-card {
        min-width: 150px;
        max-width: 220px;
        padding: 5px;
    }

    .testimonial-content {
        max-width: 250px;
        padding: 5px;
        margin: 5px;
    }

    .what-we-offer {
        padding: 5px;
    }
}

@media only screen and (max-width: 320px) {
    .services-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .copywrite-text {
        font-size: 8px;
    }

    .subscribe-container-header {
        font-size: 14px;
    }

    .subscribe-btn {
        font-size: 8px;
    }
}

@media screen and (max-width: 300px) {

    .previous,
    .next,
    .text {
        font-size: 11px;
    }
}

.disclimer-container {
    display: flex;
    justify-content: space-around;
    align-items: center;

}

.disclimer {
    font-size: 12px;
    margin: 20px 0;
    font-style: italic;
}

.info-icon {
    font-size: 16px;
    cursor: pointer;
    color: var(--forest-green-color);
    border: 1px solid var(--forest-green-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000080;
}

.info-modal-content {
    background: var(--anti-flash-white-color);
    padding: 20px;
    border-radius: 5px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
}

.close-info-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: var(--lust-color);
    font-weight: 700;
    cursor: pointer;
}

.info-modal-text {
    font-size: 16px;
    margin: 5px;
}

.info-modal-a {
    color: var(--vista-blue-color);
}

.rand-number {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rand-number .math-expression {
    font-size: 18px;
    font-weight: bold;
    color: var(--lust-color);
    background: var(--anti-flash-white-color);
    padding: 10px 8px;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.rand-number input {
    padding: 10px;
    border: 2px solid var(--red-orange-color);
    border-radius: 5px;
    font-size: 18px;
    flex: 1;
    max-width: 250px;
    outline: none;
}

.rand-number input::placeholder {
    color: #aaa;
    font-style: italic;
}

.na-icon-img {
    height: 20px;
    width: 20px;
}

.footer-nmls {
    color: var(--white-color);
}

@media screen and (max-width: 680px) {
    .info-modal-content {
        width: 100%;
    }

}

.bold {
    font-weight: 700;
}

.underline {
    text-decoration: underline;
}

.na-sub {
    font-size: 12px;
}