@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300..800;1,9..40,300..800&display=swap');
:root {
    --bg: #f8f9fa;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --surface: #ffffff;
    --border: #e5e7eb;
    --primary: #c62828;
    --primary-dark: #8e0000;
    --primary-light: #ffebee;
    --accent: #ff8f00;
    --hero-gradient: linear-gradient(135deg, #8e0000 0%, #c62828 50%, #ff8f00 100%);
    --heading-color: #1a1a2e;
    --heading-font: 'Space Grotesk', sans-serif;
    --body-font: 'DM Sans', sans-serif;
    --radius: 8px;
    --radius-sm: 4px;
    --radius-pill: 20px;
    --card-shadow: 0 1px 8px rgba(0,0,0,0.06);
    --card-hover-shadow: 0 8px 24px rgba(0,0,0,0.12);
    --badge-radius: 4px;
    --sapo-text: #111827;
    --sapo-bg: var(--primary-light);
    --link-color: var(--primary-dark);
    --link-bg: var(--primary-light);
    --table-th-color: var(--primary-dark);
    --table-th-bg: var(--primary-light);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--body-font); background: var(--bg); color: var(--text); line-height: 1.7; }
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === REVISION HEADER === */
.rev-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.rev-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; gap: 20px;
}
.rev-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.rev-logo img { height: 36px; width: auto; object-fit: contain; }
.rev-logo-text {
    font-family: var(--heading-font); font-size: 1.15rem; font-weight: 800;
    color: var(--heading-color); margin: 0; padding: 0; display: inline;
    line-height: inherit; border: none; background: none;
}
.rev-nav { display: flex; align-items: center; gap: 4px; }
.rev-nav a {
    padding: 6px 14px; font-size: 0.88rem; font-weight: 500;
    color: var(--text); border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}
.rev-nav a:hover { color: var(--primary); background: var(--primary-light); }
.rev-nav .rev-dropdown { position: relative; }
.rev-nav .rev-dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 8px 0; z-index: 200;
}
.rev-nav .rev-dropdown:hover .rev-dropdown-menu { display: block; }
.rev-nav .rev-dropdown-menu a {
    display: block; padding: 8px 16px; font-size: 0.85rem;
    border-radius: 0;
}
.rev-nav .rev-dropdown-menu a:hover { background: var(--primary-light); color: var(--primary); }
.rev-header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.rev-search-btn {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--border); background: transparent;
    cursor: pointer; color: var(--text-muted); transition: all 0.2s ease;
}
.rev-search-btn:hover { border-color: var(--primary); color: var(--primary); }
.rev-cta-btn {
    padding: 8px 18px; font-size: 0.85rem; font-weight: 600;
    background: var(--primary); color: #ffffff; border: none;
    border-radius: var(--radius-pill); cursor: pointer;
    transition: all 0.2s ease; text-decoration: none;
}
.rev-cta-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* === REVISION HERO === */
.rev-hero {
    padding: 50px 0 30px; text-align: center; background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.rev-hero h1 {
    font-family: var(--heading-font); font-size: 2.4rem; font-weight: 800;
    color: var(--heading-color); line-height: 1.2; margin-bottom: 14px;
    letter-spacing: -0.5px;
}
.rev-hero h1 em { font-style: italic; color: var(--primary); }
.rev-hero p {
    font-size: 1rem; color: var(--text-muted); max-width: 600px;
    margin: 0 auto; line-height: 1.6;
}

/* === CATEGORY PILLS === */
.rev-pills-section { padding: 20px 0; border-bottom: 1px solid var(--border); background: var(--surface); }
.rev-pills-label {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--text-muted); text-align: center;
    margin-bottom: 14px;
}
.rev-pills {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.rev-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px; font-size: 0.82rem; font-weight: 500;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-pill); color: var(--text);
    transition: all 0.2s ease; cursor: pointer; text-decoration: none;
}
.rev-pill:hover {
    border-color: var(--primary); color: var(--primary); background: var(--primary-light);
}
.rev-pill-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

/* === MAIN LAYOUT === */
.rev-main { padding: 35px 0 50px; }
.rev-layout {
    display: grid; grid-template-columns: 1fr 340px; gap: 40px;
    align-items: start;
}

