* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fa;
    color: #1f2937;
}

.container {
    width: min(1100px, 92%);
    margin: auto;
}

header {
    background: #111827;
    color: white;
    padding: 18px 0;
}

header h1 {
    margin: 0 0 12px;
    font-size: 26px;
}

nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

nav a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    color: white;
}

.hero {
    margin: 30px 0;
    padding: 45px;
    border-radius: 14px;
    background: white;
    border: 1px solid #e5e7eb;
}

.label,
.category {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.label {
    color: #2563eb;
}

.hero h2 {
    font-size: 38px;
    max-width: 700px;
    margin: 12px 0;
}

.hero p {
    color: #6b7280;
    font-size: 17px;
}

.section-title {
    margin-bottom: 18px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.thumbnail {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #6b7280;
    font-weight: bold;
}

.news-content {
    padding: 18px;
}

.category {
    color: #2563eb;
}

.news-content h3 {
    margin: 8px 0;
}

.news-content p {
    color: #6b7280;
    line-height: 1.5;
}

footer {
    margin-top: 50px;
    padding: 25px 0;
    background: #111827;
    color: #9ca3af;
    font-size: 13px;
}

@media (max-width: 700px) {

    .hero {
        padding: 28px;
    }

    .hero h2 {
        font-size: 28px;
    }

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

}

.news-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.thumbnail-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.news-content h3 a {
    color: #1f2937;
    text-decoration: none;
}

.news-content h3 a:hover {
    color: #2563eb;
}

.source {
    margin-top: 8px;
    color: #9ca3af;
    font-size: 12px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #2563eb;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-header .section-title {
    margin: 0;
}

.category-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-filter a {
    padding: 7px 12px;
    border-radius: 20px;
    background: white;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    text-decoration: none;
    font-size: 13px;
}

.category-filter a:hover,
.category-filter a.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 35px 0;
}

.pagination a {
    padding: 9px 15px;
    border-radius: 8px;
    background: #111827;
    color: white;
    text-decoration: none;
    font-size: 13px;
}

.pagination a:hover {
    background: #2563eb;
}

.pagination span {
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 700px) {

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .pagination {
        gap: 10px;
    }

}

.search-box {
    margin-bottom: 25px;
}

.search-box form {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 13px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    background: white;
}

.search-box input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-box button {
    padding: 13px 22px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.search-box button:hover {
    background: #1d4ed8;
}

@media (max-width: 700px) {
    .search-box form {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
    }
}

.detail-page {
    max-width: 850px;
    margin: 35px auto 60px;
    padding: 35px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

.detail-category {
    color: #2563eb;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.detail-title {
    margin: 10px 0 15px;
    font-size: 38px;
    line-height: 1.2;
    color: #111827;
}

.detail-meta {
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 25px;
}

.detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    margin-bottom: 25px;
}

.detail-summary {
    font-size: 18px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 30px;
}

.detail-source-box {
    margin-top: 30px;
    padding: 25px;
    border-radius: 12px;
    background: #f5f7fa;
    border: 1px solid #e5e7eb;
}

.detail-source-box p {
    margin-top: 0;
    color: #6b7280;
}

.source-button {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 9px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.source-button:hover {
    background: #1d4ed8;
}

@media (max-width: 700px) {
    .detail-page {
        margin: 20px 0 40px;
        padding: 22px;
    }

    .detail-title {
        font-size: 28px;
    }

    .detail-summary {
        font-size: 16px;
    }

    .detail-image {
        max-height: 350px;
    }
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.source-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    background: #222;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.card-date {
    color: #777;
    font-size: 0.8rem;
}
