/*
Theme Name: My Custom Theme
Theme URI: https://example.com/my-custom-theme
Author: Your Name
Author URI: https://example.com
Description: A clean, modern WordPress theme built from scratch with full theme support features.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-custom-theme
Tags: blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    padding: 40px 0;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr ;
    gap: 40px;
}

@media (max-width: 768px) {
    .content-area {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 16px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
}

.site-description {
    font-size: 0.875rem;
    color: #aaaaaa;
    margin: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.main-navigation ul li a {
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
    display: block;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    background-color: #0073aa;
    text-decoration: none;
}

.main-navigation ul ul {
    display: none;
    position: absolute;
    background-color: #2a2a2a;
    min-width: 200px;
    border-radius: 4px;
    flex-direction: column;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li:hover > ul {
    display: flex;
}

/* ==========================================================================
   Posts & Pages
   ========================================================================== */

.post,
.page {
    margin-bottom: 40px;
}

.entry-header {
    margin-bottom: 16px;
}

.entry-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.entry-title a {
    color: #1a1a1a;
}

.entry-title a:hover {
    color: #0073aa;
    text-decoration: none;
}

.entry-meta {
    font-size: 0.85rem;
    color: #777777;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.post-thumbnail {
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: opacity 0.2s ease;
}

.post-thumbnail img:hover {
    opacity: 0.9;
}

.entry-content {
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.2em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 1.5em 0 0.5em;
    line-height: 1.3;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1em 1.5em;
}

.entry-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eeeeee;
    font-size: 0.85rem;
    color: #777777;
}

/* ==========================================================================
   Sidebar / Widgets
   ========================================================================== */

.widget-area {
    align-self: start;
}

.widget {
    background-color: #f9f9f9;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    color: #1a1a1a;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid #eeeeee;
    font-size: 0.9rem;
}

.widget ul li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: #1a1a1a;
    color: #aaaaaa;
    padding: 24px 0;
    font-size: 0.875rem;
    text-align: center;
}

.site-footer a {
    color: #cccccc;
}

.site-footer a:hover {
    color: #ffffff;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.navigation {
    margin: 40px 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    color: #333333;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: #0073aa;
    border-color: #0073aa;
    color: #ffffff;
    text-decoration: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button,
button,
input[type="submit"] {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    background-color: #005f8d;
    color: #ffffff;
    text-decoration: none;
}

/* ==========================================================================
   Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
}

/* ==========================================================================
   Screen Reader
   ========================================================================== */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   Breaking News Ticker
   ========================================================================== */

.breaking-news-bar {
    background-color: #cc0000;
    color: #ffffff;
    padding: 8px 0;
    font-size: 0.875rem;
    overflow: hidden;
}

.breaking-news-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breaking-label {
    background-color: #ffffff;
    color: #cc0000;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.breaking-ticker-wrap {
    flex: 1;
    overflow: hidden;
    min-height: 1.4em;
}

.breaking-ticker {
    list-style: none;
    margin: 0;
    padding: 0;
}

.breaking-ticker .ticker-item {
    display: none;
}

.breaking-ticker .ticker-item a {
    color: #ffffff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.breaking-ticker .ticker-item a:hover {
    text-decoration: underline;
}

.ticker-pause {
    background: none;
    border: 1px solid rgba(255,255,255,0.5);
    color: #ffffff;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
}

.ticker-pause:hover {
    background-color: rgba(255,255,255,0.15);
}

/* ==========================================================================
   Front Page — Shared Utilities
   ========================================================================== */

.fp-section-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #cc0000;
}

.fp-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #1a1a1a;
    margin: 0;
}

.fp-section-subtitle {
    font-size: 0.8rem;
    color: #888888;
    font-style: italic;
}

/* Category label pill */
.fp-label {
    display: inline-block;
    background-color: #cc0000;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 2px;
    margin-bottom: 8px;
    transition: background-color 0.2s ease;
}

.fp-label:hover {
    background-color: #aa0000;
    text-decoration: none;
}

.fp-label--primary {
    font-size: 0.8rem;
    padding: 4px 12px;
}

