@import url('https://fonts.googleapis.com/css2?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&display=swap');
@import url('https://fonts.cdnfonts.com/css/barlow-semi-condensed');
@import url('https://fonts.cdnfonts.com/css/anton');

html {
    scroll-padding-top: 4.4rem;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100vw;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    color: #fff;
    position: relative; /* Needed for positioning pseudo-element */
    overflow-x: hidden;
    width: 100vw;
}

body::before {
    content: "";
    position: absolute;
    top: 50px; /* Adds a margin of 50px at the top */
    left: 0;
    width: 100%;
    height: 150vh;
    background: url('../img/logo/hasailogo.png') no-repeat fixed;
    background-position: center bottom; /* Positions the image at the bottom */
    background-size: 32.5rem;
    opacity: 0.4; /* Adjusts transparency */
    filter: blur(5px); /* Adds a blur effect to the background */
    z-index: -1; /* Ensures it stays behind the content */
    overflow-x: hidden;
    width: 100vw;
}

#mainNav {
    position: sticky;
    top: 0;
    z-index: 102;
    height: 12vh;
    width: 100%;
}

hr {
    transition: opacity 0.3s ease;
}

#navi {
    height: 13vh;
    width: 100%;
    transition: background-color 0.3s ease;
    /* Smooth color change */
}

.scrolled {
    background-color: rgb(15, 134, 4);
    /* Background changes on scroll */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    /* Optional shadow */
}

nav li {
    margin-left: 70px;
    margin-top: 12px;
    padding-top: 25px;
}

nav li a {
    font-family: 'Barlow Semi Condensed';
}

nav li:hover {
    scale: 1.1;
    transition: 0.2s;
}

.logo {
    position: fixed;
}

main h2 {
    margin-top: 1em;
    display: flex;
    justify-content: center;
    color: #f9a72b;
    margin-bottom: 2rem;
}

/* information */
main {
    color: #108711;
    padding: -1rem 3rem 3rem 3rem;
    font-size: 17px;
    height: 88vh;
}
main ul a {
    text-decoration: none;
    list-style: none;
    text-align: right;
    color: #108711;
}

main li {
    margin-bottom: 15px;
}
main li:hover{
    color: #f5df1b;
}
.col span{
    color: #000;
    background: #fff;
}
p{
    color: #000;
}

#textbox {
    margin-left: 20px;
}
.textbox span{
    margin-bottom: 10px;
}

@media (max-width: 1200px) {
    nav li {
        margin-left: 50px;
    }
}
/* Ensure full width background when navbar is toggled */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgb(15, 134, 4); /* Matches main navbar */
        padding: 10px 0;
    }
    .cons{
        width: 100%;
    }
    #mainNav{
        height: 14.5vh;
    }
    nav li {
        padding-top: 0px;
    }
}

/* For mobile view (columns stacked) */
@media (max-width: 767px) {
    .row {
        flex-direction: column-reverse;
    }
    .col {
        text-align: center; /* Ensure text is centered on mobile */
    }
    #link{
        text-align: right;
    }
    .col-5{
        width: 100%;
        justify-content: right;
        padding: 0;
        margin: 0;
    }

}

