/*
Theme Name: China Culture Global
Theme URI: https://chinacultureglobal.com
Author: China Culture Team
Author URI: https://chinacultureglobal.com
Description: A modern, visually striking WordPress theme for China Culture international websites. Features Chinese food, travel guides, culture, kung fu, and city travel sections. Fully SEO optimized for Google with responsive design.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: china-culture
Tags: culture, china, food, travel, blog, magazine, responsive, seo
*/

/* =============================================
   RESET & BASE STYLES
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-red: #C8102E;
    --color-red-dark: #9B0B22;
    --color-red-light: #E8314F;
    --color-gold: #D4AF37;
    --color-gold-light: #F0C84A;
    --color-gold-dark: #A8872B;
    --color-black: #0D0D0D;
    --color-dark: #1A1A1A;
    --color-dark-2: #242424;
    --color-dark-3: #2E2E2E;
    --color-gray: #6B6B6B;
    --color-gray-light: #999;
    --color-light: #F5F0E8;
    --color-white: #FFFFFF;
    --color-bg: #0F0F0F;
    --color-card-bg: #1C1C1C;
    --color-border: rgba(212, 175, 55, 0.2);

    --font-heading: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-accent: 'Cinzel', serif;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
    --shadow-red: 0 0 20px rgba(200, 16, 46, 0.3);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --container-max: 1280px;
    --container-pad: clamp(16px, 4vw, 48px);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.light-mode {
    --color-bg: #F5F0E8;
    --color-dark: #FFFFFF;
    --color-card-bg: #FFFFFF;
    --color-white: #1A1A1A;
    --color-gray: #555;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1rem, 2vw, 1.4rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.2em;
    color: rgba(255,255,255,0.85);
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.section-pad {
    padding: clamp(48px, 8vw, 96px) 0;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* =============================================
   DECORATIVE ELEMENTS
   ============================================= */
.gold-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.gold-line.center { margin: 0 auto 1rem; }

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    max-width: 600px;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header.center {
    text-align: center;
}

.section-header.center .section-subtitle {
    margin: 0 auto;
}

/* Chinese decorative pattern */
.cn-pattern {
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 40px,
        rgba(212,175,55,0.03) 40px,
        rgba(212,175,55,0.03) 41px
    ),
    repeating-linear-gradient(
        90deg,
        transparent,
        transparent 40px,
        rgba(212,175,55,0.03) 40px,
        rgba(212,175,55,0.03) 41px
    );
}

/* Red gradient overlay */
.red-overlay {
    position: relative;
}
.red-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200,16,46,0.15), transparent 60%);
    pointer-events: none;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before { opacity: 1; }

.btn-primary {
    background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
    color: var(--color-white);
    box-shadow: var(--shadow-red);
}

.btn-primary::before {
    background: linear-gradient(135deg, var(--color-red-light), var(--color-red));
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200,16,46,0.4);
    color: var(--color-white);
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-black);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212,175,55,0.5);
    color: var(--color-black);
}

.btn-outline {
    background: transparent;
    color: var(--color-gold);
    border: 1.5px solid var(--color-gold);
}

.btn-outline:hover {
    background: var(--color-gold);
    color: var(--color-black);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

/* =============================================
   SITE HEADER
   ============================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 175, 55, 0.2), var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 2rem;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-red);
}

.logo-icon::before {
    content: '中';
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--color-gold);
    font-family: var(--font-heading);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text span:first-child {
    font-family: var(--font-accent);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.logo-text span:last-child {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
}

/* Navigation */
.primary-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-parent > a {
    color: var(--color-gold);
    background: rgba(212, 175, 55, 0.08);
}

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    pointer-events: none;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.nav-menu .sub-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-menu .sub-menu li a:hover {
    color: var(--color-gold);
    background: rgba(212, 175, 55, 0.08);
    padding-left: 20px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.header-search-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    border-radius: 50%;
    transition: var(--transition);
}

.header-search-btn:hover {
    color: var(--color-gold);
    background: rgba(212,175,55,0.1);
}

.header-search-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    padding-top: 72px;
    background: rgba(13,13,13,0.98);
    backdrop-filter: blur(20px);
    overflow-y: auto;
    transition: var(--transition-slow);
}

