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

html,
body {
    margin: 0;
    font-family: 'Figtree';
    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%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    color: #12A44F;
}

.menu-icon::before,
.menu-icon::after,
.menu-icon {
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background-color: #12A44F;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-icon::before {
    transform: translateY(-8px);
}

.menu-icon::after {
    transform: translateY(5px);
}

/* Middle bar */
.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #12A44F;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation when menu is active */
.menu-icon.active::before {
    transform: translateY(0) rotate(45deg);
}

.menu-icon.active::after {
    transform: translateY(-3px) rotate(-45deg);
}

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

#carouselHome {
    height: 800px;
}

#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;
}

.heart,
.people,
.location {
    margin-bottom: 2%;
}

.description-container {
    display: flex;
    justify-content: center;
    gap: 10%;
    flex-wrap: wrap;
    margin: 5%;
    position: relative;
}

.description1,
.description2,
.description3 {
    width: 26%;
    margin: 0;
    text-align: center;
    box-sizing: border-box;
    font-size: 1.4em;
    color: #5A5A5A;
}

.images-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: auto;
    position: relative;
}

.picture-row {
    display: flex;
    align-items: center;
    height: 500px;
    max-width: auto;
}

.years {
    transform: translate(-500px, 25px);
}

.dots {
    margin-left: 10%;
    height: auto;
    transform: translate(150px, 25px);
}

.picture1,
.picture2,
.picture3 {
    height: auto;
    width: 50%;
}

.picture1 {
    transform: translate(150px, -125px);
}

.picture2 {
    transform: translate(-400px, 5px);
    z-index: 1;
}

.picture3 {
    transform: translate(-600px, 150px);
    z-index: 2;
}

/* LOAN CALCULATOR */
#loan_calc {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 8%;
    padding-top: 0;
}

.overlay_calc {
    width: auto;
    height: 1000px;
    z-index: 0;
    top: -30px;
    position: absolute;
}

.illustration {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    scale: 1.1;
    top: 20%;
    right: 5%;
}

.loan_title {
    font-size: 4em;
    left: 45vh;
    color: #ffffff;
    width: fit-content;
    top: -6vh;
    letter-spacing: 1px;
}

.calc_icon {
    left: 35vh;
    top: 10vh;
}

.loan_instruc {
    left: 35vh;
    color: white;
    width: 70vh;
    font-size: 1.4em;
    top: -12vh;
}

.loan_title,
.loan_instruc,
.calc_icon {
    position: relative;
    z-index: 1;
    color: white;
}

.pension_title,
.branch_title,
.terms_title,
.loanable_title {
    position: relative;
    width: fit-content;
    z-index: 1;
    color: white;
    left: 35vh;
    letter-spacing: 2px;
}

.branch_title {
    top: -13vh;
}

.pension_title {
    top: -14vh;
}

.terms_title {
    top: -15vh;
}

.loanable_title {
    top: -16vh;
}

.net_amount_title {
    top: -16vh;
    text-align: center;
    width: 60vh;
    position: relative;
    z-index: 1;
    color: white;
    left: 35vh;
    letter-spacing: 2px;
}

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

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

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

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

.button-row {
    display: flex;
    position: relative;
    gap: 3%;
    z-index: 2;
    width: fit-content;
    width: 60vh;
    top: -16vh;
    left: 35vh;
}

.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;
}

.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: 58vh;
    z-index: 1;
    font-family: 'Figtree', Arial;
    font-size: 1.1em;
    padding: 0.5%;
    border-radius: 10px;
    top: -17vh;
    left: 35vh;
    border: none;
    color: #5A5A5A;
    text-align: center;
}

#net_amount {
    position: relative;
    width: 58vh;
    z-index: 1;
    font-family: 'Figtree', Arial;
    font-size: 3em;
    padding: 0.5%;
    border-radius: 10px;
    top: -17vh;
    left: 35vh;
    border: none;
    color: #0C722F;
    text-align: center;
}

.reminder {
    position: relative;
    z-index: 1;
    left: 35vh;
    color: white;
    width: 60vh;
    top: -18vh;
    text-align: center;
}

/* PENSIONER'S INFORMATION FORM */
#pension_form {
    position: relative;
    height: auto;
    min-height: 100vh;
    padding: 50px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.dots_form {
    position: absolute;
    top: -12vh;
    left: 18vh;
    rotate: 90deg;
    z-index: -1;
    width: fit-content;
}

.dots_form1 {
    position: absolute;
    bottom: -5vh;
    right: 20vh;
    rotate: 90deg;
    z-index: 0;
    width: fit-content;
}

.form_title {
    font-family: 'Figtree', Arial;
    font-size: 4em;
    letter-spacing: 1px;
    font-weight: bolder;
    color: #12A44F;
    width: fit-content;
    text-align: left;
    position: relative;
    order: 1;
    margin-top: 1%;
    margin-bottom: 1%;
    left: 15vh;
}

.file_text {
    position: absolute;
    display: block;
    order: 1;
    width: fit-content;
    top: 10vh;
}

.form_desc {
    color: #5a5a5a;
    font-size: 1.2rem;
    letter-spacing: 1px;
    width: fit-content;
    text-align: center;
    position: relative;
    order: 1;

}

#info_form {
    position: relative;
    z-index: 2;
    background-color: #C8FFDC;
    border-radius: 10px;
    margin: 0 auto;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
    align-items: flex-start;
    padding: 4.6%;
}

.form-column {
    flex: 1 1 calc(40% - 15px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    order: 2;
    width: fit-content;
    left: 50vh;
}

.illustration-form {
    width: 60vh;
    margin-right:10vh;
}

.form-column>div {
    width: 60vh;

}

#info_form label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.5em;
    color: #5a5a5a;
    font-weight: bold;
    letter-spacing: normal;
}

#info_form input[type="text"],
#info_form input[type="tel"],
#info_form input[type="number"],
#info_form input[type="date"],
#info_form select,
#info_form textarea {
    width: 60vh;
    padding: 12px;
    border: 1px solid #5a5a5a;
    border-radius: 8px;
    font-size: 1em;
    color: #5A5A5A;
    margin-bottom: 0;
    font-family: 'Figtree';
    text-align: center;
}

#info_form textarea {
    height: 50px;
    resize: none;
    font-family: 'Figtree';
}

#info_form button[type="button"] {
    position: relative;
    z-index: 3;
    display: block;
    margin: auto auto;
    /* More margin on top */
    padding: 12px 40px;
    background-color: #12A44F;
    color: white;
    border: none;
    border-radius: 50px;
    /* More rounded button */
    cursor: pointer;
    font-size: 1.3em;
    font-weight: 600;
    transition: background-color 0.3s ease;
    order: 3;
}

#info_form button[type="button"]:hover {
    background-color: #0C722F;
}

#pension_source option,
#pension_type option {
    color: #5A5A5A;
    background-color: white;
}

#pension_source option:checked,
#pension_type option:checked {
    background-color: #0C722F;
    color: white;
}

/* TESTIMONIALS PART */
#testimonials {
    position: relative;
}

.tstmnls {
    width: auto;
    height: 100vh;
    z-index: 0;
    top: 0;
}

.tstmnls_bg {
    position: absolute;
    z-index: -1;
    width: 100%;
}

.tstmnls_title {
    position: relative;
    width: fit-content;
    font-size: 4em;
    color: #ffffff;
    top: 15vh;
    left: 30vh;
    letter-spacing: 3px;
}

.tstmnls_desc {
    position: relative;
    color: #ffffff;
    width: 30%;
    font-size: 1.4rem;
    top: 15vh;
    left: 40vh;
}

.video_tstmnl {
    position: absolute;
    top: 20vh;
    right: 30vh;
    width: 450px;
    height: 253px;
    border-radius: 20px;
    scale: 1.2;
}

.dotted_white,
.dotted_white1,
.dotted_white2 {
    position: absolute;
}

.dotted_white {
    top: 15vh;
    rotate: 90deg;
}

.dotted_white1 {
    right: 0;
    top: 35vh;
}

.photo_circle {
    position: relative;
    top: 25vh;
    left: 40vh;
    scale: 1.3;
}

.quote {
    position: relative;
    top: 5vh;
    left: 48vh;
    scale: 1.3;
}

