/* ===== General ===== */
body {
    font-family: 'Lato', sans-serif;
    background-color: #f9f9f9;
    color: #222;
}

/* ===== Layout ===== */
.article-detail-layout {
    display: flex;
    gap: 2rem;
    padding: 2rem 5%;
    flex-wrap: wrap;
}

/* Main Article */
.article-detail {
    flex: 1 1 65%;
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.article-detail-meta {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.meta-sep {
    margin: 0 0.5rem;
}

.article-detail-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    margin: 1rem 0;
}

.article-detail-image img {
    width: 100%;
    border-radius: 10px;
    margin: 1rem 0;
}

.article-detail-icon {
    text-align: center;
    margin: 1rem 0;
    color: #ff6f61;
}

.article-detail-body {
    font-size: 1rem;
    line-height: 1.6;
    margin: 1rem 0;
    color: #1f2937;
}

.article-detail-body p {
    margin-bottom: 1rem;
}

.article-detail-body p:last-child {
    margin-bottom: 0;
}

.article-ads {
    margin: 1.5rem 0;
}

.inline-ad-block {
    margin: 1rem 0 1.2rem;
}

.inline-ad-block .ad-card {
    max-width: 520px;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.ad-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.ad-card img {
    width: 100%;
    display: block;
}

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

.ad-fallback {
    padding: 22px;
    text-align: center;
    font-weight: 700;
    color: #111827;
}

.article-video-block {
    margin: 1.5rem 0;
    background: #f7f7f5;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
}

.video-label {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.video-frame {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    background: #000;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.article-detail-actions {
    margin-top: 1.5rem;
}

.pill-link {
    display: inline-block;
    margin-right: 1rem;
    background-color: #ff6f61;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.pill-link:hover {
    background-color: #e65b4d;
}

/* Sidebar */
.article-aside {
    flex: 1 1 30%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.aside-card {
    background-color: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.aside-label {
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.5rem;
}

.aside-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aside-list li {
    margin-bottom: 0.75rem;
}

.aside-list a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
}

.aside-list a:hover {
    color: #ff6f61;
}

.aside-date {
    font-size: 0.8rem;
    color: #888;
}

/* Facebook comments */
.comments-block {
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .article-detail-layout {
        flex-direction: column;
    }

    .article-detail, .article-aside {
        flex: 1 1 100%;
    }
}
