/* ==========================================================================
   NETVERA BLOG SCRIPTI PRO - PRODUCTION MASTER DESIGN SYSTEM
   Matches References 1 (Home), 2 (Categories), 3 (Category Detail), 4 (Article)
   Pure CSS, Responsive, Clean Typography, Zero External Framework Dependencies
   ========================================================================== */

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --border: #e2e8f0;
    --border-focus: #3b82f6;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
}

/* Base resets & typography */
body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-body);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }
.container { width: min(1220px, calc(100% - 36px)); margin-inline: auto; }

/* ==========================================================================
   TOP TICKER BAR
   ========================================================================== */
.top-ticker-bar {
    background: #ffffff;
    border-bottom: 1px solid #eef2f6;
    padding: 6px 0;
    font-size: 0.8rem;
    position: relative;
    z-index: 105;
}
.ticker-container {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
}
.ticker-badge-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}
.ticker-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}
.ticker-clock {
    color: #ef4444;
    font-weight: 700;
    font-size: 0.8rem;
}
.ticker-content-track {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    padding: 0 14px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.ticker-marquee-inner {
    display: inline-flex;
    animation: ticker-scroll 45s linear infinite;
}
.ticker-marquee-inner:hover {
    animation-play-state: paused;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 40px;
    color: #334155;
    font-size: 0.78rem;
    text-decoration: none;
}
.ticker-item:hover {
    color: #2563eb;
}
.ticker-tag {
    padding: 2px 7px;
    border-radius: 4px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
}
.ticker-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.ticker-arrow {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #ffffff;
    color: #64748b;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.ticker-arrow:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}
.ticker-all-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #ef4444;
    font-weight: 600;
    font-size: 0.75rem;
    text-decoration: none;
    margin-left: 6px;
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #eef2f6;
}
.header-primary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
}
.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.brand-logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-text {
    display: flex;
    flex-direction: column;
}
.brand-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.02em;
}
.brand-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}
.header-search-wrap {
    flex: 1;
    max-width: 480px;
    margin: 0 20px;
}
.header-search-form {
    position: relative;
    width: 100%;
}
.header-search-form input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 42px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.85rem;
    color: #0f172a;
    transition: all 0.2s;
    outline: none;
}
.header-search-form input:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.header-icon-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.header-icon-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}
.btn-header-login {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.btn-header-login:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.mobile-nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 6px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.mobile-nav-toggle span {
    width: 22px;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
}
.header-nav-bar {
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
}
.nav-bar-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0;
}
.nav-bar-inner::-webkit-scrollbar {
    display: none;
}
.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 6px;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}
.nav-item:hover {
    color: #2563eb;
    background: #f8fafc;
}
.nav-item.active {
    color: #2563eb;
    font-weight: 700;
    background: #eff6ff;
}
.nav-dropdown-wrap {
    position: relative;
    display: inline-flex;
}
.nav-dropdown-btn {
    background: none;
    border: 0;
    cursor: pointer;
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 180px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 6px;
    display: none;
    flex-direction: column;
    z-index: 110;
}
.nav-dropdown-wrap:hover .nav-dropdown-menu {
    display: flex;
}
.dropdown-item {
    padding: 7px 12px;
    color: #334155;
    font-size: 0.8rem;
    text-decoration: none;
    border-radius: 4px;
}
.dropdown-item:hover {
    background: #f1f5f9;
    color: #2563eb;
}

/* ==========================================================================
   REFERENCE 1: HOMEPAGE DESIGN
   ========================================================================== */
.section-home-hero {
    padding: 16px 0 12px;
}
.hero-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
    gap: 14px;
}
.hero-main-card-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0b1120;
    min-height: 420px;
    display: flex;
}
.hero-slides-wrapper {
    position: relative;
    width: 100%;
    min-height: 420px;
    display: flex;
}
.hero-slide-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
    z-index: 1;
}
.hero-slide-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
.hero-feature-card {
    width: 100%;
    height: 100%;
}
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.75;
    transition: transform 0.6s ease;
}
.hero-slide-item:hover .hero-bg-img {
    transform: scale(1.03);
}
.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 22px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    opacity: 0;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}
.hero-main-card-wrap:hover .hero-slider-nav {
    opacity: 1;
}
.hero-slider-nav:hover {
    background: #2563eb;
    border-color: #3b82f6;
    transform: translateY(-50%) scale(1.08);
}
.hero-slider-prev {
    left: 14px;
}
.hero-slider-next {
    right: 14px;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 17, 32, 0.1) 0%, rgba(11, 17, 32, 0.88) 85%);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
}
.hero-cat-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    background: #06b6d4;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.hero-title {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.hero-title a {
    color: #ffffff;
    text-decoration: none;
}
.hero-title a:hover {
    color: #93c5fd;
}
.hero-excerpt {
    margin: 0 0 16px;
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.btn-hero-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 6px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-hero-action:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}
.hero-pagination-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}
.hero-pagination-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.2s;
    cursor: pointer;
}
.hero-pagination-dots .dot.active {
    background: #ffffff;
    width: 18px;
    border-radius: 999px;
}
.hero-side-stories-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
}
.side-story-card {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 10px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: var(--shadow-card);
}
.side-story-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}
.side-story-thumb {
    width: 130px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}
.side-story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.side-story-card:hover .side-story-thumb img {
    transform: scale(1.05);
}
.story-cat-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.side-story-title {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* TRENDING STRIP */
.section-trending-strip {
    padding: 10px 0;
}
.trending-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.trending-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.flame-icon {
    font-size: 1rem;
}
.trending-tags-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}
.trending-tags-scroll::-webkit-scrollbar {
    display: none;
}
.trending-tag-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.trending-tag-pill:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

/* SECTION: CATEGORY SHORTCUTS */
.section-category-shortcuts {
    padding: 12px 0 20px;
    width: 100%;
}
.category-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 100%;
}
.category-shortcut-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    min-width: 0;
    overflow: hidden;
}
.category-shortcut-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: var(--shadow-hover);
}
.cat-shortcut-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.category-shortcut-card:hover .cat-shortcut-icon {
    transform: scale(1.08);
}
.cat-shortcut-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cat-shortcut-title {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cat-shortcut-desc {
    display: block;
    font-size: 0.70rem;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cat-shortcut-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}
.category-shortcut-card:hover .cat-shortcut-arrow {
    transform: translateX(3px);
    color: #2563eb;
}
.heading-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    flex-shrink: 0;
}

/* DUAL LAYOUT: LATEST POSTS + POPULAR + NEWSLETTER */
.section-home-dual {
    padding: 16px 0;
}
.home-dual-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(290px, 1fr);
    gap: 20px;
    align-items: start;
}
.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.section-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.section-more-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.78rem;
    text-decoration: none;
}
.section-more-link:hover {
    text-decoration: underline;
}
.latest-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.article-card-standard {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
    box-shadow: var(--shadow-card);
}
.article-card-standard:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}
.card-img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.article-card-standard:hover .card-img-wrap img {
    transform: scale(1.05);
}
.card-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.62rem;
    text-transform: uppercase;
}
.card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-title {
    margin: 0 0 6px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}
.card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}
.card-title a:hover {
    color: #2563eb;
}
.card-excerpt {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    font-size: 0.68rem;
}
.meta-dot {
    color: #cbd5e1;
}

/* WIDGETS & SIDEBAR */
.dual-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.widget-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-card);
}
.widget-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.widget-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}
.popular-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 2px;
    border-radius: 6px;
}
.popular-tabs .tab-btn {
    border: 0;
    background: none;
    padding: 3px 8px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.popular-tabs .tab-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.popular-ranked-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.popular-item {
    display: grid;
    grid-template-columns: 22px 48px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}
.rank-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    background: #eff6ff;
    color: #2563eb;
}
.rank-1 { background: #dbeafe; color: #1d4ed8; }
.rank-2 { background: #fef3c7; color: #b45309; }
.rank-3 { background: #f1f5f9; color: #475569; }
.popular-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}
.popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.popular-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.popular-info h4 {
    margin: 0 0 3px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.popular-info h4 a {
    color: #0f172a;
    text-decoration: none;
}
.popular-info h4 a:hover {
    color: #2563eb;
}
.view-stat {
    color: #94a3b8;
    font-size: 0.65rem;
}
.widget-newsletter-blue {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
    border: 0;
}
.widget-newsletter-blue h3 {
    margin: 8px 0 4px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}
.widget-newsletter-blue p {
    margin: 0 0 12px;
    color: #e0e7ff;
    font-size: 0.72rem;
    line-height: 1.45;
}
.newsletter-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}
.sidebar-newsletter-form {
    display: flex;
    gap: 6px;
}
.sidebar-newsletter-form input {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    border: 0;
    font-size: 0.78rem;
    outline: none;
}
.sidebar-newsletter-form button {
    height: 36px;
    padding: 0 14px;
    border-radius: 6px;
    border: 0;
    background: #ffffff;
    color: #2563eb;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.sidebar-newsletter-form button:hover {
    background: #f8fafc;
}

/* MULTI-CATEGORY FEEDS GRID */
.section-category-feeds {
    padding: 16px 0;
}
.category-feeds-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.category-feed-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}
.feed-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 12px;
}
.feed-cat-name {
    display: flex;
    align-items: center;
    gap: 7px;
}
.feed-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.feed-cat-name h3 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}
.feed-more-link {
    font-size: 0.68rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}
