/*
Theme Name: Amomama Clone
Theme URI: https://example.com/amomama-clone
Author: Antigravity
Author URI: https://example.com
Description: A pixel-perfect WordPress clone of AmoMama.com — a women's entertainment media site. Features a modern magazine layout with ad-ready slots, category section blocks, hero grid, and mobile-optimized single post view.
Version: 2.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amomama
*/

/* =============================================
   CSS VARIABLES — Matched to live amomama.com
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #ec5725;
    --primary-dark: #d93802;
    --dark-bg: #292929;
    --text-main: #292929;
    --text-muted: #757575;
    --bg-main: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-peach: #FEE2D9;
    --border-light: #EAEAEA;
    --border-radius: 20px;
    --border-radius-lg: 20px;
    --shadow-card: 0 -2px 20px rgba(51, 51, 51, 0.08);
    --font-stack: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-heading: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-ui: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --container-width: 1279px;
    --container-wide: 1279px;
    --sidebar-width: 300px;
    --content-width: 782px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-stack);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.5;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* =============================================
   LAYOUT CONTAINERS
   ============================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 4px;
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 16px;
}

/* =============================================
   HEADER — Exact Amomama Match
   ============================================= */
.site-header {
    background-color: var(--dark-bg);
    z-index: 1000;
    height: 56px;
    display: flex;
    align-items: center;
}

body:not(.header-not-sticky) .site-header {
    position: sticky;
    top: 0;
}

/* WordPress Admin Bar offset for sticky header */
.admin-bar .site-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}


.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

.site-logo img {
    border-radius: 0;
    height: 23px;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.header-actions img {
    border-radius: 0;
}

/* Hamburger Icon */
.hamburger-btn {
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 18px;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
}

/* =============================================
   CATEGORY NAVIGATION — White Pill Bar
   ============================================= */
.category-nav-wrapper {
    background-color: #FFFFFF;
    padding: 12px 0;
    border-bottom: none;
    position: sticky;
    top: 56px;
    z-index: 999;
}
.admin-bar .category-nav-wrapper {
    top: 88px; /* 56px header + 32px admin bar */
}
@media screen and (max-width: 782px) {
    .admin-bar .category-nav-wrapper {
        top: 102px; /* 56px header + 46px admin bar */
    }
}

.category-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 4px;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    display: inline-block;
    padding: 10px 20px;
    background-color: #EEEEEE;
    color: var(--text-main);
    border-radius: 30px;
    font-size: 20px;
    font-weight: 700;
    text-transform: capitalize;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    flex-shrink: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.cat-pill.active,
.cat-pill:hover {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

/* =============================================
   HOMEPAGE — MAIN CONTAINER
   ============================================= */
.home-page-container {
    max-width: 940px;
    padding: 0px 16px;
}

/* =============================================
   HOMEPAGE — HERO SECTION
   ============================================= */
.home-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;      /* Force sidebar column to match hero height */
    justify-content: space-between;
    margin-bottom: 30px;
}

.home-hero .hero-main {
    width: 100%;
    margin-bottom: 20px;
}

.home-hero .hero-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 992px) {
    .home-hero .hero-main {
        width: calc(66.6667% - 12px);
        margin-bottom: 0;
    }

    .home-hero .hero-sidebar {
        width: calc(33.3333% - 12px);
    }
}

/* Main Hero Card — matches Amomama card: 20px radius, soft shadow, 24px padding */
.hero-main {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-main .hero-text {
    padding: 24px 24px 20px;
}

.hero-main .hero-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.hero-main .hero-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.hero-main .hero-date {
    font-size: 12px;
    color: var(--text-muted);
}

.hero-main .hero-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 8px;
}

.hero-main .hero-title a {
    color: inherit;
    text-decoration: none;
}

.hero-main .hero-title a:hover {
    color: var(--primary-color);
}

.hero-main .hero-excerpt {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-main);
    margin-bottom: 0;
}

.hero-main .hero-image {
    margin-top: auto;
}

.hero-main .hero-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
    border-radius: 0;
}

/* Sidebar Stack Cards */

.sidebar-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    padding: 24px;
    display: flex;
    flex-direction: column;
    /* hero_height / N: subtract total gap space then divide equally by count */
    height: calc((100% - (var(--sidebar-count) - 1) * 20px) / var(--sidebar-count));
    overflow: hidden; /* clip at card boundary as last resort */
}

.sidebar-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sidebar-card .meta-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-card .meta-date {
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-card .card-title-wrap {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.sidebar-card .card-title {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-main);
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 999;
    overflow: hidden;
    max-height: 100%;
}

.sidebar-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.sidebar-card .card-title a:hover {
    color: var(--primary-color);
}

/* =============================================
   HOMEPAGE — CATEGORY SECTION BLOCK
   Peach background, "Category" + "See all", 3-col grid
   ============================================= */
.category-section {
    border-radius: var(--border-radius-lg);
    padding: 30px;
    margin-bottom: 30px;
}

.category-section.section-odd {
    background-color: var(--bg-peach);
}

.category-section.section-even {
    background-color: #FFFFFF;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Inside category sections: hide excerpt & meta, show only image + title */
.category-section .card-excerpt,
.category-section .card-meta {
    display: none;
}

.category-section .grid-card .card-body {
    padding: 12px 16px 14px;
}

.category-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
}

.category-section-header h2 {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-main);
    margin: 0;
}

.category-section-header .see-all {
    font-size: 16px;
    color: #BD2F00;
    font-weight: 600;
    text-decoration: none;
}

.category-section-header .see-all:hover {
    text-decoration: underline;
}

/* =============================================
   LAYOUT: FEATURED + HEADLINES
   One big image+title left, headline list right
   ============================================= */
.layout-featured-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 0 24px;
}

.layout-featured-wrap .featured-main {
    grid-column: 1;
    grid-row: 1 / 20;
}

.layout-featured-wrap .featured-main-image {
    display: block;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.layout-featured-wrap .featured-main-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
    transition: transform .3s;
}

.layout-featured-wrap .featured-main-image:hover img {
    transform: scale(1.03);
}

.layout-featured-wrap .featured-main-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    margin: 14px 0 0;
}

.layout-featured-wrap .featured-main-title a {
    color: var(--text-main);
    text-decoration: none;
}

.layout-featured-wrap .featured-main-title a:hover {
    color: var(--primary-color);
}

.layout-featured-wrap .featured-headline {
    grid-column: 2;
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-main);
    text-decoration: none;
    transition: color .2s;
}

.layout-featured-wrap .featured-headline:last-child {
    border-bottom: none;
}

.layout-featured-wrap .featured-headline:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .layout-featured-wrap {
        grid-template-columns: 1fr;
    }

    .layout-featured-wrap .featured-main {
        grid-row: auto;
        margin-bottom: 16px;
    }

    .layout-featured-wrap .featured-headline {
        grid-column: 1;
    }
}

