@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;
    text-align: justify;
    overflow-x: hidden;
    width: 100vw;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    color: #fff;
    position: relative;
    /* Needed for positioning pseudo-element */
    max-height: 100vh;
    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.3;
    /* Adjusts transparency */
    filter: blur(5px);
    /* Adds a blur effect to the background */
    z-index: -1;
    /* Ensures it stays behind the content */
}

#mainNav {
    position: sticky;
    top: 0;
    z-index: 102;
    height: 12vh;
    width: 100%;
}

hr {
    transition: opacity 0.3s ease;
}
#h3 {
    display: none;
    text-align: center;
}
#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;
}

/* General Styling */
main h2 {
    margin-top: 1em;
    display: flex;
    justify-content: center;
    color: #f9a72b;
    margin-bottom: 2rem;
}

main {
    color: #108711;
    padding: 1rem 3rem 0rem 3rem;
    font-size: 17px;
    margin-top: 60px;
}

main ul a {
    text-decoration: none;
    list-style: none;
    text-align: right;
    color: #108711;
}

main li {
    margin-bottom: 15px;
}

main li:hover {
    color: #f5df1b;
}

#textbox {
    margin-left: 50px;
}

.parent h3 {
    color: #108711;
}

.reg::-webkit-scrollbar {
    display: none;
}

.col-md-8 {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hide duplicate header in large screens */
.col-4 #h3 {
    display: none;
}

/* Large screens (≥1200px) */
@media (max-width: 1200px) {
    nav li {
        margin-left: 50px;
    }
}

/* Medium screens (991px and below) */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgb(15, 134, 4);
        padding: 10px 0;
    }

    .cons {
        width: 100%;
    }

    #mainNav {
        height: 14.5vh;
    }

    nav li {
        padding-top: 0px;
    }
}

/* Small screens (≤850px) */
@media (max-width: 850px) {
    main{
        margin-top: 0;
    }
    h3{
        text-align: center;
        font-size: 20px;
    }
    .row ul{
        margin-top: 30px;
        text-align: center;
        font-size: small;
    }
    .col-lg-8 {
        order: 2;
    }
    .col-lg-4 {
        order: 1;
    }
    .col-lg-4 #h3 {
        display: contents;
    }
    #hed3 {
        display: none;
    }
}