/* =============================================================================
   BIZNEWS - Business/News Blog Template
   Pure CSS — No external framework dependencies
   Version: 2026-03-05
   =============================================================================
   TABLE OF CONTENTS
   01. CSS Custom Properties (Variables)
   02. Reset & Base
   03. Utility Classes
   04. Topbar
   05. Site Header & Navigation
   06. Hero Section
   07. Breaking News Bar
   08. Section Headers
   09. Featured Row
   10. Main Layout & News Grid
   11. Sidebar & Widgets
   12. Article Page
   13. Related Articles
   14. Author Box
   15. Social Share
   16. Category Page
   17. Author Page
   18. Static / Legal Pages
   19. Breadcrumb
   20. Pagination
   21. Footer
   22. Back to Top Button
   23. Search Overlay
   24. Animations & Keyframes
   25. Responsive Breakpoints (992px, 768px, 576px)
   26. Contact Page
   27. 404 Page
   28. Print Styles
   ============================================================================= */


/* =============================================================================
   01. CSS CUSTOM PROPERTIES
   ============================================================================= */

:root {
    /* Brand Colors */
    --primary:        #FFCC00;
    --primary-dark:   #E6B800;
    --secondary:      #31404B;
    --dark:           #1E2024;
    --dark-2:         #2A2D33;

    /* UI Colors */
    --body-bg:        #EDEFF4;
    --white:          #FFFFFF;
    --border:         #dee2e6;
    --border-dark:    #D8DAE0;

    /* Text Colors */
    --text:           #333333;
    --text-alt:       #3A3D45;
    --text-muted:     #6c757d;
    --text-light:     #999999;
    --text-light-alt: #6E7280;

    /* Typography */
    --font:           'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --container:      1200px;
    --gap:            1.5rem;
    --sidebar-width:  300px;

    /* Style */
    --radius:         0;
    --transition:     0.3s ease;

    /* Shadows */
    --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.07);
    --shadow-md:      0 4px 20px rgba(0, 0, 0, 0.09);
    --shadow-lg:      0 8px 32px rgba(0, 0, 0, 0.14);
    --shadow-header:  0 2px 16px rgba(0, 0, 0, 0.35);
}


/* =============================================================================
   02. RESET & BASE
   ============================================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--body-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Body modifier: disable scroll when search is open */
body.search-open {
    overflow: hidden;
}

/* Base element reset */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: var(--font);
}

input,
textarea,
select {
    font-family: var(--font);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
}

p {
    margin-bottom: 0;
}

figure {
    margin: 0;
}

/* Push footer to bottom */
.page-main {
    flex: 1;
}

main {
    flex: 1;
}

.content-main {
    flex: 1;
}

.page-content-wrapper {
    flex: 1;
}


/* =============================================================================
   03. UTILITY CLASSES
   ============================================================================= */

/* Container */
.container {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Badge base */
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.6;
    border-radius: var(--radius);
    white-space: nowrap;
}

/* Yellow badge variant */
.badge--yellow {
    background-color: var(--primary);
    color: var(--dark);
}

/* Category badge pill (article page heading) */
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary);
    color: var(--dark);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
    text-decoration: none;
    transition: background-color var(--transition);
}

.category-badge:hover {
    background-color: var(--primary-dark);
}

/* Section spacing helpers */
.section-mt {
    margin-top: 2.5rem;
}

.section-mb {
    margin-bottom: 2.5rem;
}


/* =============================================================================
   04. TOPBAR
   ============================================================================= */

.topbar {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Inner flex layout — both variants */
.topbar-inner,
.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Article page uses .container.topbar-inner directly */
.topbar .container.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-date {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.5);
}

.topbar-date svg {
    flex-shrink: 0;
    color: var(--primary);
}

.topbar-link {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity var(--transition);
}

.topbar-link:hover {
    opacity: 0.8;
    color: var(--primary);
}

/* Quick category links shown in article page topbar */
.topbar-cats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-cats a {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}

.topbar-cats a:hover {
    color: var(--primary);
}


/* =============================================================================
   05. SITE HEADER & NAVIGATION
   ============================================================================= */

/* ---- Header wrapper ---- */
.site-header {
    background-color: var(--secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition), background-color var(--transition), transform var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-header);
    background-color: var(--dark);
}

/* Hide-on-scroll-down (article.html JS adds .hidden) */
.site-header.hidden {
    transform: translateY(-100%);
}

/* ---- Header inner row ---- */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 1.5rem;
}

/* ---- Logo ---- */
.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.site-logo img {
    height: 44px;
    width: auto;
    display: block;
}

.logo-svg {
    display: flex;
    align-items: center;
}

.logo-svg svg {
    height: 44px;
    width: auto;
}

/* Text logo built via JS (homepage) */
.logo-text {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    white-space: nowrap;
}

/* Text logo variant (article page) */
.logo-text .logo-name {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    display: block;
}