.mobile-nav.open {
    display: block;
}

.mobile-nav-inner {
    padding: 2rem var(--container-pad);
}

.mobile-nav .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.mobile-nav .nav-menu > li > a {
    padding: 14px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-radius: 0;
}

.mobile-nav .sub-menu {
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0 0 0 1rem;
}

.mobile-nav .sub-menu li a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    border-radius: 0;
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
}

@media (max-width: 1024px) {
    .primary-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero.loaded .hero-bg-image {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13,13,13,0.85) 0%,
        rgba(13,13,13,0.6) 50%,
        rgba(200,16,46,0.2) 100%
    );
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(212,175,55,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(200,16,46,0.08) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 760px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s 0.2s ease forwards;
}

.hero-eyebrow-line {
    width: 40px;
    height: 2px;
    background: var(--color-gold);
}

.hero-eyebrow-text {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gold);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s 0.4s ease forwards;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.8);
    max-width: 580px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 0.8s 0.6s ease forwards;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s 0.8s ease forwards;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s 1s ease forwards;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(212,175,55,0.6);
    border-bottom: 2px solid rgba(212,175,55,0.6);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   FEATURED CATEGORIES
   ============================================= */
.featured-cats {
    background: var(--color-dark);
    position: relative;
}

.featured-cats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .cat-grid { grid-template-columns: 1fr; }
}

.cat-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    group: true;
}

.cat-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-card:hover .cat-card-img {
    transform: scale(1.08);
}

.cat-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13,13,13,0.95) 0%,
        rgba(13,13,13,0.4) 50%,
        transparent 100%
    );
    transition: var(--transition);
}

.cat-card:hover .cat-card-overlay {
    background: linear-gradient(
        to top,
        rgba(13,13,13,0.98) 0%,
        rgba(200,16,46,0.2) 50%,
        transparent 100%
    );
}

.cat-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    transform: translateY(0);
    transition: var(--transition);
}

.cat-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-red);
    transition: var(--transition);
}

.cat-card:hover .cat-card-icon {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    box-shadow: var(--shadow-gold);
    transform: scale(1.1);
}

.cat-card-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.cat-card-count {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.cat-card-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-8px);
    transition: var(--transition);
}

.cat-card:hover .cat-card-arrow {
    opacity: 1;
    transform: translateY(0);
}

.cat-card-arrow svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--color-gold);
    stroke-width: 2;
}

/* Featured categories - first two are bigger */
.cat-card.featured {
    aspect-ratio: unset;
    grid-row: span 2;
}

@media (max-width: 1200px) {
    .cat-card.featured { grid-row: span 1; aspect-ratio: 3/4; }
}

/* =============================================
   ARTICLE CARDS
   ============================================= */
.article-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212,175,55,0.2);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.article-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.article-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-card-img {
    transform: scale(1.06);
}

.article-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--color-red);
    color: var(--color-white);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.article-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.article-card-date,
.article-card-read-time {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-dot {
    width: 3px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
}

.article-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    flex: 1;
    transition: var(--transition);
}

.article-card:hover .article-card-title {
    color: var(--color-gold);
}

.article-card-excerpt {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: auto;
}

.article-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-red), var(--color-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.author-name {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
}

.article-card-read-more {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gold);
    opacity: 0;
    transform: translateX(-6px);
    transition: var(--transition);
}

.article-card:hover .article-card-read-more {
    opacity: 1;
    transform: translateX(0);
}

/* Large card variant */
.article-card.card-lg .article-card-img-wrap {
    aspect-ratio: 16/10;
}

.article-card.card-lg .article-card-title {
    font-size: 1.3rem;
}

/* =============================================
   FEATURED POSTS (2-col layout)
   ============================================= */
.featured-posts-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.featured-posts-grid .article-card:first-child {
    grid-row: 1 / 3;
}

.featured-posts-grid .article-card:first-child .article-card-img-wrap {
    aspect-ratio: unset;
    height: 350px;
}