/* Meta line */
.fp-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #888888;
    margin-top: 8px;
}

.fp-meta a {
    color: #555555;
}

.fp-meta a:hover {
    color: #cc0000;
}

.fp-meta__sep {
    color: #cccccc;
}

/* Read time badge */
.fp-read-time {
    font-size: 0.75rem;
    color: #aaaaaa;
    background-color: #f4f4f4;
    padding: 2px 7px;
    border-radius: 10px;
}

/* Section wrappers spacing */
.fp-featured,
.fp-trending,
.fp-categories,
.fp-latest {
    margin-bottom: 60px;
}

/* ==========================================================================
   Front Page — 1. Featured Posts
   ========================================================================== */

.fp-featured__grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

@media (max-width: 900px) {
    .fp-featured__grid {
        grid-template-columns: 1fr;
    }
}

/* Hero */
.fp-featured__hero {
    position: relative;
    background-color: #111111;
    border-radius: 8px;
    overflow: hidden;
}

.fp-featured__hero-thumb img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    opacity: 0.75;
    transition: opacity 0.3s ease;
    display: block;
}

.fp-featured__hero:hover .fp-featured__hero-thumb img {
    opacity: 0.6;
}

.fp-featured__hero-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: #ffffff;
}

.fp-featured__hero-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px;
}

.fp-featured__hero-title a {
    color: #ffffff;
    text-decoration: none;
}

.fp-featured__hero-title a:hover {
    text-decoration: underline;
}

.fp-featured__hero-excerpt {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: 10px;
    line-height: 1.5;
}

.fp-featured__hero .fp-meta {
    color: rgba(255,255,255,0.7);
}

.fp-featured__hero .fp-meta a {
    color: rgba(255,255,255,0.85);
}

/* Secondary cards stack */
.fp-featured__secondary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fp-featured__card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    align-items: start;
    padding-bottom: 16px;
    border-bottom: 1px solid #eeeeee;
}

.fp-featured__card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.fp-featured__card-thumb img {
    width: 110px;
    height: 78px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    transition: opacity 0.2s ease;
}

.fp-featured__card-thumb:hover img {
    opacity: 0.85;
}

.fp-featured__card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 6px;
}

.fp-featured__card-title a {
    color: #1a1a1a;
}

.fp-featured__card-title a:hover {
    color: #cc0000;
    text-decoration: none;
}

/* ==========================================================================
   Front Page — 2. Trending Posts
   ========================================================================== */

.fp-trending__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .fp-trending__list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .fp-trending__list {
        grid-template-columns: 1fr;
    }
}

.fp-trending__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    background-color: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    transition: box-shadow 0.2s ease;
}

.fp-trending__item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.fp-trending__rank {
    font-size: 2rem;
    font-weight: 900;
    color: #eeeeee;
    line-height: 1;
    flex-shrink: 0;
    min-width: 36px;
}

.fp-trending__thumb {
    flex-shrink: 0;
}

.fp-trending__thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.fp-trending__body {
    flex: 1;
    min-width: 0;
}

.fp-trending__title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 6px;
}

.fp-trending__title a {
    color: #1a1a1a;
}

.fp-trending__title a:hover {
    color: #cc0000;
    text-decoration: none;
}

/* ==========================================================================
   Front Page — 3. Category Blocks
   ========================================================================== */

.fp-categories__wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 900px) {
    .fp-categories__wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .fp-categories__wrapper {
        grid-template-columns: 1fr;
    }
}

.fp-cat-block__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a1a1a;
}

.fp-cat-block__name {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.fp-cat-block__name a {
    color: #1a1a1a;
    text-decoration: none;
}

.fp-cat-block__name a:hover {
    color: #cc0000;
}

.fp-cat-block__more {
    font-size: 0.75rem;
    color: #cc0000;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.fp-cat-block__more:hover {
    text-decoration: underline;
}

.fp-cat-block__grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fp-cat-block__card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
    align-items: start;
}

.fp-cat-block__thumb img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    transition: opacity 0.2s ease;
}