.logo-text .logo-tagline {
    display: block;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

/* JS-injected logo spans */
.logo-word-accent {
    color: var(--primary);
}

.logo-word-rest {
    color: var(--white);
}

/* Simpler text logo (category/author/static pages) */
.logo-primary {
    color: var(--primary);
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer logo text */
.footer-logo__text,
.footer-site-name {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
}

/* ---- Inline main nav (homepage) ---- */
.main-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Secondary nav bar variant (category/author/static: below header) */
nav.main-nav,
.site-header > nav.main-nav {
    background-color: var(--dark-2);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    flex: unset;
    display: block;
}

nav.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ---- Nav Menu ---- */
.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    padding: 14px 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    white-space: nowrap;
    transition: color var(--transition), background-color var(--transition);
}

/* Slightly more compact for the secondary nav bar */
nav.main-nav .nav-item > a {
    padding: 11px 14px;
}

.nav-item > a:hover {
    color: var(--primary);
}

.nav-item.active > a {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

/* Dropdown indicator arrow */
.dropdown-arrow {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    transition: transform var(--transition);
}

.nav-item.has-dropdown:hover .dropdown-arrow,
.nav-item.has-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* ---- Dropdown Menu ---- */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark);
    min-width: 200px;
    border-top: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    display: block;
}

.nav-item.has-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--transition), padding-left var(--transition);
}

.dropdown-menu li a:hover {
    color: var(--primary);
    padding-left: 24px;
}

/* ---- Header Actions (homepage: search + hamburger) ---- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Article page: header-right wraps nav toggle + search */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- Search toggle ---- */
.search-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
    cursor: pointer;
}

.search-toggle:hover {
    color: var(--primary);
}

/* In secondary nav bar */
nav.main-nav .search-toggle {
    padding: 11px 14px;
}

.nav-search {
    display: flex;
    align-items: center;
}

/* ---- Hamburger button ---- */
.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
}

/* X icon when active */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =============================================================================
   06. HERO SECTION
   ============================================================================= */

.hero-section {
    background-color: var(--dark);
    padding: 20px 0 0;
}

/* Two-column grid: 7fr large left + 5fr right 2x2 */
.hero-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 4px;
    min-height: 500px;
}

.hero-main {
    height: 100%;
}

/* Right column: 2x2 grid */
.hero-grid__right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
}

/* ---- Hero Card Base ---- */
.hero-card {
    position: relative;
    overflow: hidden;
    display: block;
    background-color: var(--dark-2);
}

/* Full-overlay link */
.hero-card__link {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ---- Image ---- */
.hero-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

.hero-card:hover .hero-card__img {
    transform: scale(1.05);
}

/* ---- Large card (main featured) ---- */
.hero-card--large {
    height: 500px;
}

/* ---- Small cards (2x2 right grid) ---- */
.hero-card--small {
    height: 248px;
}

/* ---- Gradient overlay ---- */
.hero-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 20px 20px 24px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.55) 50%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* ---- Meta / badge row ---- */
.hero-card__meta {
    margin-bottom: 8px;
}

/* ---- Titles ---- */
.hero-card__title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.hero-card__title a {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition);
}

.hero-card__title a:hover {
    color: var(--primary);
}

/* Smaller title for the 4 right-grid cards */
.hero-card__title--sm {
    font-size: 0.875rem;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Excerpt — large card only */
.hero-card__excerpt {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.55;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Footer / author line ---- */
.hero-card__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.hero-card__author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: color var(--transition);
}

.hero-card__author:hover {
    color: var(--primary);
}

.hero-card__author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}


/* =============================================================================
   07. BREAKING NEWS BAR
   ============================================================================= */

.breaking-bar {
    background-color: var(--primary);
    color: var(--dark);
    padding: 0;
    overflow: hidden;
}

.breaking-bar__inner {
    display: flex;
    align-items: stretch;
    min-height: 40px;
}

.breaking-bar__label {
    background-color: var(--dark);
    color: var(--white);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    border-right: 2px solid var(--primary);
}

.breaking-bar__ticker {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 16px;
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.breaking-bar__ticker-inner {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 24s linear infinite;
}

.breaking-bar__ticker-inner span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--dark);
    padding-right: 60px;
}

.breaking-bar__ticker-inner span::after {
    content: ' \2022';
    padding-left: 20px;
    opacity: 0.35;
}

.breaking-bar__arrow {
    flex-shrink: 0;
    margin: 0 14px;
    color: var(--dark);
    opacity: 0.6;
    align-self: center;
}

/* Pause animation on hover */
.breaking-bar:hover .breaking-bar__ticker-inner {
    animation-play-state: paused;
}


/* =============================================================================
   08. SECTION HEADERS
   ============================================================================= */

.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.5rem;
}

/* Variant with top margin */
.section-header--mt {
    margin-top: 2.5rem;
}

.section-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--dark);
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0;
}

/* Yellow decorative line */
.section-line {
    flex: 1;
    height: 2px;
    background-color: var(--primary);
    display: block;
    border: none;
    min-width: 20px;
}


/* =============================================================================
   09. FEATURED ROW
   ============================================================================= */

.featured-row {
    padding: 2rem 0 0.5rem;
    background-color: var(--body-bg);
}

/* 4 columns on desktop */
.featured-row__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ---- Featured Card ---- */
.feat-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}

