/* =========================
   GENERAL
========================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Arial, sans-serif;
    color: #222;
    line-height: 1.6;
}


/* =========================
   NAVBAR
========================= */

.navbar-custom {
    background-color: #ffffff;
    padding: 15px 0;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);

    z-index: 1000;
}

.logo {
    width: 80px;
    height: auto;
}

.navbar-nav {
    align-items: center;
    gap: 10px;
}

.navbar-nav .nav-link {
    color: #222222;

    font-size: 22px;

    font-weight: 500;

    padding: 10px 15px !important;

    transition: 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #7ed957;
}

.btn-apply-now {
    background-color: #7ed957;
    color: #000;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border: 2px solid #7ed957;
}

.btn-apply-now:hover {
    background-color: #fff;
    color: #000;
    border: 2px solid #7ed957;
}


/* =========================
   HOME
========================= */

.home-section {
    min-height: calc(100vh - 80px);
    background-image: linear-gradient(rgba(0, 0, 0, 0.40), rgba(0, 0, 0, 0.40)), url("../images/home_bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

/* ========================= home CONTENT ========================= */
.home-content {
    min-height: calc(100vh - 80px);
}

/* ========================= LEFT SIDE ========================= */
.home-text {
    color: #ffffff;
    padding-right: 80px;
}

.home-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.home-text p {
    font-size: 20px;
    line-height: 1.7;
    max-width: 650px;
}

/* ========================= ENQUIRY FORM ========================= */
.enquiry-form {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.20);
}

.enquiry-form h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.form-title-line {
    width: 50px;
    height: 3px;
    background-color: #7ed957;
    margin: 0 auto 25px;
}

/* ========================= FORM ========================= */
.form-label {
    font-weight: 600;
    margin-bottom: 7px;
}

.form-label span {
    color: #dc3545;
}

.form-control,
.form-select {
    min-height: 45px;
    border-radius: 6px;
}

.form-control:focus,
.form-select:focus {
    border-color: #7ed957;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
}

/* ========================= SUBMIT BUTTON ========================= */
.btn-submit {
    background-color: #7ed957;
    color: #000;
    min-height: 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    border: 2px solid #7ed957;
}

.btn-submit:hover {
    background-color: #fff;
    color: #000;
    border: 2px solid #7ed957;
}

/* ========================================
   ABOUT US SECTION
======================================== */

.about-section {
    padding: 100px 0;
    background-color: #ffffff;
}


/* ========================================
   LEFT CONTENT
======================================== */

.about-content {
    padding-right: 50px;
}

.about-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
}

.about-line {
    width: 60px;
    height: 4px;
    background-color: #7ed957;
    margin-bottom: 30px;
}

.about-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 18px;
}

.about-apply-btn {
    margin-top: 15px;
    padding: 12px 28px;
    font-size: 16px;
    border-radius: 6px;
}


/* ========================================
   RIGHT IMAGE AREA
======================================== */

.about-image-wrapper {
    position: relative;

    width: 100%;
    max-width: 520px;

    /*
     * Leave space for the
     * overlapping elements
     */
    margin: 60px auto;
}


/* ========================================
   MAIN PHOTO
======================================== */

.about-main-image {
    display: block;

    width: 100%;
    height: 430px;

    object-fit: cover;

    border-radius: 8px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.20);

    position: relative;
    z-index: 1;
    border: 6px solid #ffffff;
}


/* ========================================
   SMALL PHOTO
   TOP LEFT
======================================== */

.about-small-image {
    position: absolute;

    /*
     * Half outside the main photo
     * Half overlapping the main photo
     */
    top: -50px;
    left: -50px;

    width: 200px;
    height: 130px;

    object-fit: cover;

    border-radius: 8px;

    border: 6px solid #ffffff;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.20);

    z-index: 2;
}


/* ========================================
   EXPERIENCE CARD
   BOTTOM RIGHT
======================================== */

.about-info-card {
    position: absolute;

    /*
     * Half outside the main photo
     * Half overlapping the main photo
     */
    right: -40px;
    bottom: -40px;

    width: 150px;
    height: 100px;

    background-color: #7ed957;

    color: #000;

    border-radius: 8px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.20);

    z-index: 2;
    border: 6px solid #ffffff;
}

.about-info-card strong {
    font-size: 30px;
    line-height: 1;
}

.about-info-card span {
    font-size: 13px;
    margin-top: 6px;
}


/* =========================
   SECTIONS
========================= */

.section {
    padding: 90px 0;
}

.section-light {
    background-color: #f5f7f5;
}

