/* =============================================================
   WEB ENGINE OS — Master Stylesheet
   Author:  Palash Jain
   (c) 2026 Palash Jain. All Rights Reserved.
   ============================================================= */

/* ── Typography ───────────────────────────────────────── */

h1, h2, h3, h4 {
    font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.85;
    color: #1a1a1a;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #111;
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #222;
}

.article-body blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: #4b5563;
    font-style: italic;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body a {
    color: var(--tw-primary, #1a56db);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body a:hover {
    color: #111;
}

/* ── Cards ────────────────────────────────────────────── */

.article-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.article-card img {
    transition: transform 0.3s ease;
}

.article-card:hover img {
    transform: scale(1.03);
}

/* ── Section Tag ──────────────────────────────────────── */

.section-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 2px;
}

/* ── Breaking News Ticker ─────────────────────────────── */

.ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    animation: ticker-scroll 30s linear infinite;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-content:hover {
    animation-play-state: paused;
}

/* ── Ad Slots ─────────────────────────────────────────── */

.ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-leaderboard {
    width: 100%;
    max-width: 728px;
    height: 90px;
}

.ad-rectangle {
    width: 300px;
    height: 250px;
}

.ad-sidebar {
    width: 300px;
    height: 600px;
}

@media (max-width: 768px) {
    .ad-leaderboard {
        max-width: 320px;
        height: 50px;
    }

    .ad-sidebar {
        height: 250px;
    }
}

/* ── Breadcrumb ───────────────────────────────────────── */

.breadcrumb a {
    transition: color 0.15s ease;
}

/* ── Cookie Consent ───────────────────────────────────── */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

/* ── Share Buttons ────────────────────────────────────── */

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: opacity 0.15s ease;
}

.share-btn:hover {
    opacity: 0.8;
}

/* ── Pagination ───────────────────────────────────────── */

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

/* ── Utilities ────────────────────────────────────────── */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    header, footer, nav, .ad-slot, .share-btn, .cookie-banner {
        display: none !important;
    }

    .article-body {
        font-size: 12pt;
        line-height: 1.6;
    }
}