.quotes {
    position: relative;
    color: white;
    font-family: 'Figtree';
    font-size: 1.4em;
    width: 100vh;
    left: 80vh;
}

.name {
    position: relative;
    color: white;
    font-size: 2.5em;
    left: 80vh;
    letter-spacing: 2px;
}

#testimonials button {
    position: relative;
    z-index: 3;
    display: block;
    padding: 12px 30px;
    background-color: #FFFFFF;
    color: #12A44F;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.4em;
    transition: background-color 0.3s ease;
    margin-left: auto;
    margin-right: 12%;
    box-shadow: 0 5px 4px rgba(0, 0, 0, 0.5);
}

.tstmnls a {
    text-decoration: none;
}

#testimonials button:hover {
    background-color: #12A44F;
    color: white;
}

/* branch part */
#branch_part {
    position: relative;
    margin: 9% auto;
    height:850px;
}

.branch_title2 {
    position: absolute;
    font-family: 'Figtree', 'Arial';
    color: #12A44F;
    font-size: 4em;
    top: 0;
    left: 25vh;
}

.branches_dots {
    position: absolute;
    z-index: -1;
    rotate: 90deg;
    right: 0;
}

.map-container {
    position: relative;
    top: 20vh;
    left: 25vh;
}

.img_sanjuan,
.map_sanjuan {
    border-radius: 10px;
}

.branch_info {
    position: relative;
    padding: 20px;
    color: #5a5a5a;

    width: fit-content;
    left: 45vh;
    top: 30vh;
    scale: 1.7;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.info-item .icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.info-item p,
.info-item a {
    margin: 0;
    flex-grow: 1;
}

.info-item b {
    color: #5A5A5A;
}

.info-item a {
    text-decoration: underline;
    color: #5A5A5A;
    font-weight: bold;
}

.info-item a:hover {
    text-decoration: underline;
}

.branch_info .info-item:last-child {
    margin-bottom: 0;
}

#branch_part button {
    position: relative;
    z-index: 3;
    display: block;
    padding: 12px 25px;
    background-color: #12A44f;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.3em;
    transition: background-color 0.3s ease;
    margin-left: auto;
    margin-right: 11%;
    margin-top: 0;
    box-shadow: 0 5px 4px rgba(0, 0, 0, 0.5);
}

#branch_part button:hover {
    background-color: #0C722F;
    color: white;
}

#branch_part a {
    text-decoration: none;
}

#footer {
    background-image: url(../home/footer_bg.png);
    font-family: 'Figtree';
    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;
    }

    .logo-right,
    .logo-left {
        width: 12%;
    }
    
    .nav-links {
        gap: 10px;
    }

    #carouselHome {
        width: 100%;
        margin-bottom: 0;
        height: auto;
    }

    .description1 p,
    .description2 p,
    .description3 p {
        font-size: 0.9em;
    }

    .years {
        position: absolute;
        top: 0;
        transform: scale(0.7);
        margin-left:60%;
        top: 0;
    }

    .dots {
        position: absolute;
        height: auto;
        margin-left: -2%;
        top: 10%;
    }

    .images-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        width: 100vw;
        height: 750px;
        position: relative;
    }

    .picture-row {
        display: flex;
        align-items: center;
        height: 100%;
        max-width: 100vw;
    }

    .picture1,
    .picture2,
    .picture3 {
        height: auto;
        width: 40%;
    }

    .picture1 {
        transform: translate(125%, -100%) scale(1.2);
    }

    .picture2 {
        transform: translate(0%, -0%) scale(1.2);
        z-index: 1;
    }

    .picture3 {
        transform: translate(-70%, 60%) scale(1.2);
        z-index: 2;
    }

    #loan_calc {
        position: relative;
        width: 100%;
        height: 1000px;
        margin: 0;
        padding: 0;
    }

    .overlay_calc {
        position: absolute;
        width: auto;
        height: 1050px;
        z-index: 0;
        top:20px;
        left: -10%;
        text-align: center;
    }

    .illustration {
        top: 0;
        left: 0;
        width: fit-content;
        align-items: center;
        margin-top: 15%;
        margin-left: 50%;
        transform: scale(0.9);
    }

    .loan_title {
        position: relative;
        font-size: 4em;
        left: 20%;
        color: #ffffff;
        width: fit-content;
        letter-spacing: 1px;
    }

    .calc_icon{
        top: 80px;
        margin: 0;
        left: 15%;
    }

    .loan_instruc {
        left: 15%;
        color: white;
        width: 40%;
        font-size: 1.4em;
    }

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

    .calc-form {
        position: relative;
        margin-top: -8vh;
        width: 60%;
        margin-left: 6%;
    }

    .net_amount_title {
        position: relative;
        width: 58%;
        z-index: 1;
        color: white;
        left: 15%;
        letter-spacing: 1px;
        margin: 20px 0 10px 0;
        text-align: center;
        top: 0;
        font-size: 2em;
    }

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

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

    .button-row {
        display: flex;
        position: relative;
        gap: 2px;
        z-index: 2;
        margin-bottom: 15px;
        width: 65%;
        top: 0;
        left: 15%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .term-btn {
        position: relative;
        padding: 10px 7px;
        border: 2px solid transparent;
        color: #5a5a5a;
        font-weight: normal;
        cursor: pointer;
        border-radius: 5px;
        font-family: 'Figtree';
        font-size: 1.3rem;
        flex: 0 0 auto;
        white-space: nowrap;
        min-width: fit-content;
        transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    }

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

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

    #loanable {
        position: relative;
        width: 55%;
        z-index: 1;
        font-family: 'Figtree';
        font-size: 1.3em;
        padding: 8px;
        border-radius: 10px;
        top: 0;
        left: 15%;
        border: none;
        color: #5A5A5A;
        text-align: center;
        margin-bottom: 15px;
    }

    #net_amount {
        position: relative;
        width: 55%;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 3em;
        padding: 8px;
        border-radius: 10px;
        top: 0;
        /* Changed from auto */
        left: 15%;
        border: none;
        color: #0C722F;
        text-align: center;

    }

    .reminder {
        position: relative;
        z-index: 1;
        left: 15%;
        color: white;
        width: 58%;
        top: 0;
        text-align: center;
        margin: 10px 0;
        font-size: 0.8em;
    }

    /* pension form */
    #pension_form {
        position: relative;
        height: auto;
        min-height: 100vh;
        padding: 50px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 5%;
        margin-bottom: 0;
    }

    .dots_form {
        position: absolute;
        top: -12vh;
        left: 5vh;
        rotate: 90deg;
        z-index: -1;
        width: fit-content;
        transform: scale(0.8);
    }

    .dots_form1 {
        position: absolute;
        bottom: -5vh;
        right: 5vh;
        rotate: 90deg;
        z-index: 0;
        width: fit-content;
        transform: scale(0.8);
    }

    .form_title {
        font-family: 'Figtree', Arial;
        font-size: 4em;
        letter-spacing: 1px;
        font-weight: bolder;
        color: #12A44F;
        width: 100%;
        text-align: center;
        position: relative;
        margin-top: 2%;
        left: 18%;
        order: 1;
    }

    .file_text {
        position: absolute;
        display: block;
        z-index: 1;
        width: 7%;
        top: 7%;
        left: 7%;
    }

    .form_desc {
        color: #5a5a5a;
        font-size: 1.5em;
        letter-spacing: 1px;
        width: 100%;
        text-align: center;
        position: relative;
        order: 2;
        margin-top: 0;
    }

    #info_form {
        position: relative;
        z-index: 2;
        background-color: #C8FFDC;
        border-radius: 30px;
        margin: 0 auto;
        max-width: 1200px;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
        box-sizing: border-box;
        align-items: flex-start;
        padding: 40px;
        order: 3;
    }

    .form-column {
        flex: 1 1 calc(50% - 10px);
        display: flex;
        flex-direction: column;
        gap: 20px;
        box-sizing: border-box;
        min-width: 300px;
    }
    .illustration-form {
        width: 60vh;
        margin: 0 auto;
        margin-bottom: 20px;
    }

    .form-column>div {
        width: 100%;
    }

    #info_form label {
        display: block;
        margin-bottom: 8px;
        font-size: 1.2em;
        color: #5a5a5a;
        font-weight: bold;
        letter-spacing: normal;
    }

    #info_form input[type="text"],
    #info_form input[type="tel"],
    #info_form input[type="number"],
    #info_form input[type="date"],
    #info_form select,
    #info_form textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #5a5a5a;
        border-radius: 8px;
        font-size: 1em;
        color: #5A5A5A;
        margin-bottom: 0;
        font-family: 'Figtree';
        text-align: center;
        box-sizing: border-box;
    }

    #info_form textarea {
        height: 80px;
        resize: none;
        font-family: 'Figtree';
        text-align: left;
        padding-top: 12px;
    }

    #info_form button[type="button"] {
        position: relative;
        z-index: 3;
        display: block;
        margin: 30px auto 0 auto;
        padding: 12px;
        background-color: #12A44F;
        color: white;
        border: none;
        border-radius: 50px;
        cursor: pointer;
        font-size: 1.3em;
        font-weight: 600;
        transition: background-color 0.3s ease;
        width: 50%;
        max-width: 200px;
    }

    #info_form button[type="button"]:hover {
        background-color: #0C722F;
    }

    #pension_source option,
    #pension_type option {
        color: #5A5A5A;
        background-color: white;
    }

    #pension_source option:checked,
    #pension_type option:checked {
        background-color: #0C722F;
        color: white;
    }

    #testimonials {
        position: relative;
        height: 1000px;
    }

    .tstmnls {
        width: auto;
        height: 125vh;
        z-index: 0;
        top: 0;
    }

    .tstmnls_bg {
        position: absolute;
        z-index: -1;
        width: auto;
        height: 1000px;
    }

    .tstmnls_title {
        position: relative;
        width: fit-content;
        font-size: 4em;
        color: #ffffff;
        top: 5%;
        left: 10%;
        letter-spacing: 3px;
    }

    .tstmnls_desc {
        position: relative;
        color: #ffffff;
        width: 30%;
        font-size: 1.5em;
        top: 2%;
        left: 15%;
    }

    .video_tstmnl {
        position: absolute;
        top: 15%;
        right: 5%;
        width: 450px;
        height: 250px;
        border-radius: 20px;
        scale: 1.2;
    }

    .dotted_white,
    .dotted_white1,
    .dotted_white2 {
        position: absolute;
    }

    .dotted_white {
        top: 4%;
        rotate: 90deg;
        left: -7%;
    }

    .dotted_white1 {
        right: -5%;
        top: 35vh;

    }

    .photo_circle {
        position: absolute;
        top: 50%;
        left: 10%;
        scale: 1.5;
    }

    .quote {
        position: absolute;
        left: 38%;
        scale: 1.3;
        top: 50%;
    }

    .quotes {
        position: absolute;
        color: white;
        font-family: 'Figtree';
        font-size: 1.7em;
        width: 43%;
        left: 41.5%;
        top: 49%;
        text-align: justify;
    }

    .name {
        position: absolute;
        color: white;
        font-size: 3em;
        left: 41%;
        letter-spacing: 2px;
        top: 73%;
    }

    #testimonials button {
        position: absolute;
        z-index: 3;
        display: block;
        padding: 12px 0px;
        background-color: #FFFFFF;
        color: #12A44F;
        border: none;
        left: 80%;
        border-radius: 10px;
        cursor: pointer;
        font-size: 1.3em;
        transition: background-color 0.3s ease;
        top: 87%;
        box-shadow: 0 5px 4px rgba(0, 0, 0, 0.5);
        width: 12%;
    }

    .tstmnls a {
        text-decoration: none;
    }

    #testimonials button:hover {
        background-color: #12A44F;
        color: white;
    }

    #branch_part {
        position: relative;
        height: 850px;
        margin-top: 5%;
        margin-bottom: 3%;
        width: 100%;
    }

    .branch_title2 {
        font-family: 'Figtree', 'Arial';
        color: #12A44F;
        font-size: 4em;
        top: 0;
        left: 5%;
        margin-bottom: 0;
    }

    .branches_dots {
        position: absolute;
        z-index: -1;
        rotate: 90deg;
        right: 0;
        width: 20%;
        left: 80%;
    }

    .map-container {
        position: relative;
        top: 20vh;
        display: flex;
        width: 90%;
        left: 5%;
        gap: 10px;
        justify-content: center;
    }

    .map_sanjuan {
        height: 420px;
    }

    .img_sanjuan,
    .map_sanjuan {
        border-radius: 10px;
    }

    .branch_info {
        position: relative;
        padding: 20px;
        color: #5a5a5a;
        width: fit-content;
        scale: 1.5;
        top: 22%;
        left: 15%;
    }

    .info-item {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        gap: 10px;
    }

    .info-item .icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .info-item p,
    .info-item a {
        margin: 0;
        flex-grow: 1;
        font-size: 1em;
    }

    .info-item b {
        color: #5A5A5A;
    }

    .info-item a {
        text-decoration: underline;
        color: #5A5A5A;
        font-weight: bold;
    }

    .info-item a:hover {
        text-decoration: underline;
    }

    .branch_info .info-item:last-child {
        margin-bottom: 0;
    }

    #branch_part button {
        font-family: 'Figtree';
        position: relative;
        z-index: 3;
        display: block;
        padding: 12px 25px;
        background-color: #12A44f;
        color: #ffffff;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        font-size: 1.5em;
        transition: background-color 0.3s ease;
        margin-left: auto;
        margin-right: 8%;
        margin-top: 30vh;
        box-shadow: 0 5px 4px rgba(0, 0, 0, 0.5);
        top: -8%;
    }

    #branch_part button:hover {
        background-color: #0C722F;
        color: white;
    }

}