/* =============================================
   LAYOUT: LIST
   Compact rows with small thumbnail + title
   ============================================= */
.layout-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.layout-list-wrap .list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: background .2s;
}

.layout-list-wrap .list-item:last-child {
    border-bottom: none;
}

.layout-list-wrap .list-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.layout-list-wrap .list-item-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.layout-list-wrap .list-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.layout-list-wrap .list-item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    transition: color .2s;
}

.layout-list-wrap .list-item:hover .list-item-title {
    color: var(--primary-color);
}

/* =============================================
   LAYOUT: FULL-WIDTH GALLERY
   Large 2-column image cards
   ============================================= */
.layout-full-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.layout-full-wrap .full-card {
    display: block;
    text-decoration: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    transition: transform .25s, box-shadow .25s;
}

.layout-full-wrap .full-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 -2px 30px rgba(51, 51, 51, 0.15);
}

.layout-full-wrap .full-card-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.layout-full-wrap .full-card-title {
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    margin: 0;
}

@media (max-width: 600px) {
    .layout-full-wrap {
        grid-template-columns: 1fr;
    }
}

/* Grid Cards */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Standard Grid Card — Image top, Title bottom */
.grid-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.grid-card:hover {
    transform: translateY(-3px);
    box-shadow: rgba(51, 51, 51, 0.15) 0px -2px 30px 0px;
}

.grid-card .card-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
    border-radius: 0;
}

.grid-card .card-body {
    padding: 16px 24px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.grid-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.grid-card .meta-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grid-card .meta-date {
    font-size: 12px;
    color: var(--text-muted);
}

.grid-card .card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 27px;
    color: var(--text-main);
    margin: 0 0 8px;
}

.grid-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.grid-card .card-title a:hover {
    color: var(--primary-color);
}

.grid-card .card-excerpt {
    font-size: 14px;
    line-height: 21px;
    color: var(--text-main);
    margin: 0 0 8px;
    font-weight: 400;
}

/* =============================================
   AD SLOTS — Reusable containers for ads
   ============================================= */
.ad-slot {
    text-align: center;
    margin: 30px 0;
    clear: both;
    overflow: visible; /* Must be visible for responsive ads that use negative margins */
    width: 100%;
}

/* Ensure AdSense responsive ins elements fill properly */
.ad-slot ins.adsbygoogle {
    display: block !important;
    width: 100%;
    min-height: 90px;
}

.ad-slot-label {
    display: block;
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

/* Horizontal line decorators around ad label */
.ad-slot-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    overflow: hidden; /* keep this on the label divider only */
}

.ad-slot-divider::before,
.ad-slot-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-light);
}

.ad-slot-divider span {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

/* Common slot sizes — responsive-ad friendly */
.ad-slot-banner {
    display: block;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    min-height: 90px;
}

.ad-slot-sidebar {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
    min-height: 250px;
}

.ad-slot-incontent {
    display: block;
    width: 100%;
    margin: 20px auto;
    text-align: center;
    min-height: 250px;
}

/* Prevent responsive ads from overflowing the article column on mobile */
@media (max-width: 768px) {
    .ad-slot {
        margin: 20px -16px; /* let ads bleed to screen edge on mobile for full-width responsive */
        width: calc(100% + 32px);
    }

    .ad-slot-banner,
    .ad-slot-incontent {
        min-height: 50px;
    }
}

/* =============================================
   Admin Visual Ad Previews
   ============================================= */
.ad-slot.ad-preview-mode,
.ad-slot-sticky-bottom.ad-preview-mode {
    border: 2px dashed #3b82f6 !important;
    background-color: rgba(59, 130, 246, 0.05) !important;
    position: relative;
    min-height: 100px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
}

.ad-slot-sticky-bottom.ad-preview-mode {
    margin: 0;
}

.ad-preview-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #3b82f6;
    color: #fff;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
}

/* Bottom sticky native ad bar (MGID-style / Anchor ads) */
.ad-slot-sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 8px 16px;
    min-height: 60px;
    display: none;
    /* Hidden by default, show when ad code is inserted */
}

.ad-slot-sticky-bottom.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================
   SINGLE POST — Article Layout with Sidebar
   ============================================= */
.single-post .main-content {
    background-color: #FAFAFA;
    /* Very light gray to pop the white shadow */
}

.single-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 30px 0 60px;
}

@media (min-width: 992px) {
    .single-layout {
        grid-template-columns: minmax(0, var(--content-width)) var(--sidebar-width);
        gap: 44px;
        justify-content: center;
    }
}

/* Article Content Column — matches Amomama card */
.article-content {
    min-width: 0;
    background: #FFFFFF;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    padding: 24px;
}

/* Featured Image */
.article-featured-image {
    margin-bottom: 24px;
}

.article-featured-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.article-featured-image figcaption {
    font-size: 14px;
    color: #888;
    padding: 8px 0;
    line-height: 1.4;
}

/* Article Title — matches Amomama: 32px/44.8px */
.article-title-single {
    font-size: 32px;
    font-weight: 700;
    line-height: 44.8px;
    color: var(--text-main);
    margin: 0 0 16px;
    font-family: var(--font-stack);
    letter-spacing: normal;
}

/* Author & Share Row */
.article-author-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    padding: 3px;
    border: 1px solid var(--primary-color);
}

.author-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-details .author-name {
    font-size: 17px;
    color: #292929;
    margin-bottom: 2px;
}

.author-details .author-by {
    color: #757575;
    font-weight: 400;
}

.author-details .author-link {
    font-weight: 700;
    color: #1a202c;
    text-decoration: none;
}

.author-details .article-date-time {
    font-size: 15px;
    color: #8c8c8c;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.2s, opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.85;
    color: #fff;
}

.share-btn-copy {
    background-color: #000000;
}

.share-btn-email {
    background-color: #D65A31;
}

.share-btn-flipboard {
    background-color: #DF382C;
}

.share-btn-twitter {
    background-color: #000000;
}

.share-btn-facebook {
    background-color: #4C69BA;
}