.feat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Image wrapper */
.feat-card__img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
    background-color: var(--body-bg);
}

.feat-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.feat-card:hover .feat-card__img {
    transform: scale(1.05);
}

/* Badge absolute top-left */
.feat-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

/* Body */
.feat-card__body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feat-card__title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.35;
    color: var(--dark);
    margin-bottom: 8px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feat-card__title a {
    color: var(--dark);
    text-decoration: none;
    transition: color var(--transition);
}

.feat-card__title a:hover {
    color: var(--primary-dark);
}

.feat-card__meta {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: auto;
}

.feat-card__author {
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
}

.feat-card__author:hover {
    color: var(--primary-dark);
}


/* =============================================================================
   10. MAIN LAYOUT & NEWS GRID
   ============================================================================= */

.main-section {
    padding: 2rem 0 3rem;
}

/* 8fr / 4fr two-column grid */
.main-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: var(--gap);
    align-items: start;
}

.main-col {
    min-width: 0;
}

/* ---- News Grid (2 columns within main col) ---- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ---- News Card ---- */
.news-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Image wrapper */
.news-card__img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
    background-color: var(--body-bg);
    flex-shrink: 0;
}

.news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.news-card:hover .news-card__img {
    transform: scale(1.05);
}

/* Badge on image */
.news-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

/* Body */
.news-card__body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.35;
    color: var(--dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__title a {
    color: var(--dark);
    text-decoration: none;
    transition: color var(--transition);
}

.news-card__title a:hover {
    color: var(--primary-dark);
}

.news-card__excerpt {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Footer row: author */
.news-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: auto;
}

.news-card__author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.news-card__author:hover {
    color: var(--primary-dark);
}

.news-card__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Rank number (trending section) */
.news-card__rank {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -1px;
}

/* ---- Card variants used in category/author pages ---- */
.card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: var(--body-bg);
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.news-card:hover .card-img-wrap img {
    transform: scale(1.04);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary);
    color: var(--dark);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    z-index: 2;
    text-decoration: none;
    transition: background-color var(--transition);
}

.card-badge:hover {
    background-color: var(--primary-dark);
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-meta .dot {
    color: var(--border);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 10px;
    flex: 1;
}

.card-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color var(--transition);
}

.card-title a:hover {
    color: var(--primary-dark);
}

.card-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.card-author {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: auto;
}

.card-author a {
    color: var(--dark);
    transition: color var(--transition);
}

.card-author a:hover {
    color: var(--primary-dark);
}

.card-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: auto;
}

.card-cat a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: opacity var(--transition);
}

.card-cat a:hover {
    opacity: 0.8;
}

/* Articles grid (category/author page) */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

/* No articles placeholder */
.no-articles {
    background-color: var(--white);
    border: 1px dashed var(--border);
    padding: 60px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 32px;
}

/* Two-column layout for article page */
.layout-two-col {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: var(--gap);
    align-items: start;
    padding: 2rem 0 3rem;
}

.content-main {
    min-width: 0;
}

/* Content grid (category/author sidebar layout) */
.content-grid {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 32px;
    padding-bottom: 60px;
}


/* =============================================================================
   11. SIDEBAR & WIDGETS
   ============================================================================= */

/* Sticky sidebar on homepage */
.sidebar {
    position: sticky;
    top: 80px;
    min-width: 0;
}

/* Non-sticky on article/category/author pages */
.layout-two-col .sidebar,
.content-grid .sidebar {
    position: static;
}

/* ---- Widget Base ---- */
.widget {
    background-color: var(--white);
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 1.5rem;
}

/* Widget header: title + decorative line */
.widget__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.widget__title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark);
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0;
}

/* widget-title: standalone with bottom border (article/category/author pages) */
.widget-title {
    display: block;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 18px;
}

.widget__line {
    flex: 1;
    height: 2px;
    background-color: var(--primary);
    display: block;
    min-width: 10px;
}

/* ---- Widget: Categories (homepage sidebar) ---- */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--border);
    background-color: var(--white);
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.category-tag:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

/* Article page sidebar tags */
.cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-tag {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--border);
    background-color: var(--white);
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.cat-tag:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

/* Widget-cats: list variant (category/author pages) */
.widget-cats {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-cats li {
    border-bottom: 1px solid var(--border);
}

.widget-cats li:last-child {
    border-bottom: none;
}

.widget-cats a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition), padding-left var(--transition);
}

.widget-cats a:hover,
.widget-cats a.active {
    color: var(--primary-dark);
    padding-left: 6px;
}

.widget-cats svg {
    flex-shrink: 0;
    color: var(--primary);
}

/* Sidebar post (category page sidebar) */
.sidebar-post {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.sidebar-post:last-child {
    border-bottom: none;
}

.sidebar-post-img {
    width: 72px;
    height: 54px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: var(--body-bg);
}

.sidebar-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-post-info {
    flex: 1;
    min-width: 0;
}

.sidebar-post-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.35;
    margin-bottom: 4px;
}

.sidebar-post-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color var(--transition);
}

.sidebar-post-title a:hover {
    color: var(--primary-dark);
}