/* Responsive styles */
@media screen and (min-width: 915px) and (max-width: 1024px) {
    html, body {
        overflow-x: hidden;
    }

    .logo-right,
    .logo-left {
        width: 12%;
    }
    .nav-links {
        gap: 10px;
    }

    #carouselHome {
        width: 100%;
        margin-bottom: 0;
        height: auto;
    }

    .description1 p,
    .description2 p,
    .description3 p {
        font-size: 0.9em;
    }

    .years {
        position: absolute;
        top: 0;
        transform: scale(0.7);
        left: 53%;
        top: 70px;
    }

    .dots {
        position: absolute;
        height: auto;
        transform: scale(0.7);
        margin-left: 10%;
    }

    .images-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        width: auto;
        height: 600px;
        position: relative;
    }

    .picture1,
    .picture2,
    .picture3 {
        height: auto;
        width: 50%;
    }

    .picture1 {
        transform: translate(100%, -80%) scale(0.8);
        left: 0;
    }

    .picture2 {
        transform: translate(-40%, -10%) scale(0.8);
        z-index: 1;
    }

    .picture3 {
        transform: translate(-110%, 100px) scale(0.8);
        z-index: 2;
    }

    #loan_calc {
        position: relative;
        width: 100%;
        height: 900px;
        margin: 0;
        padding: 0;
    }

    .overlay_calc {
        position: absolute;
        width: auto;
        height: 900px;
        z-index: 0;
        top:10px;
        left: -12%;
        text-align: center;
    }

    .illustration {
        transform: scale(0.5);
        top: 0;
        left: 0;
        width: fit-content;
        align-items: center;
        margin-top: 15%;
        margin-left: 45%;
    }

    .loan_title {
        font-size: 4em;
        left: 18%;
        color: #ffffff;
        width: fit-content;
        top: -5vh;
        letter-spacing: 1px;
    }

    .calc_icon {
        left: 11%;
        display:flex;
        top:80px;
        width: 5%;
    }

    .loan_instruc {
        left: 12%;
        color: white;
        width: 50%;
        font-size: 1.1em;
        top: -8vh;
        margin-bottom: 30px;

    }

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

    .calc-form {
        position: relative;
        margin-top: -8vh;
        width: 70%;
        margin-left: 6%;
    }

    .net_amount_title {
        position: relative;
        width: 60%;
        z-index: 1;
        color: white;
        left: 10%;
        letter-spacing: 1px;
        margin: 20px 0 10px 0;
        text-align: center;
        top: 0;
    }

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

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

    .button-row {
        display: flex;
        position: relative;
        gap: 5px;
        z-index: 2;
        margin-bottom: 10px;
        width: 70vh;
        top: 0;
        left: 10%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .term-btn {
        position: relative;
        padding: 10px 8px;
        border: 2px solid transparent;
        color: #5a5a5a;
        font-weight: normal;
        cursor: pointer;
        border-radius: 8px;
        font-family: 'Figtree';
        font-size: 1.1rem;
        flex: 0 0 auto;
        white-space: nowrap;
        min-width: fit-content;
        transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    }

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

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

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

    #net_amount {
        position: relative;
        width: 55%;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 3em;
        padding: 8px;
        border-radius: 10px;
        top: 0;
        left: 10%;
        border: none;
        color: #0C722F;
        text-align: center;
    }

    .reminder {
        position: relative;
        z-index: 1;
        left: 10%;
        color: white;
        width: 55%;
        top: 0;
        text-align: center;
        margin: 10px 0;
    }

    /*pension form*/
    #pension_form {
        position: relative;
        height: auto;
        min-height: 1000px;
        padding: 0px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 0;
        margin-bottom: 0;
    }

    .dots_form {
        position: absolute;
        top: -20px;
        left: 30px;
        rotate: 90deg;
        z-index: -1;
        width: fit-content;
        transform: scale(0.8);
    }

    .dots_form1 {
        position: absolute;
        bottom: -20px;
        right: 30px;
        rotate: 90deg;
        z-index: 0;
        width: fit-content;
        transform: scale(0.8);
    }

    .form_title {
        font-family: 'Figtree', Arial;
        font-size: 2.9em;
        letter-spacing: 1px;
        font-weight: bolder;
        color: #12A44F;
        width: 100%;
        text-align: center;
        position: relative;
        margin-top: 2%;
        left: 12%;
        order: 1;
    }

    .file_text {
        position: absolute;
        display: block;
        z-index: 1;
        width: 7%;
        top: 7%;
    }

    .form_desc {
        color: #5a5a5a;
        font-size: 1.2em;
        letter-spacing: 1px;
        width: 100%;
        text-align: center;
        position: relative;
        order: 2;
        margin-top: 0;
    }

    #info_form {
        position: relative;
        z-index: 2;
        background-color: #C8FFDC;
        border-radius: 30px;
        margin: 0 auto;
        max-width: 900px;
        width: 80%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
        box-sizing: border-box;
        align-items: flex-start;
        padding: 40px;
        order: 3;
    }

    .form-column {
        flex: 1 1 calc(50% - 10px);
        display: flex;
        flex-direction: column;
        gap: 20px;
        box-sizing: border-box;
        min-width: 300px;
    }

    .illustration-form {
        width: 95%;
        margin-right: 100px;
        margin-top: 50px;
    }

    .form-column>div {
        width: 100%;
    }

    #info_form label {
        display: block;
        margin-bottom: 8px;
        font-size: 1.2em;
        color: #5a5a5a;
        font-weight: bold;
        letter-spacing: normal;
    }

    #info_form input[type="text"],
    #info_form input[type="tel"],
    #info_form input[type="number"],
    #info_form input[type="date"],
    #info_form select,
    #info_form textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #5a5a5a;
        border-radius: 8px;
        font-size: 1em;
        color: #5A5A5A;
        margin-bottom: 0;
        font-family: 'Figtree';
        text-align: center;
        box-sizing: border-box;
    }

    #info_form textarea {
        height: 80px;
        resize: none;
        font-family: 'Figtree';
        text-align: left;
        padding-top: 12px;
    }

    #info_form button[type="button"] {
        position: relative;
        z-index: 3;
        display: block;
        margin: 30px auto 0 auto;
        padding: 12px;
        background-color: #12A44F;
        color: white;
        border: none;
        border-radius: 50px;
        cursor: pointer;
        font-size: 1.3em;
        font-weight: 600;
        transition: background-color 0.3s ease;
        width: 50%;
        max-width: 200px;
    }

    #info_form button[type="button"]:hover {
        background-color: #0C722F;
    }

    #pension_source option,
    #pension_type option {
        color: #5A5A5A;
        background-color: white;
    }

    #pension_source option:checked,
    #pension_type option:checked {
        background-color: #0C722F;
        color: white;
    }

    /* testimonials */
    #testimonials {
        position: relative;
        height: 850px;
    }

    .tstmnls {
        width: auto;
        height: 850px;
        z-index: 0;
        top: 0;
    }

    .tstmnls_bg {
        position: absolute;
        z-index: -1;
        width: auto;
        height: 850px;
        top: -5%;
    }

    .tstmnls_title {
        position: relative;
        width: fit-content;
        font-size: 3.5em;
        color: #ffffff;
        top: 0;
        left: 20vh;
        letter-spacing: 3px;
    }

    .tstmnls_desc {
        position: relative;
        color: #ffffff;
        width: 30%;
        font-size: 1.4rem;
        top: -2%;
        left: 20%;
    }

    .video_tstmnl {
        position: absolute;
        top: 15%;
        right: 10%;
        width: 350px;
        height: 197px;
        border-radius: 20px;
        scale: 1.2;
    }

    .dotted_white,
    .dotted_white1,
    .dotted_white2 {
        position: absolute;
    }

    .dotted_white {
        top: 4%;
        rotate: 90deg;
        left: -10%;
    }

    .dotted_white1 {
        right: -5%;
        ;
        top: 35vh;

    }

    .photo_circle {
        position: absolute;
        top: 45%;
        left: 15%;
        scale: 1;
    }

    .quote {
        position: absolute;
        left: 38%;
        scale: 1.3;
        top: 45%;
    }

    .quotes {
        position: absolute;
        color: white;
        font-family: 'Figtree';
        font-size: 1.4em;
        width: 43%;
        left: 43%;
        top: 45%;
        text-align: justify;
    }

    .name {
        position: absolute;
        color: white;
        font-size: 2em;
        left: 43%;
        letter-spacing: 2px;
        top: 68%;
    }

    #testimonials button {
        position: absolute;
        z-index: 3;
        display: block;
        padding: 12px 15px;
        background-color: #FFFFFF;
        color: #12A44F;
        border: none;
        left: 75%;
        border-radius: 10px;
        cursor: pointer;
        font-size: 1.3em;
        transition: background-color 0.3s ease;
        top: 80%;
        box-shadow: 0 5px 4px rgba(0, 0, 0, 0.5);
        width: 16%;
    }

    .tstmnls a {
        text-decoration: none;
    }

    #testimonials button:hover {
        background-color: #12A44F;
        color: white;
    }


    /* branch part */
    #branch_part {
        position: relative;
        height: 800px;
        margin-top: 10px;
        margin-bottom: 1px;
        width: 100%;
    }

    .branch_title2 {
        font-family: 'Figtree', 'Arial';
        color: #12A44F;
        font-size: 3em;
        top: 0;
        left: 5%;
    }

    .branches_dots {
        position: absolute;
        z-index: -1;
        rotate: 90deg;
        right: 0;
        width: 20%;
        left: 94%;
    }

    .map-container {
        position: relative;
        top: 15%;
        display: flex;
        width: 90%;
        left: 5%;
        gap: 10px;
    }
    .img_sanjuan {
        height: auto;
        width: 50%;
    }
    .map_sanjuan {
        height: 320px;
    }

    .img_sanjuan,
    .map_sanjuan {
        border-radius: 10px;
    }

    .branch_info {
        position: relative;
        padding: 20px;
        color: #5a5a5a;
        width: fit-content;
        scale: 1.5;
        left: 20%;
        top: 20%;
    }

    .info-item {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        gap: 10px;
    }

    .info-item .icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .info-item p,
    .info-item a {
        margin: 0;
        flex-grow: 1;
        font-size: 1em;
    }

    .info-item b {
        color: #5A5A5A;
    }

    .info-item a {
        text-decoration: underline;
        color: #5A5A5A;
        font-weight: bold;
    }

    .info-item a:hover {
        text-decoration: underline;
    }

    .branch_info .info-item:last-child {
        margin-bottom: 0;
    }

    #branch_part button {
        position: relative;
        z-index: 3;
        display: block;
        padding: 12px 25px;
        background-color: #12A44f;
        color: #ffffff;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        font-size: 1.1em;
        transition: background-color 0.3s ease;
        margin-left: auto;
        margin-right: 5%;
        margin-top: 10%;
        box-shadow: 0 5px 4px rgba(0, 0, 0, 0.5);
        top: 8%;
    }

    #branch_part button:hover {
        background-color: #0C722F;
        color: white;
    }
}

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

    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: 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: 15px;
        cursor: pointer;
        flex-shrink: 0;
        order: 3;
        background-color: transparent;
        justify-content: center;
        align-items: center;
        top: 0;
    }

    .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);
    }

    #carouselHome {
        width: 100%;
        margin-bottom: 0;
        height: auto;
    }

    .description-container {
        height: 120px;
    }

    .description1 p,
    .description2 p,
    .description3 p {
        font-size: 0.7em;
    }

    .images-container {
        height: 500px;
        margin-bottom: 50px;
        top: 0;
    }

    .years {
        position: absolute;
        top: 0;
        transform: scale(0.5);
        left: 40%;
        top: 30%;
    }

    .dots {
        position: absolute;
        height: auto;
        transform: scale(0.7);
        margin-left: 5%;
        top: 40%;
    }

    .picture1,
    .picture2,
    .picture3 {
        height: auto;
        width: 30%;
        margin-top: 30%;
    }

    .picture1 {
        transform: translate(90%, -70%);
        left: 0;
    }

    .picture2 {
        transform: translate(-50%, -15%);
        z-index: 1;
    }

    .picture3 {
        transform: translate(-110%, 60%);
        z-index: 2;
    }

    /* loan calc */
    #loan_calc {
        position: relative;
        width: 100%;
        height: 800px;
        margin: 0;
        padding: 0;
    }

    .overlay_calc {
        position: absolute;
        width: auto;
        height: 800px;
        z-index: 0;
        left: -18%;
        text-align: center;
    }

    .illustration {
        visibility: hidden;
    }

    .loan_title {
        font-size: 3em;
        left: 30%;
        color: #ffffff;
        width: fit-content;
        top: -50px;
        letter-spacing: 1px;
    }

    .calc_icon {
        left: 20%;
        top: 45px;
        width: 6%;
    }

    .loan_instruc {
        left: 18%;
        color: white;
        width: 70%;
        font-size: 1.1em;
        top: -80px;
        margin-bottom: 30px;
        text-align: center;
    }

    .calc-form {
        position: absolute;
        top: 25%;
        width: 80%;
        margin: auto;
        left: 12%;
    }

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

    .net_amount_title {
        position: relative;
        width: 50vh;
        z-index: 1;
        color: white;
        left: 15%;
        letter-spacing: 1px;
        margin: 20px 0 10px 0;
        text-align: center;
        top: 0;
    }

    #branch_menu {
        position: relative;
        width: 71%;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 1.2rem;
        padding: 8px;
        border-radius: 10px;
        top: 0;
        left: 15%;
        border: none;
        color: #5A5A5A;
        text-align: center;
        margin-bottom: 10px;
    }

    #monthly_pension {
        position: relative;
        width: 68%;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 1.2rem;
        padding: 8px;
        border-radius: 10px;
        top: 0;
        left: 15%;
        border: none;
        color: #5A5A5A;
        text-align: center;
        margin-bottom: 10px;
    }

    .button-row {
        display: flex;
        position: relative;
        gap: 5px;
        z-index: 2;
        margin-bottom: 10px;
        top: 0;
        left: 15%;
        flex-wrap: wrap;
        justify-content: flex-start;
        width: 100%;
    }

    .term-btn {
        position: relative;
        padding: 10px 8px;
        border: 2px solid transparent;
        color: #5a5a5a;
        font-weight: normal;
        cursor: pointer;
        border-radius: 10px;
        font-family: 'Figtree';
        font-size: 1.2rem;
        flex: 0 0 auto;
        white-space: nowrap;
        min-width: fit-content;
        transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    }

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

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

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

    #net_amount {
        position: relative;
        width: 68%;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 2em;
        padding: 8px;
        border-radius: 10px;
        top: 0;
        left: 15%;
        border: none;
        color: #0C722F;
        text-align: center;
    }

    .reminder {
        position: relative;
        z-index: 1;
        left: 15%;
        color: white;
        width: 68%;
        top: 0;
        text-align: center;
        font-size: 0.8rem;
    }

    /*pension form*/
    #pension_form {
        position: relative;
        height: auto;
        min-height: 80vh;
        padding: 50px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 0;
        margin-bottom: 0;
    }

    .dots_form {
        position: absolute;
        top: -12vh;
        left: 5vh;
        rotate: 90deg;
        z-index: -1;
        width: fit-content;
        transform: scale(0.8);
    }

    .dots_form1 {
        position: absolute;
        bottom: -5vh;
        right: 5vh;
        rotate: 90deg;
        z-index: 0;
        width: fit-content;
        transform: scale(0.8);
    }

    #info_form {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }

    .form-column {
        flex: 1 1 100%;
        min-width: unset;
        gap: 15px;
    }

    .form_desc {
        font-size: 1em;
    }

    .form_title {
        font-family: 'Figtree';
        font-size: 2.2rem;
        letter-spacing: 1px;
        font-weight: bolder;
        color: #12A44F;
        width: 100%;
        text-align: center;
        position: relative;
        margin-top: 2%;
        left: 12%;
        order: 1;
    }

    .file_text {
        position: absolute;
        display: block;
        z-index: 1;
        width: 7%;
        top: 4.5%;
    }

    .form_desc {
        color: #5a5a5a;
        font-size: 1em;
        letter-spacing: 1px;
        width: 100%;
        text-align: center;
        position: relative;
        order: 2;
        margin-top: 0;
    }

    #pension_form {
        padding: 20px 10px;
    }

    .form_desc {
        font-size: 1em;
        text-align: center;
    }

    #info_form {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 20px;
        width: 90%;
        max-width: 100%;
        gap: 20px;
        border-radius: 30px;
    }

    .form-column {
        flex: 1 1 calc(50% - 10px);
        width: 100%;
        gap: 20px;
    }

    .form-column.left-column {
        display: none;
    }

    .form-column>div {
        width: 100%;
    }

    #info_form label {
        font-size: 1em;
        text-align: left;
    }

    #info_form input[type="text"],
    #info_form input[type="tel"],
    #info_form input[type="number"],
    #info_form input[type="date"],
    #info_form select,
    #info_form textarea {
        width: 100%;
        box-sizing: border-box;
        font-size: 0.9em;
        text-align: left;
        padding: 8px;
    }

    #info_form textarea {
        height: 60px;
    }

    #info_form button[type="button"] {
        /* width: 15%; */
        max-width: 100%;
        font-size: 1em;
        padding: 12px;
    }

    /* testimonials */
    #testimonials {
        position: relative;
        height: 850px;
    }

    .tstmnls {
        width: auto;
        height: 130vh;
        z-index: 0;
        top: 0;
    }

    .tstmnls_bg {
        position: absolute;
        z-index: -1;
        width: auto;
        height: 850px;
        left: -40%;
    }

    .tstmnls_title {
        position: relative;
        width: fit-content;
        font-size: 3.5em;
        color: #ffffff;
        top: 3%;
        left: 10%;
        letter-spacing: 3px;
    }

    .tstmnls_desc {
        position: relative;
        color: #ffffff;
        width: 70%;
        font-size: 1.2rem;
        top: 1%;
        left: 20%;
        text-align: justify
    }

    .video_tstmnl {
        position: absolute;
        top: 28%;
        right: 14%;
        width: 350px;
        height: 197px;
        border-radius: 20px;
        scale: 1.2;
    }

    .dotted_white,
    .dotted_white1,
    .dotted_white2 {
        position: absolute;
    }

    .dotted_white {
        top: 2%;
        rotate: 90deg;
        left: -20%;
    }

    .dotted_white1 {
        right: -10%;
        top: 35vh;
    }

    .photo_circle {
        position: absolute;
        top: 50%;
        left: 50px;
        scale: 1;
    }

    .quote {
        position: absolute;
        left: 38%;
        scale: 1.3;
        top: 55%;
    }

    .quotes {
        position: absolute;
        color: white;
        font-family: 'Figtree';
        font-size: 1.3em;
        width: 43%;
        left: 44%;
        top: 55%;
        text-align: justify;
    }

    .name {
        position: absolute;
        color: white;
        font-size: 1.8em;
        left: 45%;
        letter-spacing: 2px;
        top: 80%;
    }

    #testimonials button {
        position: absolute;
        z-index: 3;
        display: block;
        padding: 12px 15px;
        background-color: #FFFFFF;
        color: #12A44F;
        border: none;
        left: 75%;
        border-radius: 10px;
        cursor: pointer;
        font-size: 1em;
        transition: background-color 0.3s ease;
        top: 90%;
        box-shadow: 0 5px 4px rgba(0, 0, 0, 0.5);
        width: 20%;
    }

    .tstmnls a {
        text-decoration: none;
    }

    #testimonials button:hover {
        background-color: #12A44F;
        color: white;
    }


    /* branch part */
    #branch_part {
        position: relative;
        height: 600px;
        margin-top: 10px;
        margin-bottom: 0;
        width: 100%;
    }

    .branch_title2 {
        font-family: 'Figtree', 'Arial';
        color: #12A44F;
        font-size: 2.5em;
        top: 0;
        left: 5%;
        margin-bottom: 0;
    }

    .branches_dots {
        position: absolute;
        z-index: -1;
        rotate: 90deg;
        right: 0;
        width: 20%;
        left: 94%;
    }

    .map-container {
        position: relative;
        top: 15%;
        display: flex;
        width: 50%;
        left: 5%;
        gap: 10px;
        height: auto;
        margin-left: 3%;
    }

    .map_sanjuan {
        height: 245px;
    }

    .img_sanjuan {
        height: auto;
        width: 90%;
    }

    .img_sanjuan,
    .map_sanjuan {
        border-radius: 10px;
    }

    .branch_info {
        position: relative;
        padding: 20px;
        color: #5a5a5a;
        width: fit-content;
        scale: 1.2;
        top: 18%;
        left: 12%;
    }

    .info-item {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        gap: 10px;
    }

    .info-item .icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .info-item p,
    .info-item a {
        margin: 0;
        flex-grow: 1;
        font-size: 1em;
    }

    .info-item b {
        color: #5A5A5A;
    }

    .info-item a {
        text-decoration: underline;
        color: #5A5A5A;
        font-weight: bold;
    }

    .info-item a:hover {
        text-decoration: underline;
    }

    .branch_info .info-item:last-child {
        margin-bottom: 0;
    }

    #footer{
        margin-top: 50px;
    }

    #branch_part button {
        position: relative;
        z-index: 3;
        display: block;
        padding: 12px 25px;
        background-color: #12A44f;
        color: #ffffff;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        font-size: 1.1em;
        transition: background-color 0.3s ease;
        margin-left: auto;
        margin-right: 5%;
        margin-top: 150px;
        box-shadow: 0 5px 4px rgba(0, 0, 0, 0.5);
        top: -5%;
    }

    #branch_part button:hover {
        background-color: #0C722F;
        color: white;
    }
}