@media (max-width: 900px) {
    .featured-posts-grid {
        grid-template-columns: 1fr;
    }
    .featured-posts-grid .article-card:first-child {
        grid-row: auto;
    }
    .featured-posts-grid .article-card:first-child .article-card-img-wrap {
        height: auto;
        aspect-ratio: 16/9;
    }
}

/* =============================================
   SECTION: FEATURED FOOD
   ============================================= */
.food-section {
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.food-section::before {
    content: '美食';
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 12rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: rgba(200,16,46,0.04);
    pointer-events: none;
    white-space: nowrap;
}

/* =============================================
   SECTION: TRAVEL HIGHLIGHTS
   ============================================= */
.travel-section {
    background: var(--color-dark);
    position: relative;
}

.destination-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.destination-card-img-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.destination-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.destination-card:hover .destination-card-img {
    transform: scale(1.1);
}

.destination-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,13,13,0.9) 0%, transparent 50%);
}

.destination-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
}

.destination-card-city {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.destination-card-country {
    font-size: 0.8rem;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.destination-card-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.destination-card:hover .destination-card-desc {
    max-height: 100px;
}

.destination-card-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
}

/* =============================================
   QUOTE / BANNER
   ============================================= */
.culture-banner {
    background: linear-gradient(135deg, var(--color-red-dark), var(--color-dark));
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 8vw, 80px) 0;
}

.culture-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 2px solid rgba(212,175,55,0.08);
    pointer-events: none;
}

.culture-banner::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px solid rgba(212,175,55,0.05);
    pointer-events: none;
}

.culture-banner-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.banner-chinese-char {
    font-size: 5rem;
    color: rgba(212,175,55,0.15);
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: 1rem;
}

.banner-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.banner-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* =============================================
   SIDEBAR
   ============================================= */
.widget {
    background: var(--color-card-bg);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--color-red);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Popular Posts Widget */
.popular-post-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post-img {
    width: 70px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.popular-post-content {
    flex: 1;
    min-width: 0;
}

.popular-post-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    color: rgba(255,255,255,0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.popular-post-item:hover .popular-post-title {
    color: var(--color-gold);
}

.popular-post-date {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
}

/* Category Widget */
.cat-widget-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.cat-widget-list li:last-child { border-bottom: none; }

.cat-widget-list li a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.cat-widget-list li a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-red);
    border-radius: 50%;
    flex-shrink: 0;
}

.cat-widget-list li a:hover { color: var(--color-gold); }

.cat-widget-count {
    font-size: 0.75rem;
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    color: rgba(255,255,255,0.4);
}

/* Tags Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    font-size: 0.78rem;
    padding: 4px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-full);
    color: rgba(255,255,255,0.65);
    transition: var(--transition);
}

.tag-cloud a:hover {
    background: rgba(212,175,55,0.1);
    border-color: rgba(212,175,55,0.3);
    color: var(--color-gold);
}

/* =============================================
   SINGLE POST
   ============================================= */
.post-hero {
    padding-top: 72px;
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.post-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.4) 100%);
}

.post-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 3rem 0;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.post-breadcrumb a,
.post-breadcrumb span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}

.post-breadcrumb a:hover { color: var(--color-gold); }

.post-breadcrumb .sep {
    color: rgba(255,255,255,0.25);
}

.post-breadcrumb .current {
    color: rgba(255,255,255,0.75);
}

.post-hero-cat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--color-red);
    color: white;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.post-hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    max-width: 860px;
    margin-bottom: 1.5rem;
}

.post-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}

.post-meta-item svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    color: var(--color-gold);
}

/* Post Content */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    padding: 3rem 0;
}

@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
    }
}

.post-content {
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(255,255,255,0.06);
}

.post-content h2 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--color-red);
    color: var(--color-white);
}

.post-content h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--color-gold);
}

.post-content h4 {
    font-size: 1.1rem;
    margin: 1.25rem 0 0.5rem;
    color: rgba(255,255,255,0.9);
}

.post-content p {
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.4em;
}

.post-content a {
    color: var(--color-gold);
    text-decoration: underline;
    text-decoration-color: rgba(212,175,55,0.4);
}

.post-content a:hover {
    color: var(--color-gold-light);
    text-decoration-color: var(--color-gold);
}

