@import url('https://fonts.googleapis.com/css2?family=Figtree&display=swap');

html,
body {
    margin: 0;
    font-family: 'Figtree', Arial, sans-serif;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    opacity: 1;
}

#loanError {
    color: red;
    font-weight: 600;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0 20px;
}

.navbar .logo-left,
.navbar .logo-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
}

.logo-left {
    left: 20px;
}

.logo-right {
    right: 20px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    position: relative;
    padding: 8px 16px;
    color: #12A44F;
    text-decoration: none;
    font-weight: 300;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-links a.active {
    background-color: #12A44F;
    color: white;
    border-color: #12A44F;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 50px;
}

.nav-links a:not(.active):hover {
    background-color: #e6f2e9;
    border-radius: 20px;
}

main {
    padding-top: 70px;
}

/* Hamburger menu icon */
.menu-icon {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

.menu-icon div {
    width: 100%;
    height: 3px;
    background-color: #12A44F;
    border-radius: 2px;
}

/* CAROUSEL HERO SECTION*/
#carouselHome {
    height: auto;
    width: 100%;
}

#carouselHome .carousel-inner,
#carouselHome .carousel-item {
    height: 100%;
}

#carouselHome .carousel-item img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

#carouselHome .carousel-inner {
    overflow: hidden;
}

.services-title {
    width: 100%;
    text-align: center;
    color: #12A44F;
    font-size: 4em;
    letter-spacing: 3px;
    order: -1;
    margin-top: 3%;
    margin-bottom: 3%;
    font-weight: bolder;
}

/* FAQ Section */
#faq {
    background-image: url(../services/overlay.svg);
    padding: 5% 20px;
    font-family: 'Figtree', Arial, sans-serif;
    text-align: center;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.faq-title {
    color: white;
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 30px;
    z-index: 3;
}

.faq-accordion-container {
    max-width: 50%;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background-color: white;
    border-radius: 20px;
    margin-bottom: 2%;
    overflow: hidden;
    color: black;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item.open {
    background-color: #dcdcdc;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.2em;
}

.faq-icon {
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    background-color: #C8FFDC;
    color: #07411B;
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    font-size: 1.2em;
}

.faq-item.open .faq-answer {
    max-height: 1000px;
    padding: 20px 25px;
}

.faq-answer p,
.faq-answer ul {
    margin: 0;
    font-size: 1em;
    line-height: 1.5;
}

.document-list-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.document-list-container h3 {
    font-weight: 700;
    margin-bottom: 10px;
    color: #07411B;
}

.document-list-container ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.faq-bg {
    display: none;
}

.dots1 {
    position: absolute;
    right: 0;
    /* background-color: #07411B; */
    width: 13%;
    top: 65%;
    rotate: 90deg;
}

.dots2 {
    position: absolute;
    left: 0;
    rotate: 90deg;
    /* background-color: #07411B; */
    width: 10%;
    top: 65%;
}

/* Loan Process Section */
#loanProcess {
    text-align: center;
    background-color: white;
    height: 900px;
}

.loan-process-title {
    color: #12A44F;
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 50px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    max-width: 80%;
    margin: 0 auto;
    padding: 2%;
}

.bottom-steps-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 9%;
    width: 90%;
    margin: auto;
}

.step-item {
    background-color: #C8FFDC;
    border-radius: 20px;
    padding: 2%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: #07411B;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: 700;
    position: absolute;
    top: -30px;
}

.step-content {
    margin-top: 15%;
}

.step-content b {
    color: #4e4e4e;
    font-size: 1.4em;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.step-content p {
    color: #4e4e4e;
    font-size: 1.3em;
}

.bottom-steps-container .step-item {
    flex: 0 1 300px;
}

.dots3 {
    position: relative;
    top: -45vh;
    left: -35%;
    rotate: 90deg;
    /* background-color: black; */
}

.dots4 {
    position: relative;
    top: -45vh;
    right: -35%;
    rotate: 90deg;
    /* background-color: black; */
}

/* LOAN CALCULATOR PART */
#loanCalc {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 8%;
    margin-bottom: 100px;
    padding-top: 0;
    /* background-color: #07411B; */
    height: 850px;
}

.overlay_calc {
    width: 100%;
    height: 900px;
    z-index: 0;
    top: -20px;
    position: absolute;
}

.loan_title {
    font-size: 4em;
    color: #ffffff;
    width: fit-content;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    text-align: left;
    margin-left: 25%;
    top: 9%;
}

.calc {
    position: absolute;
    z-index: 1;
    margin-left: 17%;
    margin-top: clamp(90px, 6%, 100px);
}

.loan_instruc {
    color: white;
    font-size: 1.4em;
    position: relative;
    z-index: 1;
    text-align: left;
    margin: 0 auto;
    max-width: 65%;
    top: 6vh;
}