.feed-box-posts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.feed-lead-post {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
}
.feed-lead-thumb {
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
}
.feed-lead-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.feed-lead-post:hover .feed-lead-thumb img {
    transform: scale(1.04);
}
.feed-lead-title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}
.feed-sub-post {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    text-decoration: none;
}
.feed-sub-thumb {
    width: 56px;
    height: 42px;
    border-radius: 4px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}
.feed-sub-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feed-sub-title {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.promo-banner-box {
    background: linear-gradient(135deg, #1e40af, #6366f1);
    color: #ffffff;
    border: 0;
    justify-content: center;
}
.promo-box-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.promo-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.65rem;
    font-weight: 700;
    width: max-content;
}
.promo-banner-box h3 {
    margin: 4px 0 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}
.promo-banner-box p {
    margin: 0;
    color: #e0e7ff;
    font-size: 0.72rem;
    line-height: 1.45;
}
.promo-buttons {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}
.btn-promo-primary {
    padding: 6px 12px;
    border-radius: 5px;
    background: #ffffff;
    color: #1e40af;
    font-weight: 700;
    font-size: 0.72rem;
    text-decoration: none;
}
.btn-promo-secondary {
    padding: 6px 12px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.72rem;
    text-decoration: none;
}
.promo-features-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    font-size: 0.65rem;
    color: #cbd5e1;
}

/* TRIPLE FEATURE MODULES */
.section-triple-modules {
    padding: 16px 0;
}
.triple-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.triple-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}
.module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 12px;
}
.module-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.module-icon {
    font-size: 1rem;
}
.module-title-wrap h3 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}
.module-link {
    font-size: 0.68rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}
.video-lead-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    margin-bottom: 10px;
}
.video-lead-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}
.video-lead-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}
.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}
.video-play-btn svg {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.video-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 600;
}
.video-lead-title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}
.video-playlist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
}
.video-sub-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: #475569;
}
.sub-duration {
    padding: 2px 5px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 600;
    flex-shrink: 0;
}
.guide-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.guide-items-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.76rem;
}
.guide-items-list a {
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.35;
}
.guide-items-list a:hover {
    color: #2563eb;
}
.resource-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.resource-items-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.74rem;
    color: #334155;
}
.resource-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.file-type-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    flex-shrink: 0;
}
.file-type-badge.pdf {
    background: #fee2e2;
    color: #ef4444;
}
.file-type-badge.xls {
    background: #dcfce7;
    color: #16a34a;
}

/* TESTIMONIALS */
.section-testimonials {
    padding: 16px 0;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.testimonial-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}
.testimonial-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
}
.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-name {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}
.user-role {
    display: block;
    font-size: 0.68rem;
    color: #64748b;
}
.testimonial-text {
    margin: 0 0 10px;
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.5;
    font-style: italic;
}
.star-rating {
    color: #eab308;
    font-size: 0.82rem;
    letter-spacing: 2px;
    margin-top: auto;
}

/* AUTHORS */
.section-authors {
    padding: 16px 0 24px;
}
.authors-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.author-profile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 16px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-card);
    transition: all 0.2s;
}
.author-profile-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.author-avatar-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 8px;
    background: #e2e8f0;
    border: 2px solid #eff6ff;
}
.author-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-name {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}
.author-role {
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 2px;
}
.author-post-count {
    font-size: 0.62rem;
    color: #94a3b8;
    margin-top: 4px;
}
.author-social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}
.author-social-row a {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.68rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}
.author-social-row a:hover {
    background: #2563eb;
    color: #ffffff;
}

/* ==========================================================================
   REFERENCE 2: CATEGORIES PAGE
   ========================================================================== */
.site-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0 8px;
    font-size: 0.75rem;
    color: #64748b;
}
.site-breadcrumb a {
    color: #64748b;
    text-decoration: none;
}
.site-breadcrumb a:hover {
    color: #2563eb;
}
.bc-sep {
    color: #cbd5e1;
}
.bc-current {
    color: #0f172a;
    font-weight: 600;
}
.section-categories-hero {
    padding: 10px 0 20px;
}
.categories-hero-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: 36px 44px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
    gap: 30px;
    align-items: center;
    box-shadow: var(--shadow-card);
}
.cat-hero-title {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
}
.cat-hero-desc {
    margin: 0 0 20px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}
.cat-stat-badges {
    display: flex;
    gap: 14px;
}
.cat-stat-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.stat-icon {
    font-size: 1.3rem;
}
.cat-stat-pill strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}
.cat-stat-pill span {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 3px;
}
.cat-hero-illustration {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.folder-3d-graphic {
    position: relative;
    width: 180px;
    height: 140px;
    margin-bottom: 12px;
}
.folder-body {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: perspective(600px) rotateY(-10deg) rotateX(10deg);
}
.folder-letter {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    opacity: 0.9;
}
.float-tag {
    position: absolute;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.68rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.tag-kesfet {
    top: -8px;
    left: -10px;
    background: #6366f1;
    color: #ffffff;
}
.tag-ogren {
    top: 10px;
    right: -15px;
    background: #06b6d4;
    color: #ffffff;
}
.tag-paylas {
    bottom: 10px;
    left: -20px;
    background: #f59e0b;
    color: #ffffff;
}
.cat-hero-quote {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    font-style: italic;
}
.section-categories-filter {
    padding: 10px 0 20px;
}
.filter-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}
.filter-title-wrap h2 {
    margin: 0 0 2px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}
.filter-title-wrap p {
    margin: 0;
    color: #64748b;
    font-size: 0.78rem;
}
.categories-search-form {
    display: flex;
    align-items: center;
    position: relative;
    width: 340px;
}
.categories-search-form input {
    width: 100%;
    height: 38px;
    padding: 0 38px 0 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.8rem;
    outline: none;
}
.categories-search-form button {
    position: absolute;
    right: 8px;
    background: none;
    border: 0;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.filter-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.filter-pill {
    padding: 6px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}
.filter-pill:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}
.filter-pill.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}
.sort-btn {
    background: #ffffff;
    cursor: pointer;
}
.section-featured-categories {
    padding: 10px 0 24px;
}
.heading-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}
.icon-star, .icon-folder {
    font-size: 1.3rem;
}
.section-subtitle {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 1px;
}
.featured-cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.featured-cat-card {
    position: relative;
    height: 160px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    text-decoration: none;
    box-shadow: var(--shadow-card);
    transition: all 0.2s;
}
.featured-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.feat-cat-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.feat-cat-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.featured-cat-card:hover .feat-cat-bg img {
    transform: scale(1.05);
}
.feat-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 2;
}
.feat-cat-info {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}
.feat-cat-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}
.feat-cat-texts {
    flex: 1;
    min-width: 0;
}
.feat-cat-texts h3 {
    margin: 0 0 2px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
}
.feat-cat-texts p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feat-cat-arrow {
    font-size: 1.1rem;
    color: #ffffff;
}
.section-all-categories {
    padding: 10px 0 24px;
}
.all-cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.cat-grid-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: all 0.2s;
}
.cat-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}
.cat-card-media {
    height: 110px;
    display: block;
    overflow: hidden;
    background: #f1f5f9;
}
.cat-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.cat-grid-card:hover .cat-card-media img {
    transform: scale(1.04);
}
.cat-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.cat-card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.cat-circle-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.cat-title-wrap h3 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
}
.cat-title-wrap h3 a {
    color: #0f172a;
    text-decoration: none;
}
.cat-post-count {
    font-size: 0.65rem;
    color: #64748b;
}
.cat-card-desc {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cat-card-link {
    margin-top: auto;
    font-size: 0.72rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}
.cat-promo-card {
    background: linear-gradient(135deg, #1d4ed8, #7c3aed);
    color: #ffffff;
    border: 0;
    padding: 18px;
    position: relative;
    overflow: hidden;
    justify-content: center;
}
.promo-inner-wrap {
    position: relative;
    z-index: 2;
}
.cat-promo-card h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}
.cat-promo-card p {
    margin: 0 0 14px;
    color: #e0e7ff;
    font-size: 0.75rem;
    line-height: 1.45;
}
.btn-promo-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 6px;
    background: #ffffff;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.75rem;
    text-decoration: none;
}
.promo-card-graphic {
    position: absolute;
    right: -15px;
    bottom: -20px;
    z-index: 1;
    opacity: 0.15;
}
.promo-n-badge {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
}
.section-popular-topics {
    padding: 10px 0 24px;
}
.topics-cloud-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.topic-cloud-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    font-size: 0.78rem;
    transition: all 0.2s;
}
.topic-cloud-pill:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}
.topic-tag-name {
    font-weight: 700;
    color: #0f172a;
}
.topic-tag-count {
    font-size: 0.68rem;
    color: #64748b;
}