.share-btn-facebook-full {
    border-radius: 6px;
    padding: 0 16px;
    width: auto;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* Lead Paragraph */
.article-lead {
    font-size: 22px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.5;
    color: #1a202c;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #FFF8F6;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}

/* Article Body Content — matches Amomama: 24px/36px */
.entry-content {
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
    color: var(--text-main);
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.entry-content p {
    margin-bottom: 16px;
}

.entry-content h2 {
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 40px;
    line-height: 47.6px;
    text-align: center;
    color: var(--text-main);
}

.entry-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 24px 0 12px;
}

.entry-content img {
    margin: 28px 0;
    border-radius: 0;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 16px 24px;
    margin: 24px 0;
    background: #FFF8F6;
    font-style: italic;
    font-size: 22px;
    line-height: 1.5;
    border-radius: 0 8px 8px 0;
}

.entry-content iframe,
.entry-content embed,
.entry-content object {
    max-width: 100%;
}

.entry-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 400;
}

.entry-content a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.entry-content strong {
    font-weight: 700;
}

/* Image Captions within content */
.wp-caption {
    max-width: 100%;
    margin: 24px 0;
}

.wp-caption img {
    margin: 0;
}

.wp-caption-text {
    font-size: 14px;
    color: #888;
    padding: 8px 0;
    line-height: 1.4;
}

/* =============================================
   CONTINUE READING — Collapsible Content
   ============================================= */
.amomama-cr {
    position: relative;
    /* overflow is NOT set here — JS adds it alongside max-height
       to prevent the collapsed wrapper from hiding content
       while siblings render below it */
}

/* JS applies this class when it's ready to collapse */
.amomama-cr--collapsed {
    overflow: hidden;
}

/* Open state: no clipping */
.amomama-cr--open {
    overflow: visible !important;
    max-height: none !important;
}

/* Overlay: hidden by default, JS shows it only when content is tall */
.amomama-cr-overlay {
    display: none;
    /* JS sets display:flex when needed */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 280px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 1) 30%,
            rgba(255, 255, 255, 1) 100%);
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 28px;
    z-index: 10;
    transition: opacity 0.4s ease;
}

/* Button */
.amomama-cr-btn {
    font-family: inherit;
    font-size: 16px;
    padding: 14px 48px;
    border-radius: 40px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(236, 87, 37, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    min-height: 50px;
}

.amomama-cr-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(236, 87, 37, 0.45);
}

/* Post Tags */
.post-tags {
    position: relative;
    z-index: 2;
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tags a {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    min-height: 40px;
    transition: background 0.2s;
}

.post-tags a:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    position: relative;
}

.sidebar-widget {
    margin-bottom: 30px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.sidebar-widget-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* Top News Widget */
.top-news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.top-news-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.top-news-item:first-child {
    padding-top: 0;
}

.top-news-item:last-child {
    border-bottom: none;
}

.top-news-item .news-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-main);
    margin-bottom: 6px;
}

.top-news-item .news-title a {
    color: inherit;
    text-decoration: none;
}

.top-news-item .news-title a:hover {
    color: var(--primary-color);
}

.top-news-item .news-date {
    font-size: 14px;
    color: var(--text-muted);
}

/* Sticky sidebar — applied to <aside> when setting is on */
@media (min-width: 992px) {
    .sidebar.sidebar-is-sticky {
        position: sticky;
        top: 76px;
        align-self: start;
    }
}

/* =============================================
   RELATED ARTICLES — Bottom of Single Post
   ============================================= */
.related-articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.related-articles h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.related-item .related-text {
    flex: 1;
}

.related-item-featured {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 24px;
}

.related-item-featured .related-image {
    width: 100%;
}

.related-item-featured .related-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
}

.related-item .related-text .related-title,
.related-item-featured .related-text .related-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #2271b1;
}

.related-item .related-text .related-title a,
.related-item-featured .related-text .related-title a {
    color: inherit;
    text-decoration: none;
}

.related-item .related-text .related-title a:hover,
.related-item-featured .related-text .related-title a:hover {
    color: var(--primary-color);
}

.related-item .related-text .related-date {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
}

.related-item .related-image {
    flex-shrink: 0;
    width: 160px;
}

.related-item .related-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 8px;
}

/* =============================================
   STORIES CATEGORY — Mobile Feed Layout
   ============================================= */
.custom-stories-container {
    background-color: var(--bg-main);
    padding: 12px 0;
    /* Remove left/right padding to make cards edge-to-edge */
    min-height: 100vh;
}

.stories-feed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Gap between edge-to-edge cards */
    max-width: 800px;
    margin: 0 auto;
}

/* Story Card */
.story-card {
    background-color: #ffffff;
    border-radius: 24px;
    /* Large pill-like rounded corners */
    box-shadow: none;
    /* Flatter design for mobile */
    padding: 20px 16px 0;
    /* Text padding */
    overflow: hidden;
    margin: 0;
    /* Touch edges */
}

.story-card-header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.story-card-category {
    font-size: 11px;
    font-weight: 700;
    line-height: 15.4px;
    color: var(--primary-dark);
    text-transform: uppercase;
    text-decoration: none;
}

.story-card-date {
    font-size: 12px;
    font-weight: 400;
    line-height: 19.2px;
    color: var(--text-muted);
}

.story-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.story-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    color: var(--text-main);
    margin-bottom: 12px;
}

.story-card-excerpt {
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    color: var(--text-main);
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .story-card-title {
        font-size: 28px;
        line-height: 36px;
    }

    .story-card-excerpt {
        font-size: 18px;
        line-height: 27px;
    }
}

.story-card-image {
    margin: 0 -16px;
    /* Offset the card padding to make image full width */
    position: relative;
    display: block;
}

.story-card-image img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/9;
    border-radius: 0;
    /* Card overflow: hidden handles the bottom rounding */
}

/* =============================================
   ARCHIVE / INDEX PAGES — Card Grid
   ============================================= */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
}

.archive-description {
    color: var(--text-muted);
    font-size: 18px;
    margin-top: 10px;
}

.archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 600px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Pagination */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.nav-links .page-numbers {
    padding: 12px 20px;
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s;
    min-height: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
    background: var(--primary-color);
    color: #fff;
}

/* =============================================
   404 PAGE
   ============================================= */
.error-404-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 80px 20px;
}

.error-404-content .error-code {
    font-size: 120px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
}

.error-404-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.error-404-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.btn-home {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-home:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* =============================================
   STATIC PAGE
   ============================================= */
.page-content-single {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    max-width: 800px;
    margin: 40px auto;
}

.page-content-single h1 {
    font-size: 36px;
    margin-bottom: 24px;
    font-weight: 700;
}

.page-content-single .entry-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* =============================================
   SEARCH RESULTS
   ============================================= */
.search-header {
    text-align: center;
    margin-bottom: 40px;
}

.search-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.search-header h1 span {
    color: var(--primary-color);
}

/* =============================================
   FOOTER — Dark themed
   ============================================= */
.site-footer {
    background-color: var(--dark-bg);
    color: #FFF;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 2fr;
    }
}

