
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f1f4f8;
    color: #172033;
    font-family: system-ui, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

header {
    background: #101c32;
    color: white;
    padding: 24px 16px;
    text-align: center;
}

.logo {
    font-size: clamp(26px, 6vw, 40px);
    font-weight: 900;
    letter-spacing: -1px;
}

.logo b {
    color: #ff5147;
}

header small {
    display: block;
    color: #d5ddeb;
    font-size: 14px;
}

nav {
    background: #192b49;
    padding: 14px;
    display: flex;
    gap: 24px;
    overflow-x: auto;
    white-space: nowrap;
    color: white;
    justify-content: center;
}

nav a:hover {
    color: #ff6659;
}

.breaking {
    background: white;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    overflow: hidden;
}

.breaking strong {
    background: #d71920;
    color: white;
    padding: 12px;
    white-space: nowrap;
}

.breaking span {
    padding: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

main {
    max-width: 1200px;
    margin: auto;
    padding: 24px 16px;
    min-height: 65vh;
}

.section-title {
    border-left: 5px solid #d71920;
    padding-left: 12px;
    font-size: 27px;
    margin-bottom: 24px;
}

.grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px #0000000d;
    border: 1px solid #e4e8ef;
    transition: transform .2s;
}

.card:hover {
    transform: translateY(-3px);
}

.cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(
        135deg, #101c32, #304d78
    );
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: 900;
    text-align: center;
    padding: 20px;
}

.cover b {
    color: #ff6659;
}

.news-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #101c32;
}

.image-credit {
    padding: 7px 12px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.image-credit a {
    color: #174e90;
    text-decoration: underline;
}

.card-body {
    padding: 20px;
}

.tag {
    display: inline-block;
    background: #fff0ef;
    color: #c71920;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 5px;
}

.card h2 {
    font-size: 21px;
    line-height: 1.5;
    margin: 12px 0;
}

.card h2 a:hover {
    color: #d71920;
}

.card p {
    color: #536174;
    font-size: 15px;
}

.date {
    color: #64748b;
    font-size: 13px;
}

.read-more {
    display: inline-block;
    color: #d71920;
    font-weight: 700;
    margin-top: 12px;
}

article {
    max-width: 850px;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 4px 18px #0000000d;
}

article h1 {
    font-size: clamp(25px, 5vw, 38px);
    line-height: 1.4;
}

article p {
    font-size: 18px;
    line-height: 1.9;
}

article a {
    color: #174e90;
    overflow-wrap: anywhere;
}

article img {
    width: 100%;
    border-radius: 10px;
}

article .news-image {
    margin-top: 18px;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    background: transparent;
}

article .cover {
    margin-top: 18px;
    border-radius: 10px;
}

.notice {
    background: #edf4ff;
    border-left: 4px solid #285ca8;
    padding: 14px;
    margin: 20px 0;
    font-size: 14px;
}

footer {
    background: #101c32;
    color: #d5ddeb;
    padding: 30px 16px;
    text-align: center;
}

footer a {
    display: inline-block;
    margin: 6px 10px;
    color: white;
}

@media(max-width: 600px) {

    nav {
        justify-content: flex-start;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    article {
        padding: 20px;
    }

    main {
        padding: 18px 12px;
    }

    .card h2 {
        font-size: 20px;
    }
}