/* Grid container for the 2x2 layout */
.row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 65%;
    margin: 0 auto;
    top: 8vh;
}

.col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pension_title,
.branch_title,
.terms_title,
.loanable_title {
    position: relative;
    width: fit-content;
    z-index: 1;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 15px;
    left: 0;
    top: 0;
}

#branch_menu {
    position: relative;
    width: 100%;
    z-index: 1;
    font-family: 'Figtree', Arial;
    font-size: 1.1em;
    padding: 12px;
    border-radius: 10px;
    border: none;
    color: #5A5A5A;
    text-align: center;
    top: 0;
    left: 0;
}

#branch_menu option {
    color: #5A5A5A;
    background-color: white;
}

#branch_menu option:checked {
    background-color: #0C722F;
    color: white;
}

#monthly_pension {
    position: relative;
    width: 100%;
    z-index: 1;
    font-family: 'Figtree', Arial;
    font-size: 1.1em;
    padding: 12px;
    border-radius: 10px;
    border: none;
    color: #5A5A5A;
    text-align: center;
    top: 0;
    left: 0;
}

.button-row {
    display: flex;
    position: relative;
    gap: 10px;
    z-index: 2;
    width: 100%;
    flex-wrap: wrap;
    top: 0;
    left: 0;
}

.term-btn {
    position: relative;
    padding: 10px 15px;
    background-color: white;
    border: 2px solid transparent;
    color: #5A5A5A;
    font-weight: normal;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    font-family: 'Figtree', Arial;
    font-size: 1rem;
    flex: 1;
    min-width: 80px;
}

.term-btn:hover {
    background-color: #0C722F;
    color: white;
}

.term-btn.active {
    border-color: #0C722F;
    font-weight: bold;
    background-color: white;
    color: #0C722F;
}

#loanable {
    position: relative;
    width: 100%;
    z-index: 1;
    font-family: 'Figtree', Arial;
    font-size: 1.1em;
    padding: 12px;
    border-radius: 10px;
    border: none;
    color: #5A5A5A;
    text-align: center;
    top: 0;
    left: 0;
}

/* Net Amount section - spans full width below the grid */
.net_amount_title {
    position: relative;
    text-align: center;
    width: 100%;
    z-index: 1;
    color: white;
    letter-spacing: 2px;
    margin: 40px auto 20px;
    top: 8vh;
    left: 0;
}

#net_amount {
    position: relative;
    width: 80%;
    max-width: 500px;
    z-index: 1;
    font-family: 'Figtree', Arial;
    font-size: 3em;
    padding: 15px;
    border-radius: 10px;
    border: none;
    color: #0C722F;
    text-align: center;
    margin: 0 auto;
    display: block;
    top: 8vh;
    left: 0;
}

.reminder {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    max-width: 40%;
    margin: 20px auto;
    top: 8vh;
    left: 0;
}

/* footer part */
#footer {
    background-image: url(../home/footer_bg.png);
    color: #ffffff;
    padding-top: 20px;
    padding-bottom: 10px;
    text-align: center;
    letter-spacing: 3px;
}

#footer button {
    position: relative;
    z-index: 3;
    display: block;
    margin: auto;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 12px 20px;
    background-color: white;
    color: #12A44F;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5em;
    font-family: 'Figtree';
}

#footer a {
    text-decoration: none;
}
@media screen and (min-width: 1025px) and (max-width: 1440px) {
    html, body {
        overflow-x: hidden;
    }

    .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0 20px;
    }

    .navbar .logo-left,
    .navbar .logo-right {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        height: 40px;
        margin-right: 10px;
    }

    .dots1 {
        position: absolute;
        right: 3%;
        top: 50%;
        rotate: 90deg;
    }
    .dots3 {
    position: relative;
    top: -45vh;
    left: -35%;
    rotate: 90deg;
    /* background-color: black; */
}
    #loanProcess {
        text-align: center;
        height: 900px;
    }
    #loanCalc {
        height: 900px;
        margin-bottom: 5%;
    }
    .overlay_calc {
        height: 920px;
        width: auto;
        left: 0;
        top: 0;
    }

    .button-row {
        gap: 10px;
        width: 100%;
    }

    .term-btn {
        padding: 10px 10px;
        font-size: 1em;
        min-width: 80px;
    }
    #footer button {
        font-family: 'Figtree';
        letter-spacing: 1px;
    }
}