.fp-cat-block__thumb--placeholder {
    width: 80px;
    height: 60px;
    background-color: #eeeeee;
    border-radius: 4px;
}

.fp-cat-block__thumb:hover img {
    opacity: 0.85;
}

.fp-cat-block__title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 4px;
}

.fp-cat-block__title a {
    color: #1a1a1a;
}

.fp-cat-block__title a:hover {
    color: #cc0000;
    text-decoration: none;
}

/* ==========================================================================
   Front Page — 4. Latest Posts List
   ========================================================================== */

.fp-latest__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fp-latest__item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    align-items: start;
    padding: 20px 0;
    border-bottom: 1px solid #eeeeee;
}

.fp-latest__item:last-child {
    border-bottom: none;
}

@media (max-width: 480px) {
    .fp-latest__item {
        grid-template-columns: 1fr;
    }
}

.fp-latest__thumb img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    transition: opacity 0.2s ease;
}

.fp-latest__thumb:hover img {
    opacity: 0.85;
}

.fp-latest__top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.fp-latest__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
}

.fp-latest__title a {
    color: #1a1a1a;
}

.fp-latest__title a:hover {
    color: #cc0000;
    text-decoration: none;
}

.fp-latest__excerpt {
    font-size: 0.875rem;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Pagination */
.fp-latest__pagination {
    margin-top: 32px;
}

.fp-latest__pagination .page-numbers {
    display: inline-flex;
}

.fp-latest__pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ==========================================================================
   Post Card — Standard Grid (post-card.php)
   ========================================================================== */

.post-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Thumbnail wrapper — relative so the category label can overlay */
.post-card__thumb-wrap {
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    aspect-ratio: 16 / 9;
}

.post-card__thumb-wrap--no-image {
    background-color: #e8e8e8;
}

.post-card__thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}

.post-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.post-card:hover .post-card__thumb {
    transform: scale(1.04);
}

/* Category label — bottom-left of thumbnail */
.post-card__cat {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: #cc0000;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 9px;
    border-radius: 2px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    z-index: 1;
}

.post-card__cat:hover {
    background-color: #aa0000;
}

/* Body */
.post-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

.post-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
}

.post-card__title a {
    color: #1a1a1a;
    text-decoration: none;
}

.post-card__title a:hover {
    color: #cc0000;
}

.post-card__excerpt {
    font-size: 0.875rem;
    color: #666666;
    line-height: 1.55;
    margin: 0 0 12px;
    flex: 1;
}

.post-card__footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.post-card__date {
    font-size: 0.78rem;
    color: #999999;
}

/* ==========================================================================
   Post Card Small — Horizontal Compact (post-card-small.php)
   ========================================================================== */

.post-card-small {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.post-card-small:last-child {
    border-bottom: none;
}

/* Thumbnail */
.post-card-small__thumb-link {
    display: block;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background-color: #eeeeee;
}

.post-card-small__thumb {
    width: 90px;
    height: 68px;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.post-card-small__thumb-link:hover .post-card-small__thumb {
    opacity: 0.85;
}

.post-card-small__thumb--placeholder {
    width: 90px;
    height: 68px;
    background-color: #e8e8e8;
    border-radius: 4px;
}

/* Body */
.post-card-small__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.post-card-small__cat {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #cc0000;
    text-decoration: none;
    line-height: 1;
}

.post-card-small__cat:hover {
    text-decoration: underline;
}

.post-card-small__title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    /* Clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-small__title a {
    color: #1a1a1a;
    text-decoration: none;
}

.post-card-small__title a:hover {
    color: #cc0000;
}

.post-card-small__date {
    font-size: 0.75rem;
    color: #aaaaaa;
}

/* ==========================================================================
   Post Card Featured — Large Overlay (post-card-featured.php)
   ========================================================================== */

.post-card-featured {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #111111;
    /* Maintains 16:9 unless overridden */
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* ── Media layer (fills entire card) */
.post-card-featured__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.post-card-featured__thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}

.post-card-featured__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.post-card-featured:hover .post-card-featured__thumb {
    transform: scale(1.04);
    opacity: 0.65;
}

.post-card-featured__thumb--placeholder {
    width: 100%;
    height: 100%;
    background-color: #333333;
}

/* Gradient overlay */
.post-card-featured__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.90) 0%,
        rgba(0, 0, 0, 0.55) 45%,
        rgba(0, 0, 0, 0.10) 100%
    );
    z-index: 1;
}

