/* assets/css/style.css */
:root {
    --primary-color: #0d6efd;
    --text-color: #212529;
    --bg-color: #f8f9fa;
    --card-bg: #fff;
    --border-radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Ad Areas */
.ad-area {
    margin: 1rem 0;
    text-align: center;
    overflow: hidden;
}
.ad-area img {
    max-width: 100%;
    height: auto;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}
@media (min-width: 768px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .news-grid { grid-template-columns: repeat(3, 1fr); }
}

/* News Card */
.news-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #eee;
}
.news-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    /* Limit lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
}

/* Detail Page */
.article-container {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.article-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.article-meta {
    margin-bottom: 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}
.article-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}
.source-btn-container {
    margin-top: 2rem;
    text-align: center;
}
.btn-source {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.2s;
}
.btn-source:hover {
    background-color: #0b5ed7;
}

/* Footer */
.site-footer {
    background: #343a40;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}