.footer-logo {
    font-family: 'Brush Script MT', cursive, sans-serif;
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    max-width: 300px;
    line-height: 1.75;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-links h4 {
    margin-bottom: 15px;
    color: #FFF;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    text-underline-offset: 3px;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
    }
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #555;
    color: #FFF;
    font-size: 20px;
    transition: background-color 0.2s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

/* =============================================
   MAIN CONTENT WRAPPER
   ============================================= */
.main-content {
    padding: 30px 0;
}

/* =============================================
   MOBILE — 768px and below (matches Amomama.com 1:1)
   ============================================= */

/* Prevent ANY horizontal scroll sitewide */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

@media (max-width: 768px) {

    /* --- Page background --- */
    .single-post .main-content,
    .main-content {
        background-color: #ffffff;
        padding: 0;
    }

    /* --- Category nav (Amomama pill style) --- */
    .category-nav-wrapper {
        padding: 10px 0;
    }

    .cat-pill {
        padding: 8px 18px;
        font-size: 16px;
        min-height: 40px;
    }

    /* --- Hero section --- */
    .home-hero {
        margin-top: -12px;
        margin-bottom: 12px;
        gap: 12px;
    }

    .hero-main {
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-card);
    }

    .hero-main .hero-text {
        padding: 12px 12px 8px;
    }

    .hero-main .hero-title {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 8px;
    }

    .hero-sidebar {
        border-radius: var(--border-radius-lg);
        background: #fff;
        box-shadow: var(--shadow-card);
        margin: 0 0 12px;
    }

    /* Grid cards on mobile */
    .grid-card .card-body {
        padding: 12px 12px 8px;
    }

    .grid-card .card-excerpt {
        display: none;
    }

    /* --- Single article layout (Amomama: white card, edge-to-edge, rounded top) --- */
    .single-layout {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 16px;
    }

    /* The main article card: clean flat on mobile with side breathing room */
    .article-content {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        background: #ffffff;
    }

    /* Featured image: full bleed inside the card, rounded only at top */
    .article-featured-image {
        margin: 0 0 0 0;
    }

    .article-featured-image img {
        width: 100%;
        border-radius: 12px;
        display: block;
    }

    .article-featured-image figcaption {
        padding: 8px 16px;
    }

    /* All inner article content: tight 6px side padding */
    .article-breadcrumbs,
    .article-title-single,
    .article-author-row,
    .article-lead,
    .entry-content-wrapper,
    .post-tags,
    .related-articles,
    .comments-area {
        padding-left: 6px;
        padding-right: 6px;
    }

    /* Article-lead override */
    .article-lead {
        margin-left: 6px;
        margin-right: 6px;
        padding: 12px;
    }

    /* Entry content padding */
    .entry-content {
        padding-left: 6px;
        padding-right: 6px;
        padding-bottom: 32px;
    }

    /* Images inside content: full width within padded area */
    .entry-content img {
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
    }

    /* Title sizing — Amomama mobile: 29px/40.6px */
    .article-title-single {
        font-size: 29px;
        line-height: 40.6px;
        padding-top: 20px;
    }

    /* Author row: stack on mobile just like Amomama */
    .article-author-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    /* Share buttons fill width */
    .share-buttons {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    /* Sidebar collapses below content  */
    .sidebar {
        margin: 0 -16px;
        padding: 0 16px;
    }

    .sidebar-widget {
        border-radius: 16px;
        margin-bottom: 12px;
    }

    /* Category section */
    .category-section {
        padding: 20px 16px;
        border-radius: 16px;
    }

    /* Static page card */
    .page-content-single {
        margin: 0 -16px;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -2px 20px rgba(51, 51, 51, 0.08);
        padding: 24px 16px;
    }
}

/* --- Story cards: Amomama feed layout --- */
@media (max-width: 768px) {

    .custom-stories-container {
        padding: 8px 0;
        background: #F5F5F5;
    }

    .stories-feed-list {
        gap: 12px;
        padding: 0 8px;
    }

    .story-card {
        border-radius: 20px;
        padding: 16px 16px 0;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }

    /* Story card image: goes full-width, bottom edge inherits card radius */
    .story-card-image {
        margin: 0 -16px;
        /* Bleed over card padding */
        border-radius: 0;
        /* Card overflow:hidden handles bottom rounding */
    }

    .story-card-image img {
        border-radius: 0;
        aspect-ratio: 16/9;
        width: 100%;
    }

    .story-card-title {
        font-size: 20px;
        line-height: 1.4;
    }

    .story-card-excerpt {
        font-size: 15px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .hero-main .hero-excerpt {
        font-size: 16px;
        line-height: 26px;
    }

    .category-section-header h2 {
        font-size: 20px;
    }
}

/* =============================================
   COMMENTS AREA & FORM — Custom Clean Layout
   ============================================= */
.comments-area {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 2px solid #EAEAEA;
}

/* Section headings */
.comments-title,
.comment-reply-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 28px;
    line-height: 1.3;
}

/* Intro note */
.cf-note {
    font-size: 16px;
    color: #757575;
    margin-bottom: 24px;
}

/* Field wrapper — label always on top */
.cf-field,
.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment,
.comment-form-cookies-consent {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.comment-form-cookies-consent {
    flex-direction: row;
    align-items: flex-start;
}

.cf-field label,
.amomama-comment-form .cf-field>label,
.comment-form label {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.cf-field label .optional,
.comment-form label .optional {
    font-size: 14px;
    font-weight: 400;
    color: #888;
    margin-left: 6px;
}

.cf-field label .required,
.comment-form label .required {
    color: var(--primary-color);
    margin-left: 2px;
}

/* Inputs & textarea */
.amomama-comment-form input[type="text"],
.amomama-comment-form input[type="email"],
.amomama-comment-form input[type="url"],
.amomama-comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 18px;
    font-family: inherit;
    color: #1a202c;
    background: #FAFAFA;
    border: 2px solid #D1D5DB;
    border-radius: 10px;
    line-height: 1.6;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.amomama-comment-form input[type="text"]:focus,
.amomama-comment-form input[type="email"]:focus,
.amomama-comment-form input[type="url"]:focus,
.amomama-comment-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(236, 87, 37, 0.12);
    background: #fff;
}

.amomama-comment-form input::placeholder,
.amomama-comment-form textarea::placeholder,
.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: #AAA;
    font-size: 16px;
}

.amomama-comment-form textarea {
    min-height: 160px;
    resize: vertical;
}

/* Cookies checkbox row */
.cf-cookies {
    margin-top: 4px;
    margin-bottom: 24px;
}

.cf-cookies-label,
.comment-form-cookies-consent label {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #555 !important;
    cursor: pointer;
    line-height: 1.5;
}

.cf-cookies-label input[type="checkbox"],
.comment-form-cookies-consent input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    cursor: pointer;
    accent-color: var(--primary-color);
    margin-top: 2px;
}

/* Submit button */
.cf-submit {
    margin-top: 8px;
}

.amomama-submit-btn,
.comment-form .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 44px;
    font-size: 19px;
    font-weight: 700;
    font-family: inherit;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 20px rgba(236, 87, 37, 0.35);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    min-height: 56px;
    text-decoration: none;
}

.amomama-submit-btn:hover,
.comment-form .submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(236, 87, 37, 0.45);
    color: #fff;
}

/* ---- Existing comments list ---- */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.comment-body {
    padding: 24px 0;
    border-bottom: 1px solid #EAEAEA;
}

.comment-body:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.comment-author .fn {
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
}

.comment-metadata {
    font-size: 14px;
    color: #757575;
    margin-bottom: 12px;
}

