@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');


:root {
    /* Theme colors */
    --primary-color: #48A018;
    --primary-dark: #407818;
    --secondary-color: #ff8c00;
    --dark: #202020;
    --background-color: #f4f4f9;
    --text-color: #333;

    /* Spacing */
    --spacing-small: 8px;
    --spacing-medium: 16px;
    --spacing-large: 32px;

    /* Font sizes */
    --font-small: 14px;
    --font-medium: 18px;
    --font-large: 24px;

    /* Border radius */
    --border-radius: 8px;
    --br-button: 100px;
}

::selection {
    background-color: var(--primary-dark); /* Example background color (e.g., tomato) */
    color: #ffffff; /* Example text color (e.g., white) */
}

button, a, p, h1 {
    -webkit-tap-highlight-color: transparent;
}

button, a {
    outline: none; /* Removes the blue outline on focus */
    box-shadow: none; /* Removes any default shadow */
    -webkit-tap-highlight-color: transparent; /* Removes touch highlight on mobile */
}

a:focus, 
a:active {
    outline: none;
    box-shadow: none;
}



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

body,
html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: "Poppins", sans-serif;
    scroll-behavior: smooth;
    background-color: var(--background-color);
}

article {
    width: 60vw;
    height: 100vh;
    margin-left: auto;
    background: url('assets/istockphoto-171574529-612x612.jpg') center/cover no-repeat;
    clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
}

header {
    display: flex;
    width: 100%;
    padding: 2rem 6rem;
    align-items: center;
    background-color: rgb(0, 0, 0, 0.6);
}

#logo {
    width: 100px;
    height: 50px;
}

#mobile-nav {
    margin-left: auto;
    position: fixed;
    z-index: 999;
    top: 0;
    right: 0;
    height: 100%;
    background-color: var(--primary-dark);
    width: 70vw;
    padding: 2rem;
    transform: translateX(70vw);
    transition: transform 0.5s ease;
    display: none;
}

#mobile-nav.visible {
    transform: translateX(0); /* Slide in */
}

#menu {
    display: none;
    margin-left: auto;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: #fff;
}

#mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#mobile-nav ul a {
    text-decoration: none;
    color: #eee;
    font-size: 30px;
}

#close {
    font-size: 25px;
    cursor: pointer;
}


#web-nav {
    margin-left: auto;
    display: flex;
    gap: 20px;
    align-items: center;
}

#web-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-left: auto;
    align-items: center;
}

#web-nav ul a {
    text-decoration: none;
    color: #fff;
    transition: padding 0.2s linear;
}


#web-nav ul a:hover {
    padding: 0.5rem 1rem;
    min-width: 185px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    border: 1px solid #000;
    background-color: var(--primary-color);
}

main {
    width: 100%;
}

.hero {
    min-height: calc(100vh - 100px);
    display: flex;
    justify-content: space-evenly;
    padding-bottom: 3rem;
    margin-top: 60px;
    width: 100%;
}

.header-container {
    height: 100vh;
    width: 100%;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), /* Dark shadow effect */
        url('assets/business.jpg'); /* Your background image */
    background-size: cover;
    background-position: center;
}


.hero>div {
    flex: 1 1 80%;
    max-width: 70%;
}

/*
.right {
    width: 500px;
    height: 400px;
    border-radius: 30px;
    background-image: url('assets/5685523_54737.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
*/

.left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.left h1 {
    font-size: 3rem;
    color: #fff;
    text-align: center;
}

.left p {
    text-align: center;
    color: #fff;
}

.cta-box {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.cta-box a,
.nav-apply, .apply {
    padding: 0.5rem 1.5rem;
    min-width: 185px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    border: 1px solid var(--primary-color);
    border-radius: var(--br-button);
    background-color: var(--primary-color);
    transition: background-color 0.5s ease, color 0.5s ease ;
}

.cta-box a:hover,
.nav-apply:hover, .apply:hover{
    background-color: var(--background-color);
    color: var(--primary-color);
}


.cta-box a:nth-of-type(2) {
    background-color: #fff;
    color: var(--primary-color);
}

.cta-box a:nth-of-type(2):hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.features {
    padding: 6rem 0;
    min-height: 90vh;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary-color);
    color: #eee;
}

.feature-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    flex-wrap: wrap;
    width: 60%;
}

.feature-item {
    flex: 1 1 50%;
    height: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-dark);
    padding: 3rem;
    gap: 25px;
    cursor: pointer;
    transition: background-color 0.5s ease;
}

.feature-item:hover {
    background-color: var(--background-color);
}

.feature-item:hover > h2, .feature-item:hover > p {
    color: #000;
}

.feature-item:hover > img {
    filter: brightness(0) invert(0);
}

.feature-item > h2 {
    font-size: var(--font-medium);
    color: var(--background-color);
}

.feature-item p {
    font-weight: 400;
    color: var(--background-color);
    font-size: var(--font-small);
}

.feature-item img {
    width: 70px;
    height: 70px;
    filter: brightness(0) invert(1);
}


