@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;700&family=Poppins:wght@400;500;600&display=swap');

/* Base Style */

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    width: 100%;
}


/* Header Styles */

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #222;
}

h1 {
    font-size: 72px;
    font-weight: 700;
    margin: 20px 0;
}

h2 {
    font-size: 56px;
    font-weight: 600;
    margin: 16px 0;
}

h3 {
    font-size: 40px;
    font-weight: 500;
    margin: 14px 0;
}

h4 {
    font-size: 28px;
    font-weight: 500;
    margin: 12px 0;
}

h5 {
    font-size: 16px;
    font-weight: 500;
    margin: 12px 0;
}


/* Paragraph and Body Text */

p,
small,
.caption {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

p {
    font-size: 16px;
    color: #666;
    margin: 10px 0;
}

small,
.caption {
    font-size: 14px;
    color: #888;
}


/* Links */

a {
    font-size: 16px;
    font-weight: 500;
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    color: #004999;
    text-decoration: underline;
}


/* Highlights */

.highlight {
    font-weight: 700;
    color: #e67e22;
    background-color: #fbeee6;
    padding: 2px 5px;
    border-radius: 3px;
}

.emphasis {
    font-style: italic;
    color: #333;
}


/* General Layout */

.section-p1 {
    padding: 40px 80px;
}

.section-m1 {
    margin: 40px 0;
}


/* Header Styling */

#header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    left: 0;
    background-color: #fff;
    z-index: 1000;
}

#header .logo {
    width: 200px;
    height: 50px;
    object-fit: cover;
    object-position: center;
}


/* Navbar Styles */

#navbar {
    display: flex;
    gap: 20px;
    padding: 0;
}

#navbar li {
    list-style: none;
    padding: 0 19px;
    position: relative;
}

#navbar li a {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    transition: 0.3s ease;
}

#navbar li a:hover,
#navbar li a.active {
    color: #e67e22;
}

#navbar li a.active::after,
#navbar li a:hover::after {
    content: "";
    width: 20%;
    height: 4px;
    background: crimson;
    position: absolute;
    bottom: -8px;
    left: 20px;
}


/* Dropdown Menu */

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-content a {
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #ffffff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-arrow::after {
    content: " ▼";
    font-size: 0.8rem;
    margin-left: 5px;
    color: #444;
}


/* Mobile Navbar Styles */

#mobile {
    display: none;
    align-items: center;
}

#close {
    display: none;
}

@media (max-width: 799px) {
    #navbar {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        right: -500px;
        height: 50vh;
        width: 400px;
        background-color: #F5F5F5;
        box-shadow: 0 40px 60px rgba(0, 0, 0, 0.1);
        padding: 80px 0 0 10px;
        transition: 0.3s;
        border-radius: 12px;
        /* This adds a rounded edge */
    }
    #navbar li {
        margin-bottom: 25px;
    }
    #mobile {
        display: flex;
        align-items: center;
    }
    #mobile i {
        color: #1a1a1a;
        font-size: 24px;
        padding-left: 20px;
    }
    #navbar.active {
        right: 0px;
    }
    #close {
        display: initial;
        position: absolute;
        top: 30px;
        left: 30px;
        color: #000000;
        font-size: 24px;
    }
    /* Mobile Dropdown */
    .dropdown-content {
        position: static;
        width: 100%;
        background-color: #fff;
        box-shadow: none;
    }
    .dropdown-content a {
        padding: 15px 10px;
        background-color: #f1f1f1;
        border-bottom: 1px solid #ddd;
    }
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

#mobile {
    display: none;
}

#navbar.active {
    right: 0;
}

@media (max-width: 799px) {
    #navbar {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -300px;
        height: 100vh;
        width: 200px;
        background-color: rgb(180, 161, 161);
        transition: 0.3s;
    }
    #navbar li {
        margin-bottom: 25px;
    }
    #mobile {
        display: flex;
    }
    #close {
        display: initial;
        position: absolute;
        top: 30px;
        left: 30px;
        font-size: 24px;
    }
}


/* Two Boxes Section */

#info-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 40px 80px;
    background-color: #f9f9f9;
}