.comment-metadata a {
    color: inherit;
    text-decoration: none;
}

.comment-content p {
    font-size: 18px;
    line-height: 1.75;
    color: #1a202c;
    margin-bottom: 0;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    padding: 6px 16px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    transition: all 0.2s;
}

.comment-reply-link:hover {
    background: var(--primary-color);
    color: #fff;
}

.no-comments {
    font-size: 17px;
    color: #757575;
    font-style: italic;
    padding: 16px 0;
}

/* =============================================
   GLOBAL FOCUS STYLES — Keyboard Accessibility
   ============================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* =============================================
   STORY CARD — Larger text for feeds
   ============================================= */
.story-card-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 12px;
}

.story-card-excerpt {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .story-card-title {
        font-size: 30px;
        line-height: 1.35;
    }

    .story-card-excerpt {
        font-size: 20px;
        line-height: 1.7;
    }
}

/* =============================================
   STATIC PAGES — Professional Custom Styling
   Styled like AmoMama.com pages
   ============================================= */

/* Page wrapper */
.page-content-single {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.page-content-single .entry-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.page-content-single .entry-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    margin: 0;
}

/* Entry Content Typography */
.entry-content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-main);
}

.entry-content h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.entry-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.entry-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin: 36px 0 14px;
}

.entry-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    margin: 24px 0 10px;
}

.entry-content p {
    margin: 0 0 18px;
}

.entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: color .2s, text-decoration-color .2s;
}

.entry-content a:hover {
    color: var(--primary-dark);
    text-decoration-color: var(--primary-dark);
}

.entry-content strong {
    font-weight: 700;
    color: var(--text-main);
}

.entry-content em {
    color: var(--text-main);
    font-style: italic;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 20px 0;
    padding-left: 24px;
}

.entry-content ul {
    list-style: none;
    padding-left: 0;
}

.entry-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.entry-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.entry-content ol {
    list-style: decimal;
    padding-left: 24px;
}

.entry-content ol li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.entry-content ol li::marker {
    color: var(--primary-color);
    font-weight: 700;
}

.entry-content hr {
    border: none;
    height: 1px;
    background: #e8e8e8;
    margin: 36px 0;
}

/* ===== CUSTOM PAGE COMPONENTS ===== */

/* Page Hero Section */
/* =============================================
   LEGAL & COMPLIANCE — Premium Design System
   Deploy-Ready · All 9 Pages
   ============================================= */

/* ── Animated Gradient Hero ── */
.am-page-hero {
    position: relative;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    background-size: 200% 200%;
    animation: amHeroGradient 8s ease infinite;
    color: #fff;
    padding: 72px 48px;
    border-radius: 24px;
    margin-bottom: 48px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15,12,41,.35);
}

@keyframes amHeroGradient {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

/* Floating glow orbs */
.am-page-hero::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236,87,37,.25) 0%, transparent 70%);
    top: -80px;
    right: -60px;
    animation: amOrbFloat 6s ease-in-out infinite alternate;
    pointer-events: none;
}

.am-page-hero::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.2) 0%, transparent 70%);
    bottom: -60px;
    left: -40px;
    animation: amOrbFloat 8s ease-in-out infinite alternate-reverse;
    pointer-events: none;
}

@keyframes amOrbFloat {
    0% { transform: translate(0, 0) scale(1) }
    100% { transform: translate(20px, -20px) scale(1.15) }
}

.am-page-hero h2 {
    position: relative;
    font-size: 38px;
    font-weight: 900;
    margin: 0 0 18px;
    border: none;
    color: #fff;
    letter-spacing: -.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.am-page-hero h2::after {
    display: none;
}

.am-page-hero p {
    position: relative;
    font-size: 18px;
    opacity: .9;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.75;
    font-weight: 400;
    color: #fff !important;
}

/* ── Info Cards Grid ── */
.am-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 36px 0;
}

.am-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    position: relative;
    overflow: hidden;
}

.am-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B35, #6366f1, #EC5725);
    background-size: 200% 100%;
    animation: amCardBorder 4s linear infinite;
    opacity: 0;
    transition: opacity .3s;
}

@keyframes amCardBorder {
    0% { background-position: 0% 0% }
    100% { background-position: 200% 0% }
}

.am-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,.12);
}

.am-card:hover::before {
    opacity: 1;
}

.am-card-icon {
    font-size: 42px;
    margin-bottom: 18px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.1));
}

.am-card h3,
.am-card h4 {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 12px;
    letter-spacing: -.01em;
}

.am-card p {
    font-size: 14.5px;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

.am-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: #EC5725;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: gap .2s, color .2s;
}

.am-card a:hover {
    gap: 10px;
    color: #D93802;
    text-decoration: none;
}

/* ── Contact Info Block (Glassmorphism) ── */
.am-contact-info {
    background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(249,250,251,.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 20px;
    padding: 36px;
    margin: 36px 0;
    box-shadow: 0 8px 32px rgba(0,0,0,.06);
}

.am-contact-info h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 24px;
    color: #1a1a2e;
    letter-spacing: -.01em;
}

.am-contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    font-size: 15px;
}

.am-contact-row-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #FF6B35, #EC5725);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(236,87,37,.25);
}

.am-contact-row strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #9ca3af;
    margin-bottom: 3px;
    font-weight: 700;
}

.am-contact-row a {
    color: #EC5725;
    font-weight: 600;
    text-decoration: none;
}

.am-contact-row a:hover {
    text-decoration: underline;
}

/* ── Stat Counter Grid (Glassmorphism) ── */
.am-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 36px 0;
}

.am-stat {
    text-align: center;
    padding: 32px 20px;
    background: linear-gradient(145deg, rgba(255,107,53,.06), rgba(255,255,255,.9));
    border: 1px solid rgba(236,87,37,.12);
    border-radius: 20px;
    transition: transform .3s, box-shadow .3s;
    position: relative;
    overflow: hidden;
}

.am-stat::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236,87,37,.08) 0%, transparent 70%);
    top: -20px;
    right: -20px;
    pointer-events: none;
}

.am-stat:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 36px rgba(236,87,37,.12);
}

.am-stat-number {
    font-size: 40px;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B35, #D93802);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -.02em;
}

.am-stat-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
}

/* ── CTA Buttons ── */
.am-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    transition: all .3s cubic-bezier(.34,1.56,.64,1);
    cursor: pointer;
    border: none;
    letter-spacing: -.01em;
    position: relative;
    overflow: hidden;
}

.am-btn-primary {
    background: linear-gradient(135deg, #FF6B35, #D93802);
    color: #fff;
    box-shadow: 0 6px 24px rgba(217,56,2,.3);
}

.am-btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    transition: left .5s;
}

.am-btn-primary:hover::after {
    left: 100%;
}