.section-title {
    font-size: 36px;

    font-weight: 700;

    margin-bottom: 20px;
}

.section-text {
    color: #555;

    font-size: 16px;

    line-height: 1.8;
}


/* =========================
   BUTTON
========================= */

.btn-custom {
    background-color: #7ed957;

    color: #ffffff;

    padding: 12px 28px;

    border-radius: 5px;

    border: none;

    transition: 0.3s;
}

.btn-custom:hover {
    background-color: #146c43;

    color: #ffffff;
}


/* =========================
   FEATURE CARDS
========================= */

.feature-card {
    height: 100%;
    padding: 35px 25px;
    background: #ffffff;
    border-radius: 10px;
    text-align: center;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

    /* Hover animation */
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* Hover - lift card */
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}


/* Icon */

.feature-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    background-color: #e8f5ee;
    color: #198754;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;

    /* Icon animation */
    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease;
}


/* Hover - icon */

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: #198754;
    color: #ffffff;
}


/* Title */

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}


/* Description */

.feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0;
}


/* =========================================
   SCROLL REVEAL ANIMATION
   ========================================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}


/* When visible */

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* Delay each card */

.reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal:nth-child(3) {
    transition-delay: 0.3s;
}

.reveal:nth-child(4) {
    transition-delay: 0.4s;
}

/* =========================================
   DOCUMENT SECTION
   ========================================= */
.documents-container {
    padding-top: 35px;
    padding-bottom: 20px;
}

.section-heading {
    margin-bottom: 40px;
}

.section-heading h2 {
    font-size: 32px;
    font-weight: 700;
    color: #292929;
    margin-bottom: 18px;
}

.heading-line {
    width: 60px;
    height: 3px;
    background-color: #008000;
    margin: 0 auto;
}

.documents-list {
    align-items: flex-start;
}

.document-item {
    height: 100%;
    text-align: center;
    padding: 10px 5px;
}

.document-icon {
    display: block;
    font-size: 55px;
    line-height: 1.2;
    color: #008000;
    margin-bottom: 18px;
}

.document-item h5 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    color: #292929;
    margin: 0;
}

/* =========================================
   REPAYMENT TABLE SECTION
   ========================================= */

.repayment-section {
    padding-top: 65px;
    padding-bottom: 65px;
    border-radius: 0;
}