.post-content img {
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    max-width: 100%;
}

.post-content ul,
.post-content ol {
    margin: 1rem 0 1.5rem;
    padding-left: 1.5rem;
}

.post-content ul { list-style: none; }
.post-content ol { list-style: decimal; }

.post-content ul li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.6rem;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 1.7;
}

.post-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--color-red);
    border-radius: 50%;
}

.post-content ol li {
    margin-bottom: 0.6rem;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 1.7;
    padding-left: 0.3rem;
}

.post-content blockquote {
    border-left: 4px solid var(--color-gold);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(212,175,55,0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.post-content blockquote p {
    font-size: 1.05rem;
    font-style: italic;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0;
}

.post-content pre {
    background: rgba(0,0,0,0.4);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    overflow-x: auto;
    font-size: 0.9rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.post-content table th,
.post-content table td {
    padding: 10px 14px;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.1);
}

.post-content table th {
    background: rgba(200,16,46,0.15);
    color: var(--color-gold);
    font-weight: 700;
}

.post-content table tr:nth-child(even) td {
    background: rgba(255,255,255,0.02);
}

/* Post Tags */
.post-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.post-tags-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
}

.post-tag {
    font-size: 0.78rem;
    padding: 4px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-full);
    color: rgba(255,255,255,0.65);
    transition: var(--transition);
}

.post-tag:hover {
    background: rgba(212,175,55,0.1);
    border-color: rgba(212,175,55,0.3);
    color: var(--color-gold);
}

/* Related Posts */
.related-posts {
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* =============================================
   ARCHIVE / CATEGORY PAGE
   ============================================= */
.archive-header {
    padding: calc(72px + 3rem) 0 3rem;
    background: linear-gradient(135deg, var(--color-dark), var(--color-bg));
    border-bottom: 1px solid rgba(212,175,55,0.1);
    position: relative;
    overflow: hidden;
}

.archive-header::before {
    content: attr(data-category);
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: rgba(212,175,55,0.04);
    pointer-events: none;
    white-space: nowrap;
}

.archive-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 0.75rem;
}

.archive-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
}

.archive-count {
    font-size: 0.85rem;
    color: var(--color-gold);
    margin-top: 0.5rem;
}

/* Archive Grid */
.archive-content {
    padding: 3rem 0;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .archive-grid { grid-template-columns: 1fr; }
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.page-number,
.prev-page,
.next-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    background: var(--color-card-bg);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.page-number:hover,
.prev-page:hover,
.next-page:hover {
    color: var(--color-gold);
    border-color: rgba(212,175,55,0.3);
    background: rgba(212,175,55,0.05);
}

.page-number.current {
    background: var(--color-red);
    border-color: var(--color-red);
    color: white;
}

/* =============================================
   SEARCH
   ============================================= */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(13,13,13,0.97);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
}

.search-form-wrap {
    width: 100%;
    max-width: 680px;
    padding: 0 2rem;
}

.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 1.25rem 4rem 1.25rem 1.75rem;
    font-size: 1.2rem;
    color: var(--color-white);
    transition: var(--transition);
    outline: none;
}

.search-input::placeholder { color: rgba(255,255,255,0.3); }

.search-input:focus {
    border-color: rgba(212,175,55,0.5);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.05);
}

.search-submit {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}

.search-submit:hover { color: var(--color-gold); }

.search-submit svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.search-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    border-radius: 50%;
    transition: var(--transition);
}

.search-close:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.search-close svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* =============================================
   NEWSLETTER SECTION
   ============================================= */
.newsletter-section {
    background: var(--color-dark);
    padding: clamp(48px, 6vw, 80px) 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    left: -100px;
    top: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,16,46,0.1), transparent);
    pointer-events: none;
}

.newsletter-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .newsletter-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.newsletter-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 0.75rem;
}

.newsletter-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

@media (max-width: 520px) {
    .newsletter-form { flex-direction: column; }
}

.newsletter-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-size: 0.9rem;
    color: var(--color-white);
    outline: none;
    transition: var(--transition);
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.35); }

