/* Body */
body {
    display: block;
    /* min-height: 100dvh; */
    background-image: url('../images/bg/news_bg_001n1.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Header */
header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: var(--col-txt-dark);
    padding: 1rem 5rem;

    .head-logo {
        display: block;
        width: 180px;
        transition: all 300ms linear;

        .head-img {
            width: 100%;
            height: auto;
        }
    }

    .head-logo:hover {
        filter: drop-shadow(5px 5px 10px var(--col-pri));
    }

    .head-links {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 5rem;

        .head-link {
            display: block;
            text-decoration: none;
            font-size: 2rem;
            font-weight: bold;
            letter-spacing: 3px;
            color: var(--col-txt-light);
            transition: all 300ms linear;
        }

        .head-link:hover {
            /* color: var(--col-pri-l1); */
            filter: drop-shadow(5px 5px 10px var(--col-pri));
        }

        .head-button {
            display: block;
            text-decoration: none;
            font-size: 2rem;
            font-weight: bold;
            letter-spacing: 3px;
            color: var(--col-txt-light);
            /* background: linear-gradient(to bottom, var(--col-pri) 50%, var(--col-pri-l1) 100%); */
            border: 2px solid var(--col-txt-light);
            padding: 1rem 2rem;
            border-radius: 5px;
            transition: all 300ms linear;
        }

        .head-button:hover {
            border: 2px solid var(--col-pri);
            background-color: var(--col-pri);
        }
    }
}

/* Nav */
nav {
    .nav-link {
        flex: 0 0 auto;
        text-decoration: none;
        font-size: 2rem;
        font-weight: bold;
        color: var(--col-txt-dark);
        transition: all 300ms linear;
    }

    .nav-link:hover {
        filter: drop-shadow(5px 5px 10px var(--col-pri-l2));
    }
}

.nav-full {
    max-width: 100dvw;
}

.full-width {
    max-width: 100dvw!important;
}

/* Footer */
footer {
    display: block;
    width: 100%;
    z-index: 10;
    background-color: var(--col-pri);
    padding: 1rem;

    .footer-links {
        display: flex;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 3rem;

        .footer-link {
            display: block;
            text-decoration: none;
            font-size: 1.8rem;
            letter-spacing: 3px;
            color: var(--col-txt-light);
        }

        .footer-link:hover {
            color: var(--col-pri-l2);
            filter: drop-shadow(5px 5px 10px var(--col-pri-l2));
        }
    }
}

/* Main */
main {
    display: block;
    min-height: 100dvh;
    padding: 3rem;
}

/* News box */
.news-box {
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: stretch;
    gap: 4rem;
    padding: 4rem 0;

    .news-card {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 300px;
        background-color: var(--col-txt-light);
        border: 1px solid var(--col-pri-l2);
        border-radius: 5px;
        gap: 2rem;
        overflow: hidden;
        justify-content: center;
        align-items: center;
        padding-bottom: 2.5rem;

        .news-pic {
            display: block;
            width: 100%;
            height: auto;
            min-height: 220px;
        }

        .news-title {
            display: block;
            width: 100%;
            font-weight: bold;
            font-size: 2rem;
            padding: 0 2rem;
        }

        .news-content {
            flex: 1 0 auto;
            display: block;
            width: 100%;
            font-size: 1.8rem;
            padding: 0 2rem;
        }

        .news-link {
            display: inline-block;
            text-decoration: none;
            font-size: 2rem;
            font-weight: bold;
            letter-spacing: 3px;
            color: var(--col-txt-dark);
            /* background: linear-gradient(to bottom, var(--col-pri) 50%, var(--col-pri-l1) 100%); */
            border: 2px solid var(--col-txt-dark);
            padding: 1rem 2rem;
            border-radius: 5px;
            transition: all 300ms linear;
            width: fit-content;
        }

        .news-link:hover {
            border: 2px solid var(--col-pri);
            background-color: var(--col-pri);
        }

        .news-pudate {
            display: block;
            width: 100%;
            color: var(--col-txt-dark);
            font-size: 1.8rem;
            padding: 1rem;
        }

        .news-logo {
            display: block;
            position: absolute;
            top: 2rem;
            right: 2rem;
        }
    }
}

@media screen and (min-width: 851px) {
    .head-logo {
        width: 180px;
    }

    .menu-button {
        display: none;
    }

    .head-links {
        display: flex;
    }

    nav {
        display: none;
    }
}

@media screen and (max-width: 850px) and (min-width: 501px) {
    .head-logo {
        width: 180px;
    }

    .menu-button {
        display: block;
    }

    .head-links {
        display: none;
    }

    nav {
        position: absolute;
        top: 90px;
        right: 0;
        max-width: 0;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 4rem;
        z-index: 10;
        margin: 0 4rem;
        overflow: hidden;
        transition: max-width 300ms ease-in-out;
    }

    .nav-full {
        transition: max-width 300ms ease-in-out;
    }
}

@media screen and (max-width: 500px) {
    .head-logo {
        width: 150px;
    }

    .menu-button {
        display: block;
    }

    .head-links {
        display: none;
    }

    nav {
        position: absolute;
        top: 90px;
        right: 0;
        max-width: 0;
        width: 98dvw;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        z-index: 50;
        margin: 0 auto;
        overflow: hidden;
        transition: max-width 300ms ease-in-out;
    }

    .nav-full {
        transition: max-width 300ms ease-in-out;
    }

    .footer-link {
        font-size: 1.6rem!important;
    }
}