.info-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.info-box {
    flex: 1;
    padding: 20px;
    display: flex;
    /* Ensure flexbox for inner content alignment */
    flex-direction: column;
    /* Stack content vertically */
    justify-content: center;
    /* Center content vertically */
    align-items: center;
    /* Center content horizontally */
    text-align: center;
    /* Center align text */
}

.left-box .info-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.right-box h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

.right-box p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}


/* Responsive Design for screens 768px and below */

@media (max-width: 768px) {
    #info-section {
        flex-direction: column;
        /* Stack items vertically */
        gap: 20px;
        /* Adjust spacing between items */
        padding: 20px;
        /* Reduce overall padding for smaller screens */
    }
    .info-box {
        width: 100%;
        /* Ensure full width for boxes */
        padding: 10px;
        /* Adjust padding inside boxes */
    }
    .right-box h2 {
        font-size: 28px;
        /* Slightly smaller heading for better fit */
        margin-bottom: 15px;
    }
    .right-box p {
        font-size: 14px;
        /* Adjust text size for readability */
        line-height: 1.5;
    }
    .left-box .info-image {
        border-radius: 6px;
        /* Adjust radius for smaller screens */
    }
}


/* Additional adjustments for screens 425px and below */

@media (max-width: 425px) {
    #info-section {
        flex-direction: column;
        /* Stack items vertically */
        gap: 10px;
        /* Adjust spacing between items */
        justify-content: center;
        /* Center align entire section */
        align-items: center;
    }
    .info-container {
        flex-direction: column;
        /* Ensure left box is above right box */
        align-items: center;
        /* Center both boxes horizontally */
    }
    .info-box {
        width: 100%;
        /* Ensure full width for both boxes */
        max-width: 400px;
        /* Limit maximum width for better layout */
        justify-content: center;
        /* Center content vertically */
        align-items: center;
        /* Center content horizontally */
        text-align: center;
        /* Ensure text is centered */
    }
    .left-box .info-image {
        max-width: 300px;
        /* Limit image size for small screens */
    }
}


/* /////////////////////////////////////////process section/////////////////////////////////////// */

.loan-process-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

h2 {
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}


/* Media query for screens up to 768px */

@media (max-width: 768px) {
    .loan-process-section h2 {
        font-size: 22px;
    }
}

.process-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.process-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
}

.process-box h3 {
    font-size: 20px;
    color: #e67e22;
    margin-bottom: 10px;
}

.process-box h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.process-box p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.arrow {
    font-size: 36px;
    color: #e67e22;
    align-self: center;
    transform: rotate(45deg);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1170px;
    margin: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

ul {
    list-style: none;
}

.footer {
    background-color: #24262b;
    padding: 70px 0;
}

.footer-col {
    width: 25%;
    padding: 0 15px;
}

.footer-col h4 {
    font-size: 18px;
    color: #ffffff;
    text-transform: capitalize;
    margin-bottom: 35px;
    font-weight: 500;
    position: relative;
}

.footer-col h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    background-color: #e91e63;
    height: 2px;
    box-sizing: border-box;
    width: 50px;
}

.footer-col ul li:not(:last-child) {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 16px;
    text-transform: capitalize;
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    color: #bbbbbb;
    display: block;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 8px;
}

.footer-col .social-links a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.5s ease;
}

.footer-col .social-links a:hover {
    color: #24262b;
    background-color: #ffffff;
}


/* ################################### Media Queries ################################### */


/* Small Devices (Portrait phones, less than 576px) */


/* Medium Devices (Tablets, 576px to 768px) */

@media (max-width: 768px) {
    #header {
        padding: 15px 30px;
    }
    #hero h1 {
        font-size: 50px;
    }
    #hero h5 {
        font-size: 16px;
    }
    .card-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .boxes-container {
        gap: 15px;
    }
    #navbar li {
        padding: 0 10px;
    }
}


/* Large Devices (Small laptops, less than 992px) */

@media (max-width: 992px) {
    #hero h1 {
        font-size: 60px;
    }
    .card-container {
        flex-wrap: wrap;
        gap: 20px;
    }
}


/* Extra Large Devices (Desktops, 1200px and up) */

@media (min-width: 1200px) {
    #hero h1 {
        font-size: 72px;
    }
    #hero h5 {
        font-size: 18px;
    }
}