.feature-item:nth-of-type(1) {
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.feature-item:nth-of-type(2) {
    border-bottom: 1px solid #e0e0e0;
}

.feature-item:nth-of-type(3) {
    border-right: 1px solid #e0e0e0;
}

.plans {
    width: 100%;
    min-height: 90vh;
    margin-top: 40px;
    padding: 4rem 6rem;
}

.plans>h1 {
    text-align: center;
    margin: 0 auto 80px auto;
    font-size: 2rem;
    width: fit-content;
    padding: 0.8rem 2rem;
}

.plans>h5 {
    color: var(--primary-color);
    text-align: center;
}

.p-items {
    width: 100%;
    display: flex;
    gap: 25px;
    margin-bottom: 6rem;
}

.p-items>div {
    flex: 1 1 30%;
}

.p-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.p-right a {
    margin-top: auto;
}

.l-box {
    overflow: hidden;
    height: 400px;
    background-color: var(--primary-dark);
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
    border: 15px solid var(--primary-dark);
}

.p-left {
    overflow: hidden;
    height: 100%;
    width: 100%;
    background-color: var(--primary-dark);
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease; /* Smooth zoom effect */
}

.p-left:hover, .middle:hover{
    transform: scale(1.2); /* Zoom in by 20% */
}

.m-box {
    overflow: hidden;
    display: none;
    width: 100%;
    height: 250px;
    background-color: var(--primary-dark);
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
    border: 15px solid var(--primary-dark);
}

.middle {
    width: 100%;
    height: 100%;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease; /* Smooth zoom effect */
}

.p-items:nth-of-type(1) .p-left, .p-items:nth-of-type(1) .middle {
    background-image: url('assets/image.jpeg');
    background-size: cover;
    background-clip: border-box ;
    background-position: center;
}

.p-items:nth-of-type(2) .p-left, .p-items:nth-of-type(2) .middle {
    background-image: url('assets/motorcycle.jpg');
    background-size: cover;
    background-clip: border-box ;
}

.p-items:nth-of-type(3) .p-left, .p-items:nth-of-type(3) .middle {
    background-image: url('assets//car-loan.webp');
    background-size: cover;
    background-clip: border-box ;
}

.p-items:nth-of-type(4) .p-left, .p-items:nth-of-type(4) .middle {
    background-image: url('assets/how-do-home-loans-work-2.webp');
    background-size: cover;
    background-clip: border-box ;
}

.how-to {
    min-height: 90vh;
    background-color: var(--primary-dark);
    padding: 4rem 6rem;
    width: 100%;
}

.how-to>h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.how-to>p {
    font-size: 1.2rem;
    font-weight: 300;
    color: #eee;
}

.step-container {
    margin: 50px 0;
    position: relative;
}

.step-container ul {
    display: flex;
    gap: 50px;
    list-style: none;
}

.step-container ul li {
    position: relative;
}

.step {
    width: 60px;
    height: 60px;
    background: var(--background-color);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 30px;
    z-index: 999;
    position: relative;
    z-index: 5;
}

.step-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 200px;
}

.step-body h2 {
    color: #fff;
}

.step-body p {
    color: #eee;
}

.step::after {
    content: '';
    width: 300px;
    background-color: aquamarine;
    display: block;
    height: 5px;
    position: absolute;
    z-index: -3;
    left: 0;
}

ul:last-child .step::after {
    width: 0px;
}

.reviews {
    min-height: 100vh;
    padding: 4rem 6rem;
    background-color: rgb(250, 250, 250);
    width: 100%;
}

.reviews>h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.reviews>p {
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 30px;
    max-width: 60%;
    color: grey;
}

.swipe-container.swiper {
    padding: 5rem 0;
}

.card__content {
    overflow: hidden;
}

.person {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #fff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
}

.p-head {
    display: flex;
    gap: 20px;
    align-items: center;
}

.p-head>img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.p-head h2 {
    font-size: 1rem;
}

.p-body {
    margin-top: 30px;
}

.p-body p {
    font-size: 1rem;
    color: #6e6e6e;
}


.activity {
    width: 100%;
    min-height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f9;
}

.activity .container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.activity-box{
    flex: 1 1 30%;
    height: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #eee;
    padding: 3rem;
    gap: 25px;
    cursor: pointer;
    transition: background-color 0.5s ease;
    border: 1px solid #e0e0e0;
}

.activity-box > h2 {
    font-size: 18px;
    color: #48A018;
}

.activity-box p {
    font-weight: 400;
    color: #48A018;
    font-size: 12px;
}

.activity-box img {
    width: 70px;
    height: 70px;
    /*filter: brightness(0) invert(1);*/
}


.counter {
    font-size: 2em;
    font-weight: bold;
    transition: transform 0.3s ease;
    opacity: 0; /* Hidden initially */
}