@media  screen and (min-width: 377px) and (max-width: 500px) {
    html,
    body {
        overflow-x: hidden;
    }

    .g-recaptcha {
        transform: scale(0.77);
        -webkit-transform: scale(0.77);
        transform-origin: 0 0;
        -webkit-transform-origin: 0 0;
    }

    .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;
    }

    /* Reposition logos to appear side by side on the left */
    .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;
        /* This pushes the hamburger to the right */
    }

    /* Hide navigation links by default */
    .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;
    }

    /* Hamburger menu styles */
    .menu-icon {
        display: flex;
        position: relative;
        width: 30px;
        height: 15px;
        cursor: pointer;
        flex-shrink: 0;
        order: 3;
        background-color: transparent;
        justify-content: center;
        align-items: center;
        top: 0;
    }

    .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);
    }
    #carouselHome {
        width: 100%;
        margin-bottom: 0;
        height: 100%;
    }

    .description-container {
        height: 30px;
    }

    .location,
    .people,
    .heart {
        width: 30%;
    }

    .description1 p,
    .description2 p,
    .description3 p {
        font-size: 0.7rem;
    }

    .images-container {
        height: 400px;
        margin: 0;
        top: 0;
    }

    .years {
        position: absolute;
        top: 0;
        transform: scale(0.2);
        left: 15%;
        top: 20%;
    }

    .dots {
        position: absolute;
        height: auto;
        transform: scale(0.3);
        margin-left: 0;
        left: -15%;
        top: 25%;
    }

    .picture1,
    .picture2,
    .picture3 {
        height: auto;
        width: 30%;
    }

    .picture1 {
        transform: translate(90%, 10%);
        left: 0;
    }

    .picture2 {
        transform: translate(-50%, 60%);
        z-index: 1;
    }

    .picture3 {
        transform: translate(-110%, 140%);
        z-index: 2;
    }