.sidebar-post-date {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---- Widget: Popular posts (homepage sidebar) ---- */
.popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Large yellow rank number */
.popular-item__num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    min-width: 28px;
    flex-shrink: 0;
    letter-spacing: -1px;
}

/* Thumbnail */
.popular-item__thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: var(--body-bg);
}

.popular-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.popular-item:hover .popular-item__thumb img {
    transform: scale(1.08);
}

/* Content */
.popular-item__content {
    flex: 1;
    min-width: 0;
}

.popular-item__cat {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-dark);
    margin-bottom: 4px;
    text-decoration: none;
    transition: opacity var(--transition);
}

.popular-item__cat:hover {
    opacity: 0.8;
}

.popular-item__title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.35;
    color: var(--dark);
    text-decoration: none;
    transition: color var(--transition);
}

.popular-item__title:hover {
    color: var(--primary-dark);
}

/* Article page sidebar: alternate popular item markup */
.popular-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: var(--body-bg);
}

.popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popular-info {
    flex: 1;
    min-width: 0;
}

.popular-cat {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.popular-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.35;
    margin: 0;
}

.popular-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color var(--transition);
}

.popular-title a:hover {
    color: var(--primary-dark);
}

/* ---- Widget: Newsletter ---- */
.widget--newsletter__text,
.newsletter-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

/* Newsletter icon (article page sidebar) */
.newsletter-icon {
    text-align: center;
    margin-bottom: 12px;
    color: var(--primary);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    background-color: var(--white);
    font-size: 13px;
    font-family: var(--font);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition);
    border-radius: var(--radius);
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--primary);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--text-light);
}

.newsletter-form button[type="submit"] {
    width: 100%;
    padding: 10px 14px;
    background-color: var(--primary);
    color: var(--dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition);
    font-family: var(--font);
}

.newsletter-form button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

/* Author sidebar card (author page) */
.author-sidebar-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.author-sidebar-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    margin: 0 auto 14px;
    background-color: var(--body-bg);
}

.author-sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-sidebar-name {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark);
    margin-bottom: 8px;
}

.author-sidebar-bio {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Article page sidebar widget classes (alt naming) */
.widget-categories,
.widget-popular,
.widget-newsletter {
    background-color: var(--white);
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 1.5rem;
}


/* =============================================================================
   12. ARTICLE PAGE
   ============================================================================= */

/* Article card wrapper */
.article-page {
    background-color: var(--white);
    border: 1px solid var(--border);
}

/* ---- Article Header ---- */
.article-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.article-title {
    font-size: 1.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 14px;
    margin-top: 10px;
}

.article-excerpt {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-style: italic;
    border-left: 3px solid var(--primary);
    padding-left: 14px;
}

/* ---- Article Meta Row ---- */
.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.meta-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--dark);
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.meta-author-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color var(--transition);
}

.meta-author-name:hover {
    color: var(--primary-dark);
}

.meta-details {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.meta-date,
.meta-read-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.meta-date svg,
.meta-read-time svg {
    flex-shrink: 0;
    color: var(--primary);
}

/* ---- Featured Image ---- */
.article-featured-image {
    margin: 0;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 520px;
    object-fit: cover;
}

.image-caption {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    padding: 8px 2rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border);
}

/* ---- Article Body (Prose) ---- */
.article-body {
    padding: 2rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.article-body h2 {
    font-size: 1.375rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    color: var(--dark);
    margin-top: 2rem;
    margin-bottom: 0.875rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.article-body h3 {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
}

.article-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.article-body h5,
.article-body h6 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.article-body p {
    margin-bottom: 1.25rem;
    color: var(--text);
}

.article-body a {
    color: var(--primary-dark);
    text-decoration: underline;
    text-decoration-color: rgba(230, 184, 0, 0.4);
    transition: text-decoration-color var(--transition), color var(--transition);
}

.article-body a:hover {
    color: var(--dark);
    text-decoration-color: var(--primary);
}

.article-body ul,
.article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.article-body ul {
    list-style: disc;
}

.article-body ol {
    list-style: decimal;
}

.article-body li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

.article-body ul ul,
.article-body ol ol {
    margin-top: 0.4rem;
    margin-bottom: 0;
}

/* Blockquote */
.article-body blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary);
    background-color: #f8f9fa;
    font-style: italic;
    color: var(--text-muted);
}

.article-body blockquote p {
    margin-bottom: 0;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.article-body blockquote cite {
    display: block;
    margin-top: 8px;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 600;
    color: var(--dark);
}

/* Images */
.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
}

.article-body figure {
    margin: 1.5rem 0;
    text-align: center;
}

.article-body figcaption {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 6px;
    text-align: center;
}

/* Code blocks */
.article-body pre {
    background-color: var(--dark);
    color: #f8f8f2;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
    border-left: 3px solid var(--primary);
}

.article-body code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.875em;
}

.article-body :not(pre) > code {
    background-color: #f1f3f5;
    padding: 2px 6px;
    color: var(--dark);
    border: 1px solid var(--border);
}

/* Tables */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.article-body th,
.article-body td {
    padding: 10px 14px;
    text-align: left;
    border: 1px solid var(--border);
}

