/* ============================================
   PULSE THEME — Minimalist News Portal
   Color Palette: Slate + Teal accent
   ============================================ */

:root {
    --color-bg: #f8fafb;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8;
    --color-accent: #0d9488;
    --color-accent-hover: #0f766e;
    --color-accent-light: #ccfbf1;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    --color-overlay: rgba(15, 23, 42, 0.6);
    --color-danger: #ef4444;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
    --transition: 0.2s ease;
    --container-max: 1240px;
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }

img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}


/* HEADER */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 20px;
}

.header-logo img {
    height: 40px;
    width: auto;
    max-width: 241px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
}
.header-nav::-webkit-scrollbar { display: none; }

.header-nav a {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: all var(--transition);
}
.header-nav a:hover,
.header-nav a.active {
    color: var(--color-accent);
    background: var(--color-accent-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* INLINE SEARCH */
.search-trigger {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-text-secondary);
    transition: all var(--transition);
}
.search-trigger:hover {
    background: var(--color-border-light);
    color: var(--color-accent);
}

.search-inline {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 0.3s ease, opacity 0.3s ease;
}
.search-inline.is-open {
    width: 280px;
    opacity: 1;
}
.search-inline form {
    display: flex;
    align-items: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 0 12px;
    height: 36px;
}
.search-inline input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--color-text);
    outline: none;
    padding: 0 8px;
}
.search-inline input::placeholder { color: var(--color-text-muted); }
.search-inline button {
    color: var(--color-text-muted);
    font-size: 14px;
    padding: 4px;
}
.search-inline button:hover { color: var(--color-accent); }

/* MOBILE MENU */
.mobile-toggle {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-text);
}

@media (max-width: 900px) {
    .header-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 20px;
        gap: 2px;
        display: none;
        box-shadow: var(--shadow-lg);
    }
    .header-nav.is-open { display: flex; }
    .header-nav a { padding: 10px 12px; font-size: 14px; }
    .mobile-toggle { display: flex; }
    .search-inline.is-open { width: 200px; }
}

@media (max-width: 600px) {
    .search-inline.is-open { 
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        width: 100%;
        padding: 12px 20px;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        border-radius: 0;
        transform: none;
    }
    .search-inline form { border-radius: var(--radius-sm); height: 40px; }
}


/* PAGE LAYOUT */
.page-section {
    padding: 32px 0;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: calc(100% - 332px) 300px;
    gap: 32px;
    align-items: start;
}
.layout-with-sidebar > *:first-child {
    min-width: 0;
    overflow: hidden;
    word-break: break-word;
}
.layout-with-sidebar > *:last-child {
    min-width: 0;
}

@media (max-width: 1024px) {
    .layout-with-sidebar {
        grid-template-columns: 1fr;
    }
}

/* SIDEBAR */
.sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-widget {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-widget-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-accent);
}

/* CALENDAR WIDGET */
.calendar-widget { user-select: none; }

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.calendar-header span {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}
.calendar-header button {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-text-secondary);
    transition: all var(--transition);
    font-size: 12px;
}
.calendar-header button:hover {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}
.calendar-grid .day-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 6px 0;
}
.calendar-grid .day-cell {
    font-size: 12px;
    padding: 6px 0;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    cursor: default;
    transition: all var(--transition);
}
.calendar-grid .day-cell.has-news {
    color: var(--color-accent);
    font-weight: 600;
    cursor: pointer;
}
.calendar-grid .day-cell.has-news:hover {
    background: var(--color-accent);
    color: #fff;
}
.calendar-grid .day-cell.today {
    background: var(--color-accent-light);
    font-weight: 700;
    color: var(--color-accent);
}
.calendar-grid .day-cell.other-month {
    color: var(--color-text-muted);
    opacity: 0.4;
}

/* SIDEBAR LATEST NEWS */
.sidebar-news-list { display: flex; flex-direction: column; gap: 12px; }

.sidebar-news-item {
    display: flex;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-light);
}
.sidebar-news-item:last-child { border-bottom: none; padding-bottom: 0; }

.sidebar-news-item .thumb {
    width: 60px;
    height: 45px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-border-light);
}
.sidebar-news-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-news-item .info h4 {
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-news-item .info h4:hover { color: var(--color-accent); }
.sidebar-news-item .info .meta {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 3px;
}


/* HERO SECTION */
.hero-section {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-main {
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 380px;
    background: var(--color-border-light);
}
.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.hero-main .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
}
.hero-main .hero-overlay .kicker {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    width: fit-content;
}
.hero-main .hero-overlay h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 8px;
}
.hero-main .hero-overlay .meta {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hero-side-item {
    display: block;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex: 1;
    min-height: 180px;
    background: var(--color-border-light);
}
.hero-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.hero-side-item .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}
.hero-side-item .hero-overlay h3 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}
.hero-side-item .hero-overlay .kicker {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-bottom: 6px;
    width: fit-content;
}