.am-btn-primary:hover {
    background: linear-gradient(135deg, #D93802, #B82E01);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 36px rgba(217,56,2,.4);
    color: #fff;
    text-decoration: none;
}

.am-btn-outline {
    background: transparent;
    color: #EC5725;
    border: 2px solid #EC5725;
}

.am-btn-outline:hover {
    background: #EC5725;
    color: #fff;
    text-decoration: none;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 36px rgba(236,87,37,.25);
}

/* ── Contact Form ── */
.am-form {
    margin: 36px 0;
}

.am-form-group {
    margin-bottom: 22px;
}

.am-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.am-form-group input[type="text"],
.am-form-group input[type="email"],
.am-form-group input[type="url"],
.am-form-group textarea,
.am-form-group select {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    background: #fafbfc;
    transition: border-color .2s, box-shadow .2s, background .2s;
    color: #1a1a2e;
}

.am-form-group input:focus,
.am-form-group textarea:focus,
.am-form-group select:focus {
    border-color: #EC5725;
    box-shadow: 0 0 0 4px rgba(236,87,37,.08);
    outline: none;
    background: #fff;
}

.am-form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.am-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 600px) {
    .am-form-row {
        grid-template-columns: 1fr;
    }
}

/* ── Team Grid (3D Hover) ── */
.am-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 36px 0;
}

.am-team-member {
    text-align: center;
    padding: 36px 24px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}

.am-team-member:hover {
    transform: translateY(-6px) rotateX(2deg);
    box-shadow: 0 16px 48px rgba(0,0,0,.1);
}

.am-team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B35, #D93802);
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 24px rgba(236,87,37,.25);
    transition: transform .3s;
}

.am-team-member:hover .am-team-avatar {
    transform: scale(1.1) rotate(5deg);
}

.am-team-member h4 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #1a1a2e;
}

.am-team-member p {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
    font-weight: 500;
}

/* ── Feature Cards (Animated Border) ── */
.am-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 36px 0;
}

.am-feature-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 20px;
    padding: 36px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
    position: relative;
    overflow: hidden;
}

.am-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B35, #6366f1, #10b981, #EC5725);
    background-size: 300% 100%;
    animation: amFeatureBorder 6s linear infinite;
}

@keyframes amFeatureBorder {
    0% { background-position: 0% 0% }
    100% { background-position: 300% 0% }
}

.am-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,.12);
}

.am-feature-card h3 {
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 14px;
    color: #1a1a2e;
    letter-spacing: -.01em;
}

.am-feature-card p {
    font-size: 14.5px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0;
}

/* ── Alert / Info Boxes (Frosted Glass) ── */
.am-info-box {
    padding: 22px 28px;
    border-radius: 16px;
    margin: 28px 0;
    font-size: 14.5px;
    line-height: 1.7;
    position: relative;
    overflow: hidden;
}

.am-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: .04;
    pointer-events: none;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        currentColor 10px,
        currentColor 10.5px
    );
}

.am-info-box.info {
    background: linear-gradient(135deg, #eff6ff, #f0f6ff);
    border-left: 5px solid #3b82f6;
    color: #1e3a5f;
    box-shadow: 0 4px 16px rgba(59,130,246,.08);
}

.am-info-box.warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-left: 5px solid #f59e0b;
    color: #78350f;
    box-shadow: 0 4px 16px rgba(245,158,11,.08);
}

.am-info-box.success {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-left: 5px solid #10b981;
    color: #064e3b;
    box-shadow: 0 4px 16px rgba(16,185,129,.08);
}

.am-info-box strong {
    font-weight: 800;
}

.am-info-box a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.am-info-box a:hover {
    opacity: .8;
}

/* ── Section Divider (Animated Gradient) ── */
.am-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 56px 0;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 600;
}

.am-divider::before,
.am-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    border-radius: 2px;
}

/* ── Legal Section Numbering ── */
.entry-content ol ol {
    list-style: lower-alpha;
    margin-top: 10px;
}

.entry-content ol ol li::marker {
    color: #9ca3af;
    font-weight: 500;
}

/* ── Legal page h2 styling ── */
.entry-content h2 {
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.entry-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #FF6B35, #EC5725);
    border-radius: 3px;
}

.entry-content h3 {
    position: relative;
    padding-left: 16px;
    margin-top: 36px;
}

.entry-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: linear-gradient(to bottom, #FF6B35, #6366f1);
    border-radius: 4px;
}

/* ── Tab-style Page Sections ── */
.am-section {
    margin-bottom: 48px;
}

.am-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.am-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

.am-section-icon.orange { background: linear-gradient(135deg, #fff5f2, #ffe8de); color: #EC5725; }
.am-section-icon.blue { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #3b82f6; }
.am-section-icon.green { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #10b981; }

/* ── Page Content Typography Enhancement ── */
.page-content-single .entry-content > p {
    font-size: 17px;
    line-height: 1.85;
    color: #374151;
}

.page-content-single .entry-content > ul li,
.page-content-single .entry-content > ol li {
    margin-bottom: 12px;
    line-height: 1.75;
    color: #374151;
    font-size: 16.5px;
}

.page-content-single .entry-content > ul li strong,
.page-content-single .entry-content > ol li strong {
    color: #1a1a2e;
}

.page-content-single .entry-content > a {
    color: #EC5725;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(236,87,37,.3);
    transition: border-color .2s, color .2s;
}

.page-content-single .entry-content > a:hover {
    color: #D93802;
    border-bottom-color: #D93802;
}

/* ── Legal Pages Responsive ── */
@media (max-width: 768px) {
    .page-content-single {
        padding: 24px 16px 40px;
    }

    .page-content-single .entry-title {
        font-size: 26px;
    }

    .entry-content h2 {
        font-size: 22px;
    }

    .entry-content h3 {
        font-size: 18px;
    }

    .am-page-hero {
        padding: 48px 24px;
        border-radius: 18px;
    }

    .am-page-hero h2 {
        font-size: 26px;
    }

    .am-page-hero p {
        font-size: 16px;
    }

    .am-contact-info {
        padding: 24px;
    }

    .am-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .am-btn {
        padding: 14px 28px;
        font-size: 14px;
    }

    .am-cards-grid {
        grid-template-columns: 1fr;
    }

    .am-info-box {
        padding: 18px 20px;
    }
}

/* =============================================
   CATEGORY PAGE — Full-Featured Layout
   ============================================= */

/* Container */
.cat-page-container {
    max-width: 1200px;
    padding: 0 16px;
}

/* ---- Breadcrumbs ---- */
.cat-breadcrumbs {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 20px 0 0;
}

.cat-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.cat-breadcrumbs a:hover {
    color: var(--primary-color);
}

.cat-breadcrumbs .sep {
    margin: 0 8px;
    color: #ccc;
    font-size: 14px;
}

.cat-breadcrumbs .current {
    color: var(--text-main);
    font-weight: 700;
}

/* ---- Category Header ---- */
.cat-header {
    padding: 28px 0 24px;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 28px;
    position: relative;
}

.cat-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--primary-color);
}

.cat-header-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 8px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.cat-header-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 12px;
    max-width: 600px;
}

.cat-header-description p {
    margin: 0;
}

.cat-header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cat-post-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(217, 56, 2, 0.08);
    padding: 5px 14px;
    border-radius: 20px;
}