.article-body th {
    background-color: var(--dark);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.3px;
}

.article-body tr:nth-child(even) td {
    background-color: #f8f9fa;
}

/* Horizontal rule */
.article-body hr {
    border: none;
    border-top: 2px solid var(--primary);
    margin: 2rem 0;
    width: 60px;
}

.article-body strong {
    font-weight: 700;
    color: var(--dark);
}

.article-body em {
    font-style: italic;
    color: var(--text-muted);
}

/* ---- Content body (static/legal pages) ---- */
.content-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.content-body h2 {
    font-size: 1.375rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dark);
    margin-top: 2rem;
    margin-bottom: 0.875rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.content-body h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.content-body p {
    margin-bottom: 1.25rem;
}

.content-body ul,
.content-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.content-body ul {
    list-style: disc;
}

.content-body ol {
    list-style: decimal;
}

.content-body a {
    color: var(--primary-dark);
    text-decoration: underline;
}

.content-body a:hover {
    color: var(--dark);
}

.content-body blockquote {
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary);
    background-color: #f8f9fa;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-muted);
}


/* =============================================================================
   13. RELATED ARTICLES
   ============================================================================= */

.related-articles {
    padding: 2rem;
    border-top: 1px solid var(--border);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 1.25rem;
}

.related-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.related-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.related-card-image-link {
    display: block;
    overflow: hidden;
}

.related-card-image {
    height: 160px;
    overflow: hidden;
    background-color: var(--body-bg);
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.related-card:hover .related-card-image img {
    transform: scale(1.05);
}

.related-card-body {
    padding: 14px;
}

.related-card-cat {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-dark);
    margin-bottom: 6px;
    text-decoration: none;
    transition: opacity var(--transition);
}

.related-card-cat:hover {
    opacity: 0.8;
}

.related-card-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.35;
    color: var(--dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color var(--transition);
}

.related-card-title a:hover {
    color: var(--primary-dark);
}

.related-card-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    font-weight: 600;
}

.related-card-meta a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.related-card-meta a:hover {
    color: var(--primary-dark);
}


/* =============================================================================
   14. AUTHOR BOX (Article page)
   ============================================================================= */

.author-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 2rem;
    border-top: 3px solid var(--primary);
    border-bottom: 1px solid var(--border);
    background-color: #f8f9fa;
}

.author-portrait {
    flex-shrink: 0;
}

.author-portrait img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid var(--primary);
}

.author-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--dark);
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-label {
    display: inline-block;
    background-color: var(--primary);
    color: var(--dark);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    margin-bottom: 8px;
}

.author-name {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--dark);
    margin-bottom: 8px;
}

.author-name a {
    color: var(--dark);
    text-decoration: none;
    transition: color var(--transition);
}

.author-name a:hover {
    color: var(--primary-dark);
}

.author-bio {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 10px;
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-dark);
    text-decoration: none;
    transition: opacity var(--transition);
}

.author-link:hover {
    opacity: 0.8;
}

/* ---- Author page header ---- */
.author-header {
    background-color: var(--dark);
    padding: 48px 0 40px;
}

.author-profile {
    display: flex;
    align-items: center;
    gap: 32px;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    flex-shrink: 0;
    background-color: var(--dark-2);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder used inside .author-avatar on author page */
.author-profile .author-avatar .author-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-2);
    color: var(--primary);
    font-size: 2rem;
    font-weight: 800;
    border-radius: 0;
}

.author-profile .author-name {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 10px;
}

.author-profile .author-bio {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: 12px;
}

.author-count {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    display: inline-block;
}


/* =============================================================================
   15. SOCIAL SHARE
   ============================================================================= */

.social-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background-color: #f8f9fa;
}

.share-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--dark);
    margin-right: 4px;
}

.share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: opacity var(--transition), transform var(--transition);
    cursor: pointer;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.share-twitter {
    background-color: #1da1f2;
    color: var(--white);
}

.share-facebook {
    background-color: #1877f2;
    color: var(--white);
}

.share-linkedin {
    background-color: #0a66c2;
    color: var(--white);
}


/* =============================================================================
   16. CATEGORY PAGE
   ============================================================================= */

.category-header {
    background-color: var(--dark);
    padding: 40px 0;
}

.category-label {
    display: inline-block;
    background-color: var(--primary);
    color: var(--dark);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    margin-bottom: 14px;
}

.category-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 12px;
}

.category-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    max-width: 640px;
    margin-bottom: 14px;
}

.category-count {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    display: inline-block;
}


/* =============================================================================
   17. AUTHOR PAGE
   ============================================================================= */

/* Author page profile styles live in section 14 (Author Box) */


/* =============================================================================
   18. STATIC / LEGAL PAGES
   ============================================================================= */

.page-static .page-content-wrapper,
.page-content-wrapper {
    background-color: var(--body-bg);
    padding: 2.5rem 0 4rem;
}

.page-content {
    background-color: var(--white);
    border: 1px solid var(--border);
    padding: 2.5rem;
    max-width: 900px;
}

