* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #f2f2f2;
    color: #333;
}

.container {
    width: 85%;
    margin: auto;
}

/* Top Bar */
.top-bar {
    background: #244a8f;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
}

/* Header */
.header {
    background: #fff;
    padding: 0;
    border-bottom: 1px solid #eee;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;   /* exact slim header height */
}
nav a {
    margin-left: 35px;
    text-decoration: none;
    color: #222;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Fix Logo Size */
.logo img {
    height: 46px;
    width: auto;
    display: block;
}


/* Hero */
.hero-wrapper {
    padding: 20px 0;
}

.hero {
    position: relative;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 2;
}

.hero-content {
    position: absolute;
    left: 60px;
    top: 40%;
    z-index: 3;
}

.dots {
    position: absolute;
    bottom: 25px;
    width: 100%;
    text-align: center;
    z-index: 3;
}


.btn-primary {
    background: #244a8f;
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}

/* Slider dots */
.dots {
    position: absolute;
    bottom: 25px;
    width: 100%;
    text-align: center;
}

.dot {
    height: 8px;
    width: 8px;
    margin: 0 5px;
    background: #fff;
    opacity: 0.6;
    border-radius: 50%;
    display: inline-block;
}

.dot.active {
    opacity: 1;
}

/* Section */
.content-section {
    padding: 80px 0;
    background: #f2f2f2;
}

.section-title {
    text-align: center;
    font-family: 'Ubuntu', sans-serif;
    font-size: 36px;
    color: #244a8f;
}

.divider {
    width: 60px;
    height: 2px;
    background: #ccc;
    margin: 15px auto 50px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.content-text h3 {
    margin-top: 20px;
    font-weight: 600;
}

.content-text p {
    margin-top: 10px;
    line-height: 1.6;
    color: #555;
}

/* Advantage Section */
.advantage {
    padding: 100px 0;
    text-align: center;
}

.advantage h2 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 32px;
    color: #244a8f;
}

/* Footer */
footer {
    background: #fff;
    text-align: center;
    padding: 20px;
    font-size: 13px;
}

/* About Page */
.about-section {
    padding: 80px 0;
    background: #f2f2f2;
    text-align: center;
}

.gallery-main {
    margin: 40px auto 30px;
    width: 90%;
}

.gallery-main img {
    width: 100%;
    height: auto;
}

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;            
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.gallery-thumbs img {
    width: 90px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
}

.gallery-thumbs img.active {
    border: 3px solid #244a8f;
}

/* Contact Page */
.contact-section {
    padding: 90px 0 60px;
    background: #f2f2f2;
    text-align: center;
}

.contact-subtitle {
    margin-top: 30px;
    font-size: 22px;
    font-weight: 500;
}

.contact-text {
    margin-top: 15px;
    color: #555;
}

.contact-business {
    margin-top: 40px;
    font-size: 22px;
    font-weight: 600;
}

.contact-address {
    margin-top: 10px;
    color: #666;
}

.contact-hours-title {
    margin-top: 40px;
    font-size: 22px;
    font-weight: 600;
}

.contact-hours {
    margin-top: 15px;
    color: #666;
}

.contact-hours span {
    color: #244a8f;
    font-weight: 600;
}

/* Map */
.map-section {
    width: 100%;
    margin-top: 60px;
}

.map-section iframe {
    display: block;
}

/* Apply Page */
.apply-section {
    padding: 90px 0;
    background: #f2f2f2;
    text-align: center;
}

.apply-subtitle {
    margin-top: 30px;
    font-size: 20px;
    font-weight: 500;
}

.apply-bold {
    margin-top: 10px;
    font-weight: 600;
}

.form-title {
    margin-top: 40px;
    font-size: 22px;
    font-weight: 600;
}

.loan-form {
    margin-top: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 70%;
    margin: auto;
    text-align: left;
}

.form-grid input,
.form-grid textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.form-grid textarea {
    height: 150px;
    resize: none;
}

.recaptcha-text {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.recaptcha-text a {
    color: #244a8f;
    text-decoration: none;
}

.submit-wrapper {
    margin-top: 40px;
}

.submit-btn {
    background: #244a8f;
    color: #fff;
    border: none;
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
}

/* Popup */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-box {
    background: #fff;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
}

.popup-box h2 {
    font-family: 'Ubuntu', sans-serif;
    color: #244a8f;
    margin-bottom: 15px;
}

.popup-box p {
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.popup-box button {
    background: #244a8f;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
}

@keyframes fadeIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 992px) {

    .container {
        width: 92%;
    }

    /* Navigation stack */
    .nav {
        flex-direction: column;
        gap: 15px;
    }

    nav a {
        margin-left: 15px;
        font-size: 13px;
    }

    /* Hero */
    .hero {
        height: 350px;
    }

    .hero-content {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Content Grid -> single column */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .content-section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .advantage {
        padding: 60px 0;
    }
}


@media (max-width: 576px) {

    .hero {
        height: 280px;
        border-radius: 10px;
    }

    .hero-content {
        width: 100%;
        padding: 0 20px;
    }

    .btn-primary {
        width: 100%;
        max-width: 220px;
    }

    .dots {
        bottom: 15px;
    }

    footer {
        font-size: 12px;
        padding: 15px;
    }
        .gallery-thumbs img {
        width: 30%;
        height: 70px;
    }
}

