@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&family=Tilt+Warp&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --text-color-1: #000042;
    --text-color-2: #495871;
    --text-color-3: #1976D2;

    --container-bg-color: #D1E4F6;
    --title-line: #23308A;
    
    --padding: clamp(16px, calc(2.667px + 2.778vw), 24px);
}

body{
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    height: 100dvh;
}

header{
    width: 100%;
    height: 72px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;
    background: linear-gradient(to left, #172061, #090D24);
}

header nav{
    width: 100%;
    height: 100%;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    & .logo-container{
        height: 100%;
        position: relative;
        text-decoration: none;
    }
    & .logo-container img{
        position: absolute;
        left: 0;
        top: 14px;
    }

    & .logo-container .logo-title{
        height: 100%;
        margin-left: 79px;
        display: flex;
        align-items: center;
    }
    & .logo-container .logo-title p{
        font-size: clamp(16px, calc(9.333px + 1.389vw), 20px);
        font-weight: 700;
        color: white;
    }

    & .nav-links-container{
        display: none;
        gap: 16px;
        align-items: center;
    }

    & .nav-links-container .nav-link{
        text-decoration: none;
        color: white;
        transition: 0.1s ease-out;
    }
    & .nav-links-container .nav-link:hover{
        color:#1976D2;
    }
}

header nav .sidebar-btn{
    border-radius: 7px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;

    & svg{
        color: white;
    }
}
header nav .sidebar-btn:active{
    background-color: rgb(240, 240, 240);
}

#sidebar{
    inset-inline-start: unset;
    inset-inline-end: unset;
    border: transparent;
    margin: 0;
    max-height: 100dvh;
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: 70%;
    transform: translateX(100%);
    transition: transform 500ms ease-out,
                display 500ms allow-discrete,
                overlay 500ms allow-discrete;
}

#sidebar[open]{
    transform: translateX(0);

    @starting-style{
        transform: translateX(100%);
    }
}
#sidebar::backdrop{
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 500ms ease-out,
                display 500ms ease-out,
                overlay 500ms ease-out;
}

#sidebar[open]::backdrop{
    opacity: 1;

    @starting-style{
        opacity: 0;
    }
}

#sidebar .sidebar-container{
    height: 100%;
    width: 100%;
    padding: 16px;
}
#sidebar .sidebar-container .sidebar-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid #E6E6E6;
    margin-bottom: 20px;

    & p{
        font-size: 16px;
        font-weight: 700;
        color: var(--text-color-1);
    }

    & button{
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 7px;
        background-color: var(--container-bg-color);
        border: none;
    }
    & button svg{
        color: #000042;
    }
}

#sidebar .sidebar-container .sidebar-content{
    display: flex;
    flex-direction: column;

    & .sidebar-links{
        text-decoration: none;
        color: var(--text-color-1);
        font-size: 20px;
        padding: 16px 0;
    }
}
#sidebar .sidebar-container .sidebar-content a:not(:last-child){
    border-bottom: 1px solid #E6E6E6;
}

main{
    margin-top: 72px;
    width: 100%;
}

main #hero{
    width: 100%;
    height: 250px;
    anchor-name: --video-container;
}
main #hero .video-container{
    width: 100%;
    height: 100%;
    position: relative;
}

main #hero .video-container::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, #23318a9c, transparent);
    pointer-events: none;

}

main #hero .video-container video{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
main #hero h1{
    position: absolute;
    position-anchor: --video-container;
    left: calc(anchor(left) + 16px);
    bottom: calc(anchor(bottom) + 10px);
    font-size: clamp(20px, calc(0px + 4.167vw), 32px);
    color: white;
    font-weight: 600;
    pointer-events: none;
}

main #news{
    background-color: #F8F9FB;
    padding: 40px var(--padding);
}
main #news .news-title-container{
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;

    & h2{
        color: var(--text-color-1);
        font-size: clamp(20px, calc(0px + 4.167vw), 32px);
        font-weight: 600;
        position: relative;
        width: fit-content;
    }

    & h2::after{
        position: absolute;
        content: "";
        left: 0;
        bottom: -4px;
        background-color: var(--title-line);
        width: 100%;
        height: 2px;
        border-radius: 40px;
    }

    & p{
        font-size: clamp(14px, calc(10.667px + 0.694vw), 16px);
        color: var(--text-color-2);
        font-weight: 300;
    }
}
main #news .news-card-container{
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    margin-bottom: 40px;
}
main #news .news-card-container .news-card{
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    box-shadow: 0 0 8px 0 #23318a60;
    text-decoration: none;
    transition: 0.2s ease-out;

    & .card-image{
        width: 100%;
        height: 350px;
        overflow: hidden;
    }

    & .card-image img{
        max-width: 100%;
        height: auto;
    }

    & .card-content{
        padding: 0 16px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    & .card-content .card-info{
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding-bottom: 20px;
        border-bottom:1px solid #E6E6E6;
        flex-grow: 1;
    }

    & .card-content .card-info h3{
        font-size: 20px;
        font-weight: 500;
        color: var(--text-color-1);
        min-height: 60px;
    }

    & .card-content .card-info p{
        color: var(--text-color-2);
        font-size: 14px;
    }

    & .card-content .card-link{
        padding: 16px 0;
    }
    & .card-content .card-link p{
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--text-color-3);
    }
}
main #news .news-card-container .news-card:hover{
    scale: 1.01;
}

main #news .more-news{
    text-decoration: none;
    background: white;
    border: 1px solid var(--text-color-3);
    border-radius: 50px;
    color: var(--text-color-3);
    padding: 16px 32px;
    font-weight: 400;
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
    transition: 0.2s ease-out;
    font-size: 20px;
}

main #news .more-news:hover{
    color: white;
    background-color: var(--text-color-3);
}