/* ── Content layer (sits above overlay) */
.post-card-featured__content {
    position: relative;
    z-index: 2;
    padding: 24px 22px;
    color: #ffffff;
}

/* Category label */
.post-card-featured__cat {
    display: inline-block;
    background-color: #cc0000;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 2px;
    text-decoration: none;
    margin-bottom: 10px;
    transition: background-color 0.2s ease;
}

.post-card-featured__cat:hover {
    background-color: #aa0000;
}

/* Title */
.post-card-featured__title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px;
}

.post-card-featured__title a {
    color: #ffffff;
    text-decoration: none;
}

.post-card-featured__title a:hover {
    text-decoration: underline;
}

/* Excerpt */
.post-card-featured__excerpt {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
    margin: 0 0 12px;
}

/* Meta */
.post-card-featured__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    flex-wrap: wrap;
}

.post-card-featured__meta-author a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
}

.post-card-featured__meta-author a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.post-card-featured__meta-sep {
    color: rgba(255, 255, 255, 0.35);
}

.post-card-featured__meta-date {
    color: rgba(255, 255, 255, 0.65);
}

/* ── Responsive: taller on small screens */
@media (max-width: 600px) {
    .post-card-featured {
        aspect-ratio: 4 / 3;
    }

    .post-card-featured__title {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   Single Post — Layout
   ========================================================================== */

.single-post-page {
    padding: 40px 0 60px;
}

.single-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

@media (max-width: 900px) {
    .single-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Single Post — Header
   ========================================================================== */

.single-article__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.single-cat-label {
    display: inline-block;
    background-color: #cc0000;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 2px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.single-cat-label:hover {
    background-color: #aa0000;
}

.single-article__title {
    font-size: clamp( 1.6rem, 3.5vw, 2.4rem );
    font-weight: 900;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 14px;
}

.single-article__deck {
    font-size: 1.15rem;
    color: #555555;
    line-height: 1.6;
    margin: 0 0 20px;
    font-style: italic;
    border-left: 3px solid #cc0000;
    padding-left: 14px;
}

/* ==========================================================================
   Single Post — Meta Row
   ========================================================================== */

.single-article__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 28px;
}

/* Author block */
.single-meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.single-meta-author__avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
}

.single-meta-author__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.single-meta-author__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
}

.single-meta-author__name:hover {
    color: #cc0000;
}

.single-meta-author__role {
    font-size: 0.75rem;
    color: #999999;
}

/* Details: date, read time, comments */
.single-meta-details {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.single-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #777777;
}

.single-meta-item svg {
    flex-shrink: 0;
    color: #aaaaaa;
}

.single-meta-item--updated {
    font-style: italic;
    color: #aaaaaa;
}

.single-meta-item--link {
    text-decoration: none;
    color: #777777;
    transition: color 0.2s ease;
}

.single-meta-item--link:hover {
    color: #cc0000;
}

/* ==========================================================================
   Single Post — Featured Image
   ========================================================================== */

.single-article__featured-image {
    margin: 0 0 32px;
    border-radius: 6px;
    overflow: hidden;
}

.single-article__featured-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 520px;
    object-fit: cover;
}

.single-article__featured-caption {
    font-size: 0.8rem;
    color: #888888;
    font-style: italic;
    padding: 10px 12px;
    background-color: #f9f9f9;
    border-left: 3px solid #dddddd;
    margin-top: 0;
}

/* ==========================================================================
   Single Post — Body Content
   ========================================================================== */

.single-article__content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #333333;
    margin-bottom: 36px;
}

.single-article__content > * + * {
    margin-top: 1.3em;
}