.page-content .section-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark);
    margin-bottom: 1.5rem;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-content .section-title h1 {
    font-size: inherit;
    font-weight: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
    border: none;
    padding: 0;
}


/* =============================================================================
   19. BREADCRUMB
   ============================================================================= */

.breadcrumb-bar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
}

/* Article page: flex row */
.breadcrumb {
    padding: 12px 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

/* List variant (category/author pages) */
.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '\203A';
    margin-right: 4px;
    color: var(--border);
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.breadcrumb-item.active {
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}

/* Simple breadcrumb (article/static pages) */
.breadcrumb a {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.bc-sep {
    color: var(--border);
    display: inline-flex;
    align-items: center;
    margin: 0 2px;
}

.bc-current {
    color: var(--dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 12px;
}

/* Static page simple breadcrumb */
.breadcrumb .separator {
    color: var(--border);
    margin: 0 4px;
    font-size: 14px;
}

.breadcrumb .current {
    color: var(--dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}


/* =============================================================================
   20. PAGINATION
   ============================================================================= */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 0 0;
}

.pagination__controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination__link,
.pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background-color: var(--white);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
    cursor: pointer;
}

.pagination__link:hover,
.pagination__page:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.pagination__page--current {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
    font-weight: 800;
    pointer-events: none;
}

.pagination__link--disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

.pagination__link-text {
    display: none;
}


/* =============================================================================
   21. FOOTER
   ============================================================================= */

.site-footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.65);
    padding-top: 56px;
    margin-top: auto;
}

/* Wrapper used in article page */
.footer-top {
    /* content inside */
}

/* ---- Footer Grid (4 columns) ---- */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- Footer Column ---- */
.footer-col,
.footer-section {
    min-width: 0;
}

/* Column titles */
.footer-col__title,
.footer-col-title,
.footer-section h5 {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

/* About column */
.footer-col__desc,
.footer-desc,
.footer-section p {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 12px;
}

/* Footer logo */
.footer-logo {
    display: block;
    margin-bottom: 14px;
    text-decoration: none;
}

.footer-logo img {
    height: 38px;
    width: auto;
}

/* Email link */
.footer-col__email {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    transition: opacity var(--transition);
    margin-top: 8px;
}

.footer-col__email:hover {
    opacity: 0.8;
}

.footer-contact-email {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.footer-contact-email a {
    color: var(--primary);
    transition: opacity var(--transition);
}

.footer-contact-email a:hover {
    opacity: 0.8;
}

/* ---- Footer Posts ---- */
.footer-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-post {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-post:last-child {
    border-bottom: none;
}

.footer-post__thumb {
    width: 60px;
    height: 45px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: var(--dark-2);
}

.footer-post__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.footer-post:hover .footer-post__thumb img {
    transform: scale(1.08);
}

.footer-post__content {
    flex: 1;
    min-width: 0;
}

.footer-post__cat {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 3px;
    text-decoration: none;
    transition: opacity var(--transition);
}

.footer-post__cat:hover {
    opacity: 0.8;
}

.footer-post__title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    transition: color var(--transition);
}

.footer-post__title:hover {
    color: var(--primary);
}

/* Compact footer-post (category/author/static pages .footer-section) */
.footer-section .footer-post {
    flex-direction: column;
    gap: 3px;
}

.footer-section .footer-post a {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    display: block;
    margin-bottom: 3px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    transition: color var(--transition);
}

.footer-section .footer-post a:hover {
    color: var(--primary);
}

.footer-section .footer-post small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}

/* ---- Footer Category Tags ---- */
.footer-category-tags,
.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-category-tag,
.footer-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.65);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    text-decoration: none;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.footer-category-tag:hover,
.footer-tag:hover {
    background-color: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

/* ---- Footer Links ---- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition);
}

.footer-links a svg {
    flex-shrink: 0;
    color: var(--primary);
}

.footer-links a:hover {
    color: var(--primary);
}

/* ---- Footer Bottom ---- */
.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Two-column bottom bar */
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Single centered line (category/author/static pages) */
.footer-bottom .container > p,
.footer-bottom > .container > p {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

.footer-copyright,
.copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

.footer-copyright strong,
.copyright strong {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links,
.footer-bottom__links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-bottom-links a,
.footer-bottom__links a {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-bottom-links a:hover,
.footer-bottom__links a:hover {
    color: var(--primary);
}

/* Email obfuscation span */
.obfuscated-email {
    display: inline;
}


/* =============================================================================
   22. BACK TO TOP BUTTON
   ============================================================================= */

/* button#back-to-top (homepage / article variants) */
#back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background-color: var(--primary);
    color: var(--dark);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color var(--transition), transform var(--transition);
    z-index: 999;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

/* Anchor variant used in category/author/static pages */
a.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background-color: var(--primary);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color var(--transition), transform var(--transition);
    z-index: 999;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    border-radius: 50%;
}

#back-to-top.visible,
a.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover,
a.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}


/* =============================================================================
   23. SEARCH OVERLAY
   ============================================================================= */

.search-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(30, 32, 36, 0.97);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Clickable backdrop */
.search-overlay__backdrop {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

/* Box (homepage) */
.search-overlay__box {
    position: relative;
    width: 90%;
    max-width: 620px;
    z-index: 1;
}

/* Inner wrapper (article/category/author/static pages) */
.search-overlay-inner {
    position: relative;
    width: 90%;
    max-width: 600px;
    z-index: 1;
}

/* Close buttons */
.search-overlay__close,
.search-close {
    position: absolute;
    top: -56px;
    right: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
}

.search-overlay__close:hover,
.search-close:hover {
    color: var(--primary);
}

/* Search form (homepage) */
.search-overlay__form {
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transition: border-color var(--transition);
}

.search-overlay__form:focus-within {
    border-bottom-color: var(--primary);
}

.search-overlay__form input[type="search"] {
    flex: 1;
    background: none;
    border: none;
    padding: 16px 0;
    font-family: var(--font);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    outline: none;
    width: 100%;
}

.search-overlay__form input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-overlay__form button[type="submit"] {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 16px 8px;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

.search-overlay__form button[type="submit"]:hover {
    color: var(--primary);
}

/* Search form (secondary pages) */
.search-form,
.search-form-overlay {
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transition: border-color var(--transition);
}

.search-form:focus-within,
.search-form-overlay:focus-within {
    border-bottom-color: var(--primary);
}

.search-form input,
.search-form-overlay input {
    flex: 1;
    background: none;
    border: none;
    padding: 16px 0;
    font-family: var(--font);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--white);
    outline: none;
    width: 100%;
}

.search-form input::placeholder,
.search-form-overlay input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}


/* =============================================================================
   24. ANIMATIONS & KEYFRAMES
   ============================================================================= */

/* Breaking news ticker scroll */
@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Generic fade in up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle pulse (loading indicators) */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.45;
    }
}