.newsletter-input:focus {
    border-color: rgba(212,175,55,0.4);
    background: rgba(255,255,255,0.07);
}

/* =============================================
   SITE FOOTER
   ============================================= */
.site-footer {
    background: var(--color-black);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-top {
    padding: clamp(48px, 6vw, 72px) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand .site-logo {
    margin-bottom: 1.25rem;
}

.footer-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
    max-width: 320px;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

.social-btn:hover {
    background: rgba(200,16,46,0.15);
    border-color: rgba(200,16,46,0.3);
    color: var(--color-red-light);
    transform: translateY(-2px);
}

.social-btn svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.footer-col-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1.25rem;
}

.footer-nav li {
    margin-bottom: 0.6rem;
}

.footer-nav li a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.45);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-nav li a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.3s;
}

.footer-nav li a:hover {
    color: rgba(255,255,255,0.85);
    padding-left: 4px;
}

.footer-nav li a:hover::before {
    width: 10px;
}

.footer-bottom {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    transition: color 0.2s;
}

.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--color-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-red), var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
    z-index: 500;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--color-red-light);
    transform: translateY(-3px);
}

.scroll-top-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

/* =============================================
   PAGE NOT FOUND (404)
   ============================================= */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-404 {
    font-size: clamp(6rem, 20vw, 12rem);
    font-family: var(--font-heading);
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-red), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.error-desc {
    color: rgba(255,255,255,0.5);
    max-width: 480px;
    margin: 0 auto 2rem;
}

/* =============================================
   LOADING SKELETON
   ============================================= */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =============================================
   UTILITIES
   ============================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-gold { color: var(--color-gold); }
.text-red { color: var(--color-red); }
.text-muted { color: rgba(255,255,255,0.5); }

.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-8 { margin-bottom: 2rem; }

.d-none { display: none; }
.d-block { display: block; }

/* Print Styles */
@media print {
    .site-header, .site-footer, .sidebar, .related-posts {
        display: none !important;
    }
    .post-content {
        background: white;
        color: black;
        border: none;
    }
    a { color: #333; }
}

/* ==============================================
   SEO ENHANCEMENTS (v2.0)
   ============================================== */

/* --- Skip Link (Accessibility + Core Web Vitals) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 99999;
    padding: .5rem 1rem;
    background: var(--color-red);
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    text-decoration: none;
    transition: top .2s;
}
.skip-link:focus {
    top: 0;
}

/* --- Breadcrumb Navigation --- */
.post-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .5rem;
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    margin-bottom: 1rem;
    padding: 0;
    list-style: none;
}
.post-breadcrumb a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: color .2s;
}
.post-breadcrumb a:hover {
    color: var(--color-gold);
}
.post-breadcrumb .sep {
    color: rgba(255,255,255,.25);
    margin: 0 .2rem;
}
.post-breadcrumb .current {
    color: rgba(255,255,255,.8);
    max-width: 30ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Archive Layout (replaces inline grid style) --- */
.archive-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 1024px) {
    .archive-layout {
        grid-template-columns: 1fr;
    }
}

/* --- Post Navigation (prev/next) --- */
.post-nav {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
}
.post-nav__item {
    flex: 1;
    background: var(--color-dark);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-decoration: none;
    transition: border-color .2s;
}
.post-nav__item:hover {
    border-color: rgba(212,175,55,.3);
}
.post-nav__item--next {
    text-align: right;
}
.post-nav__label {
    font-size: .72rem;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .4rem;
}
.post-nav__title {
    font-size: .9rem;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    line-height: 1.35;
}
@media (max-width: 640px) {
    .post-nav {
        flex-direction: column;
    }
    .post-nav__item--next {
        text-align: left;
    }
}