/* ==========================================================================
   REFERENCE 3: CATEGORY DETAIL
   ========================================================================== */
.section-category-detail-hero {
    padding: 10px 0 16px;
}
.cat-detail-hero-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
    gap: 24px;
    align-items: center;
    color: #ffffff;
    box-shadow: var(--shadow-card);
}
.cat-detail-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    background: #06b6d4;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.cat-detail-title {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}
.cat-detail-intro {
    margin: 0 0 18px;
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.5;
}
.cat-detail-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.meta-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #e2e8f0;
}
.btn-cat-follow {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-cat-follow:hover {
    background: #ffffff;
    color: #0f172a;
}
.cat-hero-visual-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.cat-hero-art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cat-hero-quote-box {
    position: absolute;
    right: 12px;
    bottom: 12px;
    max-width: 200px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    border-left: 3px solid #3b82f6;
    font-size: 0.72rem;
    color: #ffffff;
    font-style: italic;
}
.section-subtopic-filters {
    padding: 10px 0 16px;
}
.subtopics-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.subtopic-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}
.subtopic-pill:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}
.subtopic-pill.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}
.subtopic-pill small {
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    font-size: 0.65rem;
}
.subtopic-pill.active small {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
.section-category-body {
    padding: 10px 0 24px;
}
.category-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(290px, 1fr);
    gap: 20px;
    align-items: start;
}
.cat-main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cat-lead-card-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-card);
}
.cat-lead-heading h2 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}
.cat-lead-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}
.lead-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
.lead-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.cat-lead-card:hover .lead-thumb-wrap img {
    transform: scale(1.04);
}
.lead-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.62rem;
    text-transform: uppercase;
}
.lead-card-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
}
.lead-card-title a {
    color: #0f172a;
    text-decoration: none;
}
.lead-card-title a:hover {
    color: #2563eb;
}
.lead-card-excerpt {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lead-card-author-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: #94a3b8;
}
.author-avatar-tiny {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
}
.author-name-text {
    font-weight: 600;
    color: #334155;
}
.cat-posts-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.cat-posts-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}
.cat-sort-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 2px;
    border-radius: 6px;
}
.sort-tab-btn {
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}
.sort-tab-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.cat-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.cat-grid-article {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: all 0.2s;
}
.cat-grid-article:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}
.grid-card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}
.grid-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.cat-grid-article:hover .grid-card-thumb img {
    transform: scale(1.05);
}
.grid-card-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.62rem;
    text-transform: uppercase;
}
.grid-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.grid-card-title {
    margin: 0 0 6px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
}
.grid-card-title a {
    color: #0f172a;
    text-decoration: none;
}
.grid-card-title a:hover {
    color: #2563eb;
}
.grid-card-desc {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.grid-card-byline {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    font-size: 0.68rem;
}
.cat-pagination-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
}
.page-num {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.page-num:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}
.page-num.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}
.page-dots {
    color: #94a3b8;
    font-size: 0.8rem;
}
.page-arrow {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
}
.cat-guides-section {
    margin-top: 24px;
}
.guides-triple-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.guide-box-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}
.guide-icon-header {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.guide-box-card h3 {
    margin: 0 0 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}
.guide-box-card p {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.4;
}
.guide-tags-row {
    display: flex;
    gap: 4px;
    margin-top: auto;
}
.guide-badge {
    padding: 2px 6px;
    border-radius: 4px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
    font-size: 0.62rem;
}
.guide-badge-gray {
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.62rem;
}
.cat-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.widget-follow-cat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.follow-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.btn-sidebar-follow {
    width: 100%;
    height: 36px;
    border-radius: 6px;
    border: 0;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-sidebar-follow:hover {
    background: #1d4ed8;
}
.sidebar-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tag-link {
    padding: 4px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    text-decoration: none;
    transition: all 0.2s;
}
.tag-link:hover {
    background: #eff6ff;
    color: #2563eb;
}
.cat-authors-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cat-author-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cat-author-item img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}
.author-item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.author-item-info strong {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
}
.author-item-info small {
    font-size: 0.65rem;
    color: #64748b;
}
.cat-author-count {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 600;
}

/* ==========================================================================
   REFERENCE 4: ARTICLE DETAIL
   ========================================================================== */
.section-article-hero {
    padding: 10px 0 16px;
}
.article-hero-box {
    background: linear-gradient(135deg, #090d16 0%, #0d1527 50%, #172554 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 36px 40px;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
    gap: 28px;
    align-items: center;
    color: #ffffff;
}
.article-cat-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    background: #06b6d4;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.article-main-title {
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.article-main-excerpt {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.55;
}
.hero-art-img-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.hero-art-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-art-badge-text {
    position: absolute;
    right: 14px;
    top: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.hero-art-badge-text strong {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
}
.hero-art-badge-text span {
    font-size: 0.65rem;
    font-weight: 700;
    color: #93c5fd;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.article-byline-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow-card);
}
.byline-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.byline-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    flex-shrink: 0;
}
.byline-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.byline-author-meta {
    display: flex;
    flex-direction: column;
}
.byline-author-meta strong {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
}
.byline-author-meta small {
    font-size: 0.65rem;
    color: #64748b;
}
.byline-sep {
    width: 1px;
    height: 20px;
    background: #e2e8f0;
}
.byline-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: #64748b;
}
.byline-share-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.share-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    margin-right: 4px;
}
.btn-share-social {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.btn-share-social:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}
.section-article-body {
    padding: 16px 0 28px;
}
.article-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(290px, 1fr);
    gap: 20px;
    align-items: start;
}
.article-text-column {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 32px 36px;
    box-shadow: var(--shadow-card);
    min-width: 0;
}
.article-rendered-body {
    max-width: 740px;
    margin: 0 auto;
    color: #334155;
    font-size: 1rem;
    line-height: 1.75;
}
.article-rendered-body h2 {
    margin: 28px 0 12px;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.article-rendered-body h3 {
    margin: 24px 0 10px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}
.article-rendered-body p {
    margin: 0 0 16px;
}
.article-rendered-body blockquote {
    margin: 24px 0;
    padding: 18px 22px;
    border-left: 4px solid #2563eb;
    border-radius: 0 8px 8px 0;
    background: #eff6ff;
    color: #1e3a8a;
}
.article-rendered-body blockquote p:last-child { margin-bottom: 0; }
.post-quote {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 4px solid #2563eb;
    background: #eff6ff;
    border-radius: 0 8px 8px 0;
}
.post-quote blockquote {
    margin: 0;
    font-size: 1.05rem;
    font-style: italic;
    color: #1e3a8a;
    line-height: 1.6;
}
.post-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
    color: #2563eb;
}
.post-checklist {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
}
.check-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 3px;
}
.post-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 24px 0;
}
.post-feature-card {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.card-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.post-feature-card h4 {
    margin: 0 0 4px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}
.post-feature-card p {
    margin: 0;
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.35;
}
.post-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.post-comparison-table th {
    background: #f1f5f9;
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.post-comparison-table td {
    padding: 10px 14px;
    font-size: 0.8rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}
.post-comparison-table tr:nth-child(even) {
    background: #f8fafc;
}
.highlight-col {
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
}
.article-tags-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0 20px;
    padding: 14px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}
.tags-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    flex-shrink: 0;
}
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.article-tag-item {
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
}
.article-tag-item:hover {
    background: #dbeafe;
}
.article-author-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px;
    margin: 20px 0;
}
.author-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
    border: 2px solid #ffffff;
}
.author-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-card-body {
    flex: 1;
    min-width: 0;
}
.author-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.author-card-title-row h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}
.author-card-role {
    font-size: 0.68rem;
    color: #2563eb;
    font-weight: 600;
}
.author-card-socials {
    display: flex;
    gap: 6px;
}
.author-card-socials a {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.68rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.author-card-bio {
    margin: 0 0 8px;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.45;
}
.btn-author-posts {
    font-size: 0.72rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}
.article-prev-next-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}
.prev-next-card {
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s;
}
.prev-next-card:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}
.prev-next-card.is-next {
    text-align: right;
}
.pn-direction {
    font-size: 0.68rem;
    font-weight: 600;
    color: #2563eb;
}
.pn-title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}
.article-comments-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}
.comments-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.comments-header-row h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}
.comments-scroll-link {
    font-size: 0.72rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}
