*,
*:before,
*:after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: UniversBold, sans-serif;
    background-image: url(../assets/images/background.jpg);
    background-size: cover;
    background-position: center center;
    /* -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(9px); */
}

.container {
    /* max-width: 80rem; */
    margin-inline: auto;
    /* padding-inline: 1rem; */
}

@font-face {
    font-family: UniversBold;
    src: url(./../assets/fonts/UniversBold.ttf);
}

@font-face {
    font-family: UniversRegular;
    src: url(./../assets/fonts/UniversRegular.ttf);
}

.d-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    /* Define two rows and let their height be determined by content */
    grid-template-rows: 26rem;
    /* This is crucial for absolute positioning of children */
    position: relative;
}

#nav-toggle {
    background: none;
    border: none;
    margin-left: 8rem;
}

#primary-nav {
    display: none;
}

.article-1 {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-indent: 2rem;
    line-height: 1.4rem;
    font-size: 12px;
    background-color: #AEAEAF;
    position: absolute;
    top: 0;
    left: 0;
    width: 25%;
    /* Adjust width to your liking */
    z-index: 10;


    p {
        margin-top: 4rem;
    }
}

.profileicon {
    width: 1.8625rem;
    height: 1.825rem;
    cursor: pointer;
}

#open-icon {

    background: none;
    border: none;
    padding: 2rem;
    position: absolute;
    z-index: 14;
}

.profilephoto {
    display: block;
    width: 7.5rem;
    height: 9.125rem;
    margin: 6rem auto 0 auto;
    border: #fff 2px solid;
    border-radius: 20px;
}

.instagramicon {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 1rem;
    margin-right: 2rem;
    margin-left: 6rem;
}


.article-2 {
    padding: 2rem;
    display: flex;
    justify-content: center;

    /* Move article-2 to the first row of the grid */
    grid-column: 1 / span 8;
    grid-row: 1;
}

.hero-box {
    position: relative;
    width: 35.625rem;
    height: 18.75rem;
    background-color: #000;
    border-radius: 80px;
    z-index: 2;
    box-shadow: 10px 5px 25px black;

}

#bg-video {
    position: absolute;
    width: 35.625rem;
    height: auto;
    border-radius: 80px;
    overflow: hidden;
    z-index: 3;
}

.dark-cover {
    position: absolute;
    width: 35.625rem;
    height: 20.05rem;
    background-color: #000;
    border-radius: 80px;
    opacity: 60%;
    z-index: 4;
}

.logo {

    position: absolute;
    width: 19.3125rem;
    height: 4.275rem;
    top: 4rem;
    left: 2rem;
    z-index: 5;
}

.slogan {
    position: absolute;
    color: #fff;
    top: 5.5rem;
    left: 13rem;
    z-index: 6;
    font-family: UniversRegular;
    font-size: 14px;
}

.explore-button {
    align-self: center;
    position: absolute;
    top: 11rem;
    left: 8rem;
    z-index: 7;
    background-color: #fff;
    color: #000;
    font-family: UniversRegular;
    font-size: 14px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}


.explore-button:hover {
    background-color: #AEAEAF;
    color: #fff;
}

.tsign {
    position: absolute;
    width: 1.125rem;
    height: 2.96875rem;
    top: 11rem;
    left: 26rem;
    z-index: 7;
}

.pathway {
    position: absolute;
    width: 10.46875rem;
    height: 7rem;
    top: 13.1rem;
    left: 21rem;
    z-index: 7;
    opacity: 80%;
}


.article-3 {
    /* Move article-3 to the second row of the grid */
    grid-column: 1 / span 8;
    grid-row: 2;
}

.swiper-button-prev {
    margin-left: 2rem;
}

.swiper-slide img {
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.footertext {
    /* text-align: center; */
    font-family: UniversRegular;
    font-size: 0.5rem;
    text-indent: 0;
}

@media (max-width: 1024px) {
    .hero-box {
        width: 28rem;
        height: 15rem;
    }

    #bg-video {
        width: 28rem;
    }

    .dark-cover {
        width: 28rem;
        height: 15.75rem;
    }

    .logo {
        width: 15rem;
        height: 3.3rem;
        top: 3rem;
        left: 2rem;
    }

    .slogan {
        top: 4rem;
        left: 10.5rem;
        font-size: 12px;
    }

    .tsign {
        width: 0.9rem;
        height: 2.375rem;
        top: 8.3rem;
        left: 21rem;
    }

    .pathway {
        width: 8.5rem;
        height: 5.5rem;
        top: 10.25rem;
        left: 17rem;
    }

    .article-1 {
        width: 26%;
    }

    .swiper-slide img {
        width: 160%;
        /* height: 100%; */
    }
}

@media (max-width: 768px) {

    .hero-box {
        width: 28rem;
        height: 15rem;
    }

    #bg-video {
        width: 28rem;
    }

    .dark-cover {
        width: 28rem;
        height: 15.75rem;
    }

    .logo {
        width: 15rem;
        height: 3.3rem;
        top: 3rem;
        left: 2rem;
    }

    .slogan {
        top: 4rem;
        left: 10.5rem;
        font-size: 12px;
    }

    .tsign {
        width: 0.9rem;
        height: 2.375rem;
        top: 8.3rem;
        left: 21rem;
    }

    .pathway {
        width: 8.5rem;
        height: 5.5rem;
        top: 10.25rem;
        left: 17rem;
    }

    .article-1 {
        width: 50%;
    }

    .swiper-slide img {
        width: 160%;
        /* height: 100%; */
    }

}

@media (max-width: 576px) {
    .hero-box {
        width: 18rem;
        height: 9.5rem;
        border-radius: 40px;
    }

    #bg-video {
        width: 18rem;
        border-radius: 40px;
    }

    .dark-cover {
        width: 18rem;
        height: 10.12rem;
        border-radius: 40px;
    }

    .logo {
        width: 9rem;
        height: 2rem;
        top: 2.2rem;
        left: 1.5rem;
    }

    .slogan {
        top: 2.8rem;
        left: 6.5rem;
        font-size: 8px;
    }

    .tsign {
        width: 0.5rem;
        height: 1.3rem;
        top: 5.5rem;
        left: 12.5rem;
    }

    .pathway {
        width: 5rem;
        height: 3.5rem;
        top: 6.62rem;
        left: 10rem;
    }

    .article-1 {
        width: 60%;
    }

    .article-2 {
        padding-top: 6rem;
    }


    .swiper-slide img {
        width: 160%;
        /* height: 100%; */
    }

    .d-grid {

        grid-template-rows: 20rem;

    }
}