.single-article__content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 2em;
    margin-bottom: 0.5em;
    color: #1a1a1a;
    padding-bottom: 8px;
    border-bottom: 2px solid #eeeeee;
}

.single-article__content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1.8em;
    margin-bottom: 0.5em;
    color: #1a1a1a;
}

.single-article__content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.6em;
    color: #1a1a1a;
}

.single-article__content a {
    color: #cc0000;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.single-article__content a:hover {
    color: #aa0000;
}

.single-article__content blockquote {
    margin: 2em 0;
    padding: 20px 24px;
    background-color: #fdf6f6;
    border-left: 4px solid #cc0000;
    border-radius: 0 4px 4px 0;
    font-size: 1.1rem;
    font-style: italic;
    color: #444444;
}

.single-article__content blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-style: normal;
    color: #888888;
}

.single-article__content img {
    border-radius: 4px;
    max-width: 100%;
    height: auto;
}

.single-article__content figure {
    margin: 2em 0;
}

.single-article__content figcaption {
    font-size: 0.8rem;
    color: #888888;
    font-style: italic;
    text-align: center;
    margin-top: 8px;
}

.single-article__content ul,
.single-article__content ol {
    padding-left: 1.6em;
}

.single-article__content li + li {
    margin-top: 0.4em;
}

.single-article__content pre {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Paginated posts */
.page-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 24px 0;
    border-top: 1px solid #eeeeee;
    margin-top: 24px;
}

.page-links__label {
    font-weight: 700;
    font-size: 0.875rem;
    color: #555555;
}

.page-links__number a,
.page-links__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #333333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-links__number a:hover {
    background-color: #cc0000;
    border-color: #cc0000;
    color: #ffffff;
}

/* ==========================================================================
   Single Post — Footer: Tags + Share
   ========================================================================== */

.single-article__footer {
    padding-top: 24px;
    border-top: 2px solid #eeeeee;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Tags */
.single-article__tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.single-article__tags-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888888;
}

.single-tag {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #dddddd;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #555555;
    text-decoration: none;
    transition: all 0.2s ease;
}

.single-tag:hover {
    border-color: #cc0000;
    color: #cc0000;
    background-color: #fff5f5;
}

/* Share buttons */
.single-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.single-share__label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888888;
}

.single-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.single-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
    line-height: 1;
}

.single-share__btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.single-share__btn--facebook  { background-color: #1877f2; color: #ffffff; }
.single-share__btn--twitter   { background-color: #000000; color: #ffffff; }
.single-share__btn--linkedin  { background-color: #0a66c2; color: #ffffff; }
.single-share__btn--whatsapp  { background-color: #25d366; color: #ffffff; }
.single-share__btn--copy      {
    background-color: #f0f0f0;
    color: #333333;
    border: 1px solid #dddddd;
}

.single-share__btn--copy:hover {
    background-color: #e8e8e8;
}

/* ==========================================================================
   Single Post — Author Bio Box
   ========================================================================== */

.single-author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background-color: #fafafa;
    border: 1px solid #eeeeee;
    border-left: 4px solid #cc0000;
    border-radius: 6px;
    padding: 24px;
    margin: 36px 0;
}

.single-author-box__avatar {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.single-author-box__info {
    flex: 1;
    min-width: 0;
}

.single-author-box__name {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 6px;
}

.single-author-box__name a {
    color: #1a1a1a;
    text-decoration: none;
}

.single-author-box__name a:hover {
    color: #cc0000;
}

.single-author-box__bio {
    font-size: 0.875rem;
    color: #666666;
    line-height: 1.6;
    margin: 0 0 12px;
}

.single-author-box__link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #cc0000;
    text-decoration: none;
}

.single-author-box__link:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .single-author-box {
        flex-direction: column;
    }
}

/* ==========================================================================
   Single Post — Prev / Next Navigation
   ========================================================================== */

.single-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 36px 0;
}

@media (max-width: 560px) {
    .single-post-nav {
        grid-template-columns: 1fr;
    }
}

.single-post-nav__item {
    background-color: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    padding: 14px;
    transition: box-shadow 0.2s ease;
}

.single-post-nav__item:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.single-post-nav__item--next {
    text-align: right;
}

.single-post-nav__direction {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #cc0000;
    margin-bottom: 8px;
}

.single-post-nav__item--next .single-post-nav__direction {
    justify-content: flex-end;
}

.single-post-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.single-post-nav__item--next .single-post-nav__link {
    flex-direction: row-reverse;
}

.single-post-nav__link img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.single-post-nav__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.single-post-nav__link:hover .single-post-nav__title {
    color: #cc0000;
}

/* ==========================================================================
   Single Post — Related Posts Grid
   ========================================================================== */

.single-related {
    margin: 36px 0;
}

.single-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .single-related__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .single-related__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Single Post — Comments wrapper
   ========================================================================== */

.single-comments {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid #eeeeee;
}

/* ==========================================================================
   Archive / Category — Shared Base
   ========================================================================== */

.archive-page {
    padding: 0 0 60px;
}

/* ── Hero banner ─────────────────────────────────────────────────────────── */

.archive-hero {
    padding: 36px 0 28px;
    margin-bottom: 36px;
    border-bottom: 1px solid #eeeeee;
}

.archive-hero--category {
    background-color: #fafafa;
    margin-left: calc( -1 * var(--container-pad, 20px) );
    margin-right: calc( -1 * var(--container-pad, 20px) );
    padding-left: var(--container-pad, 20px);
    padding-right: var(--container-pad, 20px);
}

.archive-hero__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.archive-hero__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #cc0000;
    margin: 0 0 8px;
}