/* loan calc */
    #loan_calc {
        position: relative;
        width: 100%;
        height: 700px;
        margin-top: 10%;
        padding: 0;
    }

    .overlay_calc {
        position: absolute;
        width: auto;
        height: 650px;
        z-index: 0;
        left: -100%;
        text-align: center;
        top: -1%;
    }

    .illustration {
        visibility: hidden;
    }

    .loan_title {
        font-size: 2em;
        left: 13%;
        color: #ffffff;
        width: fit-content;
        top: -15px;
        letter-spacing: 1px;
    }

    .calc_icon {
        left: 7%;
        top: 56px;
        width: 9%;
        margin-bottom: 10px;
        margin-left:5%;
        visibility:hidden;
    }

    .loan_instruc {
        left: 14%;
        color: white;
        width: 75%;
        font-size: 0.8em;
        top: -40px;
        margin-bottom: 30px;
        text-align: left;
    }

    .calc-form {
        position: absolute;
        margin-top: -15%;
        left: 14%;
        width:120%;
    }

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

    .net_amount_title {
        position: relative;
        width: 65%;
        z-index: 1;
        color: white;
        letter-spacing: 1px;
        margin: 20px 0 10px 0;
        text-align: center;
        top: 0;
        left: 0;
    }

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

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

    .button-row {
        display: flex;
        position: relative;
        gap: 5px;
        z-index: 2;
        margin-bottom: 10px;
        top: 0;
        left: 0;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .term-btn {
        position: relative;
        padding: 10px 8px;
        border: 2px solid transparent;
        color: #5a5a5a;
        font-weight: normal;
        cursor: pointer;
        border-radius: 10px;
        font-family: 'Figtree';
        font-size: 0.6rem;
        flex: 0 0 auto;
        white-space: nowrap;
        min-width: fit-content;
        transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    }

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

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

    #loanable {
        position: relative;
        width: 62%;
        z-index: 1;
        font-family: 'Figtree';
        font-size: 1rem;
        padding: 8px;
        border-radius: 10px;
        top: 0;
        left: 0;
        border: none;
        color: #5A5A5A;
        text-align: center;
        margin-bottom: 10px;
    }

    #net_amount {
        position: relative;
        width: 62%;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 2em;
        padding: 8px;
        border-radius: 10px;
        top: 0;
        left: 0;
        border: none;
        color: #0C722F;
        text-align: center;
    }

    .reminder {
        position: relative;
        z-index: 1;
        left: 3%;
        color: white;
        width: 60%;
        top: 0;
        text-align: center;
        font-size: 0.6rem;
    }

    /*form part*/
    #pension_form {
        padding: 20px 10px;
        margin-top:-10%;
        height:600px;
    }

    .dots_form {
        position: absolute;
        top: 0px;
        left: 50%;
        rotate: 90deg;
        z-index: -1;
        width: fit-content;
        transform: scale(0.8);
    }

    .dots_form1 {
        position: absolute;
        bottom: -5vh;
        right: 50%;
        rotate: 90deg;
        z-index: 0;
        width: fit-content;
        transform: scale(0.8);
    }

    .file_text {
        visibility: hidden;
    }

    .form_title {
        font-size: 1.6em;
        text-align: center;
        width: 100%;
        left: 0;
    }

    .form_desc {
        font-size: 0.7em;
        text-align: center;
        margin-top: 0;
    }

    #info_form {
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 20px;
        width: 90%;
        max-width: 100%;
        gap: 10px;
        border-radius: 30px;
    }

    .form-column {
        flex: 1 1 calc(50% - 10px);
        width: 100%;
        gap: 20px;
    }

    .form-column.left-column {
        display: none;
    }

    .form-column>div {
        width: 100%;
    }

    #info_form label {
        font-size: 0.9em;
        text-align: left;
    }

    #info_form input[type="text"],
    #info_form input[type="tel"],
    #info_form input[type="number"],
    #info_form input[type="date"],
    #info_form select,
    #info_form textarea {
        width: 100%;
        box-sizing: border-box;
        font-size: 0.8em;
        text-align: left;
        padding: 8px;
    }

    #info_form textarea {
        height: 60px;
    }

    #info_form button[type="button"] {
        width: 40%;
        max-width: 100%;
        font-size: 1em;
        padding: 12px;
    }

