html {
    margin: 0;
    padding: 0;
    background-color: #f2efeb;
    color: #001047;
    overflow-x: hidden;
}

body {
    margin: 0;
    background-color: #f2efeb;
    overflow-x: hidden !important;
}

.nav {
    text-align: right;
    height: 100px;
    margin-bottom: 10px;
    padding: 25px 35px; /* Reduced top padding from 35px to 25px */
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 85px; /* Increased from 70px to 85px */
    margin-right: auto;
    margin-top: -5px; /* Added negative top margin to move it up slightly */
}

.logo-link {
    margin-right: auto;
}

.homebtn {
        display: none;
    }

#navbtn {
    padding: 5px 10px;
    font-family: "Questrial", serif;
    font-size: 40px;
    text-decoration: none;
    color: #786748;
    margin-left: 50px;
}
/* Drop Down Menu */
#dropbtn {
    padding: 5px 10px;
    font-family: "Questrial", serif;
    font-size: 40px;
    text-decoration: none;
    color: #786748;
    margin-left: 50px;
    border:none;
    background-color: #f2efeb;
}
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    font-family: "Questrial", serif;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    text-align: center;
}
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.dropdown-content a:hover {background-color: #ddd;}
.dropdown:hover .dropdown-content {display: block;}
.dropdown:focus-within .dropdown-content {display: block;}

.selbsttopbar {
    background-color: #cac7b9;
    color: #786748;
    font-family: "Gentium Plus", serif;
    font-weight: 400;
    font-style: italic;
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 50px;
}

h1 {
    font-family: "Oswald", sans-serif;
    font-size: 3rem;
    text-align: right;
    color: #dba623;
    margin-top: 50px;
}

.selbsttopbar h2 {
    font-size: 2.4rem;
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.selbsttopbar p {
    margin-bottom: 0px;
    margin-left: 100px;
    margin-right: 100px;
    font-size: 1.5rem;
}

.rimgltxt img {
    border-radius: 15px;
    display: inline-block;
    position: relative;
    left: 50px;
    top: 70px;
}

.rimgltxt {
    margin-top: 50px;
    margin-bottom: 50px;
    display: flex;
    justify-content: flex-end;
    width: 90%; /* Reduced from 100% to create spacing on the right */
    position: relative;
    margin-right: 70px; /* Added explicit right margin for spacing */
}

.rimgltxt .p5txt {
    display: inline-block;
    width: 50%;
    padding-left: 150px;
    font-family: "Questrial", serif;
    margin-bottom: 120px;
    text-align: right;
    margin-right: 50px; /* Increased margin-right for more spacing */
}

.p5txt h2 {
    text-align: center;
    color:#dba623;
    font-size: 3rem;
    font-family: "Oswald", serif;
}

.p5txt {
    font-size: 1.5rem;
    font-family: "Questrial", serif;
    max-width: 45%;
}

.p5txt p {
    position: relative;
}

.page2 {
    min-height: 100vh;
    width: 100%;
    background-image: url("assets/women_sitting.png");
    background-size: cover;
}

.limgrtxt img {
    border-radius: 15px;
    display: inline-block;
    position: relative;
    top: 120px;
    left: 130px;
}

.limgrtxt .p5txtL {
    position: relative;
    display: inline-block;
    width: 60%;
    padding-left: 225px;
    font-family: "Questrial", serif;
}

.p5txtL {
    font-size: 1.5rem;
    max-width: 45%;
    text-shadow: 0px 0px 2px #ffffff, 0px 0px 2px #ffffff, 0px 0px 2px #ffffff;
}

.p5txtL p {
    position: relative;
    top: 110px;
}

.brnwrap_page2 {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin-top: 180px;
}
.defaultbtn {
    padding: 10px 40px;
    background-color: #7c6643;
    text-decoration: none;
    color: white;
    border-radius: 15px;
    font-family: "Questrial", "serif";
    font-size: 1.25rem;
    margin-bottom: 50px;
}

@media (max-width: 1740px) {
    #p2img {
        display: none;
    }

    .p5txt p {
        bottom: 0px;
    }

    .p5txtL {
        text-align: center;
        padding-left: 10px !important;
        min-width: 99% !important;
    }

    .p5txtL p {
        width: 90%;
        margin-left: 5%
    }
}

@media (max-width: 1650px) {
    .rimgltxt img {
        top: 0px;
        bottom: 10px;
    }
}

@media (max-width: 1470px) {
    .rimgltxt img {
        display: none;
    }

    .p5txt h1 {
        text-align: center;
        min-width: 90%;
    }
    div.p5txt {
        min-width: 95%;
        padding-left: 10px;
        padding-right: 10px;
        position: static;
    }

    div.p5txt p {
        line-height: 25px !important;
    }

    .rimgltxt .p5txt {
        text-align: center;
        padding: 0px;
        position: relative;
        width: 80%;
        margin: 0 auto 50px auto; /* Added bottom margin */
    }

    .rimgltxt {
        margin-right: 0; /* Reset margin for mobile */
        width: 100%; /* Full width on mobile */
    }
}

@media (max-width: 1350px) {
    .etftopbar h2 {
        font-size: 2.5rem;
    }
    .selbsttopbar h2 {
        font-size: 1.5rem;
    }
    .selbsttopbar p {
        font-size: 1rem;
    }
}

@media (max-width: 1200px) {

    .limgrtxt .p5txtL {
        padding: 0px;
        width: 70vw;
        text-align: center;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 800px) {
    .etftopbar h2 {
        font-size: 1.5rem;
    }
    .etftopbar p {
        font-size: 1.25rem;
    }

    .p5txt p {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .p5txt h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .page2 p {
        font-size: 1.4rem;
    }

    .p5txt h1 {
        font-size: 1.5rem;
    }

    .p5txt p {
        font-size: 1rem;
        line-height: 20px;
    }
    .p5txtL p {
        font-size: 1rem;
        line-height: 20px !important;
    }
    .selbsttopbar h2 {
        font-size: 1rem;
    }
    .selbsttopbar p {
        font-size: 0.8rem;
    }
}

@media (max-width: 450px) {
    .brnwrap_page2 {
        display: flex;
        flex-wrap: wrap;
    }

    .defaultbtn {
        margin-top: 20px;
        margin-bottom: 0px;
        padding: 5px 20px;
    }

    .page2 p {
        font-size: 1rem;
    }

    .p5txt h1 {
        font-size: 1.33rem;
    }
}

footer a:hover {
    text-decoration: underline;
}

footer a {
    text-decoration: none;
    color: #7c6643;
}

footer {
    height: 100px;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    font-family: "Questrial", sans-serif;
    align-items: center;
    margin: 0px 50px 00px 0px;
    background-color: #cbc7b7;
    text-decoration: none;
    color: #7c6643;
    font-size: 1.5rem;
}

/* Media Querys --> Navbar */

@media (max-width: 1400px) {
    a#navbtn, button#dropbtn {
        font-size: 30px;
    }
}

@media screen and (max-width: 1175px) {
    a#navbtn, button#dropbtn {
        font-size: 20px;
        margin-left: 5px;
    }

    .logo-link {
        margin-left: 0px;
    }

    a.logo-link {
        transform: scale(0.7)
    }
}

@media (max-width: 790px) {
    .logo-link {
        display: inline-block;
        justify-content: center;
        margin-top: 0 !important;
        margin-right: 0 !important;
        min-width: 20vw !important;
        height: auto;
        max-width: 20vw !important;
    }
    .logo-link img {
        min-width: 20vw;
        max-width: 100%;
        height:auto;
    }


    .nav {
        justify-content: center;
    }
}

@media (max-width: 500px) {
    
    #dropbtn, #navbtn {
        font-size: 15px;
        padding: 0px;
        margin: 7px;
    }

    .nav {
        flex-wrap: wrap;
        height: auto;
        padding-bottom: 10px;
        padding-top: 10px;
    }

    .dropdown-content {
        transform: translateX(-55px); /* Shift left by 20px */
    }

    #p1_wrap h1 {
        font-size: 25px;
    }
    #p1_wrap p {
        font-size: 15px;
    }

    a.logo-link {
        min-width:40vw !important;
        max-width:40vw;
    }


}

/* Right font size */

@media (max-width: 1700px) {
	div.rimgltxt div.p5txt h1 {
		font-size: 3rem !important;
	}
	div.rimgltxt div.p5txt p {
		font-size: 1.5rem !important;
        line-height: 32px !important;
	}
	
	div.selbsttopbar h2 {
		font-size: 2.4rem !important;
        font-weight: normal;
	}
	
	div.selbsttopbar p {
		font-size: 1.5rem !important;
	}
}

@media (max-width: 1400px) {	
	div.selbsttopbar h2 {
		font-size: 1.5rem !important;
	}
    div.selbsttopbar p {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 850px) {
	div.rimgltxt div.p5txt h1 {
		font-size: 1.8rem !important;
	}
	div.rimgltxt div.p5txt p {
		font-size: 1rem !important;
	}
}