.archive-hero__title {
    font-size: clamp( 1.6rem, 3vw, 2.4rem );
    font-weight: 900;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.15;
    /* Strip the "Category: " prefix WP prepends in get_the_archive_title() */
}

.archive-hero__desc {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.65;
    max-width: 640px;
    margin-bottom: 10px;
}

.archive-hero__count {
    font-size: 0.8rem;
    color: #aaaaaa;
    margin: 0;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */

.archive-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
    color: #aaaaaa;
    margin-bottom: 16px;
}

.archive-breadcrumb a {
    color: #777777;
    text-decoration: none;
}

.archive-breadcrumb a:hover {
    color: #cc0000;
}

.archive-breadcrumb span[aria-current] {
    color: #333333;
    font-weight: 600;
}

/* ── Sub-category pills (category.php only) ─────────────────────────────── */

.archive-hero__subcats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-self: flex-start;
    max-width: 320px;
}

.archive-subcat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1px solid #dddddd;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #444444;
    text-decoration: none;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.archive-subcat-pill:hover {
    border-color: #cc0000;
    color: #cc0000;
    background-color: #fff5f5;
}

.archive-subcat-pill__count {
    font-size: 0.72rem;
    color: #aaaaaa;
    font-weight: 400;
}

/* ==========================================================================
   Archive — Featured first post row (category.php)
   ========================================================================== */

.archive-featured-row {
    margin-bottom: 32px;
}

.archive-featured-row .post-card-featured {
    aspect-ratio: 21 / 7;
    min-height: 300px;
}

@media (max-width: 680px) {
    .archive-featured-row .post-card-featured {
        aspect-ratio: 16 / 9;
    }
}

/* ==========================================================================
   Archive — Posts Grid
   ========================================================================== */

.archive-grid {
    display: grid;
    grid-template-columns: repeat( 3, 1fr );
    gap: 28px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .archive-grid {
        grid-template-columns: repeat( 2, 1fr );
    }
}

@media (max-width: 540px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Archive — Pagination
   ========================================================================== */

.archive-pagination .nav-links,
.navigation.archive-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #444444;
    text-decoration: none;
    background-color: #ffffff;
    transition: all 0.2s ease;
    line-height: 1;
}

.archive-pagination .page-numbers:hover {
    border-color: #cc0000;
    color: #cc0000;
}

.archive-pagination .page-numbers.current {
    background-color: #cc0000;
    border-color: #cc0000;
    color: #ffffff;
    font-weight: 700;
    pointer-events: none;
}