/* testimonials part */
    #testimonials {
        position: relative;
        height: 650px;
    }

    .tstmnls {
        width: auto;
        height: 100vh;
        z-index: 0;
        top: 0;
    }

    .tstmnls_bg {
        position: absolute;
        z-index: -1;
        width: auto;
        height: 650px;
        left: -80%;
    }

    .tstmnls_title {
        position: relative;
        width: fit-content;
        font-size: 2em;
        color: #ffffff;
        top: 3%;
        left: 10%;
        letter-spacing: 3px;
    }

    .tstmnls_desc {
        position: relative;
        color: #ffffff;
        width: 80%;
        font-size: 0.8rem;
        top: 1%;
        left: 10%;
        text-align: justify
    }

    .video_tstmnl {
        position: absolute;
        top: 27%;
        left: 20%;
        width: 200px;
        height: 110px;
        border-radius: 20px;
        scale: 1.2;
    }

    .dotted_white,
    .dotted_white1,
    .dotted_white2 {
        visibility: hidden;
    }

    .photo_circle {
        position: absolute;
        top: 47%;
        left: 60%;
        scale: 0.5;
    }

    .quote {
        position: absolute;
        left: 4%;
        scale: 0.8;
        top: 46%;
    }

    .quotes {
        position: absolute;
        color: white;
        font-family: 'Figtree';
        font-size: 0.8rem;
        width: 45%;
        left: 15%;
        top: 46%;
        text-align: justify;
    }

    .name {
        position: absolute;
        color: white;
        font-size: 1.1em;
        left: 13%;
        letter-spacing: 2px;
        top: 77%;
    }

    #testimonials button {
        position: absolute;
        z-index: 3;
        display: block;
        background-color: #FFFFFF;
        color: #12A44F;
        border: none;
        left: 52%;
        padding-left: 0;
        padding-right: 0;
        border-radius: 10px;
        cursor: pointer;
        font-size: 0.7em;
        transition: background-color 0.3s ease;
        top: 85%;
        box-shadow: 0 5px 4px rgba(0, 0, 0, 0.5);
        width: 35%;
    }

    .tstmnls a {
        text-decoration: none;
    }

    #testimonials button:hover {
        background-color: #12A44F;
        color: white;
    }