.countr {
    font-size: 2em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.counter.active {
    opacity: 1;
    transform: scale(1.2); /* Optional effect on activation */
}





.faq {
    min-height: 90vh;
    padding: 6rem;
    width: 100%;
    background-color: var(--primary-dark);
}

.faq>h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.faq>p {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 60%;
    color: grey;
    margin-bottom: 2rem;
    color: #eee;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    padding: 15px;
    background-color: #f7f7f7;
}

.faq-question:hover {
    background-color: #ececec;
}

.faq-question {
    background-color: #f7f7f7;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    padding: 15px;
    border-radius: 2px 2px 0 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0;
    border-radius: 0 0 2px 2px;
    background-color: #f7f7f7;
}

.faq-item.active .faq-answer {
    max-height: 700px;
    /* Adjust based on expected content size */
    padding: 15px;
}


.contact {
    width: 100%;
    min-height: 90vh;
    overflow: hidden;
    padding: 4rem 6rem;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.c-left {
    width: 50%;
    margin: 0 auto 0 0;
    padding: 2rem 0;
}

.c-right {
    width: 50%;
    height: 400px;
    margin: 0 0 0 auto;
    padding: 2rem 0;
    background-image: url('../assets/conatactimg.jpg');
    background-size: cover;
}

.contact h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    margin-left: 0.75rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    resize: none;
}

textarea {
    height: 150px;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    font-family: "Poppins";
    border-radius: var(--br-button);
}

.submit-btn:hover {
    background-color: rgb(63, 118, 118);
}



/* Footer Styles */
.footer {
    background-color: var(--primary-dark);
    color: #fff;
    padding: 2rem 0;
    min-height: 400px;
}

.container {
    width: 100%;
    margin: 0 auto;
}

.footer-logo h2 {
    font-size: 2rem;
    color: #eee;
    margin-bottom: 1rem;
    text-align: center;
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: space-evenly;
    padding: 2rem 0;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-column {
    margin: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 150px;
    align-items: flex-start;
    text-align: left;

}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ededed;
}

.footer-column ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

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

/* Social Icons */
.social-icons li {
    display: inline-block;
}

.social-icons li a {
    color: #fff;
    font-size: 1.2rem;
}

.social-icons li a:hover {
    color: rgb(0, 120, 0);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    margin-top: 1rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* Swiper class */
.swiper-pagination-bullet {
    background-color: #2f4f4f;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: #2f4f4f;
}

/* larger 
screens */

@media (max-width: 1200px) {}

/* medium screens */

@media (max-width: 1120px) {

    /* reduce padding */

    header,
    .features,
    .plans,
    .how-to,
    .reviews,
    .faq,
    .contact {
        padding: 2rem;
    }

    .hero {
        padding: 1rem 2rem 2rem 2rem;
    }

    .plans>h1 {
        padding: 0.7rem 1.5rem;
    }

    /* reduce font sizes */

    .plans>h1,
    .left h1,
    .reviews>h1 {
        font-size: 1.8rem;
        max-width: 100%;
    }
    .features h1 {
        font-size: 1.4rem;
    }

    .faq>h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .faq>p {
        font-size: 1rem;
        text-align: center;
        max-width: 100%;
    }

    .reviews>h1 {
        text-align: center;
    }

    .reviews>p {
        font-size: 1rem;
        text-align: center;
        max-width: 100%;
    }

    .faq-question {
        font-size: 14px;
        padding: 0;
    }
    .faq-answer  {
        font-size: 12px;
        padding: 0;
    }

    /* visibility */

    #web-nav {
        display: none;
    }

    #menu {
        display: block;
    }

    .hero .right {
        display: none;
    }

    .logo-circle {
        display: flex;
    }

    .l-box{
        display: none;
    }

    .m-box {
        display: block;
        margin-bottom: 20px;
    }

    #mobile-nav {
        display: block;
    }

    /* arrangement and size change */



    .hero {
        flex-direction: column;
        margin-top: 10px;
    }

    .hero .left {
        justify-content: center;
    }

    .hero>div {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .cta-box {
        flex-direction: column;
        width: 100%;
    }

    .feature-item {
        flex: 1 1 100%;
    }

    .feature-box {
        width: 100%;
    }

    .feature-item:nth-of-type(1) {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .feature-item:nth-of-type(2) {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .feature-item:nth-of-type(3) {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .p-items {
        flex-direction: column;
    }

    .p-items>div {
        flex: 1 1 100%;
        min-height: 200px;
    }

    .step-container ul {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .how-to {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .how-to>p {
        text-align: center;
    }

    .how-to-cta {
        margin: 20px auto;
        text-align: center;
    }

    .step-container ul li,
    .step-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact {
        flex-direction: column;
    }

    .contact>div {
        width: 100%;
    }

    .c-left>h2 {
        text-align: center;
    }

    .c-right {
        height: 250px;
    }

    .footer-links {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 1.5rem;
    }

    .footer-column ul li {
        margin-bottom: 0.75rem;
    }
}

/* mobile screens */

@media (max-width: 480px) {
    .person.swiper-slide {
        min-width: 80%;
    }

    .reviews {
        padding: 1rem 30px;
    }
}