*, ::after, ::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    width: 100%;
    overflow-x: hidden;
}

body{
    background-color: white;
    width: 100%;
    overflow-x: hidden;
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
    padding: 0;  
}

main{
    margin-bottom: 0;
}

/* ----------- The first section or the page-title section ----------- */
.page-title-section{
    background: url(../images/about-us-img.jpg) center center / cover no-repeat local;
    background-color: rgba(0, 0, 0, 0.3);
    background-blend-mode: multiply;
    width: 100%;
    height: 15.625rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-title-section .services-container h1{
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
}

.page-title-section .services-container a{
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.page-title-section .services-container a:hover{
    color:black;
}
.page-title-section .services-container span{
    font-size: 1.2rem;
    font-weight: bold;
}

/* -----------This is the Second section or the Savings section----------- */

.savings-section{
    width: 100%;
    min-height: 43.75rem;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 5rem;
    padding: 3.1rem 0;
}

.savings-section .savings-container{
    width: 45vw;
    height: 30vw;
}

.savings-section .savings-container h2{
    font-size: 2.4rem;
    font-weight: bold;
    position: relative;
}

.savings-section .savings-container h2::after{
    content: "";
    background-color: #000000;
    width: 1.875rem;
    height: 0.3125rem;
    border-radius: 5px;
    position: absolute;
    left: 0; 
    top: 120%; 
}

.savings-section .savings-container p{
    color: rgb(74, 74, 74);
    line-height: 1.8em;
    font-size: 0.93333rem;
    text-align: justify;
    padding-top: 1.875rem;
}

.savings-section .savings-img-container{
    width: 28.125rem;
    height: 31.25rem;
    box-shadow: 0rem 0rem 0.625rem 0.3125rem rgba(0, 0, 0, 0.411);
}

.savings-section .savings-img-container img{
    width: 100%;
    height: 100%;
}

/* -----------This is the Third section or the credit card section----------- */

.Credit-Cards-section{
    width: 100%;
    min-height: 43.75rem;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 5rem;
    padding: 3.1rem 0;
}

.Credit-Cards-section .cc-container{
    width: 45vw;
    height: 30vw;
}

.Credit-Cards-section .cc-container h2{
    font-size: 2.4rem;
    font-weight: bold;
    position: relative;
}

.Credit-Cards-section .cc-container h2::after{
    content: "";
    background-color: #000000;
    width: 1.875rem;
    height: 0.3125rem;
    border-radius: 0.3125rem;
    position: absolute;
    left: 0; 
    top: 120%; 
}

.Credit-Cards-section .cc-container p{
    color: rgb(74, 74, 74);
    line-height: 1.8em;
    font-size: 0.93333rem;
    padding-top: 1.875rem;
}

.Credit-Cards-section .cc-img-container{
    width: 28.125rem;
    height: 28.125rem;
    box-shadow: 0rem 0rem 0.625rem 0.3125rem rgba(0, 0, 0, 0.411);
}

.Credit-Cards-section .cc-img-container img{
    max-width: 100%;
    min-height: 100%;
}

/* -----------This is the Fourth section or the Loans section----------- */

.loan-section{
    width: 100%;
    min-height: 51.25rem;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 5rem;
    padding: 3.1rem 0;
}

.loan-section .loan-container{
    width: 45vw;
    height: 30vw;
}

.loan-section .loan-container h2{
    font-size: 2.4rem;
    font-weight: bold;
    position: relative;
}

.loan-section .loan-container h2::after{
    content: "";
    background-color: #000000;
    width: 1.875rem;
    height: 0.3125rem;
    border-radius: 0.3125rem;
    position: absolute;
    left: 0; 
    top: 120%; 
}

.loan-section .loan-container p{
    color: rgb(74, 74, 74);
    line-height: 1.8em;
    font-size: 0.93333rem;
    padding-top: 1.875rem;
}

.loan-section .loan-img-container{
    width: 28.125rem;
    height: 28.125rem;
    box-shadow: 0rem 0rem 0.625rem 0.3125rem rgba(0, 0, 0, 0.411);
}

.loan-section .loan-img-container img{
    max-width: 100%;
    min-height: 100%;
}


/* ----------- The Fourth section or partners section ----------- */

.services-partners-section{
    background-color: #ddd3d3;
    width: 100%;
    height: 12.5rem;
    display: flex;
    gap: 3.125rem;
    justify-content: center;
    align-items: center;
}


/* --------- This is the beginning of all the Media queries --------- */

@media (max-width: 430px){
    /*  This is the styling of the mobile navigation nav-bar */

    html{
        width: 100%;
        overflow-x: hidden;
    }

    main{
        margin: 0;
    }

    
    /* -----The first section or the page-title section---- */

    .page-title-section{
        width: 100%;
        height: 30vh;
    }

    .page-title-section .services-container {
        position: relative;
    }

    .page-title-section .services-container a{
        position: absolute;
        left: -1.875rem;
    }

    .page-title-section .services-container span{
        position: absolute;
        right: 0.3125rem;
    }

    .page-title-section .services-container h1{
        font-size: 2rem;
        text-align: center;
    }
    
    .page-title-section .services-container a{
        font-size: 1rem;
    }
    
    .page-title-section .services-container span{
        font-size: 1rem;
    }
    
    /*  This is the Second section or the About us section */
 
    .savings-section{
        width: 100%;
        height: 84.375rem;
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: start;
        gap: 1.8rem;
        padding-top: 2rem;
        padding-left: 1rem;
    }

    .savings-section .savings-container{
        width: 90vw;
        height: fit-content;
        max-height: 84.375rem;
    }

    .savings-section .savings-container h2{
        font-size: 1.66667rem;
        position: relative;
    }

    .savings-section .savings-container p{
        font-size: 0.9rem;
    }

    .savings-section .savings-img-container{
        width: 90vw;
        height: 90vw;
        margin-top: 30px;
    }

    /* This is the Third section or the credit card section */

    .Credit-Cards-section{
        height: 75rem;
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: start;
        gap: 1.8rem;
        padding-top: 2rem;
        padding-left: 1rem;
    }

    .Credit-Cards-section .cc-container{
        width: 90vw;
        height: fit-content;
        max-height: 81.25rem;
    }

    .Credit-Cards-section .cc-container h2{
        font-size: 1.66667rem;
    }

    .Credit-Cards-section .cc-container p{
        font-size: 0.9rem;
    }

    .Credit-Cards-section .cc-img-container{
        width: 90vw;
        height: 90vw;
        margin-top: 0rem;
    }
    
    /*This is the Fourth section or the Loans section */

    .loan-section{
        height: 90.625rem;
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: start;
        gap: 1.8rem;
        padding-top: 2rem;
        padding-left: 1rem;
    }

    .loan-section .loan-container{
        width: 90vw;
        height: fit-content;
        max-height: 81.25rem;
    }

    .loan-section .loan-container h2{
        font-size: 1.66667rem;
    }


    .loan-section .loan-container p{
        font-size: 0.9rem;
    }

    .loan-section .loan-img-container{
        width: 90vw;
        height: 90vw;
        margin-top: 1.875rem;
    }

    /* ----------- The Fourth section or partners section ----------- */

    .services-partners-section{
        width: 100vw;
        height: 15vh;
        gap: 0.625rem;
    }

    .services-partners-section img{ 
        width: 3.125rem;
        height: 1.875rem;
    }
}

/* ---------- This is the styling of the 768 screen size ------- */

@media (min-width: 431px) and (max-width: 820px){
     /*  This is the styling of the mobile navigation nav-bar */

     html{
        width: 100%;
        overflow-x: hidden;
    }

    /* ----- This is the Second section or the About us section ---- */
 
    .savings-section{
        width: 100%;
        min-height: 78.125rem;
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        gap: 2.2rem;
        padding-top: 2rem;
    }

    .savings-section .savings-container{
        width: 90%;
        height: fit-content;
        max-height: 78.125rem;
    }

    .savings-section .savings-container h2{
        font-size: 2rem;
        position: relative;
    }

    .savings-section .savings-container p{
        font-size: 0.9rem;
    }

    .savings-section .savings-img-container{
        width: 80vw;
        height: 70vw;
        margin-top: 1.8rem;
        align-self: center;
    }

    /*  This is the Third section or the credit card section */
 
    .Credit-Cards-section{
        width: 100%;
        min-height: 81.25rem;
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        gap: 2.2rem;
        padding-top: 2rem;
    }

    .Credit-Cards-section .cc-container{
        width: 90vw;
        height: fit-content;
        max-height: 78.125rem;
    }

    .Credit-Cards-section .cc-container h2{
        font-size: 2rem;
        position: relative;
    }

    .Credit-Cards-section .cc-container p{
        font-size: 0.9rem;
    }

    .Credit-Cards-section .cc-img-container{
        width: 80vw;
        height: 70vw;
        margin-top: 1.8rem;
        align-self: center;
    }

    /* ----- This is the Fourth section or the Loans section---- */
 
    .loan-section{
        width: 100%;
        min-height: 90.625rem;
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        gap: 2.2rem;
        padding-top: 2rem;
    }

    .loan-section .loan-container{
        width: 90%;
        height: fit-content;
        max-height: 78.125rem;
    }

    .loan-section .loan-container h2{
        font-size: 2rem;
        position: relative;
    }

    .loan-section .loan-containerr p{
        font-size: 0.9rem;
    }

    .loan-section .loan-img-container{
        width: 80vw;
        height: 70vw;
        margin-top: 1.8rem;
        align-self: center;
    }

     /* --- The third section or peformance section ----*/

    .performance-section{
        width: 100%;
        height: 56.25rem;
        padding: 3.5rem 0 0 2.5rem;
    }
    
    .performance-section .perform-h2{
        font-size: 2rem;
        width: 90vw;
    }

    .performance-section .perform-h2::after{
        height: 0.25rem;
        top: 110%; 
    }
    
    .performance-container{
        width: 90vw;
        flex-direction: column;
        margin-top: 1rem;
    }
    
    .performance-section .performance-container .img-con{
        width: 60vw;
        height: 45vw;
        margin-top: 1.8rem; 
    }
    
    .performance-section .performance-container .child-container{
        height: 25vw;
        width: 90vw;
    }
    
    .performance-section .performance-container .child-container .grand-child-container h6{
        font-size: 1rem;
    }

    /* ------The Fourth section or partners section-----  */

    .services-partners-section{
        width: 100%;
        height: 15vh;
        gap: 0.625rem;
        margin-bottom: 0;
    }

    .services-partners-section img{ 
        width: 6.35rem;
        height: 4.6875rem;
    }

}



/* ---------- This is the styling of the 1024px screen size ------- */

@media (min-width: 821px) and (max-width: 1024px){
     /*  This is the styling of the mobile navigation nav-bar */

    html{
        width: 100%;
        overflow-x: hidden;
    }

    /* ----------- The first section or the page-title section ----------- */
    .page-title-section{
        width: 100%;
    }

    /*  This is the Second section or the About us section */

    .savings-section{
        width: 100%;
        height: 67vh;
        justify-content: start;
        gap: 2.5rem;
        padding-left: 2rem;
        padding-top: 3rem;
    }

    .savings-section .savings-container{
        width: 48vw;
        height: fit-content;
        max-height: 78.125rem;
    }

    .savings-section .savings-img-container{
       width: 40vw;
       height: 45vw;
    }

    /*  This is the Third section or the credit card section */ 

    .Credit-Cards-section{
        width: 100%;
        height: 67vh;
        justify-content: start;
        gap: 2.5rem;
        padding-left: 2rem;
        padding-top: 3rem;
    }

    .Credit-Cards-section .cc-container{
        width: 48vw;
        height: fit-content;
        max-height: 78.125rem;
    }

    .Credit-Cards-section .cc-img-container{
       width: 40vw;
       height: 45vw;
    }

    /* ------ This is the Third section or the credit card section ----*/ 

    .loan-section{
        width: 100%;
        height: 75vh;
        justify-content: start;
        gap: 2rem;
        padding-left: 2rem;
        padding-top: 3rem;
    }

    .loan-section .loan-container{
        width: 48vw;
        height: fit-content;
        max-height: 78.125rem;
    }

    .loan-section .loan-container p{
        line-height: 1.8rem;
        padding-top: 0.9375rem;
    }
    
    .loan-section .loan-img-container{
       width: 40vw;
       height: 45vw;
    }

    /* ----- The Fourth section or partners section ------ */

    .services-partners-section{
        height: 20vw;
        display: flex;
        gap: 3.125rem;
        justify-content: center;
        align-items: center;
    }

    .services-partners-section img{
        height: 3.125rem;
        width: 6.25rem;
    }
}