@media screen and (min-width: 915px) and (max-width: 1024px) {

    html,
    body {
        overflow-x: hidden;
    }

    .logo-left,
    .logo-right {
        width: 11%;
    }

    /* FAQ Section */
    .faq-title {
        color: white;
        font-size: 4em;
        font-weight: 700;
        margin-bottom: 30px;
        z-index: 3;
    }

    .faq-accordion-container {
        max-width: 70%;
    }

    .faq-question,
    .faq-answer {
        font-size: 1.2em;
    }

    .dots1 {
        position: absolute;
        right: 3%;
        top: 50%;
        rotate: 90deg;
    }

    .dots2 {
        position: absolute;
        left: 0;
        rotate: 90deg;
        /* background-color: #07411B; */
        width: 10%;
        top: 48%;
    }

    /* Loan Process Section */
    #loanProcess {
        text-align: center;
        height: 1000px;
    }

    .loan-process-title {
        color: #12A44F;
        font-size: 4em;
        font-weight: 700;
        margin-bottom: 50px;
        padding: 20px;
    }

    .steps-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: 90%;
        margin: 0 auto;
        padding: 4%;
    }

    .bottom-steps-container {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        gap: 8%;
        width: 90%;
        margin: auto;
        padding: 2%;
        height: fit-content;
    }

    .step-item {
        background-color: #C8FFDC;
        border-radius: 20px;
        padding: 5%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .step-number {
        width: 60px;
        height: 60px;
        background-color: #07411B;
        color: white;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.5em;
        font-weight: 700;
        position: absolute;
        top: -30px;
    }

    .step-content {
        margin-top: 15%;
    }

    .step-content b {
        color: #4e4e4e;
        font-size: 1.4em;
        font-weight: 700;
        display: block;
        margin-bottom: 10px;
    }

    .step-content p {
        color: #4e4e4e;
        font-size: 1.2em;
    }
    .dots3, .dots4 {
        top: -40%;
    }
    .dots3 {
        left: -47%;
    }
    .dots4 {
        right: -47%;
    }

    #loanCalc {
        height: 850px;
        margin-bottom: 10px;
    }
    .overlay_calc {
        position: absolute;
        width: auto;
        height:820px;
        left:0;
        top:0;
    }

    .loan_title {
        font-size: 4em;
        color: #ffffff;
        width: fit-content;
        letter-spacing: 1px;
        position: relative;
        z-index: 1;
        text-align: left;
        margin-left: 17%;
        top: 12%;
    }

    .calc {
        position: absolute;
        z-index: 1;
        margin-left: 9%;
        margin-top: 10%;
    }

    .loan_instruc {
        color: white;
        font-size: 1.3em;
        position: relative;
        z-index: 1;
        text-align: left;
        margin: 0 auto;
        max-width: 80%;
    }

    /* Grid container for the 2x2 layout */
    .row {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        max-width: 80%;
        margin: 0 auto;
        top: 8vh;
    }

    .col {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .pension_title,
    .branch_title,
    .terms_title,
    .loanable_title {
        position: relative;
        width: fit-content;
        z-index: 1;
        color: white;
        letter-spacing: 2px;
        margin-bottom: 15px;
        left: 0;
        top: 0;
        font-size: 1.3em;
    }

    #branch_menu {
        position: relative;
        width: 100%;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 1em;
        padding: 12px;
        border-radius: 10px;
        border: none;
        color: #5A5A5A;
        text-align: center;
        top: 0;
        left: 0;
    }

    #branch_menu option {
        color: #5A5A5A;
        background-color: white;
    }

    #branch_menu option:checked {
        background-color: #0C722F;
        color: white;
    }

    #monthly_pension {
        position: relative;
        width: 100%;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 1.1em;
        padding: 12px;
        border-radius: 10px;
        border: none;
        color: #5A5A5A;
        text-align: center;
        top: 0;
        left: 0;
    }

    .button-row {
        display: flex;
        position: relative;
        gap: 10px;
        z-index: 2;
        width: 100%;
        flex-wrap: wrap;
        top: 0;
        left: 0;
    }

    .term-btn {
        position: relative;
        padding: 10px 10px;
        background-color: white;
        border: 2px solid transparent;
        color: #5A5A5A;
        font-weight: normal;
        cursor: pointer;
        border-radius: 5px;
        transition: background-color 0.3s, color 0.3s, border-color 0.3s;
        font-family: 'Figtree', Arial;
        font-size: 0.9em;
        flex: 1;
        min-width: 80px;
    }

    .term-btn:hover {
        background-color: #0C722F;
        color: white;
    }

    .term-btn.active {
        border-color: #0C722F;
        font-weight: bold;
        background-color: white;
        color: #0C722F;
    }

    #loanable {
        position: relative;
        width: 100%;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 1.1em;
        padding: 12px;
        border-radius: 10px;
        border: none;
        color: #5A5A5A;
        text-align: center;
        top: 0;
        left: 0;
    }

    /* Net Amount section - spans full width below the grid */
    .net_amount_title {
        position: relative;
        text-align: center;
        width: 100%;
        z-index: 1;
        color: white;
        letter-spacing: 2px;
        margin: 40px auto 20px;
        top: 40px;
        left: 0;
    }

    #net_amount {
        position: relative;
        width: 80%;
        max-width: 500px;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 3em;
        padding: 15px;
        border-radius: 10px;
        border: none;
        color: #0C722F;
        text-align: center;
        margin: 0 auto;
        display: block;
        top: 40px;
        left: 0;
    }

    .reminder {
        position: relative;
        z-index: 1;
        color: white;
        text-align: center;
        max-width: 50%;
        margin: 20px auto;
        top: 40px;
        left: 0;
        font-size: 0.9em;
    }
}