.repayment-content h2 {
    font-size: clamp(28px, 2.5vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.repayment-description {
    font-size: 18px;
    line-height: 1.55;
    margin-bottom: 35px;
}

.repayment-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.repayment-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.5;
}

.repayment-features li i {
    flex-shrink: 0;
    color: #40a4ff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}


/* ========================================
   REPAYMENT TABLE
======================================== */

.repayment-table-wrapper {
    width: 100%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    background: #fff;
}

.repayment-table-wrapper .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.repayment-table {
    width: 100%;
    min-width: 650px;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: #3c4650;
    font-size: 12px;
    text-align: center;
}

.repayment-table th,
.repayment-table td {
    padding: 12px 9px;
    vertical-align: middle;
    white-space: nowrap;
    border-right: 1px solid #e1e6ef;
    border-bottom: 1px solid #e1e6ef;
}

.repayment-table thead th {
    height: 60px;
    background: #039c04;
    color: #fff;
    font-weight: 700;
}

.repayment-table thead th:first-child,
.repayment-table tbody th {
    background: #008001;
    color: #fff;
    font-weight: 700;
}

.repayment-table tbody tr:nth-child(even) td {
    background: #edf1fc;
}

.repayment-table tbody tr:nth-child(odd) td {
    background: #fff;
}

.repayment-table tr:last-child th,
.repayment-table tr:last-child td {
    border-bottom: 0;
}

.repayment-table th:last-child,
.repayment-table td:last-child {
    border-right: 0;
}

/* =========================
   FOOTER
========================= */

.footer {
    background-color: #2E2E2E;
    color: #ffffff;
    padding: 20px 0 0;
}


/* Logo */

.footer-logo img {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}


/* Footer columns */

.footer-column {
    padding-right: 30px;
}


/* Footer text */

.footer p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}


/* Details under labels */

.footer-detail {
    display: inline-block;
    margin-top: 5px;
    margin-left: 28px;
}


/* Links */

.footer a {
    color: #ffffff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}


/* Icons */

.footer i {
    font-size: 15px;
}


/* Copyright */

.footer-bottom {
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.3px;
}


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

@media (max-width: 991.98px) {

    .navbar-custom {
        padding: 12px 0;
    }

    .navbar-collapse {
        background-color: #ffffff;

        margin-top: 15px;

        padding: 10px 0;

        border-top: 1px solid #eeeeee;
    }

    .navbar-nav {
        align-items: stretch;

        gap: 0;
    }

    .navbar-nav .nav-link {
        display: block;

        padding: 14px 10px !important;

        border-bottom: 1px solid #eeeeee;
    }

    .navbar-toggler {
        border: none;

        box-shadow: none !important;
    }

    .navbar-center {
        position: static;
        transform: none;
        text-align: center;
    }

    .btn-apply-now {
        display: block;
        width: 100%;
        margin: 10px 0 0;
        text-align: center;
    }

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

    .home-content {
        min-height: auto;
    }

    .home-text {
        padding-right: 15px;
        margin-bottom: 35px;
        text-align: center;
    }

    .home-text h1 {
        font-size: 36px;
    }

    .home-text p {
        font-size: 17px;
    }

    .enquiry-form {
        padding: 25px 20px;
    }

    .about-section {
        padding: 80px 0;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .about-content h2 {
        font-size: 38px;
    }

    .about-image-wrapper {
        margin-top: 70px;
        margin-bottom: 60px;
    }

    .about-small-image {
        top: -35px;
        left: -20px;

        width: 150px;
        height: 140px;
    }

    .about-info-card {
        right: -20px;
        bottom: -30px;

        width: 150px;
        height: 95px;
    }

    .documents-container {
        padding-top: 30px;
        padding-bottom: 35px;
    }

    .repayment-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .repayment-content h2 {
        font-size: 30px;
    }

    .repayment-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .repayment-table {
        font-size: 11px;
    }

    .repayment-table th,
    .repayment-table td {
        padding: 10px 8px;
    }

    .footer-column {
        padding-right: 15px;
    }
}


/* Tablet and mobile */

@media (max-width: 767.98px) {
    .documents-container {
        padding-top: 25px;
        padding-bottom: 10px;
    }

    .section-heading {
        margin-bottom: 25px;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .document-icon {
        font-size: 60px;
        margin-bottom: 12px;
    }

    .document-item h5 {
        font-size: 18px;
    }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 576px) {

    .logo {
        width: 60px;
    }

    .home-text h1 {
        font-size: 30px;
    }

    .home-text p {
        font-size: 16px;
    }

    .enquiry-form {
        padding: 22px 18px;
    }

    .enquiry-form h2 {
        font-size: 24px;
    }

    .about-section {
        padding: 60px 0;
    }

    .about-content {
        padding-right: 0;
    }

    .about-content h2 {
        font-size: 32px;
    }

    .about-content p {
        font-size: 16px;
        line-height: 1.7;
    }

    .about-image-wrapper {
        margin-top: 55px;
        margin-bottom: 50px;

        margin-left: 15px;
        margin-right: 15px;

        width: calc(100% - 30px);
    }

    .about-main-image {
        height: 320px;
    }

    .about-small-image {
        top: -25px;
        left: -10px;

        width: 80px;
        height: 80px;

        border-width: 4px;
    }

    .about-info-card {
        right: -10px;
        bottom: -25px;

        width: 115px;
        height: 70px;
    }

    .about-info-card strong {
        font-size: 22px;
    }

    .about-info-card span {
        font-size: 10px;
    }

    .section {
        padding: 60px 0;
    }

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

    .section-heading h2 {
        font-size: 24px;
    }

    .documents-list {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 20px;
    }

    .document-icon {
        font-size: 70px;
    }

    .document-item h5 {
        font-size: 16px;
    }

    .repayment-table-wrapper {
        border-width: 3px;
        border-radius: 14px;
    }

    .repayment-table {
        min-width: 650px;
        font-size: 11px;
    }

    .repayment-table th,
    .repayment-table td {
        padding: 10px 8px;
    }

    .footer {
        padding: 45px 20px 0;
    }


    /* Center logo and company info */

    .footer-column:first-child {
        text-align: center;
    }

    .footer-logo img {
        max-width: 180px;
        margin-bottom: 15px;
    }


    /* Space between sections */

    .footer-column {
        padding-right: 0;
        margin-bottom: 25px;
    }


    /* Keep text readable */

    .footer p {
        font-size: 14px;
        line-height: 1.7;
    }


    /* Details */

    .footer-detail {
        margin-left: 28px;
    }


    /* Copyright */

    .footer-bottom {
        margin-top: 10px;
        padding: 18px 0;
    }

    .footer-bottom p {
        font-size: 11px;
        line-height: 1.5;
    }

}