@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
    .hero-main { min-height: 260px; }
    .hero-side-item { min-height: 160px; }
    .hero-main .hero-overlay h2 { font-size: 20px; }
}

/* SECTION HEADERS */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
}
.section-header .see-all {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 4px;
}
.section-header .see-all:hover { gap: 8px; }


/* CARD GRIDS */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

/* NEWS CARD */
.news-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}
.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.news-card .card-image {
    display: block;
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background: var(--color-border-light) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="%2394a3b8" stroke-width="1.5"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><path d="M21 15l-5-5L5 21"/></svg>') center center no-repeat;
    background-size: 48px;
}
.news-card .card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.news-card:hover .card-image img { transform: scale(1.03); }

.news-card .card-body {
    padding: 14px 16px 16px;
}
.news-card .card-body .kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}
.news-card .card-body h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}
.news-card .card-body h3:hover { color: var(--color-accent); }
.news-card .card-body .meta {
    font-size: 11.5px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}
.news-card .card-body .meta i { margin-right: 3px; }

/* HORIZONTAL ROW CARD */
.row-card {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border-light);
    transition: all var(--transition);
}
.row-card:last-child { border-bottom: none; }
.row-card:hover { padding-left: 4px; }

.row-card .row-img {
    width: 100px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-border-light);
}
.row-card .row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.row-card .row-body h4 {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.row-card:hover .row-body h4 { color: var(--color-accent); }
.row-card .row-body .meta {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* FEATURED + LIST LAYOUT */
.featured-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.featured-layout .featured-card .card-image { padding-top: 65%; }
.featured-layout .featured-card .card-body h3 {
    font-size: 18px;
    font-family: var(--font-heading);
    -webkit-line-clamp: 3;
}

@media (max-width: 768px) {
    .featured-layout { grid-template-columns: 1fr; }
}


/* ============================================
   ARTICLE READER LAYOUT (news.php)
   ============================================ */

/* Breadcrumb bar */
.article-breadcrumb-bar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
}
.article-breadcrumb {
    font-size: 12.5px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.article-breadcrumb a {
    color: var(--color-text-secondary);
    transition: color var(--transition);
}
.article-breadcrumb a:hover { color: var(--color-accent); }
.article-breadcrumb .sep { font-size: 9px; color: var(--color-text-muted); }
.article-breadcrumb span { color: var(--color-accent); font-weight: 500; }

/* Container variants */
.container.narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero block */
.article-hero-block {
    padding: 48px 0 0;
    background: var(--color-surface);
    text-align: center;
}
.article-category-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 20px;
    transition: all var(--transition);
}
.article-category-badge:hover {
    background: var(--color-accent);
    color: #fff;
}
.article-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
    margin-bottom: 20px;
    text-align: center;
}
.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: var(--color-text-secondary);
    padding-bottom: 36px;
}
.article-meta i { margin-right: 5px; color: var(--color-text-muted); }
.article-meta span {
    display: inline-flex;
    align-items: center;
}

/* Cover image */
.article-cover {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-border-light);
}
.article-cover img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 540px;
    object-fit: cover;
}

/* Article reader (body container) */
.article-reader {
    background: var(--color-surface);
    padding: 48px 0 32px;
    position: relative;
}
.article-reader .container.narrow {
    position: relative;
}

/* Floating share rail (desktop) */
.share-rail {
    position: absolute;
    top: 0;
    left: -76px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}
.share-rail.is-stuck {
    position: fixed;
    top: 100px;
    left: calc((100% - 760px) / 2 - 76px);
}
.rail-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition);
    cursor: pointer;
}
.rail-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    transform: translateX(2px);
}
.rail-btn.copied {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* Article body */
.article-body {
    font-size: 17px;
    line-height: 1.85;
    color: var(--color-text);
    margin-bottom: 32px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow: hidden;
}
.article-body p { margin-bottom: 18px; }
.article-body a { color: var(--color-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body a:hover { text-decoration-thickness: 2px; }
.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    margin: 24px auto;
}
.article-body iframe { max-width: 100%; border-radius: var(--radius-md); }
.article-body video { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.article-body blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 8px 24px;
    margin: 24px 0;
    color: var(--color-text-secondary);
    font-style: italic;
    font-size: 18px;
}
.article-body table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
    border-collapse: collapse;
    margin: 16px 0;
}
.article-body h2, .article-body h3, .article-body h4 {
    font-family: var(--font-heading);
    margin: 28px 0 12px;
    line-height: 1.3;
}
.article-body * { max-width: 100%; }

/* Article media (images, videos, embeds) */
.article-media {
    margin: 32px auto;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-border-light);
}
.article-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    margin: 0 auto;
}
.article-media video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
}
.article-media iframe {
    display: block;
    width: 100%;
    border: none;
}
.article-media-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0;
}
.article-media-stack .article-media {
    margin: 0;
}