/* Card image hover zoom — handled inline per card via transition: transform 0.45s ease */
/* Card lift — handled per card via transition: box-shadow, transform */


/* =============================================================================
   25. RESPONSIVE BREAKPOINTS
   ============================================================================= */

/* --------------------------------------------------
   max-width: 1200px
   -------------------------------------------------- */
@media (max-width: 1200px) {

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-card--large {
        height: 440px;
    }

    .hero-card--small {
        height: 218px;
    }

    .featured-row__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --------------------------------------------------
   max-width: 992px — tablet / small desktop
   -------------------------------------------------- */
@media (max-width: 992px) {

    /* Show hamburger */
    .nav-toggle {
        display: flex;
    }

    /* Homepage: hide inline nav, show hamburger drawer */
    .header-inner .main-nav {
        display: none;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--dark-2);
        flex-direction: column;
        align-items: stretch;
        border-top: 2px solid var(--primary);
        box-shadow: var(--shadow-lg);
        z-index: 500;
        padding: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    /* Secondary nav bar */
    nav.main-nav {
        position: relative;
    }

    nav.main-nav .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--dark-2);
        flex-direction: column;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 100;
        box-shadow: var(--shadow-lg);
    }

    nav.main-nav .nav-menu.nav-open,
    nav.main-nav .nav-menu.active {
        display: flex;
    }

    .nav-item > a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Dropdown static on mobile */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        background-color: rgba(0, 0, 0, 0.25);
        min-width: unset;
        width: 100%;
    }

    .nav-item.has-dropdown:hover .dropdown-menu {
        display: none;
    }

    .nav-item.has-dropdown.open .dropdown-menu {
        display: block;
    }

    nav.main-nav .container {
        flex-wrap: wrap;
    }

    /* Hero: single column */
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-main {
        height: auto;
    }

    .hero-card--large {
        height: 380px;
    }

    .hero-grid__right {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .hero-card--small {
        height: 200px;
    }

    /* Featured: 2 columns */
    .featured-row__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Main layout: sidebar below content */
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    /* Article layout: full width */
    .layout-two-col {
        grid-template-columns: 1fr;
    }

    .layout-two-col .content-main {
        order: 1;
    }

    .layout-two-col .sidebar {
        order: 2;
    }

    /* Category/author content grid */
    .content-grid {
        grid-template-columns: 1fr;
    }

    /* Footer: 2 columns */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Related articles: 2 columns */
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --------------------------------------------------
   max-width: 768px — mobile
   -------------------------------------------------- */
@media (max-width: 768px) {

    /* Hide topbar */
    .topbar {
        display: none;
    }

    /* Scale hero down */
    .hero-card__title {
        font-size: 1.125rem;
    }

    .hero-card--large {
        height: 300px;
    }

    .hero-card--small {
        height: 160px;
    }

    .hero-card__excerpt {
        display: none;
    }

    /* Featured: 1 column */
    .featured-row__grid {
        grid-template-columns: 1fr;
    }

    /* News: 1 column */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Articles grid: 1 column */
    .articles-grid {
        grid-template-columns: 1fr;
    }

    /* Category/author headers */
    .category-title {
        font-size: 1.625rem;
    }

    .author-profile .author-name {
        font-size: 1.625rem;
    }

    /* Author profile: stack */
    .author-profile {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    /* Article header text */
    .article-title {
        font-size: 1.375rem;
    }

    /* Article inner padding */
    .article-header,
    .article-body,
    .social-share,
    .author-box,
    .related-articles {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Related articles: 1 column */
    .related-grid {
        grid-template-columns: 1fr;
    }

    /* Footer: keep 2 cols at 768px */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Static page */
    .page-content {
        padding: 1.5rem;
    }

    /* Contact cards: 1 column */
    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    /* Article page: remove side borders */
    .article-page {
        border-left: none;
        border-right: none;
    }
}

/* --------------------------------------------------
   max-width: 576px — small mobile
   -------------------------------------------------- */
@media (max-width: 576px) {

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Hero very small */
    .hero-card--large {
        height: 240px;
    }

    .hero-card--small {
        height: 130px;
    }

    .hero-card__title--sm {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }

    /* Footer: 1 column */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Article meta: stack */
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Share buttons: icon only */
    .share-btn span {
        display: none;
    }

    .share-btn {
        padding: 8px 10px;
    }

    /* Pagination: smaller */
    .pagination__link,
    .pagination__page {
        min-width: 32px;
        height: 32px;
        font-size: 11px;
    }

    /* Author box: stack */
    .author-box {
        flex-direction: column;
        gap: 14px;
    }

    .author-portrait img,
    .author-avatar-placeholder {
        width: 64px;
        height: 64px;
    }

    /* Category/author page */
    .category-title {
        font-size: 1.375rem;
    }

    .author-profile .author-name {
        font-size: 1.25rem;
    }

    .author-avatar {
        width: 80px;
        height: 80px;
    }

    /* Popular item */
    .popular-item__thumb {
        width: 64px;
        height: 48px;
    }
}


/* =============================================================================
   26. CONTACT PAGE
   ============================================================================= */

.page-contact .contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 0 4rem;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 2.5rem;
}

.contact-info-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    transition: box-shadow var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-sm);
}

