@font-face {
    font-family: 'Friz Quadrata';
    src: url(/fonts/friz-quadrata/friz-quadrata-regular-os-5870333951e7c.ttf) format('truetype');
}  

@font-face {
    font-family: 'Saira';
    src: url(/fonts/Saira/Saira-VariableFont_wdth\,wght.ttf) format('truetype');
}  

@font-face {
    font-family: 'ZillaSlab Bold';
    src: url(/fonts/Zilla_Slab/ZillaSlab-Bold.ttf) format('truetype');
}  

@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

::-webkit-scrollbar {
    display: none;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    background-color: #03090d;
    color: #fff;
    font-family: 'Friz Quadrata';
    line-height: 1.4;
}

#recent {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.recent-background {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px);
}

.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

#recent .news-card {
    width: 80%;
    height: 80%;
}

.news-card::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    border: 1px solid #fff;
    clip-path: polygon(0 0, calc(100% - 100px) 0, 100% 100px, 100% 100%, 100px 100%, 0 calc(100% - 100px));
}

.news-image-wrapper {
    width: calc(100% + 30px);
    height: calc(100% + 30px);
    position: absolute;
    z-index: -1;
    top: -15px;
    right: -15px;
    bottom: -15px;
    left: -15px;
    margin: auto;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caption {
    font-size: 2rem;
    color: #c89b3c;
    background-color: #0a323cbe;
    padding: 2rem;
    text-align: center;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px))
}

.read-button {
    position: relative;
    z-index: 0;
    text-decoration: none;
    display: block;
    padding: 1rem 2rem;
    background-color: #c8aa6ea8;
    border: 2px solid #c89b3c;
    font-size: 1.5rem;
    text-align: center;
    color: #fff;
    transition: all 0.3s ease-in-out;
}

.read-button:hover {
    cursor: pointer;
    background-color: #ffffffa8;
    border: 2px solid #fff;
    color: #005a82;
}

#all-news {
    margin: 4rem 0;
    padding: 0 4rem;
}

.news-card-wrapper {
    width: 33.33%;
    padding: 5%;
}

#all-news .news-card {
    aspect-ratio: 3 / 4;
}

#all-news .news-card::before {
    z-index: -1;
    clip-path: polygon(0 0, calc(100% - 50px) 0, 100% 50px, 100% 100%, 50px 100%, 0 calc(100% - 50px));
    border: 2px solid #005a82;
    background-color: #ffffff21;
    transition: all 0.3s ease-in-out;
}

#all-news .news-card:hover::before {
    clip-path: polygon(0 0, 100% 0, 100% 0, 100% 100%, 0 100%, 0 100%);
    border-color: #0397ab;
}

.card-content-wrapper {
    display: contents;
}

#all-news .news-image-wrapper {
    width: 100%;
    height: fit-content;
    position: relative;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

#all-news .news-image-wrapper div {
    aspect-ratio: 4 / 3;
}

#all-news .caption {
    font-size: 1rem;
    color: #fff;
    background-color: unset;
    padding: 0;
    text-align: center;
    clip-path: unset
}

#all-news .read-button {
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
}

#all-news .read-button:hover {
    cursor: pointer;
    background-color: #ffffffa8;
    border: 2px solid #fff;
    color: #005a82;
}

h2 {
    font-size: 3rem;
    text-align: center;
    position: relative;
    width: fit-content;
    margin: 4rem auto;
    transition: all 0.8s ease-in-out;
}

h2::before {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #fff;
    transition: all 0.8s ease-in-out;
}

#all-news:hover h2::before {
    width: 100%;
}

#all-news:hover h2 {
    color: #c89b3c;
}

#news-wrapper {
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 1200px) {
    .news-card-wrapper {
        width: 50%;
    }
}

@media (max-width: 800px) {
    #all-news {
        padding: 0;
    }

    #all-news .news-card {
        aspect-ratio: unset;
    }

    .news-card-wrapper {
        width: 100%;
    }

    #all-news .news-image-wrapper {
        height: 100%;
        width: fit-content;
    }

    .card-content-wrapper {
        display: flex;
        flex-direction: column;
    }

    #all-news .news-card {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        gap: 2rem;
    }
}

@media (max-width: 700px) {
    html {
        font-size: 14px;
    }
    
    .caption {
        font-size: 1rem;
    }

    .read-button {
        font-size: 1rem;
    }

    #all-news .read-button {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}