.cat-post-count i {
    font-size: 12px;
}

/* ---- HERO Section ---- */
.cat-hero {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .cat-hero {
        grid-template-columns: 1.2fr 1fr;
    }
}

.cat-hero-image {
    display: block;
    position: relative;
    overflow: hidden;
}

.cat-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 16 / 10;
    transition: transform 0.5s ease;
}

.cat-hero:hover .cat-hero-image img {
    transform: scale(1.04);
}

.cat-hero-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(217, 56, 2, 0.35);
}

.cat-hero-body {
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cat-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.cat-hero-category {
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
}

.cat-hero-read {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cat-hero-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    color: var(--text-main);
}

.cat-hero-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.cat-hero-title a:hover {
    color: var(--primary-color);
}

.cat-hero-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.cat-hero-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.cat-hero-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.cat-hero-author strong {
    color: var(--text-main);
}

/* ---- TRENDING STRIP ---- */
.cat-trending {
    margin-bottom: 36px;
}

.cat-trending-header {
    margin-bottom: 16px;
}

.cat-trending-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-trending-header h3 i {
    color: #F59E0B;
    font-size: 16px;
}

.cat-trending-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 991px) {
    .cat-trending-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cat-trending-strip {
        grid-template-columns: 1fr;
    }
}

.cat-trending-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.cat-trending-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 -2px 25px rgba(51, 51, 51, 0.14);
}

.cat-trending-number {
    font-size: 28px;
    font-weight: 800;
    color: rgba(217, 56, 2, 0.12);
    line-height: 1;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
    font-family: var(--font-stack);
}

.cat-trending-card:hover .cat-trending-number {
    color: rgba(217, 56, 2, 0.3);
}

.cat-trending-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.cat-trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cat-trending-text h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-trending-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* ---- MAIN LAYOUT: Grid + Sidebar ---- */
.cat-main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 40px;
}

@media (min-width: 992px) {
    .cat-main-layout {
        grid-template-columns: 1fr 320px;
    }
}

/* Grid Header */
.cat-grid-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border-light);
}

.cat-grid-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

/* Grid */
.cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 600px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Grid Card */
.cat-grid-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cat-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 -2px 30px rgba(51, 51, 51, 0.15);
}

.cat-gc-image {
    display: block;
    overflow: hidden;
}

.cat-gc-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    transition: transform 0.4s ease;
}

.cat-grid-card:hover .cat-gc-image img {
    transform: scale(1.05);
}

.cat-gc-body {
    padding: 16px 20px 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cat-gc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cat-gc-category {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-gc-read {
    font-size: 11px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cat-gc-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    margin: 0 0 8px;
}

.cat-gc-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.cat-gc-title a:hover {
    color: var(--primary-color);
}

.cat-gc-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 12px;
    flex-grow: 1;
}

.cat-gc-footer {
    font-size: 12px;
    color: #aaa;
    margin-top: auto;
}

/* ---- SIDEBAR ---- */
.cat-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 992px) {
    .cat-sidebar {
        position: sticky;
        top: 80px;
        align-self: start;
    }
}

.cat-sidebar-block {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    padding: 20px;
}

.cat-sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}

.cat-sidebar-title i {
    color: var(--primary-color);
    font-size: 14px;
}

/* Sidebar - Numbered List */
.cat-sidebar-list {
    display: flex;
    flex-direction: column;
}

.cat-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: background 0.2s;
}

.cat-sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cat-sidebar-item:first-child {
    padding-top: 0;
}

.cat-sidebar-item:hover {
    background: rgba(217, 56, 2, 0.02);
    border-radius: 8px;
}

.cat-si-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(217, 56, 2, 0.08);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.cat-si-text h5 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-main);
    margin: 0 0 3px;
    transition: color 0.2s;
}

.cat-sidebar-item:hover .cat-si-text h5 {
    color: var(--primary-color);
}

.cat-si-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* Sidebar - Category Pills */
.cat-sidebar-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-sidebar-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s;
}

.cat-sidebar-pill:hover {
    background: var(--primary-color);
    color: #fff;
}

.cat-pill-count {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
}

.cat-sidebar-pill:hover .cat-pill-count {
    color: rgba(255, 255, 255, 0.8);
}

/* Sidebar - Newsletter CTA */
.cat-sidebar-cta {
    background: linear-gradient(135deg, #FFF5F2 0%, #FEE2D9 100%);
    text-align: center;
    padding: 28px 24px;
}

.cat-cta-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(217, 56, 2, 0.3);
}

.cat-sidebar-cta h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px;
}

.cat-sidebar-cta p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.cat-cta-btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 3px 12px rgba(217, 56, 2, 0.3);
}

.cat-cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 56, 2, 0.4);
    color: #fff;
}

/* ---- DON'T MISS SECTION ---- */
.cat-dontmiss {
    margin-bottom: 40px;
    background: var(--bg-peach);
    border-radius: var(--border-radius-lg);
    padding: 30px;
}

.cat-dontmiss-header {
    margin-bottom: 20px;
}

.cat-dontmiss-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-dontmiss-header h3 i {
    color: var(--primary-color);
}

.cat-dontmiss-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

@media (max-width: 991px) {
    .cat-dontmiss-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .cat-dontmiss-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .cat-dontmiss-grid {
        grid-template-columns: 1fr;
    }
}

.cat-dm-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s, box-shadow 0.25s;
}

.cat-dm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 -2px 25px rgba(51, 51, 51, 0.14);
}

.cat-dm-thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.cat-dm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.cat-dm-card:hover .cat-dm-thumb img {
    transform: scale(1.06);
}

.cat-dm-text {
    padding: 12px 14px;
}

.cat-dm-text h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-dm-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* ---- PAGINATION ---- */
.cat-pagination {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.cat-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cat-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    background: #f5f5f5;
    transition: all 0.2s;
    gap: 6px;
}

.cat-pagination .page-numbers:hover {
    background: var(--primary-color);
    color: #fff;
}

.cat-pagination .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 3px 10px rgba(217, 56, 2, 0.3);
}

.cat-pagination .page-numbers.dots {
    background: transparent;
    color: var(--text-muted);
    pointer-events: none;
}

.cat-pagination .prev.page-numbers,
.cat-pagination .next.page-numbers {
    background: var(--text-main);
    color: #fff;
    padding: 0 20px;
    gap: 8px;
}

.cat-pagination .prev.page-numbers:hover,
.cat-pagination .next.page-numbers:hover {
    background: var(--primary-color);
}

/* ---- EMPTY STATE ---- */
.cat-empty {
    text-align: center;
    padding: 80px 24px;
}