.contact-info-card__icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    border-radius: 50%;
}

.contact-info-card__title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark);
    margin-bottom: 6px;
}

.contact-info-card__text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-form {
    background-color: var(--white);
    border: 1px solid var(--border);
    padding: 2rem;
}

.contact-form__group {
    margin-bottom: 1.25rem;
}

.contact-form__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark);
    margin-bottom: 6px;
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    background-color: var(--white);
    font-size: 14px;
    font-family: var(--font);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition);
    border-radius: var(--radius);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    border-color: var(--primary);
}

.contact-form__textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form__submit {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--primary);
    color: var(--dark);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    transition: background-color var(--transition);
}

.contact-form__submit:hover {
    background-color: var(--primary-dark);
}


/* =============================================================================
   27. 404 PAGE
   ============================================================================= */

.page-404 .error-page,
.error-page {
    text-align: center;
    padding: 5rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.error-page__number {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    letter-spacing: -4px;
    margin-bottom: 1rem;
    display: block;
}

.error-page__title {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark);
    margin-bottom: 1rem;
}

.error-page__text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.error-page__search {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

.error-page__search input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-right: none;
    font-size: 14px;
    font-family: var(--font);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition);
}

.error-page__search input:focus {
    border-color: var(--primary);
}

.error-page__search button {
    padding: 12px 20px;
    background-color: var(--primary);
    color: var(--dark);
    border: 2px solid var(--primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color var(--transition);
}

.error-page__search button:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.error-page__back {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-dark);
    text-decoration: none;
    transition: opacity var(--transition);
}

.error-page__back:hover {
    opacity: 0.8;
}


/* =============================================================================
   28. PRINT STYLES
   ============================================================================= */

@media print {

    /* Hide non-content elements */
    .topbar,
    .site-header,
    nav.main-nav,
    .breaking-bar,
    .featured-row,
    .sidebar,
    .social-share,
    .related-articles,
    .site-footer,
    #back-to-top,
    a.back-to-top,
    .search-overlay,
    .nav-toggle,
    .search-toggle,
    .newsletter-form,
    .widget--newsletter,
    .widget-newsletter,
    .pagination,
    .breadcrumb-bar {
        display: none !important;
    }

    /* Article full width */
    .layout-two-col,
    .main-layout,
    .content-grid {
        display: block !important;
    }

    .content-main,
    .main-col {
        width: 100% !important;
    }

    /* Print base */
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
        font-family: Georgia, serif;
        display: block;
    }

    .article-page {
        border: none;
        padding: 0;
    }

    .article-header,
    .article-body {
        padding-left: 0;
        padding-right: 0;
    }

    .article-title {
        font-size: 22pt;
        color: #000;
    }

    .article-body h2,
    .article-body h3 {
        color: #000;
    }

    .article-body a {
        color: #000;
        text-decoration: underline;
    }

    .article-body blockquote {
        border-left: 3px solid #000;
        background: none;
    }

    /* Page breaks */
    h1, h2, h3 {
        page-break-after: avoid;
    }

    .article-featured-image,
    figure {
        page-break-inside: avoid;
    }

    /* Show URLs after links */
    a[href^="http"]::after {
        content: " <" attr(href) ">";
        font-size: 9pt;
        color: #555;
    }
}