main #gallery{
    padding: 32px var(--padding) 56px var(--padding);
    border-bottom: 1px solid #E6E6E6;
}

main #gallery .gallery-title-container{
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;

    & h2{
        color: var(--text-color-1);
        font-size: clamp(20px, calc(0px + 4.167vw), 32px);
        font-weight: 600;
        position: relative;
        width: fit-content;
    }

    & h2::after{
        position: absolute;
        content: "";
        left: 0;
        bottom: -4px;
        background-color: var(--title-line);
        width: 100%;
        height: 2px;
        border-radius: 40px;
    }

    & p{
        font-size: clamp(14px, calc(10.667px + 0.694vw), 16px);
        color: var(--text-color-2);
        font-weight: 300;
    }
}
main #gallery .photo-gallery{
    width: 100%;
}

main #gallery .photo-gallery {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr ;
    grid-template-rows: repeat(8, 1fr);
    gap: 24px 24px;
    grid-auto-flow: row;
    grid-template-areas:
    "image-1 image-1"
    "image-1 image-1"
    "image-2 image-3 "
    "image-4 image-5"
    "image-6 image-7"
    "image-8 image-9"
    "image-10 image-10"
    "image-10 image-10";
}

.image-1 { grid-area: image-1; }

.image-2 { grid-area: image-2; }

.image-3 { grid-area: image-3; }

.image-4 { grid-area: image-4; }

.image-5 { grid-area: image-5; }

.image-6 { grid-area: image-6; }

.image-7 { grid-area: image-7; }

.image-8 { grid-area: image-8; }

.image-9 { grid-area: image-9; }

.image-10 { grid-area: image-10; }

main #gallery .photo-gallery .photo{
    border-radius: 7px;
    overflow: hidden;
    height: 100%;
    height: 100%;

    & img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

main #gallery .more-photo{
    text-decoration: none;
    background: white;
    border: 1px solid var(--text-color-3);
    border-radius: 50px;
    color: var(--text-color-3);
    padding: 16px 32px;
    font-weight: 400;
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
    transition: 0.2s ease-out;
    font-size: 20px;
}

main #gallery .more-photo:hover{
    color: white;
    background-color: var(--text-color-3);
}

main #partners{
    padding: 40px var(--padding) 64px var(--padding);

    & h4{
        text-align: center;
        font-size: 16px;
        color: var(--text-color-2);
        text-transform: capitalize;
        font-weight: 600;
        margin-bottom: 16px;
    }

    & h3{
        text-align: center;
        font-size: clamp(20px, calc(13.333px + 1.389vw), 24px);
        color: var(--text-color-1);
        font-weight: 700;
        margin-bottom: 24px;
    }

    & img{
        display: block;
        margin: auto;
    }
}

footer{
    background: linear-gradient(to left, #172061, #090D24);
    padding: 40px var(--padding) 24px var(--padding);
    color: white;
}

footer .footer-info{
    border-bottom: 1px solid #1976D2;
    padding-bottom: 40px;
}

footer .footer-info .footer-logo{
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-bottom: 56px;
}
footer .footer-info .footer-logo .footer-logo-title{

    & h5{
        font-size: clamp(20px, calc(26.667px + -1.389vw), 16px);
    }

    & p{
        font-size: clamp(16px, calc(22.667px + -1.389vw), 12px);
    }
}

footer .footer-info .footer-slogan{
    display: flex;
    align-items: center;
    justify-content: center;
    
    & h2{
        font-style: italic;
        font-weight: 200;
        text-align: center;
        font-size: 32px;
    }

}

footer .footer-info .footer-contact{
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 56px;

    & p{
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: center;
    }
}

footer .footer-rights{
    display: flex;
    flex-direction: column;
}

footer .footer-rights .footer-socials{
    padding: 24px var(--padding);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    & a .social-container{
        border: 1px solid white;
        border-radius: 60px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    & a .social-container:hover{
        background-color: rgba(255, 255, 255, 0.1);
    }
}

footer .footer-rights .rights p{
    font-size: 16px;
    text-align: center;
}



@media screen and (width > 480px) {
    #sidebar{
        width: 50%;
    }

    main #hero{
        width: 100%;
        height: 400px;
        anchor-name: --video-container;
    }
}

@media screen and (width > 750px) {

    main #hero{
        width: 100%;
        height: 400px;
        anchor-name: --video-container;
    }

    header nav .nav-links-container{
        display: flex;
    }

    header nav .sidebar-btn{
        display: none;
    }

    main #gallery .photo-gallery{
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr 1fr;
        grid-template-areas:
        "image-1 image-1 image-2 image-3"
        "image-1 image-1 image-4 image-5"
        "image-6 image-7 image-10 image-10"
        "image-8 image-9 image-10 image-10";
    }

    footer .footer-info{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    footer .footer-info .footer-contact p{
        justify-content: flex-start;
    }

    footer .footer-info .footer-slogan{
        justify-content: flex-start;
    }

    footer .footer-info .footer-slogan h2{
        width: 60%;
    }

    footer .footer-rights{
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
    }
}

@media screen and (width > 1024px){
    header nav{
        width: 1024px;
        margin: auto;
    }

    main #hero, 
    main #news,
    main #gallery, 
    main #partners{
        width: 1200px;
        margin: auto;
    }

    footer .footer-info, footer .footer-rights{
        width: 1200px;
        margin: auto;
    }

    footer .footer-info{
        flex-wrap: nowrap;
        align-items: center;
        padding-bottom: 16px;
    }

    footer .footer-info .footer-logo{
        order: 1;
        margin: 0;
    }
    footer .footer-info .footer-contact{
        margin: 0;
        order: 3;
    }
    footer .footer-info .footer-slogan{
        order: 2;
        justify-content: center;
    }
}