.comment-item {
    display: flex;
    gap: 12px;
}
.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}
.comment-body-wrap {
    flex: 1;
    min-width: 0;
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 14px;
}
.comment-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.comment-author-row strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}
.comment-author-row small {
    font-size: 0.68rem;
    color: #94a3b8;
}
.comment-text {
    margin: 0 0 8px;
    font-size: 0.78rem;
    color: #334155;
    line-height: 1.45;
}
.comment-actions-row {
    display: flex;
    gap: 12px;
}
.btn-comment-like, .btn-comment-reply {
    background: none;
    border: 0;
    padding: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
}
.add-comment-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px;
}
.add-comment-form h3 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}
.comment-inputs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.add-comment-form input, .add-comment-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.8rem;
    background: #ffffff;
    outline: none;
}
.btn-comment-submit {
    margin-top: 10px;
    padding: 8px 18px;
    border-radius: 6px;
    border: 0;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-comment-submit:hover {
    background: #1d4ed8;
}
.article-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 96px;
}
.widget-toc-card {
    padding: 14px;
}
.article-toc-list {
    list-style: decimal;
    padding-left: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.article-toc-list li {
    font-size: 0.75rem;
    color: #475569;
}
.article-toc-list a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}
.article-toc-list a:hover {
    color: #2563eb;
}
.article-toc-list li:first-child a {
    color: #2563eb;
    font-weight: 700;
}
.related-posts-list, .author-posts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.related-item {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    text-decoration: none;
}
.related-thumb {
    width: 60px;
    height: 45px;
    border-radius: 5px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}
.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-info h4 {
    margin: 0 0 2px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}