/* --- Author Bio Card --- */
.author-bio {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--color-card-bg);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 2rem;
}
.author-bio__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--color-red),var(--color-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.author-bio__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-bio__name {
    font-weight: 700;
    margin-bottom: .3rem;
}
.author-bio__desc {
    font-size: .875rem;
    color: rgba(255,255,255,.55);
    margin-bottom: 0;
}

/* --- Related Posts Heading --- */
.related-posts__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* --- Internal Links Widget (injected by SEO module) --- */
.ccg-internal-links {
    background: rgba(212,175,55,.05);
    border-left: 3px solid var(--color-gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}
.ccg-internal-links__label {
    font-size: .85rem;
    color: var(--color-gold);
    margin-bottom: .5rem;
}
.ccg-internal-links__list {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
}
.ccg-internal-links__list li {
    margin-bottom: .3rem;
}
.ccg-internal-links__list a {
    font-size: .9rem;
    color: rgba(255,255,255,.75);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,.2);
    transition: color .2s;
}
.ccg-internal-links__list a:hover {
    color: var(--color-gold);
    text-decoration-color: var(--color-gold);
}

/* --- Article Card Gradient Fallback --- */
.article-card-img--gradient {
    width: 100%;
    height: 100%;
}

/* --- Gradient image placeholder (removed emoji) --- */
.article-card-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* --- No Results --- */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}
.no-results__icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1;
}

/* --- Comments Wrap --- */
.comments-wrap {
    margin-top: 2rem;
}

/* ==============================================
   MOBILE-FIRST DEEP OPTIMIZATION (Google Mobile-First Index)
   ============================================== */

/* Touch target minimum size (Google recommended ≥ 48px) */
.btn,
.nav-menu a,
.mobile-menu-toggle,
.header-search-btn,
.article-card-read-more,
.post-nav__item,
.footer-nav a,
.pagination a,
.pagination span {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}

/* Fluid font size for readability on mobile */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    body {
        /* Prevent horizontal overflow on small screens */
        overflow-x: hidden;
    }

    /* Hero responsive adjustments */
    .hero-title {
        font-size: clamp(1.6rem, 8vw, 3rem) !important;
    }
    .hero-subtitle {
        font-size: clamp(.9rem, 3vw, 1.1rem);
    }

    /* Post hero title */
    .post-hero-title {
        font-size: clamp(1.4rem, 6vw, 2.5rem) !important;
    }

    /* Section titles */
    .section-title {
        font-size: clamp(1.2rem, 5vw, 2rem) !important;
    }

    /* Cards: full-width on small screens */
    .grid-2,
    .grid-3,
    .grid-4,
    .featured-posts-grid {
        grid-template-columns: 1fr !important;
    }

    /* Post layout: single column */
    .post-layout {
        grid-template-columns: 1fr !important;
    }
    .post-layout .sidebar {
        display: none; /* Hide sidebar on mobile for speed */
    }

    /* Archive layout: single column */
    .archive-layout {
        grid-template-columns: 1fr !important;
    }
    .archive-layout .sidebar {
        display: none;
    }

    /* Footer grid */
    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    /* Cat grid */
    .cat-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Newsletter */
    .newsletter-inner {
        flex-direction: column !important;
    }
    .newsletter-form {
        flex-direction: column !important;
        gap: .75rem !important;
    }
    .newsletter-input,
    .newsletter-form .btn {
        width: 100% !important;
    }

    /* Breadcrumb: truncate on mobile */
    .post-breadcrumb .current {
        max-width: 20ch;
    }

    /* Post nav */
    .post-nav {
        flex-direction: column;
    }
    .post-nav__item--next {
        text-align: left;
    }

    /* Header actions spacing */
    .header-actions {
        gap: .5rem;
    }
}

/* Tiny screens */
@media (max-width: 480px) {
    .cat-grid {
        grid-template-columns: 1fr !important;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-actions .btn {
        justify-content: center;
        width: 100%;
    }
}

/* ==============================================
   IMAGE OPTIMIZATION
   ============================================== */
img {
    content-visibility: auto;
}
/* Hero image: do NOT lazy load (LCP candidate) */
.post-hero-img,
.hero-bg-image {
    content-visibility: visible;
}

/* ==============================================
   CORE WEB VITALS: Prevent layout shift (CLS)
   ============================================== */
.article-card-img-wrap,
.cat-card-img-wrap,
.destination-card-img-wrap {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.article-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Reserve space for hero images */
.post-hero {
    min-height: 420px;
}
@media (max-width: 768px) {
    .post-hero {
        min-height: 280px;
    }
}