.cat-empty-icon {
    font-size: 56px;
    color: #ddd;
    margin-bottom: 20px;
}

.cat-empty h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 12px;
}

.cat-empty p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0 0 24px;
}

.cat-empty-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(217, 56, 2, 0.3);
}

.cat-empty-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 56, 2, 0.4);
    color: #fff;
}

/* ---- RESPONSIVE: Category ---- */
@media (max-width: 768px) {
    .cat-header-title {
        font-size: 28px;
    }

    .cat-hero {
        grid-template-columns: 1fr;
    }

    .cat-hero-image img {
        aspect-ratio: 16 / 9;
    }

    .cat-hero-title {
        font-size: 22px;
    }

    .cat-hero-body {
        padding: 20px;
    }

    .cat-trending-strip {
        grid-template-columns: 1fr 1fr;
    }

    .cat-main-layout {
        grid-template-columns: 1fr;
    }

    .cat-dontmiss-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-dontmiss {
        padding: 20px;
    }

    .cat-page-container {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .cat-header-title {
        font-size: 24px;
    }

    .cat-trending-strip {
        grid-template-columns: 1fr;
    }

    .cat-grid {
        grid-template-columns: 1fr;
    }

    .cat-dontmiss-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- HEADER STYLE MODIFIERS (Settings) ---- */
.cat-header--accent {
    background: var(--primary-color);
    padding: 28px 24px 24px;
    border-radius: var(--border-radius);
    border-bottom: none;
    margin-bottom: 28px;
}

.cat-header--accent::after {
    display: none;
}

.cat-header--accent .cat-header-title {
    color: #fff;
}

.cat-header--accent .cat-header-description,
.cat-header--accent .cat-header-description p {
    color: rgba(255, 255, 255, 0.85);
}

.cat-header--accent .cat-post-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.cat-header--dark {
    background: #1a1a1a;
    padding: 28px 24px 24px;
    border-radius: var(--border-radius);
    border-bottom: none;
    margin-bottom: 28px;
}

.cat-header--dark::after {
    display: none;
}

.cat-header--dark .cat-header-title {
    color: #fff;
}

.cat-header--dark .cat-header-description,
.cat-header--dark .cat-header-description p {
    color: rgba(255, 255, 255, 0.7);
}

.cat-header--dark .cat-post-count {
    background: rgba(217, 56, 2, 0.2);
    color: var(--primary-color);
}

/* ---- GRID: 3-Column Variant ---- */
@media (min-width: 600px) {
    .cat-grid--3col {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cat-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cat-grid--3col {
        grid-template-columns: 1fr;
    }
}

/* ---- Full-Width When Sidebar Hidden ---- */
.cat-main-layout--full {
    grid-template-columns: 1fr !important;
}

@media (min-width: 600px) {
    .cat-main-layout--full .cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===========================================================
   HOMEPAGE: Hero Block Layout (★ Hero — Big + Sidebar)
   =========================================================== */
.layout-hero-wrap {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    align-items: start;
}

/* -- Big Post (left) -- */
.block-hero-main {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: box-shadow .3s, transform .3s;
}

.block-hero-main:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.1);
    transform: translateY(-3px);
}

.block-hero-image {
    display: block;
    overflow: hidden;
}

.block-hero-image img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    transition: transform .4s;
}

.block-hero-main:hover .block-hero-image img {
    transform: scale(1.04);
}

.block-hero-body {
    padding: 20px 22px 22px;
}

.block-hero-cat {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.block-hero-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 8px;
}

.block-hero-title a {
    color: #111;
    text-decoration: none;
    transition: color .2s;
}

.block-hero-title a:hover {
    color: var(--primary-color);
}

.block-hero-excerpt {
    color: #666;
    font-size: .92rem;
    line-height: 1.55;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.block-hero-meta time {
    color: #999;
    font-size: .82rem;
}

/* -- Sidebar Cards (right) -- */
.block-hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.block-hero-side-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background .2s, padding-left .2s;
}

.block-hero-side-card:first-child {
    padding-top: 0;
}

.block-hero-side-card:last-child {
    border-bottom: none;
}

.block-hero-side-card:hover {
    background: #fafafa;
    padding-left: 6px;
    border-radius: 8px;
}

.bhsc-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.bhsc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bhsc-text h4 {
    font-size: .9rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}

.block-hero-side-card:hover .bhsc-text h4 {
    color: var(--primary-color);
}

.bhsc-date {
    color: #999;
    font-size: .78rem;
}

/* -- Responsive -- */
@media (max-width: 768px) {
    .layout-hero-wrap {
        grid-template-columns: 1fr;
    }

    .block-hero-image img {
        height: 220px;
    }

    .block-hero-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .block-hero-side-card {
        border-bottom: none;
        background: #fafafa;
        border-radius: 10px;
        padding: 10px;
    }

    .bhsc-thumb {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .block-hero-sidebar {
        grid-template-columns: 1fr;
    }

    .block-hero-title {
        font-size: 1.15rem;
    }
}

/* ===========================================================
   HOMEPAGE: Full-Width Gallery Layout (⊟ Full-Width Gallery)
   =========================================================== */
.layout-full-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

@media (min-width: 768px) {
    .layout-full-wrap {
        grid-template-columns: repeat(3, 1fr);
    }
}

.full-card {
    position: relative;
    display: block;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.full-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
}

.full-card-image {
    width: 100%;
    height: 100%;
}

.full-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.full-card:hover .full-card-image img {
    transform: scale(1.05);
}

.full-card-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    color: #fff;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.full-card:hover .full-card-title {
    color: var(--primary-color);
}

/* ===========================================================
   HOMEPAGE: Featured + Headlines Layout
   =========================================================== */
.layout-featured-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.featured-main {
    flex: 1 1 55%;
    min-width: 300px;
}

.featured-main-image {
    display: block;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 12px;
}

.featured-main-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.4s;
}

.featured-main:hover .featured-main-image img {
    transform: scale(1.04);
}

.featured-main-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.3;
}

.featured-main-title a {
    color: #111;
    text-decoration: none;
}

.featured-main-title a:hover {
    color: var(--primary-color);
}

/* The wrapper container for the headlines to sit on right side */
.featured-headlines-container {
    flex: 1 1 35%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.featured-headline {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid #eaeaea;
    transition: color 0.2s, padding-left 0.2s;
    line-height: 1.4;
}

.featured-headline:hover {
    color: var(--primary-color);
    padding-left: 8px;
    border-color: var(--primary-color);
}

/* ===========================================================
   HOMEPAGE: List Layout
   =========================================================== */
.layout-list-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

@media (min-width: 900px) {
    .layout-list-wrap {
        grid-template-columns: repeat(3, 1fr);
    }
}

.list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #e4e4e4;
}

.list-item-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.list-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #222;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.list-item:hover .list-item-title {
    color: var(--primary-color);
}