.related-info span {
    font-size: 0.65rem;
    color: #2563eb;
}
.widget-promo-card {
    background: linear-gradient(135deg, #1e40af, #6366f1);
    color: #ffffff;
    border: 0;
}
.widget-promo-card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
}
.widget-promo-card p {
    margin: 0 0 10px;
    font-size: 0.72rem;
    color: #e0e7ff;
}
.promo-checklist {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.72rem;
    color: #cbd5e1;
}
.btn-promo-discover {
    display: block;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    background: #ffffff;
    color: #1e40af;
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none;
}
.widget-help-card {
    display: flex;
    align-items: center;
    gap: 12px;
}
.help-icon {
    font-size: 1.6rem;
}
.help-text strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}
.help-text p {
    margin: 2px 0 6px;
    font-size: 0.68rem;
    color: #64748b;
}
.btn-help-link {
    font-size: 0.72rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

/* ==========================================================================
   FOOTER (ALL 4 REFERENCES)
   ========================================================================== */
.footer-newsletter-card {
    background: linear-gradient(100deg, #1d4ed8 0%, #6366f1 50%, #7c3aed 100%);
    border-radius: var(--radius-lg);
    padding: 22px 32px;
    margin-bottom: 30px;
    color: #ffffff;
}
.newsletter-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.newsletter-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nl-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.nl-texts strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}
.nl-texts p {
    margin: 3px 0 0;
    color: #e0e7ff;
    font-size: 0.78rem;
}
.newsletter-card-form {
    display: flex;
    gap: 8px;
    min-width: 360px;
}
.newsletter-card-form input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    border: 0;
    font-size: 0.82rem;
    outline: none;
}
.newsletter-card-form button {
    height: 42px;
    padding: 0 20px;
    border-radius: 8px;
    border: 0;
    background: #ffffff;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.newsletter-card-form button:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}
.site-footer {
    background: #0b1329;
    color: #94a3b8;
    padding: 44px 0 24px;
    font-size: 0.82rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-grid-row, .footer-main-grid {
    display: grid !important;
    grid-template-columns: 1.3fr 1fr 1.6fr 1fr;
    gap: 36px;
    margin-bottom: 32px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 14px;
}
.footer-text, .footer-about {
    margin: 0 0 18px;
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.6;
    max-width: 320px;
}
.footer-social-links {
    display: flex;
    gap: 8px;
}
.footer-social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1e293b;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-social-links a:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateY(-2px);
}
.footer-col-title, .footer-heading {
    margin: 0 0 16px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}
.footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links-list a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}
.footer-links-list a:hover {
    color: #ffffff;
    transform: translateX(2px);
}
.footer-cats-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.footer-store-badges, .app-store-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}
.store-badge, .app-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: 8px;
    background: #1e293b;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #334155;
    transition: all 0.2s;
    width: max-content;
}
.store-badge:hover, .app-badge-btn:hover {
    background: #334155;
    border-color: #475569;
}
.store-icon {
    font-size: 1.15rem;
    line-height: 1;
}
.store-badge div, .app-badge-btn div {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.store-badge small, .app-badge-btn span {
    font-size: 0.62rem;
    color: #94a3b8;
}
.store-badge strong, .app-badge-btn strong {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
}
.footer-bottom-bar {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748b;
}
.footer-quote-text, .footer-quote {
    font-style: italic;
    color: #64748b;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .category-shortcuts-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
    .hero-grid-layout {
        grid-template-columns: 1fr;
    }
    .home-dual-layout {
        grid-template-columns: 1fr;
    }
    .category-feeds-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-cats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .all-cats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .authors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .category-layout-grid, .article-layout-grid {
        grid-template-columns: 1fr;
    }
    .article-sidebar-col {
        position: static;
    }
    .categories-hero-card {
        grid-template-columns: 1fr;
    }
    .cat-detail-hero-card, .article-hero-box {
        grid-template-columns: 1fr;
    }
    .footer-grid-row, .footer-main-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .cat-lead-card { grid-template-columns: minmax(0, 1fr); }
    .mobile-nav-toggle {
        display: flex;
    }
    .nav-bar-inner {
        display: none;
    }
    .nav-bar-inner.open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 16px;
    }
    .header-search-wrap {
        display: none;
    }
    .ticker-all-link {
        display: none;
    }
    .category-shortcuts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .category-shortcut-card {
        padding: 8px 10px;
        gap: 8px;
    }
    .cat-shortcut-icon {
        width: 32px;
        height: 32px;
    }
    .cat-shortcut-arrow {
        display: none;
    }
    .latest-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .cat-posts-section > .cat-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .triple-modules-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .newsletter-card-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .newsletter-card-left {
        flex-direction: column;
    }
    .newsletter-card-form {
        min-width: 0;
    }
    .article-byline-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .article-prev-next-grid {
        grid-template-columns: 1fr;
    }
    .comment-inputs-row {
        grid-template-columns: 1fr;
    }
    .footer-grid-row, .footer-main-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    .footer-cats-dual {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .footer-bottom-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .latest-cards-grid .card-body,
    .cat-posts-section > .cat-posts-grid .grid-card-body {
        padding: 9px;
    }
    .latest-cards-grid .card-title,
    .cat-posts-section > .cat-posts-grid .grid-card-title {
        font-size: 0.76rem;
    }
    .latest-cards-grid .card-excerpt,
    .cat-posts-section > .cat-posts-grid .grid-card-desc {
        margin-bottom: 8px;
        font-size: 0.66rem;
    }
    .latest-cards-grid .card-meta,
    .cat-posts-section > .cat-posts-grid .grid-card-byline {
        flex-wrap: wrap;
        font-size: 0.61rem;
    }
    .article-byline-bar { padding: 14px 16px; }
    .byline-left { flex-wrap: wrap; gap: 8px 12px; }
    .byline-author-meta { min-width: calc(100% - 52px); }
    .byline-sep { display: none; }
    .byline-info-item { white-space: nowrap; }
    .header-primary-row { gap: 8px; }
    .header-actions { gap: 6px; }
    .header-actions > a.header-icon-btn { display: none; }
    .brand-title { font-size: 1.2rem; }
    .btn-header-login { padding-inline: 10px; }
    .category-feeds-grid { grid-template-columns: minmax(0, 1fr); }
    .feed-box-header { gap: 8px; }
    .feed-cat-name { min-width: 0; }
    .category-shortcuts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
    .category-shortcut-card {
        padding: 7px 8px;
        gap: 6px;
    }
    .cat-shortcut-desc {
        display: none;
    }
    .cat-shortcut-title {
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   DARK MODE SYSTEM
   ========================================================================== */
html.dark-mode {
    --bg-page: #0b1120;
    --bg-card: #1e293b;
    --text-heading: #f8fafc;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #334155;
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
}
html.dark-mode .site-header,
html.dark-mode .top-ticker-bar,
html.dark-mode .header-nav-bar {
    background: #0f172a;
    border-color: #1e293b;
}
html.dark-mode .brand-title,
html.dark-mode .nav-item,
html.dark-mode .section-title {
    color: #f8fafc;
}
html.dark-mode .header-search-form input {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}
html.dark-mode .widget-box,
html.dark-mode .article-card-standard,
html.dark-mode .side-story-card,
html.dark-mode .category-feed-box,
html.dark-mode .triple-card,
html.dark-mode .testimonial-card,
html.dark-mode .author-profile-card,
html.dark-mode .categories-hero-card,
html.dark-mode .cat-grid-card,
html.dark-mode .cat-lead-card-wrap,
html.dark-mode .cat-grid-article,
html.dark-mode .guide-box-card,
html.dark-mode .article-text-column,
html.dark-mode .article-byline-bar,
html.dark-mode .trending-inner,
html.dark-mode .category-shortcut-card,
html.dark-mode .filter-pill,
html.dark-mode .page-num {
    background: #1e293b;
    border-color: #334155;
}
html.dark-mode .card-title a,
html.dark-mode .side-story-title,
html.dark-mode .lead-card-title a,
html.dark-mode .grid-card-title a,
html.dark-mode .article-rendered-body h2,
html.dark-mode .article-rendered-body h3,
html.dark-mode .article-rendered-body,
html.dark-mode .widget-title,
html.dark-mode .popular-info h4 a,
html.dark-mode .author-name,
html.dark-mode .cat-hero-title,
html.dark-mode .cat-shortcut-title,
html.dark-mode .cat-title-wrap h3 a,
html.dark-mode .comments-header-row h2,
html.dark-mode .comment-author-row strong {
    color: #f8fafc;
}
html.dark-mode .trending-label,
html.dark-mode .feed-cat-name h3,
html.dark-mode .module-title-wrap h3,
html.dark-mode .user-name {
    color: #f8fafc;
}
html.dark-mode .comment-body-wrap,
html.dark-mode .add-comment-form,
html.dark-mode .article-author-card {
    background: #0f172a;
    border-color: #1e293b;
}

html.dark-mode .category-shortcut-card:hover {
    border-color: #3b82f6;
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
html.dark-mode .cat-shortcut-desc {
    color: #94a3b8;
}
html.dark-mode .cat-shortcut-arrow {
    color: #64748b;
}
html.dark-mode .heading-icon-badge {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
}

html.dark-mode blockquote {
    background: #0f172a !important;
    border-left: 4px solid #38bdf8 !important;
    color: #e2e8f0 !important;
}

html.dark-mode pre,
html.dark-mode code {
    background: #0f172a !important;
    color: #38bdf8 !important;
    border-color: #334155 !important;
}

html.dark-mode table {
    border-color: #334155 !important;
}

html.dark-mode th {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

html.dark-mode td {
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html.dark-mode .newsletter-section,
html.dark-mode .newsletter-card,
html.dark-mode .footer-newsletter-wrap {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #f8fafc !important;
}

html.dark-mode .site-footer {
    background: #070a12 !important;
    border-top: 1px solid #1e293b !important;
    color: #94a3b8 !important;
}

html.dark-mode .footer-col-title {
    color: #f8fafc !important;
}

html.dark-mode .footer-link {
    color: #94a3b8 !important;
}
html.dark-mode .footer-link:hover {
    color: #38bdf8 !important;
}

html.dark-mode .footer-bottom {
    border-top: 1px solid #1e293b !important;
}

html.dark-mode .short-answer-box,
html.dark-mode .editorial-short-answer {
    background: #0f172a !important;
    border: 1px solid rgba(56,189,248,0.3) !important;
    color: #f8fafc !important;
}

html.dark-mode .key-takeaways-box {
    background: #0f172a !important;
    border: 1px solid rgba(16,185,129,0.3) !important;
    color: #f8fafc !important;
}

html.dark-mode .faq-item {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html.dark-mode .editorial-sources-box {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html.dark-mode input,
html.dark-mode select,
html.dark-mode textarea {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder {
    color: #64748b !important;
}

html.dark-mode .site-breadcrumb,
html.dark-mode .site-breadcrumb a,
html.dark-mode .byline-author-meta small,
html.dark-mode .byline-info-item,
html.dark-mode .share-label {
    color: #cbd5e1;
}
html.dark-mode .byline-author-meta strong,
html.dark-mode .article-faqs-section summary,
html.dark-mode .article-takeaways-box,
html.dark-mode .article-short-answer-box {
    color: #f8fafc;
}
html.dark-mode .article-short-answer-box,
html.dark-mode .article-takeaways-box,
html.dark-mode .article-sources-box,
html.dark-mode .article-faqs-section details {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0;
}
html.dark-mode .cat-related-section a {
    background: #1e293b !important;
    border-color: #334155 !important;
}
html.dark-mode .cat-related-section strong { color: #f8fafc !important; }
html.dark-mode .cat-related-section span { color: #cbd5e1 !important; }
html.dark-mode .cat-lead-heading h2,
html.dark-mode .cat-posts-title { color: #f8fafc; }
html.dark-mode .lead-card-excerpt { color: #cbd5e1; }

/* ==========================================================================
   AUTHORS: INDEX, PROFILE AND SHARED AVATARS
   ========================================================================== */
.author-avatar-initials {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: inherit;
    background: linear-gradient(145deg, #1d4ed8, #60a5fa);
    color: #fff;
    font-weight: 800;
    letter-spacing: .03em;
}
.author-avatar-initials[hidden] { display: none; }

.section-authors .authors-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 240px));
    justify-content: start;
}
.author-profile-card {
    min-height: 0;
    padding: 18px 16px 16px;
}
.author-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
}
.author-card-expertise {
    max-width: 100%;
    margin-top: 7px;
    overflow: hidden;
    color: #64748b;
    font-size: .64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.author-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    color: #2563eb;
    font-size: .68rem;
    font-weight: 750;
    text-decoration: none;
}
.author-profile-link:hover { color: #1d4ed8; }

.authors-index-section,
.author-detail-section {
    padding: 8px 0 28px;
}
.authors-index-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 32px 36px;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .07);
}
.section-eyebrow,
.author-detail-kicker {
    display: block;
    margin-bottom: 6px;
    color: #2563eb;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.authors-index-hero h1 {
    margin: 0;
    color: #0f172a;
    font: 750 clamp(2rem, 4vw, 3.25rem)/1.05 "Outfit", sans-serif;
    letter-spacing: -.04em;
}
.authors-index-hero p {
    max-width: 620px;
    margin: 10px 0 0;
    color: #526278;
    font-size: .88rem;
    line-height: 1.65;
}
.authors-index-stat {
    min-width: 132px;
    padding: 18px 22px;
    border: 1px solid #d9e6fa;
    border-radius: 14px;
    background: rgba(255, 255, 255, .78);
    text-align: center;
}
.authors-index-stat strong {
    display: block;
    color: #1d4ed8;
    font-size: 2rem;
    line-height: 1;
}
.authors-index-stat span {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: .68rem;
    font-weight: 650;
}
.authors-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    margin-top: 22px;
}
.authors-index-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 22px;
    border: 1px solid #e0e8f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-card);
}
.authors-index-avatar {
    position: relative;
    width: 108px;
    height: 108px;
    overflow: hidden;
    border: 4px solid #eff6ff;
    border-radius: 50%;
    background: #dbeafe;
    text-decoration: none;
}
.authors-index-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.authors-index-avatar .author-avatar-initials { font-size: 1.8rem; }
.authors-index-role {
    color: #2563eb;
    font-size: .68rem;
    font-weight: 750;
}
.authors-index-card h2 {
    margin: 4px 0 5px;
    font: 750 1.2rem/1.2 "Outfit", sans-serif;
}
.authors-index-card h2 a { color: #172033; text-decoration: none; }
.authors-index-card-body > p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #64748b;
    font-size: .74rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.authors-index-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #edf1f6;
    color: #64748b;
    font-size: .68rem;
}
.authors-index-card-footer a {
    color: #2563eb;
    font-weight: 750;
    text-decoration: none;
}

.author-detail-hero {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr) 190px;
    gap: 28px;
    align-items: center;
    padding: 30px 34px;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff 0%, #f5f9ff 100%);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .07);
}
.author-detail-avatar {
    position: relative;
    width: 148px;
    height: 148px;
    overflow: hidden;
    border: 5px solid #eff6ff;
    border-radius: 50%;
    background: #dbeafe;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .14);
}
.author-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-detail-avatar .author-avatar-initials { font-size: 2.35rem; }
.author-detail-copy { min-width: 0; }
.author-detail-copy h1 {
    margin: 0;
    color: #0f172a;
    font: 750 clamp(1.9rem, 3vw, 2.8rem)/1.05 "Outfit", sans-serif;
    letter-spacing: -.035em;
}
.author-detail-role {
    margin: 7px 0 0;
    color: #2563eb;
    font-size: .78rem;
    font-weight: 750;
}
.author-detail-bio {
    max-width: 680px;
    margin: 12px 0 0;
    color: #526278;
    font-size: .82rem;
    line-height: 1.65;
}
.author-expertise-list,
.author-public-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}
.author-expertise-list span {
    padding: 5px 9px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: .64rem;
    font-weight: 700;
}
.author-expertise-list.compact { margin-top: 9px; }
.author-expertise-list.compact span { padding: 3px 7px; font-size: .6rem; }
.author-public-links a {
    color: #475569;
    font-size: .67rem;
    font-weight: 700;
}
.author-detail-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: rgba(239, 246, 255, .72);
    text-align: center;
}
.author-detail-summary > span { color: #64748b; font-size: .65rem; font-weight: 700; }
.author-detail-summary strong { margin-top: 5px; color: #1d4ed8; font-size: 2.35rem; line-height: 1; }
.author-detail-summary small { margin-top: 3px; color: #64748b; font-size: .66rem; }
.author-detail-summary a {
    margin-top: 14px;
    color: #2563eb;
    font-size: .68rem;
    font-weight: 750;
    text-decoration: none;
}
.author-articles-section { padding: 4px 0 40px; scroll-margin-top: 20px; }
.author-articles-heading { margin-bottom: 16px; }
.author-results-count {
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: .66rem;
    font-weight: 750;
}
.author-pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 24px;
}
.author-empty-state {
    padding: 34px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    text-align: center;
}
.author-empty-state strong { color: #172033; font-size: .95rem; }
.author-empty-state p { margin: 7px 0 15px; color: #64748b; font-size: .76rem; }
.author-empty-state a { color: #2563eb; font-size: .72rem; font-weight: 750; }
.author-mini-row { color: inherit; text-decoration: none; }

html.dark-mode .authors-index-hero,
html.dark-mode .author-detail-hero,
html.dark-mode .authors-index-card {
    border-color: #334155;
    background: #1e293b;
}
html.dark-mode .authors-index-hero h1,
html.dark-mode .author-detail-copy h1,
html.dark-mode .authors-index-card h2 a,
html.dark-mode .author-empty-state strong { color: #f8fafc; }
html.dark-mode .authors-index-hero p,
html.dark-mode .author-detail-bio,
html.dark-mode .authors-index-card-body > p { color: #cbd5e1; }
html.dark-mode .authors-index-stat,
html.dark-mode .author-detail-summary,
html.dark-mode .author-empty-state {
    border-color: #334155;
    background: #0f172a;
}
html.dark-mode .authors-index-card-footer { border-color: #334155; }
html.dark-mode .author-expertise-list span {
    border-color: #1d4ed8;
    background: rgba(37, 99, 235, .16);
    color: #93c5fd;
}

@media (max-width: 1024px) {
    .author-detail-hero { grid-template-columns: 128px minmax(0, 1fr) 170px; gap: 22px; }
    .author-detail-avatar { width: 128px; height: 128px; }
}
@media (max-width: 768px) {
    .section-authors .authors-grid { grid-template-columns: minmax(0, 1fr); }
    .author-profile-card { width: 100%; }
    .authors-index-hero { align-items: flex-start; padding: 26px 24px; }
    .author-detail-hero {
        grid-template-columns: 112px minmax(0, 1fr);
        padding: 24px;
    }
    .author-detail-avatar { width: 112px; height: 112px; }
    .author-detail-summary {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-start;
        gap: 8px;
        padding: 13px 16px;
        text-align: left;
    }
    .author-detail-summary strong { margin: 0 0 0 auto; font-size: 1.45rem; }
    .author-detail-summary small { margin: 0; }
    .author-detail-summary a { margin: 0 0 0 12px; }
}
@media (max-width: 480px) {
    .authors-index-section,
    .author-detail-section { padding-top: 2px; }
    .authors-index-hero { flex-direction: column; gap: 18px; padding: 22px 20px; }
    .authors-index-stat { min-width: 0; width: 100%; }
    .authors-index-grid { grid-template-columns: 1fr; }
    .authors-index-card { grid-template-columns: 84px minmax(0, 1fr); gap: 15px; padding: 17px; }
    .authors-index-avatar { width: 84px; height: 84px; }
    .author-detail-hero { grid-template-columns: 1fr; justify-items: center; gap: 18px; padding: 22px 18px; text-align: center; }
    .author-detail-avatar { width: 104px; height: 104px; }
    .author-detail-copy { width: 100%; }
    .author-detail-bio { text-align: left; }
    .author-expertise-list,
    .author-public-links { justify-content: center; }
    .author-detail-summary { grid-column: auto; width: 100%; flex-wrap: wrap; }
    .author-detail-summary strong { margin-left: auto; }
    .author-detail-summary a { width: 100%; margin: 4px 0 0; text-align: center; }
    .author-articles-heading { align-items: flex-start; }
    .author-results-count { flex: 0 0 auto; }
}

/* ========================================================================== 
   SHARED PUBLIC SURFACES AND RESPONSIVE COMPLETENESS
   ========================================================================== */
.site-main,
.site-main > *,
.dual-main-col,
.cat-main-content,
.article-text-column,
.contact-form-col,
.contact-info-col {
    min-width: 0;
}

.nav-dropdown-wrap:focus-within .nav-dropdown-menu,
.nav-dropdown-wrap.open .nav-dropdown-menu {
    display: flex;
}
.nav-dropdown-menu > a {
    padding: 7px 12px;
    border-radius: 4px;
    color: #334155;
    font-size: .8rem;
}
.nav-dropdown-menu > a:hover,
.nav-dropdown-menu > a:focus-visible {
    background: #f1f5f9;
    color: #2563eb;
}
.dropdown-divider {
    height: 1px;
    margin: 4px 6px;
    background: #e2e8f0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.section-search-results,
.section-static-page,
.section-contact-page {
    padding: 10px 0 40px;
}
.search-empty-box {
    display: grid;
    justify-items: center;
    max-width: 680px;
    margin: 8px auto 0;
    padding: 48px 28px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
    text-align: center;
}
.search-empty-box .empty-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 50%;
    background: #eff6ff;
    font-size: 1.45rem;
}
.search-empty-box h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.25rem;
}
.search-empty-box p {
    max-width: 480px;
    margin: 8px 0 18px;
    color: #64748b;
    font-size: .84rem;
}

.static-page-box {
    max-width: 920px;
    margin-inline: auto;
    padding: 34px 38px 40px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}
.static-page-header {
    max-width: 740px;
    margin: 0 auto 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}
.static-page-header h1 {
    margin: 0;
    color: #0f172a;
    font: 700 2rem/1.2 var(--font-heading);
    letter-spacing: -.025em;
}
.static-page-body {
    max-width: 740px;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 34px;
    align-items: start;
    max-width: 1080px;
}
.contact-info-col {
    padding: 26px 0;
}
.contact-pill {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .08em;
}
.contact-info-col h1 {
    max-width: 560px;
    margin: 0;
    color: #0f172a;
    font: 700 2.1rem/1.16 var(--font-heading);
    letter-spacing: -.035em;
}
.contact-info-col > p {
    max-width: 560px;
    margin: 16px 0 0;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.65;
}
.contact-methods-stack {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}
.contact-method-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    background: #fff;
}
.method-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 9px;
    background: #eff6ff;
}
.contact-method-card > div {
    min-width: 0;
}
.contact-method-card strong,
.contact-method-card span:not(.method-icon) {
    display: block;
    overflow-wrap: anywhere;
}
.contact-method-card strong {
    color: #0f172a;
    font-size: .8rem;
}
.contact-method-card span:not(.method-icon) {
    margin-top: 2px;
    color: #64748b;
    font-size: .75rem;
}
.contact-form-card {
    padding: 26px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}
.main-contact-form,
.main-contact-form .form-group {
    display: grid;
}
.main-contact-form {
    gap: 15px;
}
.main-contact-form .form-group {
    gap: 6px;
    margin: 0;
}
.main-contact-form label {
    color: #334155;
    font-size: .76rem;
    font-weight: 650;
}
.main-contact-form input,
.main-contact-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    font-size: .82rem;
    outline: 0;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.main-contact-form input {
    min-height: 42px;
    padding: 0 13px;
}
.main-contact-form textarea {
    min-height: 132px;
    padding: 11px 13px;
    line-height: 1.55;
    resize: vertical;
}
.main-contact-form input:focus,
.main-contact-form textarea:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .13);
}
.btn-submit-contact {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}
.btn-submit-contact:hover {
    background: #1d4ed8;
}

.widget-link {
    color: #2563eb;
    font-size: .66rem;
    font-weight: 700;
    white-space: nowrap;
}
.toc-ordered-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.toc-anchor-link {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 5px;
    color: #475569;
    font-size: .74rem;
    line-height: 1.4;
}
.toc-anchor-link:hover,
.toc-anchor-link:focus-visible {
    color: #2563eb;
}
.toc-num {
    color: #2563eb;
    font-weight: 700;
}
.toc-icon-toggle {
    color: #94a3b8;
    font-size: .65rem;
}
.related-cards-stack,
.authors-sidebar-list {
    display: grid;
    gap: 9px;
}
.related-card-item,
.author-mini-row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
}
.related-card-item .related-info,
.author-mini-info {
    min-width: 0;
}
.related-card-item .related-info h4 {
    display: -webkit-box;
    margin: 0 0 3px;
    overflow: hidden;
    color: #0f172a;
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.related-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 5px;
    color: #94a3b8;
    font-size: .61rem;
}
.related-meta .rel-cat {
    color: #2563eb;
}
.author-mini-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding: 7px 0;
    border-bottom: 1px solid #eef2f6;
}
.author-mini-row:last-child {
    border-bottom: 0;
}
.author-mini-avatar {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    overflow: hidden;
    place-items: center;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: .68rem;
    font-weight: 800;
}
.author-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-mini-info strong,
.author-mini-info small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.author-mini-info strong {
    color: #0f172a;
    font-size: .75rem;
}
.author-mini-info small,
.author-mini-count {
    color: #94a3b8;
    font-size: .62rem;
}
.author-mini-count {
    white-space: nowrap;
}

.widget-promo-script {
    overflow: hidden;
    border: 0;
    background: linear-gradient(145deg, #1e40af, #6366f1);
    color: #fff;
}
.promo-mini-chip {
    display: inline-flex;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #dbeafe;
    font-size: .61rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.widget-promo-script h3 {
    margin: 9px 0 6px;
    color: #fff;
    font-size: 1rem;
    line-height: 1.3;
}
.widget-promo-script p,
.promo-mini-checklist,
.promo-mini-checks {
    color: #dbeafe;
    font-size: .7rem;
    line-height: 1.5;
}
.widget-promo-script p {
    margin: 0 0 12px;
}
.promo-mini-checklist {
    display: grid;
    gap: 5px;
    margin: 10px 0 14px;
    padding: 0;
    list-style: none;
}
.promo-mini-checklist span,
.promo-mini-checks span::first-letter {
    color: #bfdbfe;
}
.promo-mini-actions,
.promo-mini-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.promo-mini-checks {
    margin-top: 12px;
}
.btn-promo-action-wide,
.btn-promo-sm-primary,
.btn-promo-sm-secondary,
.btn-support-center {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: .72rem;
    font-weight: 700;
}
.btn-promo-action-wide {
    width: 100%;
}
.btn-promo-action-wide,
.btn-promo-sm-primary {
    background: #fff;
    color: #1e40af;
}
.btn-promo-sm-secondary {
    border: 1px solid rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .12);
    color: #fff;
}
.widget-support-box {
    text-align: center;
}
.support-icon-circle {
    display: grid;
    width: 42px;
    height: 42px;
    margin: 0 auto 8px;
    place-items: center;
    border-radius: 50%;
    background: #eff6ff;
}
.widget-support-box h3 {
    margin: 0;
    color: #0f172a;
    font-size: .95rem;
}
.widget-support-box p {
    margin: 6px 0 12px;
    color: #64748b;
    font-size: .7rem;
    line-height: 1.5;
}
.btn-support-center {
    background: #2563eb;
    color: #fff;
}
.comments-empty {
    margin: 0 0 18px;
    padding: 14px;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: .78rem;
    text-align: center;
}

.article-rendered-body,
.article-rendered-body p,
.article-rendered-body li,
.site-main h1,
.site-main h2,
.site-main h3,
.site-main h4,
.site-main a {
    overflow-wrap: anywhere;
}
.article-rendered-body iframe,
.article-rendered-body video,
.article-rendered-body embed,
.article-rendered-body object {
    max-width: 100%;
}
.article-rendered-body iframe,
.article-rendered-body video {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}
.article-rendered-body pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 14px;
    border-radius: 8px;
}
.article-rendered-body table,
.post-comparison-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

html.dark-mode .search-empty-box,
html.dark-mode .static-page-box,
html.dark-mode .contact-method-card,
html.dark-mode .contact-form-card {
    border-color: #334155;
    background: #1e293b;
}
html.dark-mode .static-page-header,
html.dark-mode .author-mini-row {
    border-color: #334155;
}
html.dark-mode .search-empty-box h2,
html.dark-mode .static-page-header h1,
html.dark-mode .contact-info-col h1,
html.dark-mode .contact-method-card strong,
html.dark-mode .author-mini-info strong,
html.dark-mode .related-card-item .related-info h4,
html.dark-mode .widget-support-box h3 {
    color: #f8fafc;
}
html.dark-mode .contact-info-col > p,
html.dark-mode .contact-method-card span:not(.method-icon),
html.dark-mode .search-empty-box p,
html.dark-mode .widget-support-box p {
    color: #cbd5e1;
}
html.dark-mode .nav-dropdown-menu > a {
    color: #cbd5e1;
}
html.dark-mode .nav-dropdown-menu > a:hover,
html.dark-mode .nav-dropdown-menu > a:focus-visible {
    background: #334155;
    color: #93c5fd;
}

/* Mobile-only type and action sizing: calmer hierarchy without changing desktop. */
@media (max-width: 768px) {
    .site-main h1 {
        font-size: clamp(1.55rem, 5.4vw, 1.9rem);
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -.025em;
    }

    .hero-title,
    .cat-hero-title,
    .cat-detail-title,
    .article-main-title,
    .authors-index-hero h1,
    .author-detail-copy h1 {
        font-size: clamp(1.55rem, 5.4vw, 1.9rem);
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -.025em;
    }

    .section-title,
    .filter-title-wrap h2,
    .cat-posts-title {
        font-size: 1.05rem;
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: -.012em;
    }

    .cat-lead-heading h2,
    .lead-card-title,
    .search-empty-box h2,
    .authors-index-card h2 {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.35;
        letter-spacing: -.01em;
    }

    .card-title,
    .grid-card-title {
        font-size: .79rem;
        font-weight: 650;
        line-height: 1.4;
        letter-spacing: -.006em;
    }

    .widget-title {
        font-size: .9rem;
        font-weight: 700;
    }

    .hero-excerpt,
    .cat-hero-desc,
    .cat-detail-intro,
    .article-main-excerpt,
    .authors-index-hero p,
    .author-detail-bio,
    .contact-info-col > p {
        font-size: .82rem;
        line-height: 1.58;
    }

    .article-rendered-body {
        font-size: .92rem;
        line-height: 1.72;
    }

    .article-rendered-body h2 {
        margin-top: 24px;
        font-size: 1.18rem;
        font-weight: 700;
        line-height: 1.32;
        letter-spacing: -.012em;
    }

    .article-rendered-body h3 {
        margin-top: 20px;
        font-size: 1.02rem;
        font-weight: 700;
        line-height: 1.38;
    }

    .btn,
    .btn-hero-action,
    .btn-promo-primary,
    .btn-promo-secondary,
    .btn-promo-back,
    .btn-cat-follow,
    .btn-sidebar-follow,
    .btn-author-posts,
    .btn-comment-submit,
    .btn-promo-discover,
    .btn-submit-contact,
    .btn-promo-action-wide,
    .btn-support-center,
    .btn-promo-sm-primary,
    .btn-promo-sm-secondary {
        display: inline-flex;
        min-height: 40px;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 8px 14px;
        border-radius: 7px;
        font-size: .74rem;
        font-weight: 650;
        line-height: 1.2;
        text-decoration: none;
    }

    .btn-sidebar-follow {
        padding: 8px 14px !important;
    }

    .btn-author-posts {
        background: #eff6ff;
        color: #1d4ed8;
    }

    .btn-submit-contact {
        width: 100%;
        border: 0;
        background: #2563eb;
        color: #fff;
        cursor: pointer;
    }

    .btn-promo-action-wide,
    .btn-promo-sm-primary {
        background: #fff;
        color: #1d4ed8;
    }

    .btn-promo-sm-secondary {
        border: 1px solid rgba(255, 255, 255, .35);
        background: rgba(255, 255, 255, .12);
        color: #fff;
    }

    .btn-support-center {
        background: #2563eb;
        color: #fff;
    }

    .filter-pill,
    .sort-tab-btn {
        min-height: 32px;
        padding: 5px 10px;
        font-size: .7rem;
        font-weight: 600;
    }

    .newsletter-card-form button,
    .sidebar-newsletter-form button {
        height: 40px;
        padding-inline: 14px;
        border-radius: 7px;
        font-size: .72rem;
        font-weight: 650;
    }

    .btn-header-login {
        min-height: 34px;
        padding: 6px 10px;
        border-radius: 7px;
        font-size: .68rem;
        font-weight: 650;
    }
}

@media (max-width: 480px) {
    .site-main h1,
    .hero-title,
    .cat-hero-title,
    .cat-detail-title,
    .article-main-title,
    .authors-index-hero h1,
    .author-detail-copy h1 {
        font-size: 1.5rem;
    }
}

/* Complete public responsive pass. */
@media (max-width: 1024px) {
    .contact-page-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 760px;
    }
    .contact-info-col {
        padding-bottom: 0;
    }
    .contact-methods-stack {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .cat-sidebar,
    .article-sidebar-col {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        position: static;
        align-items: start;
    }
    .post-features-grid,
    .guides-triple-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .section-heading-row,
    .filter-header-bar,
    .cat-posts-header-row {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 10px;
    }
    .section-heading-row > *,
    .filter-title-wrap,
    .cat-posts-title {
        min-width: 0;
    }
    .categories-search-form {
        width: 100%;
    }
    .cat-sort-tabs {
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .sort-tab-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .nav-bar-inner.open {
        width: min(100%, 1220px);
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }
    .nav-bar-inner.open > .nav-item,
    .nav-dropdown-wrap,
    .nav-dropdown-btn {
        width: 100%;
    }
    .nav-bar-inner.open > .nav-item,
    .nav-dropdown-btn {
        justify-content: space-between;
    }
    .nav-dropdown-wrap {
        display: flex;
        flex-direction: column;
    }
    .nav-dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 3px;
        border: 0;
        border-left: 2px solid #dbeafe;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    .nav-dropdown-wrap.open .nav-dropdown-menu {
        display: flex;
    }

    .hero-main-card-wrap,
    .hero-slides-wrapper,
    .hero-slide-item {
        min-height: 400px;
    }
    .hero-slide-item {
        padding: 26px;
    }
    .hero-slider-nav {
        opacity: .9;
    }
    .hero-side-stories-wrap {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .categories-hero-card,
    .cat-detail-hero-card,
    .article-hero-box {
        padding: 24px;
    }
    .cat-stat-badges,
    .cat-detail-meta-row {
        flex-wrap: wrap;
    }
    .cat-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .cat-sidebar,
    .article-sidebar-col,
    .guides-triple-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-text-column {
        padding: 24px;
    }
    .post-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .article-author-card {
        align-items: flex-start;
    }
    .article-author-card .author-card-title-row {
        flex-wrap: wrap;
        gap: 6px;
    }
    .article-tags-box {
        align-items: flex-start;
    }

    .static-page-box {
        padding: 28px 26px 32px;
    }
    .contact-methods-stack {
        grid-template-columns: minmax(0, 1fr);
    }
    .contact-info-col {
        padding-top: 14px;
    }
    .contact-form-card {
        padding: 22px;
    }
    .search-empty-box {
        padding: 38px 22px;
    }

    .authors-index-card-footer,
    .author-detail-summary {
        flex-wrap: wrap;
    }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .footer-newsletter-card {
        padding: 20px;
    }
}

@media (hover: none) and (max-width: 768px) {
    .nav-dropdown-wrap:hover .nav-dropdown-menu {
        display: none;
    }
    .nav-dropdown-wrap.open .nav-dropdown-menu {
        display: flex;
    }
}

@media (max-width: 560px) {
    .hero-side-stories-wrap {
        grid-template-columns: minmax(0, 1fr);
    }
    .side-story-card {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 10px;
    }
    .side-story-thumb {
        width: 104px;
        height: 78px;
    }
    .article-author-card {
        flex-wrap: wrap;
    }
    .author-card-body {
        flex-basis: calc(100% - 82px);
    }
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 28px);
    }
    .ticker-container {
        gap: 8px;
    }
    .ticker-clock,
    .ticker-actions {
        display: none;
    }
    .ticker-content-track {
        padding-inline: 4px;
    }
    .ticker-badge {
        padding-inline: 8px;
        font-size: .65rem;
    }
    .header-primary-row {
        padding-block: 10px;
    }
    .header-icon-btn {
        width: 34px;
        height: 34px;
    }
    .mobile-nav-toggle {
        min-width: 34px;
        min-height: 34px;
        align-items: center;
        justify-content: center;
    }

    .hero-main-card-wrap,
    .hero-slides-wrapper,
    .hero-slide-item {
        min-height: 380px;
    }
    .hero-slide-item {
        padding: 22px 20px;
    }
    .hero-slider-nav {
        top: 34%;
        width: 34px;
        height: 34px;
    }
    .hero-slider-prev { left: 8px; }
    .hero-slider-next { right: 8px; }

    .section-heading-row {
        margin-bottom: 10px;
    }
    .section-more-link {
        white-space: normal;
    }
    .categories-hero-card,
    .cat-detail-hero-card,
    .article-hero-box {
        padding: 20px 18px;
        gap: 18px;
    }
    .cat-stat-badges {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .cat-stat-pill {
        min-width: 0;
        padding: 9px 10px;
    }
    .folder-3d-graphic {
        width: 132px;
        height: 102px;
    }
    .folder-letter {
        font-size: 3rem;
    }
    .cat-hero-quote-box {
        right: 8px;
        bottom: 8px;
        max-width: calc(100% - 16px);
    }
    .cat-posts-header-row {
        flex-direction: column;
    }
    .cat-sort-tabs {
        width: 100%;
    }
    .sort-tab-btn {
        flex: 1 0 auto;
        text-align: center;
    }
    .cat-lead-card-wrap {
        padding: 12px;
    }
    .grid-card-body {
        padding: 9px;
    }
    .grid-card-desc {
        margin-bottom: 8px;
        font-size: .66rem;
    }
    .grid-card-byline {
        flex-wrap: wrap;
        font-size: .61rem;
    }
    .featured-cat-card {
        min-height: 142px;
        height: auto;
        padding: 11px;
    }
    .feat-cat-icon,
    .feat-cat-arrow {
        display: none;
    }
    .cat-card-media {
        height: 94px;
    }
    .cat-card-body {
        padding: 10px;
    }

    .article-text-column {
        padding: 20px 16px;
    }
    .article-short-answer-box,
    .article-takeaways-box,
    .article-sources-box {
        padding: 16px !important;
    }
    .article-faqs-section {
        margin-block: 28px !important;
    }
    .article-faqs-section > h3 {
        margin-bottom: 14px !important;
        font-size: 1.1rem !important;
        line-height: 1.35;
    }
    .article-faqs-section details {
        padding: 12px 14px !important;
    }
    .article-faqs-section summary,
    .article-faqs-section p,
    .article-sources-box li,
    .article-sources-box a {
        overflow-wrap: anywhere;
    }
    .article-rendered-body blockquote,
    .post-quote {
        margin-block: 18px;
        padding: 15px 16px;
    }
    .post-feature-card {
        padding: 11px 8px;
    }
    .post-comparison-table th,
    .post-comparison-table td {
        padding: 8px 10px;
        font-size: .72rem;
    }
    .article-author-card {
        gap: 12px;
        padding: 14px;
    }
    .author-card-avatar {
        width: 52px;
        height: 52px;
    }
    .comment-item {
        gap: 8px;
    }
    .comment-avatar {
        width: 30px;
        height: 30px;
    }
    .comment-author-row {
        flex-wrap: wrap;
        gap: 3px 8px;
    }
    .add-comment-form {
        padding: 14px;
    }
    .byline-share-wrap {
        width: 100%;
        flex-wrap: wrap;
    }

    .static-page-box {
        padding: 24px 18px 28px;
    }
    .static-page-header {
        margin-bottom: 18px;
        padding-bottom: 14px;
    }
    .contact-page-grid {
        gap: 22px;
    }
    .contact-info-col h1 {
        font-size: 1.5rem;
    }
    .contact-form-card {
        padding: 18px 15px;
    }
    .main-contact-form input {
        min-height: 40px;
    }
    .search-empty-box {
        padding: 30px 16px;
    }
    .empty-state {
        padding: 42px 18px;
    }
    .authors-index-card-footer {
        gap: 7px;
    }

    .footer-newsletter-card {
        padding: 18px 15px;
    }
    .newsletter-card-form {
        width: 100%;
    }
    .footer-cats-dual {
        gap: 12px;
    }
}

@media (max-width: 360px) {
    .brand-badge {
        display: none;
    }
    .btn-header-login {
        padding-inline: 8px;
    }
    .btn-header-login svg {
        display: none;
    }
    .cat-stat-badges,
    .post-features-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .newsletter-card-form,
    .sidebar-newsletter-form {
        flex-direction: column;
    }
    .newsletter-card-form button,
    .sidebar-newsletter-form button {
        width: 100%;
    }
    .article-tags-box {
        flex-direction: column;
    }
    .footer-cats-dual {
        grid-template-columns: minmax(0, 1fr);
    }
}