@media screen and (min-width: 500px) and (max-width: 915px) {

    html,
    body {
        overflow-x: hidden !important;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
        ;
        height: 60px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 0 15px;
    }

    .navbar .logo-left {
        position: static;
        left: auto;
        transform: none;
        height: 40px;
        width: auto;
        order: 1;
        margin-right: 10px;
    }

    .navbar .logo-right {
        position: static;
        right: auto;
        transform: none;
        height: 40px;
        width: auto;
        order: 2;
        margin-right: auto;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: none;
        border-radius: 0;
        gap: 0;
        z-index: 999;
        order: 4;
        box-sizing: border-box;
    }

    .nav-links.show {
        max-height: 400px;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
        padding: 20px 0;
    }

    .nav-links a {
        padding: 15px 20px;
        width: calc(100% - 40px);
        max-width: 100%;
        text-align: center;
        border-radius: 0;
        font-weight: 500;
        font-size: 18px;
        color: #12A44F;
        background: none;
        display: block;
        margin: 5px 20px;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-links a.active {
        background-color: #12A44F;
        color: white;
        border-radius: 25px;
        font-weight: 600;
        padding-bottom: 20px;
    }

    .nav-links a:not(.active):hover {
        background-color: #e6f2e9;
        border-radius: 25px;
    }

    .menu-icon {
        display: flex;
        position: relative;
        width: 30px;
        height: 24px;
        cursor: pointer;
        flex-shrink: 0;
        order: 3;
        background-color: transparent;
        justify-content: center;
        align-items: center;
        top: 1.5vh;
    }

    .menu-icon span,
    .menu-icon::before,
    .menu-icon::after {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #12A44F;
        border-radius: 1px;
        transition: all 0.3s ease;
        position: absolute;
        left: 0;
    }

    .menu-icon::before,
    .menu-icon::after {
        content: '';
    }

    .menu-icon::before {
        top: 0;
    }

    .menu-icon span {
        top: 50%;
        transform: translateY(-50%);
    }

    .menu-icon::after {
        bottom: 0;
    }

    .menu-icon.active span {
        opacity: 0;
    }

    .menu-icon.active::before {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .menu-icon.active::after {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    .dots,
    .dots1,
    .dots2,
    .dots3,
    .dots4 {
        display: none;
    }

    /* FAQ Section */
    .faq-title {
        color: white;
        font-size: 3em;
        font-weight: 700;
        margin-bottom: 30px;
        z-index: 3;
    }

    .faq-accordion-container {
        max-width: 70%;
    }

    .faq-question,
    .faq-answer {
        font-size: 1em;
    }

    /* Loan Process Section */
    #loanProcess {
        text-align: center;
        background-color: white;
        height: 900px;
    }

    .loan-process-title {
        color: #12A44F;
        font-size: 3em;
        font-weight: 700;
        margin-bottom: 50px;
        padding: 10px;
    }

    .steps-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: 90%;
        margin: 0 auto;
        padding: 4%;
    }

    .bottom-steps-container {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        gap: 8%;
        width: 90%;
        margin: auto;
        padding: 2%;
        height: fit-content;
    }

    .step-item {
        background-color: #C8FFDC;
        border-radius: 20px;
        padding: 5%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .step-number {
        width: 50px;
        height: 50px;
        background-color: #07411B;
        color: white;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.2em;
        font-weight: 700;
        position: absolute;
        top: -30px;
    }

    .step-content {
        margin-top: 15%;
    }

    .step-content b {
        color: #4e4e4e;
        font-size: 1.2em;
        font-weight: 700;
        display: block;
        margin-bottom: 10px;
    }

    .step-content p {
        color: #4e4e4e;
        font-size: 1em;
    }

    /* loan calculator part */
    #loanCalc {
        height: 890px;
        margin-bottom: 10px;
    }

    .overlay_calc {
        position: absolute;
        width: auto;
        height:850px;
        left: -50%;
        top:0;
    }

    .loan_title {
        font-size: 4em;
        color: #ffffff;
        width: fit-content;
        letter-spacing: 1px;
        position: relative;
        z-index: 1;
        text-align: left;
        margin-left: 25%;
        top: 9%;
    }

    .calc {
        position: absolute;
        z-index: 1;
        margin-left: 14%;
        margin-top: 11%;
    }

    .loan_instruc {
        color: white;
        font-size: 1.2em;
        position: relative;
        z-index: 1;
        text-align: left;
        margin: 0 auto;
        max-width: 70%;
    }

    /* Grid container for the 2x2 layout */
    .row {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        max-width: 70%;
        margin: 0 auto;
        top: 8vh;
    }

    .col {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .pension_title,
    .branch_title,
    .terms_title,
    .loanable_title {
        position: relative;
        width: fit-content;
        z-index: 1;
        color: white;
        letter-spacing: 2px;
        margin-bottom: 15px;
        left: 0;
        top: 0;
        font-size: 1em;
    }

    #branch_menu {
        position: relative;
        width: 100%;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 1em;
        padding: 12px;
        border-radius: 10px;
        border: none;
        color: #5A5A5A;
        text-align: center;
        top: 0;
        left: 0;
    }

    #branch_menu option {
        color: #5A5A5A;
        background-color: white;
    }

    #branch_menu option:checked {
        background-color: #0C722F;
        color: white;
    }

    #monthly_pension {
        position: relative;
        width: 100%;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 1.1em;
        padding: 12px;
        border-radius: 10px;
        border: none;
        color: #5A5A5A;
        text-align: center;
        top: 0;
        left: 0;
    }

    .button-row {
        display: flex;
        position: relative;
        gap: 10px;
        z-index: 2;
        width: 100%;
        flex-wrap: wrap;
        top: 0;
        left: 0;
    }

    .term-btn {
        position: relative;
        padding: 10px 15px;
        background-color: white;
        border: 2px solid transparent;
        color: #5A5A5A;
        font-weight: normal;
        cursor: pointer;
        border-radius: 5px;
        transition: background-color 0.3s, color 0.3s, border-color 0.3s;
        font-family: 'Figtree', Arial;
        font-size: 1em;
        flex: 1;
        min-width: 80px;
    }

    .term-btn:hover {
        background-color: #0C722F;
        color: white;
    }

    .term-btn.active {
        border-color: #0C722F;
        font-weight: bold;
        background-color: white;
        color: #0C722F;
    }

    #loanable {
        position: relative;
        width: 100%;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 1.1em;
        padding: 12px;
        border-radius: 10px;
        border: none;
        color: #5A5A5A;
        text-align: center;
        top: 0;
        left: 0;
    }

    /* Net Amount section - spans full width below the grid */
    .net_amount_title {
        position: relative;
        text-align: center;
        width: 100%;
        z-index: 1;
        color: white;
        letter-spacing: 2px;
        margin: 40px auto 20px;
        top: 60px;
        left: 0;
    }

    #net_amount {
        position: relative;
        width: 80%;
        max-width: 500px;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 4em;
        padding: 15px;
        border-radius: 10px;
        border: none;
        color: #0C722F;
        text-align: center;
        margin: 0 auto;
        display: block;
        top: 60px;
        left: 0;
    }

    .reminder {
        position: relative;
        z-index: 1;
        color: white;
        text-align: center;
        max-width: 60%;
        margin: 20px auto;
        top: 60px;
        left: 0;
        font-size: 0.9em;
    }
}
@media screen and (min-width: 376px) and (max-width: 500px) {
    html, body {
        overflow-x: hidden;
    }
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
        ;
        height: 60px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 0 15px;
    }

    .navbar .logo-left {
        position: static;
        left: auto;
        transform: none;
        height: 30px;
        width: auto;
        order: 1;
        margin-right: 10px;
    }

    .navbar .logo-right {
        position: static;
        right: auto;
        transform: none;
        height: 30px;
        width: auto;
        order: 2;
        margin-right: auto;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: none;
        border-radius: 0;
        gap: 0;
        z-index: 999;
        order: 4;
        box-sizing: border-box;
    }

    .nav-links.show {
        max-height: 400px;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
        padding: 20px 0;
    }

    .nav-links a {
        padding: 15px 20px;
        width: calc(100% - 40px);
        max-width: 100%;
        text-align: center;
        border-radius: 0;
        font-weight: 500;
        font-size: 18px;
        color: #12A44F;
        background: none;
        display: block;
        margin: 5px 20px;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-links a.active {
        background-color: #12A44F;
        color: white;
        border-radius: 25px;
        font-weight: 600;
        padding-bottom: 20px;
    }

    .nav-links a:not(.active):hover {
        background-color: #e6f2e9;
        border-radius: 25px;
    }

    .menu-icon {
        display: flex;
        position: relative;
        width: 30px;
        height: 24px;
        cursor: pointer;
        flex-shrink: 0;
        order: 3;
        background-color: transparent;
        justify-content: center;
        align-items: center;
        top: 1.5vh;
    }

    .menu-icon span,
    .menu-icon::before,
    .menu-icon::after {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #12A44F;
        border-radius: 1px;
        transition: all 0.3s ease;
        position: absolute;
        left: 0;
    }

    .menu-icon::before,
    .menu-icon::after {
        content: '';
    }

    .menu-icon::before {
        top: 0;
    }

    .menu-icon span {
        top: 50%;
        transform: translateY(-50%);
    }

    .menu-icon::after {
        bottom: 0;
    }

    .menu-icon.active span {
        opacity: 0;
    }

    .menu-icon.active::before {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .menu-icon.active::after {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    .dots1,
    .dots2,
    .dots3,
    .dots4 {
        display: none;
    }
    .services-title {
        font-size: 3em;
    }

    #faq {
        max-width: 90%;
    }

    .faq-bg {
        width: 90%;
    }

    .faq-title {
        color: white;
        font-size: 2em;
        font-weight: 700;
        margin-bottom: 10px;
        z-index: 3;
    }

    .faq-accordion-container {
        max-width: 75%;
    }

    .faq-question,
    .faq-answer {
        font-size: 0.8em;
    }

    .loan-process-title {
        font-size: 2em;
        padding: 10px;
    }

    /* Loan Process Section */
    #loanProcess {
        text-align: center;
        background-color: white;
        height: 800px;
    }

    .loan-process-title {
        color: #12A44F;
        font-size: 2em;
        font-weight: 700;
        margin-bottom: 50px;
        padding: 10px;
    }

    .steps-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 95%;
        margin: 0 auto;
        padding: 4%;
    }

    .bottom-steps-container {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        gap: 8%;
        width: 90%;
        margin: auto;
        padding: 2%;
        height: fit-content;
    }

    .step-item {
        background-color: #C8FFDC;
        border-radius: 20px;
        padding: 5%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .step-number {
        width: 40px;
        height: 40px;
        background-color: #07411B;
        color: white;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0.9em;
        font-weight: 700;
        position: absolute;
        top: -20px;
    }

    .step-content {
        margin-top: 15%;
    }

    .step-content b {
        color: #4e4e4e;
        font-size: 0.8em;
        font-weight: 700;
        display: block;
        margin-bottom: 10px;
    }

    .step-content p {
        color: #4e4e4e;
        font-size: 0.8em;
    }

    #loanCalc {
        height: 900px;
        margin-bottom: 10px;
    }

    .overlay_calc {
        position: absolute;
        width: auto;
        height:900px;
        left: -70%;
        top: 0;
    }

    .loan_title {
        font-size: 2em;
        color: #ffffff;
        width: fit-content;
        letter-spacing: 1px;
        position: relative;
        z-index: 1;
        text-align: left;
        margin-left: 15%;
        top: 6%;
    }

    .calc {
        display:none;
    }

    .loan_instruc {
        color: white;
        font-size: 0.8em;
        position: relative;
        z-index: 1;
        text-align: left;
        margin: 0 auto;
        max-width: 70%;
    }

    /* Grid container for the 2x2 layout */
    .row {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 70%;
        margin: 0 auto;
        top: 8vh;
    }

    .col {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .pension_title,
    .branch_title,
    .terms_title,
    .loanable_title {
        position: relative;
        width: fit-content;
        z-index: 1;
        color: white;
        letter-spacing: 2px;
        margin-bottom: 10px;
        left: 0;
        top: 0;
        font-size: 1em;
    }

    #branch_menu {
        position: relative;
        width: 100%;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 0.8em;
        padding: 12px;
        border-radius: 10px;
        border: none;
        color: #5A5A5A;
        text-align: center;
        top: 0;
        left: 0;
    }

    #branch_menu option {
        color: #5A5A5A;
        background-color: white;
    }

    #branch_menu option:checked {
        background-color: #0C722F;
        color: white;
    }

    #monthly_pension {
        position: relative;
        width: 91%;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 0.8em;
        padding: 12px;
        border-radius: 10px;
        border: none;
        color: #5A5A5A;
        text-align: center;
        top: 0;
        left: 0;
    }

    .button-row {
        display: flex;
        position: relative;
        gap: 10px;
        z-index: 2;
        width: 100%;
        flex-wrap: wrap;
        top: 0;
        left: 0;
    }

    .term-btn {
        position: relative;
        padding: 10px 2px;
        background-color: white;
        border: 2px solid transparent;
        color: #5A5A5A;
        font-weight: normal;
        cursor: pointer;
        border-radius: 5px;
        transition: background-color 0.3s, color 0.3s, border-color 0.3s;
        font-family: 'Figtree', Arial;
        font-size: 0.8em;
        flex: 1;
        min-width: 65px;
    }

    .term-btn:hover {
        background-color: #0C722F;
        color: white;
    }

    .term-btn.active {
        border-color: #0C722F;
        font-weight: bold;
        background-color: white;
        color: #0C722F;
    }

    #loanable {
        position: relative;
        width: 91%;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 0.8em;
        padding: 12px;
        border-radius: 10px;
        border: none;
        color: #5A5A5A;
        text-align: center;
        top: 0;
        left: 0;
    }

    /* Net Amount section - spans full width below the grid */
    .net_amount_title {
        position: relative;
        text-align: center;
        width: 100%;
        z-index: 1;
        color: white;
        letter-spacing: 2px;
        margin: 40px auto 20px;
        top: 15px;
        left: 0;
    }

    #net_amount {
        position: relative;
        width: 70%;
        max-width: 500px;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 2.5em;
        padding: 15px;
        border-radius: 10px;
        border: none;
        color: #0C722F;
        text-align: center;
        margin: 0 auto;
        display: block;
        top: 10px;
        left: 0;
    }

    .reminder {
        position: relative;
        z-index: 1;
        color: white;
        text-align: center;
        max-width: 70%;
        margin: 20px auto;
        top: 5px;
        left: 0;
        font-size: 0.7em;
    }
    #footer {
        letter-spacing: 1px;
        font-size: 0.8em;
    }
    #footer button {
        font-family: 'Figtree';
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 376px) {
    html, body {
        overflow-x: hidden;
    }
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
        ;
        height: 60px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 0 15px;
    }

    .navbar .logo-left {
        position: static;
        left: auto;
        transform: none;
        height: 25px;
        width: auto;
        order: 1;
        margin-right: 10px;
    }

    .navbar .logo-right {
        position: static;
        right: auto;
        transform: none;
        height: 25px;
        width: auto;
        order: 2;
        margin-right: auto;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: none;
        border-radius: 0;
        gap: 0;
        z-index: 999;
        order: 4;
        box-sizing: border-box;
    }

    .nav-links.show {
        max-height: 400px;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
        padding: 20px 0;
    }

    .nav-links a {
        padding: 15px 20px;
        width: calc(100% - 40px);
        max-width: 100%;
        text-align: center;
        border-radius: 0;
        font-weight: 500;
        font-size: 18px;
        color: #12A44F;
        background: none;
        display: block;
        margin: 5px 20px;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-links a.active {
        background-color: #12A44F;
        color: white;
        border-radius: 25px;
        font-weight: 600;
        padding-bottom: 20px;
    }

    .nav-links a:not(.active):hover {
        background-color: #e6f2e9;
        border-radius: 25px;
    }

    .menu-icon {
        display: flex;
        position: relative;
        width: 30px;
        height: 24px;
        cursor: pointer;
        flex-shrink: 0;
        order: 3;
        background-color: transparent;
        justify-content: center;
        align-items: center;
        top: 1.5vh;
    }

    .menu-icon span,
    .menu-icon::before,
    .menu-icon::after {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #12A44F;
        border-radius: 1px;
        transition: all 0.3s ease;
        position: absolute;
        left: 0;
    }

    .menu-icon::before,
    .menu-icon::after {
        content: '';
    }

    .menu-icon::before {
        top: 0;
    }

    .menu-icon span {
        top: 50%;
        transform: translateY(-50%);
    }

    .menu-icon::after {
        bottom: 0;
    }

    .menu-icon.active span {
        opacity: 0;
    }

    .menu-icon.active::before {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .menu-icon.active::after {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    .dots1,
    .dots2,
    .dots3,
    .dots4 {
        display: none;
    }
    .services-title {
        font-size: 3em;
    }

    #faq {
        max-width: 90%;
    }

    .faq-bg {
        width: 90%;
    }

    .faq-title {
        color: white;
        font-size: 2em;
        font-weight: 700;
        margin-bottom: 10px;
        z-index: 3;
    }

    .faq-accordion-container {
        max-width: 90%;
    }

    .faq-question,
    .faq-answer {
        font-size: 0.7em;
    }

    .loan-process-title {
        font-size: 2em;
        padding: 10px;
    }

    /* Loan Process Section */
    #loanProcess {
        text-align: center;
        background-color: white;
        height: 500px;
    }

    .loan-process-title {
        color: #12A44F;
        font-size: 1.5em;
        font-weight: 700;
        margin-bottom: 10px;
        padding: 10px;
    }

    .steps-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        max-width: 95%;
        margin: 0 auto;
        padding: 0;
    }

    .bottom-steps-container {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        gap: 8%;
        width: 90%;
        margin: auto;
        padding: 2%;
        height: fit-content;
    }

    .step-item {
        background-color: #C8FFDC;
        border-radius: 20px;
        padding-top: 8%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .step-number {
        width: 30px;
        height: 30px;
        background-color: #07411B;
        color: white;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0.7em;
        font-weight: 700;
        position: absolute;
        top: -10px;
    }

    .step-content {
        margin-top: 15%;
    }

    .step-content b {
        color: #4e4e4e;
        font-size: 0.6em;
        font-weight: 700;
        display: block;
        margin-bottom: 10px;
    }

    .step-content p {
        color: #4e4e4e;
        font-size: 0.6em;
    }

    #loanCalc {
        height: 800px;
        margin-bottom: 10px;
    }

    .overlay_calc {
        position: absolute;
        width: auto;
        height:780px;
        left: -150%;
        top: 0;
    }

    .loan_title {
        font-size: 1.7em;
        color: #ffffff;
        width: fit-content;
        letter-spacing: 1px;
        position: relative;
        z-index: 1;
        text-align: left;
        margin-left: 15%;
        top: 7%;
    }

    .calc {
        display:none;
    }

    .loan_instruc {
        color: white;
        font-size: 0.8em;
        position: relative;
        z-index: 1;
        text-align: left;
        margin: 0 auto;
        max-width: 70%;
    }

    .row {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
        max-width: 70%;
        margin: 0 auto;
        top: 8vh;
    }

    .col {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .pension_title,
    .branch_title,
    .terms_title,
    .loanable_title {
        position: relative;
        width: fit-content;
        z-index: 1;
        color: white;
        letter-spacing: 2px;
        margin-bottom: 10px;
        left: 0;
        top: 0;
        font-size: 0.9em;
    }

    #branch_menu {
        position: relative;
        width: 100%;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 0.8em;
        padding: 12px;
        border-radius: 10px;
        border: none;
        color: #5A5A5A;
        text-align: center;
        top: 0;
        left: 0;
    }

    #branch_menu option {
        color: #5A5A5A;
        background-color: white;
    }

    #branch_menu option:checked {
        background-color: #0C722F;
        color: white;
    }

    #monthly_pension {
        position: relative;
        width: 91%;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 0.8em;
        padding: 12px;
        border-radius: 10px;
        border: none;
        color: #5A5A5A;
        text-align: center;
        top: 0;
        left: 0;
    }

    .button-row {
        display: flex;
        position: relative;
        gap: 5px;
        z-index: 2;
        width: 100%;
        flex-wrap: wrap;
        top: 0;
        left: 0;
    }

    .term-btn {
        position: relative;
        padding: 10px 2px;
        background-color: white;
        border: 2px solid transparent;
        color: #5A5A5A;
        font-weight: normal;
        cursor: pointer;
        border-radius: 5px;
        transition: background-color 0.3s, color 0.3s, border-color 0.3s;
        font-family: 'Figtree', Arial;
        font-size: 0.7em;
        flex: 1;
        min-width: 40px;
    }

    .term-btn:hover {
        background-color: #0C722F;
        color: white;
    }

    .term-btn.active {
        border-color: #0C722F;
        font-weight: bold;
        background-color: white;
        color: #0C722F;
    }

    #loanable {
        position: relative;
        width: 91%;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 0.8em;
        padding: 12px;
        border-radius: 10px;
        border: none;
        color: #5A5A5A;
        text-align: center;
        top: 0;
        left: 0;
    }

    /* Net Amount section - spans full width below the grid */
    .net_amount_title {
        position: relative;
        text-align: center;
        width: 100%;
        z-index: 1;
        color: white;
        letter-spacing: 2px;
        margin: 30px auto 10px;
        top: 40px;
        left: 0;
    }

    #net_amount {
        position: relative;
        width: 65%;
        max-width: 500px;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 2em;
        padding: 15px;
        border-radius: 10px;
        border: none;
        color: #0C722F;
        text-align: center;
        margin: 0 auto;
        display: block;
        top: 40px;
        left: 0;
    }

    .reminder {
        position: relative;
        z-index: 1;
        color: white;
        text-align: center;
        max-width: 70%;
        margin: 20px auto;
        top: 35px;
        left: 0;
        font-size: 0.7em;
    }
    
    #footer {
        letter-spacing: 0.5px;
        font-size: 0.7em;
    }

    #footer button {
        font-family: 'Figtree';
        margin-top: 10px;
        margin-bottom: 10px;
    }
}