/* === ARTICLE CARDS GRID === */
.rev-feed { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.rev-card {
    background: var(--surface); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}
.rev-card:hover {
    box-shadow: var(--card-hover-shadow); transform: translateY(-3px);
}
.rev-card-thumb {
    position: relative; overflow: hidden; aspect-ratio: 4/3;
}
.rev-card-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.rev-card:hover .rev-card-thumb img { transform: scale(1.05); }
.rev-card-badge {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 12px; font-size: 0.72rem; font-weight: 600;
    background: var(--primary); color: #ffffff;
    border-radius: var(--badge-radius); text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rev-card-body { padding: 18px; }
.rev-card-meta {
    font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.rev-card-meta .rev-author-name { font-weight: 600; color: var(--text); }
.rev-card-title {
    font-family: var(--heading-font); font-size: 1rem; font-weight: 700;
    line-height: 1.35; color: var(--heading-color); margin-bottom: 8px;
}
.rev-card-title a { color: inherit; }
.rev-card-title a:hover { color: var(--primary); }
.rev-card-excerpt {
    font-size: 0.85rem; color: var(--text-muted); line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === SIDEBAR === */
.rev-sidebar { position: sticky; top: 80px; }

/* Author Widget */
.rev-author-widget {
    background: var(--surface); border-radius: var(--radius);
    padding: 28px; text-align: center; box-shadow: var(--card-shadow);
    margin-bottom: 24px;
}
.rev-author-avatar {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--primary-light); margin: 0 auto 14px;
    display: block;
}
.rev-author-name { font-family: var(--heading-font); font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.rev-author-title { font-size: 0.78rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.rev-author-bio { font-size: 0.84rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 14px; }
.rev-author-location { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.rev-author-socials { display: flex; justify-content: center; gap: 8px; }
.rev-author-socials a {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--border); color: var(--text-muted);
    font-size: 0.8rem; transition: all 0.2s ease;
}
.rev-author-socials a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* Featured Posts Widget */
.rev-widget {
    background: var(--surface); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--card-shadow); margin-bottom: 24px;
}
.rev-widget-title {
    font-family: var(--heading-font); font-size: 0.95rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px;
    padding-bottom: 10px; border-bottom: 2px solid var(--primary);
    color: var(--heading-color);
}
.rev-featured-item {
    display: flex; gap: 12px; margin-bottom: 14px; align-items: center;
}
.rev-featured-item:last-child { margin-bottom: 0; }
.rev-featured-thumb {
    width: 70px; height: 60px; border-radius: var(--radius-sm);
    overflow: hidden; flex-shrink: 0;
}
.rev-featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rev-featured-info { flex: 1; }
.rev-featured-cat { font-size: 0.7rem; color: var(--primary); font-weight: 600; text-transform: uppercase; }
.rev-featured-title {
    font-size: 0.82rem; font-weight: 600; line-height: 1.3;
    color: var(--heading-color);
}
.rev-featured-title a:hover { color: var(--primary); }

/* Category Stats Widget */
.rev-stats-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.rev-stats-item:last-child { border-bottom: none; }
.rev-stats-label { font-weight: 600; color: var(--heading-color); }
.rev-stats-value {
    font-size: 0.78rem; color: var(--text-muted); background: var(--primary-light);
    padding: 2px 10px; border-radius: var(--radius-pill);
}

/* === NEWSLETTER === */
.rev-newsletter {
    background: var(--heading-color); padding: 50px 0; text-align: center;
    color: #ffffff;
}
.rev-newsletter h2 { font-family: var(--heading-font); font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.rev-newsletter p { font-size: 0.9rem; opacity: 0.75; margin-bottom: 20px; }
.rev-newsletter-form {
    display: flex; max-width: 440px; margin: 0 auto; gap: 0;
    border-radius: var(--radius-pill); overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}
.rev-newsletter-form input {
    flex: 1; padding: 12px 18px; border: none; outline: none;
    font-size: 0.9rem; font-family: var(--body-font);
    background: rgba(255,255,255,0.1); color: #ffffff;
}
.rev-newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.rev-newsletter-form button {
    padding: 12px 24px; border: none; background: var(--primary);
    color: #ffffff; font-weight: 600; font-size: 0.85rem;
    cursor: pointer; transition: background 0.2s ease;
    font-family: var(--body-font);
}
.rev-newsletter-form button:hover { background: var(--accent); }

/* === FOOTER === */
.rev-footer { background: #1a1a2e; color: rgba(255,255,255,0.7); padding: 50px 0 0; }
.rev-footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
    padding-bottom: 35px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.rev-footer-brand p { font-size: 0.85rem; line-height: 1.6; margin-top: 12px; }
.rev-footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.rev-footer-logo img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.rev-footer-logo span {
    font-family: var(--heading-font); font-size: 1.2rem; font-weight: 800;
    color: #ffffff;
}
.rev-footer-socials { display: flex; gap: 8px; margin-top: 15px; }
.rev-footer-socials a {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.6);
    transition: all 0.2s ease;
}
.rev-footer-socials a:hover { border-color: var(--primary); color: var(--primary); }
.rev-footer-col-title {
    font-family: var(--heading-font); font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; color: #ffffff; margin-bottom: 16px;
    letter-spacing: 0.5px;
}
.rev-footer-col ul { list-style: none; }
.rev-footer-col li { margin-bottom: 8px; }
.rev-footer-col a { font-size: 0.84rem; transition: color 0.2s ease; }
.rev-footer-col a:hover { color: var(--primary); }
.rev-footer-bottom {
    padding: 18px 0; text-align: center; font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .rev-layout { grid-template-columns: 1fr; }
    .rev-sidebar { position: static; }
    .rev-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .rev-header-inner { flex-wrap: wrap; }
    .rev-nav { display: none; }
    .rev-hero h1 { font-size: 1.6rem; }
    .rev-feed { grid-template-columns: 1fr; }
    .rev-footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .rev-newsletter-form { flex-direction: column; border-radius: var(--radius); }
    .rev-newsletter-form input, .rev-newsletter-form button { border-radius: 0; }
    .rev-pills { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
}

/* === SHARED BASE (article pages, category pages, legal) === */
header {
    background: var(--surface); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.logo-wrap { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-img { height: 35px; width: auto; object-fit: contain; }
.logo-text { font-family: var(--heading-font); font-size: 1.2rem; font-weight: 800; color: var(--heading-color); }
nav ul { display: flex; list-style: none; gap: 5px; }
nav li a { padding: 6px 12px; font-size: 0.88rem; color: var(--text); border-radius: var(--radius-sm); }
nav li a:hover { color: var(--primary); }
.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; }
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 190px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 6px 0; z-index: 200; list-style: none;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { display: block; padding: 8px 16px; font-size: 0.85rem; }
.dropdown-menu li a:hover { background: var(--primary-light); }
.hero {
    background: var(--hero-gradient); padding: 60px 20px; text-align: center;
    color: #ffffff; border-radius: 0;
}
.hero h2 { font-family: var(--heading-font); font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.hero p { font-size: 1rem; opacity: 0.9; max-width: 600px; margin: 0 auto 20px; }
.btn-hero {
    display: inline-block; padding: 10px 25px; background: #ffffff;
    color: var(--primary-dark); font-weight: 600; border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.section-title { font-family: var(--heading-font); font-size: 1.5rem; font-weight: 800; color: var(--heading-color); }
.section-sub { font-size: 0.9rem; color: var(--text-muted); margin-top: 5px; }
.section-divider { width: 50px; height: 3px; background: var(--primary); margin: 15px 0 25px; border-radius: 2px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.card {
    background: var(--surface); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}
.card:hover { box-shadow: var(--card-hover-shadow); transform: translateY(-3px); }
.card-thumb { overflow: hidden; aspect-ratio: 16/10; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-body { padding: 18px; }
.card-category {
    display: inline-block; font-size: 0.72rem; font-weight: 600;
    color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.card-title { font-family: var(--heading-font); font-size: 1rem; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.card-title a { color: var(--heading-color); }
.card-title a:hover { color: var(--primary); }
.card-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.card-footer { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-muted); margin-top: 10px; }
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin: 20px 0; }
.breadcrumb a { color: var(--primary); }
.article-wrap { max-width: 800px; margin: 0 auto; padding: 30px 20px; }
.article-wrap h1 { font-family: var(--heading-font); font-size: 1.8rem; font-weight: 800; line-height: 1.3; margin-bottom: 15px; color: var(--heading-color); }
.article-wrap h2 { font-family: var(--heading-font); font-size: 1.3rem; margin: 25px 0 12px; color: var(--heading-color); }
.article-wrap h3 { font-family: var(--heading-font); font-size: 1.1rem; margin: 20px 0 10px; color: var(--heading-color); }
.article-wrap p { margin-bottom: 16px; }
.article-wrap img { border-radius: var(--radius); margin: 15px 0; }
.article-wrap ul, .article-wrap ol { margin: 10px 0 16px 25px; }
.article-wrap li { margin-bottom: 6px; }
.article-meta { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; flex-wrap: wrap; }
footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 40px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { font-size: 0.85rem; margin-top: 10px; line-height: 1.6; }
.footer-logo-text { font-family: var(--heading-font); font-size: 1.1rem; font-weight: 800; color: #ffffff; }
.footer-col-title { font-family: var(--heading-font); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; color: #ffffff; margin-bottom: 12px; display: block; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 0.84rem; }
.footer-col a:hover { color: #ffffff; }
.footer-bottom { padding: 15px 0; text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.sapo { background: var(--sapo-bg); color: var(--sapo-text); padding: 16px 20px; border-left: 4px solid var(--primary); border-radius: var(--radius-sm); margin-bottom: 20px; font-style: italic; }
.silo-link { background: var(--primary-light); padding: 10px 15px; border-radius: var(--radius-sm); margin: 12px 0; }
.silo-link a { color: var(--primary-dark); font-weight: 600; }
.foks-meta-author { font-weight: 600; color: var(--text); }
.author-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 30px; display: flex; gap: 15px; align-items: flex-start; }
.author-box img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.author-box-name { font-family: var(--heading-font); font-weight: 700; margin-bottom: 4px; }
.author-box-title { font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.author-box-bio { font-size: 0.85rem; color: var(--text-muted); }
.legal-wrap { max-width: 800px; margin: 0 auto; padding: 30px 20px; }
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; gap: 10px; }
    nav ul { flex-wrap: wrap; }
    .hero h2 { font-size: 1.5rem; }
    .grid { grid-template-columns: 1fr; }
    .article-wrap, .legal-wrap { padding: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}