.embed-16x9 {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    max-width: 100%;
}
.embed-16x9 iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Source link box */
.article-source-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--color-border-light);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius-sm);
    margin: 32px 0;
    font-size: 14px;
}
.article-source-box i { color: var(--color-text-muted); }
.article-source-box a { color: var(--color-accent); font-weight: 500; }
.article-source-box a:hover { text-decoration: underline; }

/* Mobile share bar */
.share-mobile {
    display: none;
    margin: 32px 0;
    padding: 20px;
    background: var(--color-border-light);
    border-radius: var(--radius-md);
    text-align: center;
}
.share-mobile-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}
.share-mobile-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.sm-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--transition);
    cursor: pointer;
}
.sm-btn:hover { transform: translateY(-2px); }
.sm-fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.sm-x:hover { background: #000; border-color: #000; color: #fff; }
.sm-tg:hover { background: #0088cc; border-color: #0088cc; color: #fff; }
.sm-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.sm-copy:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.sm-btn.copied { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

/* Article bottom section */
.article-bottom {
    background: var(--color-bg);
    padding: 48px 0 24px;
    border-top: 1px solid var(--color-border);
}
.bottom-block {
    margin-bottom: 40px;
}
.article-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.bottom-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
}
.bottom-card-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-accent);
}
.bottom-card-title i { margin-right: 6px; color: var(--color-accent); }

/* Responsive */
@media (max-width: 1100px) {
    .share-rail {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-bottom: 24px;
        left: auto;
    }
    .share-rail.is-stuck { position: static; left: auto; }
}

@media (max-width: 768px) {
    .article-title { font-size: 26px; }
    .article-hero-block { padding: 28px 0 0; }
    .article-reader { padding: 32px 0 24px; }
    .article-cover { border-radius: 0; }
    .article-cover img { max-height: 320px; }
    .share-rail { display: none; }
    .share-mobile { display: block; }
    .article-related-grid { grid-template-columns: repeat(2, 1fr); }
    .bottom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .article-title { font-size: 22px; }
    .article-meta { gap: 12px; font-size: 12px; }
    .article-body { font-size: 16px; line-height: 1.75; }
}

/* PAGINATION */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
    padding-top: 24px;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}
.pagination a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-light);
}
.pagination span.active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.pagination span.dots { border: none; color: var(--color-text-muted); }


/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state i {
    font-size: 48px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}
.empty-state h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}
.empty-state p {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--color-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    transition: all var(--transition);
}
.btn-primary:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

/* ALERT */
.alert-flood {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}
.alert-flood h2 {
    font-size: 16px;
    color: var(--color-danger);
    margin-bottom: 6px;
}
.alert-flood p { color: #991b1b; font-size: 14px; }

/* PAGE HEADING */
.page-heading {
    margin-bottom: 24px;
}
.page-heading h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}
.page-heading p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* FOOTER */
.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    margin-top: 60px;
    padding: 32px 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-copy {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.footer-links a:hover { color: var(--color-accent); }

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

/* READING PROGRESS */
.reading-progress {
    position: fixed;
    top: 64px;
    left: 0;
    height: 3px;
    background: var(--color-accent);
    width: 0;
    z-index: 1001;
    transition: width 0.1s linear;
}

/* TICKER / BREAKING NEWS */
.ticker-bar {
    background: var(--color-accent);
    color: #fff;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 500;
    overflow: hidden;
}
.ticker-bar .container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ticker-bar .badge {
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
    text-transform: uppercase;
}
.ticker-bar .ticker-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}
.ticker-bar .ticker-content a {
    color: #fff;
    animation: ticker-scroll 20s linear infinite;
    display: inline-block;
    padding-left: 100%;
}
.ticker-bar .ticker-content a:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* UTILITIES */
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.text-center { text-align: center; }

/* LOADING SKELETON */
.skeleton {
    background: linear-gradient(90deg, var(--color-border-light) 25%, var(--color-border) 50%, var(--color-border-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* PRINT */
@media print {
    .site-header, .site-footer, .sidebar, .share-bar, .back-to-top, .ticker-bar, .reading-progress { display: none; }
    .layout-with-sidebar { grid-template-columns: 1fr; }
    .article-title { font-size: 24px; }
}