/* branch part */ 
    #branch_part {
        position: relative;
        height: 730px;
        margin-top: 5%;
        margin-bottom: 0;
        width: 100%;
    }

    .branch_title2 {
        font-family: 'Figtree', 'Arial';
        color: #12A44F;
        font-size: 1.2em;
        top: 0;
        left: 5%;
        margin-bottom: 0;
    }

    .branches_dots {
        visibility: hidden;
    }

    .map-container {
        position: relative;
        top: 6%;
        display: flex;
        flex-direction: column;
        width: 90%;
        left: 5%;
        gap: 15px;
        height: auto;
        align-items: center;
    }

    .map_sanjuan {
        height: 250px;
        width: 90%;
    }

    .img_sanjuan {
        height: auto;
        width: 90%;
    }

    .img_sanjuan,
    .map_sanjuan {
        border-radius: 10px;
    }

    .branch_info {
        position: relative;
        padding: 20px;
        color: #5a5a5a;
        width: fit-content;
        scale: 1;
        top: 5%;
        left: 5%;
        width: 75%;
    }

    .info-item {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        gap: 10px;
    }

    .info-item .icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .info-item p,
    .info-item a {
        margin: 0;
        flex-grow: 1;
        font-size: 0.8em;
    }

    .info-item b {
        color: #5A5A5A;
    }

    .info-item a {
        text-decoration: underline;
        color: #5A5A5A;
        font-weight: bold;
    }

    .info-item a:hover {
        text-decoration: underline;
    }

    .branch_info .info-item:last-child {
        margin-bottom: 0;
    }

    #branch_part button {
        position: relative;
        z-index: 3;
        display: block;
        padding: 12px;
        background-color: #12A44f;
        color: #ffffff;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        font-size: 0.8em;
        transition: background-color 0.3s ease;
        box-shadow: 0 5px 4px rgba(0, 0, 0, 0.5);
        top: 30px;
    }



    #branch_part button:hover {
        background-color: #0C722F;
        color: white;
    }

    #footer {
        background-image: url(../home/footer_bg.png);
        font-family: 'Figtree';
        color: #ffffff;
        padding: 10px 10px;
        text-align: center;
        font-size: 0.7rem;
        margin-top: 100px;
    }
    
    #footer button {
        position: relative;
        z-index: 3;
        display: block;
        margin: auto;
        padding: 12px 20px;
        background-color: white;
        color: #12A44F;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1.5em;
    }
    
    #footer a {
        text-decoration: none;
    }

}

@media screen and (max-width: 376px) {
    html,
    body {
        overflow-x: hidden;
    }

    .g-recaptcha {
        transform: scale(0.77);
        -webkit-transform: scale(0.77);
        transform-origin: 0 0;
        -webkit-transform-origin: 0 0;
    }

    .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;
        /* This pushes the hamburger to the right */
    }

    /* Hide navigation links by default */
    .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;
    }

    /* Hamburger menu styles */
    .menu-icon {
        display: flex;
        position: relative;
        width: 30px;
        height: 15px;
        cursor: pointer;
        flex-shrink: 0;
        order: 3;
        background-color: transparent;
        justify-content: center;
        align-items: center;
        top: 0;
    }

    .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);
    }
    #carouselHome {
        width: 100%;
        margin-bottom: 0;
        height: 100%;
    }

    .description-container {
        height: 30px;
    }

    .location,
    .people,
    .heart {
        width: 30%;
    }

    .description1 p,
    .description2 p,
    .description3 p {
        font-size: 0.7rem;
    }

    .images-container {
        height: 400px;
        margin: 0;
        top: 0;
    }

    .years {
        position: absolute;
        top: 0;
        transform: scale(0.2);
        left: 2%;
        top: 20%;
    }

    .dots {
        position: absolute;
        height: auto;
        transform: scale(0.3);
        margin-left: 0;
        left: -15%;
        top: 25%;
    }

    .picture1,
    .picture2,
    .picture3 {
        height: auto;
        width: 30%;
    }

    .picture1 {
        transform: translate(90%, 10%);
        left: 0;
    }

    .picture2 {
        transform: translate(-50%, 60%);
        z-index: 1;
    }

    .picture3 {
        transform: translate(-110%, 140%);
        z-index: 2;
    }