.archive-pagination .page-numbers.dots {
    border-color: transparent;
    background: none;
    color: #aaaaaa;
    padding-left: 4px;
    padding-right: 4px;
}

/* ==========================================================================
   Archive — Empty State
   ========================================================================== */

.archive-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 60px 20px;
    color: #888888;
}

.archive-no-results svg {
    color: #cccccc;
}

.archive-no-results h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333333;
    margin: 0;
}

.archive-no-results p {
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0;
}

/* ==========================================================================
   Archive — Author Profile (archive.php / is_author)
   ========================================================================== */

.archive-author-profile {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.archive-author-profile__avatar {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

@media (max-width: 480px) {
    .archive-author-profile {
        flex-direction: column;
    }

    .archive-hero__subcats {
        max-width: 100%;
    }
}

/* ==========================================================================
   Sidebar — Base
   ========================================================================== */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-widget {
    margin-bottom: 28px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Sidebar — Post List (shared by Recent + Popular)
   ========================================================================== */

.sidebar-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-post-list__item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-post-list__item:first-child {
    padding-top: 0;
}

.sidebar-post-list__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-list__thumb-link {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-post-list__thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.sidebar-post-list__thumb-link:hover .sidebar-post-list__thumb {
    opacity: 0.85;
}

.sidebar-post-list__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.sidebar-post-list__cat {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #cc0000;
    text-decoration: none;
    line-height: 1;
}

.sidebar-post-list__cat:hover {
    text-decoration: underline;
}

.sidebar-post-list__title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-list__title a {
    color: #1a1a1a;
    text-decoration: none;
}

.sidebar-post-list__title a:hover {
    color: #cc0000;
}

.sidebar-post-list__date {
    font-size: 0.75rem;
    color: #aaaaaa;
}

/* ==========================================================================
   Sidebar — Popular Posts (numbered)
   ========================================================================== */

.sidebar-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: popular-rank;
}

.sidebar-popular-list__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-popular-list__item:first-child {
    padding-top: 0;
}

.sidebar-popular-list__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-popular-list__rank {
    font-size: 1.6rem;
    font-weight: 900;
    color: #eeeeee;
    line-height: 1;
    flex-shrink: 0;
    min-width: 32px;
    text-align: right;
    letter-spacing: -1px;
}

/* First item rank in accent color */
.sidebar-popular-list__item:first-child .sidebar-popular-list__rank {
    color: #cc0000;
}

.sidebar-popular-list__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-popular-list__title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-popular-list__title a {
    color: #1a1a1a;
    text-decoration: none;
}

.sidebar-popular-list__title a:hover {
    color: #cc0000;
}

.sidebar-popular-list__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #aaaaaa;
}

/* ==========================================================================
   Sidebar — Categories
   ========================================================================== */

.sidebar-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-cat-list__item {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-cat-list__item:last-child {
    border-bottom: none;
}

.sidebar-cat-list__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    text-decoration: none;
    color: #333333;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.sidebar-cat-list__link:hover {
    color: #cc0000;
}

.sidebar-cat-list__link:hover .sidebar-cat-list__count {
    background-color: #cc0000;
    color: #ffffff;
    border-color: #cc0000;
}

.sidebar-cat-list__name {
    flex: 1;
}

.sidebar-cat-list__count {
    font-size: 0.72rem;
    font-weight: 700;
    color: #888888;
    background-color: #f4f4f4;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    padding: 2px 9px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* ==========================================================================
   Sidebar — Ads Placeholder
   ========================================================================== */

.sidebar-ad__placeholder {
    background-color: #f8f8f8;
    border: 1px dashed #cccccc;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.sidebar-ad__label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #bbbbbb;
    padding: 6px 0 0;
    font-weight: 600;
}

/* 300×250 Medium Rectangle */
.sidebar-ad__slot--300x250 {
    width: 100%;
    min-height: 250px;
}

/* 300×600 Half Page */
.sidebar-ad__slot--300x600 {
    width: 100%;
    min-height: 400px; /* capped for UX; real ad will expand */
}
