.invest-banner-section{
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.invest-banner-section img{
    width: 100%;
    height: 390px;
}

.centered-text {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 98%;
    transform: translate(-50%, -50%);
    font-size: 3.75rem;
    font-weight: bold;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); 
}

.invest-content-title h1 {
    color: #004903;
    text-align: center;
    font-family: "Montserrat";
    font-weight: 600;
    font-size: 2.25rem;
    line-height: normal;
    /* letter-spacing: 4px; */
    letter-spacing: 2px;
    font-weight: 600;
}

.invest-content-sub{
    padding: 0% 8%;
}

.invest-content-sub-title h1{
    color: #004903;
    font-family: "Montserrat";
    font-size: 2rem;
    /* letter-spacing: 4px; */
    font-weight: 500;
    padding: 2% 0%;
}

.invest-content-sub-content p{
    color: #1F262E;
    font-family: 'Montserrat', serif;
    font-size: 1.2rem;
    font-weight: 400;
}

.invest-part-button-section button {
    background-color: #FFF;
    color: #000;
    font-weight: bold; 
    font-family: "montserrat";
    letter-spacing: 4px; 
    font-size: 1.2rem;
    padding: 1.5% 1%;
    border-radius: 10%;
    border-radius: 20px;
    border: none;
    cursor: pointer;
}

.invest-part-section{
    background-color : #EEF8EE;
    padding: 2% 4%;
}

.invest-part-section-title h1{
    color: #004903;
    font-family: "Montserrat";
    font-size: 2rem;
    /* letter-spacing: 4px; */
    font-weight: 500;
    text-align: center;
    padding: 2% 0%;
}

.invest-part-section-content{
    font-family: "Montserrat";
    color: #1F262E;
    font-size: 1.2rem;
    font-weight: 400;
}

.invest-part-button-section{
    text-align: center;
    padding: 4% 2%;
    display: flex;
    gap: 2%;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
}

.invest-part-button-content-section .content {
    display: none;
    flex-direction: row;
}

.invest-part-button-content-section .content.active {
    display: flex;
    padding: 2% 10%;
}

.invest-part-button-section .btn.active {
    background-color: #004903;
    color: white;
}

.content-text{
    font-family: "Montserrat";
    color: #1F262E;
    font-size: 1.2rem;
    flex: 1;
    font-weight: 400;
}

.content-image {
    flex: 1; /* Flex property ensures the image container grows equally */
    text-align: center; /* Centers the image */
}

/* Make the image responsive */
.content-image img {
    max-width: 100%; /* Image will not exceed the container width */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Ensures the image is nicely scaled */
}

.invest-content-section {
    padding: 2% 0%;
    background-color: #FAFAFA;
}

/* Large screens (desktops) */
@media (min-width: 1200px) {
    .invest-content-title h1 {
        font-size: 2.25rem; /* Larger font for big screens, based on viewport height */
    }

    .invest-content-sub-title h1 {
        font-size: 2rem; /* Larger font for big screens, based on viewport height */
    }

    .invest-part-section-title h1{
        font-size: 2rem;
        letter-spacing: 3px;
    }
    .invest-part-button-section button {
        font-size: 1.2rem; /* Based on viewport height */
    }
}

/* Tablets */
@media (max-width: 992px) {
    .invest-content-title h1 {
        font-size: 2.25rem; /* Slightly reduce font size for tablets */
    }

    .invest-content-sub-title h1 {
        font-size: 2rem; /* Slightly reduce font size for tablets */
    }

    .invest-part-section-title h1{
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .invest-part-button-section button {
        font-size: 1.2rem; /* Adjust for tablets */
    }
    .invest-part-button-section{
        display: grid;
    }
    .invest-part-button-content-section .content.active {
        display: grid;
        padding: 2% 0%;
    }
    .invest-part-section-content{
        font-size: 1.2rem;
    }
    .invest-banner-section img{
        height: auto;
    }
}

/* Mobile phones */
@media (max-width: 768px) {
    .invest-content-title h1 {
        font-size: 2rem; /* Smaller font for mobile screens */
    }

    .invest-content-sub-title h1 {
        font-size: 2rem; /* Smaller font for mobile screens */
    }

    .invest-part-section-title h1{
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .invest-part-button-section button {
        font-size: 1.15rem; /* Smaller font size for mobile */
    }

    .invest-part-button-section{
        display: grid;
    }
    .invest-part-button-content-section .content.active {
        display: grid;
        padding: 2% 0%;
    }
    .invest-part-section{
        padding: 2% 8%;
    }
    .invest-content-sub-content p{
        font-size: 1.15rem;
    }
    .invest-part-section-content{
        font-size: 1.15rem;
    }
    .content-text{
        font-size: 1.15rem;
    }
    .centered-text {
        font-size: 3.5rem;
    }
    .invest-banner-section img{
        height: auto;
    }

}

/* Small mobile phones */
@media (max-width: 576px) {
    .invest-content-title h1 {
        font-size: 2rem; /* Slightly larger font for small screens to maintain readability */
    }

    .invest-content-sub-title h1 {
        font-size: 2rem; /* Slightly larger font for small screens to maintain readability */
    }

    .invest-part-section-title h1{
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .invest-part-button-section button {
        font-size: 1.15rem; /* Even smaller for small screens */
    }

    .invest-part-button-section{
        display: grid;
    }
    .invest-part-button-content-section .content.active {
        display: grid;
        padding: 2% 0%;
    }
    .invest-part-section{
        padding: 2% 8%;
    }
    .invest-content-sub-content p{
        font-size: 1.15rem;
    }
    .invest-part-section-content{
        font-size: 1.15rem;
    }
    .content-text{
        font-size: 1.15rem;
    }
    .centered-text {
        font-size: 3.3rem;
    }
    .invest-banner-section img{
        height: auto;
    }

}