/* loan calc */
    #loan_calc {
        position: relative;
        width: 100%;
        height: 700px;
        margin-top: 10%;
        margin-bottom: 10px;
        padding: 0;
    }

    .overlay_calc {
        position: absolute;
        width: auto;
        height: 665px;
        z-index: 0;
        left: -100%;
        text-align: center;
        top: -1%;
    }

    .illustration {
        visibility: hidden;
    }

    .loan_title {
        font-size: 2em;
        left: 13%;
        color: #ffffff;
        width: fit-content;
        top: -15px;
        letter-spacing: 1px;
    }

    .calc_icon {
        left: 7%;
        top: 56px;
        width: 9%;
        margin-bottom: 10px;
        margin-left:5%;
        visibility:hidden;
    }

    .loan_instruc {
        left: 14%;
        color: white;
        width: 75%;
        font-size: 0.8em;
        top: -40px;
        margin-bottom: 30px;
        text-align: left;
    }

    .calc-form {
        position: absolute;
        margin-top: -15%;
        left: 14%;
        width:120%
    }

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

    .net_amount_title {
        position: relative;
        width: 65%;
        z-index: 1;
        color: white;
        letter-spacing: 1px;
        margin: 20px 0 10px 0;
        text-align: center;
        top: 0;
        left: 0;
    }

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

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

    .button-row {
        display: flex;
        position: relative;
        gap: 5px;
        z-index: 2;
        margin-bottom: 10px;
        top: 0;
        left: 0;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .term-btn {
        position: relative;
        padding: 10px 8px;
        border: 2px solid transparent;
        color: #5a5a5a;
        font-weight: normal;
        cursor: pointer;
        border-radius: 10px;
        font-family: 'Figtree';
        font-size: 0.6rem;
        flex: 0 0 auto;
        white-space: nowrap;
        min-width: fit-content;
        transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    }

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

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

    #loanable {
        position: relative;
        width: 62%;
        z-index: 1;
        font-family: 'Figtree';
        font-size: 1rem;
        padding: 8px;
        border-radius: 10px;
        top: 0;
        left: 0;
        border: none;
        color: #5A5A5A;
        text-align: center;
        margin-bottom: 10px;
    }

    #net_amount {
        position: relative;
        width: 62%;
        z-index: 1;
        font-family: 'Figtree', Arial;
        font-size: 2em;
        padding: 8px;
        border-radius: 10px;
        top: 0;
        left: 0;
        border: none;
        color: #0C722F;
        text-align: center;
    }

    .reminder {
        position: relative;
        z-index: 1;
        left: 3%;
        color: white;
        width: 60%;
        top: 0;
        text-align: center;
        font-size: 0.6rem;
    }

    /*form part*/
    #pension_form {
        padding: 20px 10px;
        margin-top:-10%;
        height:600px;
    }

    .dots_form {
        position: absolute;
        top: 0px;
        left: 50%;
        rotate: 90deg;
        z-index: -1;
        width: fit-content;
        transform: scale(0.8);
    }

    .dots_form1 {
        position: absolute;
        bottom: -5vh;
        right: 50%;
        rotate: 90deg;
        z-index: 0;
        width: fit-content;
        transform: scale(0.8);
    }

    .file_text {
        visibility: hidden;
    }

    .form_title {
        font-size: 1.6em;
        text-align: center;
        width: 100%;
        left: 0;
    }

    .form_desc {
        font-size: 0.7em;
        text-align: center;
        margin-top: 0;
    }

    #info_form {
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 20px;
        width: 90%;
        max-width: 100%;
        gap: 10px;
        border-radius: 30px;
    }

    .form-column {
        flex: 1 1 calc(50% - 10px);
        width: 100%;
        gap: 20px;
    }

    .form-column.left-column {
        display: none;
    }

    .form-column>div {
        width: 100%;
    }

    #info_form label {
        font-size: 0.9em;
        text-align: left;
    }

    #info_form input[type="text"],
    #info_form input[type="tel"],
    #info_form input[type="number"],
    #info_form input[type="date"],
    #info_form select,
    #info_form textarea {
        width: 100%;
        box-sizing: border-box;
        font-size: 0.8em;
        text-align: left;
        padding: 8px;
    }

    #info_form textarea {
        height: 60px;
    }

    #info_form button[type="button"] {
        width: 40%;
        max-width: 100%;
        font-size: 1em;
        padding: 12px;
    }

/* testimonials part */
    #testimonials {
        position: relative;
        height: 650px;
    }

    .tstmnls {
        width: auto;
        height: 100vh;
        z-index: 0;
        top: 0;
    }

    .tstmnls_bg {
        position: absolute;
        z-index: -1;
        width: auto;
        height: 650px;
        left: -80%;
    }

    .tstmnls_title {
        position: relative;
        width: fit-content;
        font-size: 2em;
        color: #ffffff;
        top: 3%;
        left: 10%;
        letter-spacing: 3px;
    }

    .tstmnls_desc {
        position: relative;
        color: #ffffff;
        width: 80%;
        font-size: 0.8rem;
        top: 1%;
        left: 10%;
        text-align: justify
    }

    .video_tstmnl {
        position: absolute;
        top: 27%;
        left: 20%;
        width: 200px;
        height: 110px;
        border-radius: 20px;
        scale: 1.2;
    }

    .dotted_white,
    .dotted_white1,
    .dotted_white2 {
        visibility: hidden;
    }

    .photo_circle {
        position: absolute;
        top: 47%;
        left: 50%;
        scale: 0.5;
    }

    .quote {
        position: absolute;
        left: 4%;
        scale: 0.8;
        top: 46%;
    }

    .quotes {
        position: absolute;
        color: white;
        font-family: 'Figtree';
        font-size: 0.8rem;
        width: 45%;
        left: 15%;
        top: 46%;
        text-align: justify;
    }

    .name {
        position: absolute;
        color: white;
        font-size: 1.1em;
        left: 13%;
        letter-spacing: 2px;
        top: 77%;
    }

    #testimonials button {
        position: absolute;
        z-index: 3;
        display: block;
        background-color: #FFFFFF;
        color: #12A44F;
        border: none;
        left: 52%;
        padding-left: 0;
        padding-right: 0;
        border-radius: 10px;
        cursor: pointer;
        font-size: 0.7em;
        transition: background-color 0.3s ease;
        top: 85%;
        box-shadow: 0 5px 4px rgba(0, 0, 0, 0.5);
        width: 35%;
    }

    .tstmnls a {
        text-decoration: none;
    }

    #testimonials button:hover {
        background-color: #12A44F;
        color: white;
    }
/* branch part */ 
    #branch_part {
        position: relative;
        height: 730px;
        margin-top: 5%;
        margin-bottom: 0px;
        width: 100%;
    }

    .branch_title2 {
        font-family: 'Figtree', 'Arial';
        color: #12A44F;
        font-size: 1.2em;
        top: 0;
        left: 5%;
        margin-bottom: 0;
    }

    .branches_dots {
        visibility: hidden;
    }

    .map-container {
        position: relative;
        top: 6%;
        display: flex;
        flex-direction: column;
        width: 90%;
        left: 5%;
        gap: 15px;
        height: auto;
        align-items: center;
    }

    .map_sanjuan {
        height: 250px;
        width: 90%;
    }

    .img_sanjuan {
        height: auto;
        width: 90%;
    }

    .img_sanjuan,
    .map_sanjuan {
        border-radius: 10px;
    }

    .branch_info {
        position: relative;
        padding: 20px;
        color: #5a5a5a;
        width: fit-content;
        scale: 1;
        top: 5%;
        left: 5%;
        width: 75%;
    }

    .info-item {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        gap: 10px;
    }

    .info-item .icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .info-item p,
    .info-item a {
        margin: 0;
        flex-grow: 1;
        font-size: 0.8em;
    }

    .info-item b {
        color: #5A5A5A;
    }

    .info-item a {
        text-decoration: underline;
        color: #5A5A5A;
        font-weight: bold;
    }

    .info-item a:hover {
        text-decoration: underline;
    }

    .branch_info .info-item:last-child {
        margin-bottom: 0;
    }

    #branch_part button {
        position: relative;
        z-index: 3;
        display: block;
        padding: 12px;
        background-color: #12A44f;
        color: #ffffff;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        font-size: 0.8em;
        transition: background-color 0.3s ease;
        box-shadow: 0 5px 4px rgba(0, 0, 0, 0.5);
        top: 30px;
    }



    #branch_part button:hover {
        background-color: #0C722F;
        color: white;
    }

    #footer {
        background-image: url(../home/footer_bg.png);
        font-family: 'Figtree';
        color: #ffffff;
        padding: 10px 10px;
        text-align: center;
        font-size: 0.7rem;
        margin-top: 70px;
    }
    
    #footer button {
        position: relative;
        z-index: 3;
        display: block;
        margin: auto;
        padding: 12px 20px;
        background-color: white;
        color: #12A44F;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1.5em;
    }
    
    #footer a {
        text-decoration: none;
    }
}