* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;

    font-family: "Inter", "Segoe UI", Arial, sans-serif;

    background: #0f1117;

    color: #e6e6e6;

    line-height: 1.7;
}


/* Header */

header {
    max-width: 900px;

    margin: 50px auto 40px;

    padding: 0 20px;

    text-align: center;
}


.header-content h1 {
    margin: 25px 0 15px;

    color: #ffffff;

    font-size: 3rem;

    letter-spacing: -1px;

    transition: color 0.2s ease;
}


.header-content h1:hover {
    color: #6ea8fe;
}


.header-content a {
    text-decoration: none;
}


.header-content time {
    color: #8b8f99;

    font-size: 0.95rem;
}


/* Back button */

.back-button {
    display: inline-block;

    padding: 10px 18px;

    background: #171a22;

    border: 1px solid #272c38;

    border-radius: 10px;

    color: #e6e6e6;

    text-decoration: none;

    font-weight: 600;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.back-button:hover {
    background: #222735;

    border-color: #3d7cff;

    transform: translateY(-2px);
}


/* Divider */

hr {
    max-width: 1100px;

    height: 1px;

    margin: 30px auto;

    border: none;

    background: #292d38;
}


/* Article */

main {
    padding: 0 20px;
}


.news-detail-card {
    max-width: 900px;

    margin: 40px auto;

    padding: 40px;

    background: #171a22;

    border: 1px solid #272c38;

    border-radius: 18px;

    color: #c8cbd3;

    font-size: 1.1rem;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;

    opacity: 0;

    transform: translateY(40px) scale(0.98);
}


.news-detail-card:hover {
    transform: translateY(-6px);

    border-color: #3d7cff;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.35);
}


.news-detail-card.show {
    opacity: 1;

    transform: translateY(0) scale(1);
}


.news-detail-card p {
    white-space: pre-line;

    color: #c8cbd3;
}


/* Footer */

footer {
    text-align: center;

    color: #8b8f99;

    padding: 30px 20px;
}


/* Mobile */

@media (max-width: 600px) {

    .header-content h1 {
        font-size: 2.2rem;
    }


    .news-detail-card {
        margin: 25px auto;

        padding: 25px;

        font-size: 1rem;
    }

}