/**
 * Emma Travel Blog - Modern Travel Theme
 * Inspired by myvegantravels.com
 * Created by SoftwareOps.de
 */

/* ========================================
   CSS RESET & ROOT VARIABLES
======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #2d2d2d;
    --primary-light: #4a4a4a;
    --accent: #e07b39;
    --accent-hover: #c96a2e;
    --accent-light: #fdf0e6;

    --white: #ffffff;
    --off-white: #fafafa;
    --cream: #f8f6f3;
    --gray-100: #f5f5f5;
    --gray-200: #e8e8e8;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;

    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;

    /* Typography */
    --font-heading: 'Paytone One', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-handwritten: 'Caveat', cursive;

    /* Spacing */
    --container-width: 1200px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);

    /* Transitions */
    --transition: all 0.3s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.15;
    color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

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

/* ========================================
   LAYOUT
======================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Full-width page headers */
.destinations-header,
.travel-tips-header,
.reviews-header {
    margin-top: 70px;
    padding: 50px 20px 40px;
    background: linear-gradient(135deg, #e07b39 0%, #c96a2d 100%);
    text-align: center;
}
.destinations-header h1,
.travel-tips-header h1,
.reviews-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 12px;
    color: white;
}
.destinations-header p,
.travel-tips-header p,
.reviews-header p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin: 0 auto;
}

/* ========================================
   HEADER & NAVIGATION
======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.site-header > .container {
    max-width: 100%;
    padding: 0 60px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

.nav-menu a:hover {
    color: var(--accent);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-menu .has-dropdown {
    position: relative;
}

.nav-menu .has-dropdown > a::after {
    display: none;
}

.nav-menu .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
    z-index: 1000;
}

.nav-menu .has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .dropdown li {
    display: block;
}

.nav-menu .dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    font-size: 14px;
    white-space: nowrap;
}

.nav-menu .dropdown a:hover {
    background: var(--gray-100);
    color: var(--accent);
}

.nav-menu .dropdown a::after {
    display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

/* Search Toggle */
.nav-search {
    display: flex;
    align-items: center;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
    transition: var(--transition);
}

.search-toggle:hover {
    color: var(--accent);
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-close:hover {
    color: var(--accent);
}

.search-form {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.search-form input {
    flex: 1;
    border: none;
    padding: 20px 24px;
    font-size: 18px;
    outline: none;
}

.search-form button {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 20px 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--accent-hover);
}

/* ========================================
   HERO SECTION - myvegantravels style
======================================== */
.hero-wrapper {
    margin-top: 70px;
    padding: 20px 60px;
    background: var(--white);
}

.hero {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px 80px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    /* Fallback gradient - orange theme */
    background-color: var(--accent);
    background-image: linear-gradient(135deg, #e07b39 0%, #c96a2e 50%, #a85a28 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.25) 100%);
}

/* Hero Birds & Sun Illustration - Desktop Only */
.hero-illustration {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-illustration svg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 1024px) {
    .hero-illustration {
        display: none;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    text-align: left;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 7vw, 4rem);
    margin-bottom: 30px;
    line-height: 1.1;
    max-width: 600px;
}

/* Hero Search Bar */
.hero-search {
    margin-bottom: 30px;
    max-width: 700px;
}

.hero-search form {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-search input {
    flex: 1;
    border: none;
    padding: 20px 24px;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.hero-search input::placeholder {
    color: var(--gray-500);
}

.hero-search button {
    background: transparent;
    color: var(--gray-600);
    border: none;
    padding: 20px 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-search button:hover {
    color: var(--accent);
}

/* Hero Category Pills */
.hero-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-category-pill {
    display: inline-block;
    padding: 12px 22px;
    background: rgba(50, 50, 50, 0.85);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: none;
}

.hero-category-pill:hover {
    background: rgba(30, 30, 30, 0.95);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-category-pill.active {
    background: var(--primary);
    color: var(--white);
}

/* ========================================
   TRENDING POSTS SECTION
======================================== */
.trending-section {
    padding: 60px 0;
    background: var(--white);
}

.trending-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 40px;
}

.trending-section .section-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.trending-section .section-header h2::after {
    display: none;
}

.sparkle {
    font-size: 0.8em;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trending-card {
    display: flex;
    flex-direction: column;
}

.trending-card-image {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}

.trending-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trending-card:hover .trending-card-image img {
    transform: scale(1.05);
}

.trending-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.trending-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.trending-card-content h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.trending-card-content h3 a {
    color: var(--primary);
}

.trending-card-content h3 a:hover {
    color: var(--accent);
}

.trending-card-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.read-more:hover {
    text-decoration: underline;
}

/* ========================================
   CATEGORY HIGHLIGHT SECTION
======================================== */
.category-highlight-wrapper {
    padding: 20px 60px;
}

.category-highlight {
    padding: 60px;
    background: var(--gray-200);
    border-radius: var(--radius-lg);
}

.category-highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.category-highlight-info {
    position: relative;
}

.category-highlight-subtitle {
    font-family: var(--font-handwritten);
    font-size: 1.8rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 0;
}

.category-highlight-info h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.category-highlight-info p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 24px;
}

.category-highlight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tag-pill {
    display: inline-block;
    padding: 12px 20px;
    background: var(--gray-800);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.category-tag-pill:hover {
    background: var(--gray-700);
    color: var(--white);
    transform: translateY(-1px);
}

.category-tag-pill.active {
    background: var(--gray-800);
}

.category-highlight-posts {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.category-highlight-post {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.category-highlight-post-image {
    width: 140px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.category-highlight-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-highlight-post:hover .category-highlight-post-image img {
    transform: scale(1.05);
}

.category-highlight-post-content {
    flex: 1;
}

.category-highlight-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.category-highlight-post-tags a {
    font-size: 12px;
    color: var(--accent);
    text-decoration: underline;
}

.category-highlight-post-tags a:hover {
    color: var(--accent-hover);
}

.category-highlight-post-content h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 700;
}

.category-highlight-post-content h3 a {
    color: var(--primary);
}

.category-highlight-post-content h3 a:hover {
    color: var(--accent);
}

/* ========================================
   TRAVEL LIKE A PRO SECTION
======================================== */
.travel-pro-wrapper {
    padding: 20px 60px;
}

.travel-pro {
    position: relative;
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #b85318 0%, #e07b39 100%);
}

.travel-pro-content {
    position: relative;
    width: 100%;
    padding: 60px;
}

.travel-pro-text {
    max-width: 500px;
}

.travel-pro-text h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 20px;
    font-style: italic;
}

.travel-pro-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

.travel-pro-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.travel-pro-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    max-width: 320px;
    transition: var(--transition);
}

.travel-pro-link:hover {
    background: var(--gray-100);
    transform: translateX(5px);
    color: var(--primary);
}

.travel-pro-link span {
    font-size: 1.2rem;
    margin-left: 10px;
}

/* Travel Pro Mountain Illustration - Desktop Only */
.travel-pro-illustration {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    display: block;
    overflow: hidden;
}

.travel-pro-illustration svg {
    position: absolute;
    right: -50px;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-width: 500px;
}

/* Hide illustration on tablet and mobile */
@media (max-width: 1024px) {
    .travel-pro-illustration {
        display: none;
    }
}

/* ========================================
   VEGAN TRAVEL TIPS SECTION
======================================== */
.travel-tips-section {
    padding: 60px 0 80px;
    background: var(--white);
}

.travel-tips-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.travel-tips-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 12px;
}

.travel-tips-section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.travel-tips-section-header p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.travel-tips-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.travel-tip-tag {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gray-800);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.travel-tip-tag:hover {
    background: var(--accent);
    color: var(--white);
}

.travel-tip-tag.active {
    background: var(--accent);
    color: var(--white);
}

.travel-tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.travel-tip-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.travel-tip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.travel-tip-card-image {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.travel-tip-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.travel-tip-card:hover .travel-tip-card-image img {
    transform: scale(1.05);
}

.travel-tip-card-content {
    padding: 20px;
}

.travel-tip-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.travel-tip-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--primary);
    margin-bottom: 12px;
}

.travel-tip-card-content h3 a {
    color: inherit;
}

.travel-tip-card-content h3 a:hover {
    color: var(--accent);
}

.travel-tip-card-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 12px;
}

.travel-tip-card-content .read-more {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.travel-tip-card-content .read-more:hover {
    color: var(--accent-hover);
}

.travel-tips-empty {
    text-align: center;
    padding: 40px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    color: var(--text-light);
}

/* ========================================
   POSTS SECTION
======================================== */
.posts-section {
    padding: 40px 0 60px;
    background: var(--white);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-header h2 {
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin-top: 10px;
    border-radius: 2px;
}

.view-all {
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ========================================
   POST CARD
======================================== */
.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.post-card-image {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.08);
}

.post-card-content {
    padding: 24px;
}

.category-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.category-tag:hover {
    background: var(--accent);
    color: var(--white);
}

.post-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-card h3 a {
    color: var(--primary);
}

.post-card h3 a:hover {
    color: var(--accent);
}

.post-card .excerpt {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 13px;
}

.post-card .meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
}

.empty-state svg {
    color: var(--gray-300);
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* ========================================
   SIDEBAR
======================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}

/* Author Widget */
.author-widget {
    text-align: center;
}

.author-widget img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 4px solid var(--accent-light);
}

.author-widget h4 {
    border: none;
    padding-bottom: 0;
    margin-bottom: 8px;
}

.author-widget p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--text);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--white);
}

/* Recent Posts Widget */
.recent-post-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-200);
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-item:first-child {
    padding-top: 0;
}

.recent-post-item img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.recent-post-item h5 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.recent-post-item h5 a {
    color: var(--primary);
}

.recent-post-item h5 a:hover {
    color: var(--accent);
}

.recent-post-item .date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-cloud a {
    padding: 6px 14px;
    background: var(--gray-100);
    color: var(--text);
    font-size: 13px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.tags-cloud a:hover {
    background: var(--accent);
    color: var(--white);
}

/* ========================================
   NEWSLETTER SECTION
======================================== */
.newsletter-section {
    background: linear-gradient(135deg, var(--accent) 0%, #c96a2e 100%);
    padding: 80px 0;
    text-align: center;
}

.newsletter-section h3 {
    color: var(--white);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 12px;
}

.newsletter-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    outline: none;
}

.newsletter-form button {
    padding: 16px 32px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--gray-800);
    transform: translateY(-2px);
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background: var(--gray-800);
    color: var(--gray-300);
    padding: 60px 0 30px;
}

/* Affiliate Disclosure */
.footer-disclosure {
    background: rgba(224, 123, 57, 0.15);
    border: 1px solid rgba(224, 123, 57, 0.3);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 40px;
}

.footer-disclosure p {
    color: var(--gray-300);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.footer-disclosure strong {
    color: var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-about p {
    color: var(--gray-400);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 16px;
    display: block;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--gray-700);
    border-radius: 50%;
    color: var(--gray-300);
    transition: var(--transition);
}

.footer-social-icons a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.site-footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--gray-500);
}

.footer-copyright p {
    margin: 0;
}

.footer-tagline {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

.footer-badges {
    display: flex;
    gap: 10px;
}

.footer-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gray-700);
    color: var(--gray-300);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-600);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--gray-400);
    font-size: 18px;
}

.footer-social a:hover {
    color: var(--accent);
}

/* CMS Branding Credit */
.footer-cms-credit {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--gray-700);
    font-size: 11px;
    color: var(--gray-500);
    letter-spacing: 0.02em;
}

.footer-cms-credit a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-cms-credit a:hover {
    color: var(--accent);
}

.footer-cms-credit .separator {
    margin: 0 8px;
    color: var(--gray-600);
}

/* ========================================
   SINGLE POST
======================================== */
.single-post {
    margin-top: 70px;
    padding-top: 40px;
}

.breadcrumbs {
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs span {
    margin: 0 8px;
}

.post-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.post-header .category-tag {
    margin-bottom: 16px;
}

.post-header h1 {
    margin-bottom: 20px;
}

.post-header .meta {
    color: var(--text-light);
    font-size: 15px;
}

.post-header .meta span {
    margin: 0 6px;
}

.post-featured-image {
    margin: 0 auto 40px;
    max-width: 1000px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    display: block;
}

.post-content {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 17px;
    line-height: 1.8;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 40px 0 20px;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    border-radius: var(--radius-md);
    margin: 30px 0;
}

.post-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 20px 30px;
    margin: 30px 0;
    background: var(--gray-100);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.post-content ul li,
.post-content ol li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.post-tags {
    max-width: 750px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.post-tags span {
    font-weight: 600;
    margin-right: 8px;
}

.post-tags a {
    padding: 6px 14px;
    background: var(--gray-100);
    color: var(--text);
    font-size: 13px;
    border-radius: var(--radius-full);
}

.post-tags a:hover {
    background: var(--accent);
    color: var(--white);
}

.author-box {
    max-width: 750px;
    margin: 50px auto;
    padding: 30px;
    background: var(--cream);
    border-radius: var(--radius-lg);
    display: flex;
    gap: 24px;
    align-items: center;
}

.author-box img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box-content h4 {
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 8px;
}

.author-box-content p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

/* Related Posts */
.related-posts {
    background: var(--cream);
    padding: 60px 0;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 40px;
}

/* Comments */
.comments-section {
    max-width: 750px;
    margin: 50px auto;
    padding: 0 20px;
}

.comments-section h3 {
    margin-bottom: 30px;
}

.comment {
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-200);
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-header img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.comment-meta strong {
    display: block;
    font-size: 15px;
}

.comment-meta span {
    font-size: 13px;
    color: var(--text-muted);
}

.comment-content {
    font-size: 15px;
    color: var(--text-light);
}

.comment-form {
    margin-top: 40px;
    background: var(--gray-100);
    padding: 30px;
    border-radius: var(--radius-lg);
}

.comment-form h4 {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ========================================
   PAGINATION
======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 500;
    transition: var(--transition);
}

.pagination a {
    background: var(--white);
    color: var(--text);
    border: 2px solid var(--gray-200);
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination span.active {
    background: var(--accent);
    color: var(--white);
}

/* ========================================
   ERROR PAGE
======================================== */
.error-page {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--cream);
}

.error-page h1 {
    font-size: 8rem;
    color: var(--accent);
    line-height: 1;
}

.error-page h2 {
    margin: 16px 0;
}

.error-page p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ========================================
   ARCHIVE PAGES
======================================== */
.archive-header {
    margin-top: 70px;
    padding: 50px 20px 40px;
    background: linear-gradient(135deg, #e07b39 0%, #c96a2e 50%, #a85a28 100%);
    text-align: center;
}

.archive-header h1 {
    color: var(--white);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 12px;
}

.archive-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.archive-header .breadcrumbs {
    margin-bottom: 16px;
}

.archive-header .breadcrumbs a,
.archive-header .breadcrumbs span {
    color: rgba(255, 255, 255, 0.8);
}

.archive-header .breadcrumbs a:hover {
    color: var(--white);
}

.archive-header .post-count {
    margin-top: 10px;
    opacity: 0.8;
}

/* ========================================
   PAGE CONTENT (standalone pages without hero)
======================================== */
.page-content {
    margin-top: 70px;
    padding: 40px 0;
}

.page-content h1 {
    text-align: center;
    margin-bottom: 30px;
}

.page-content .container {
    max-width: 800px;
}

/* ========================================
   ABOUT PAGE
======================================== */
.about-hero {
    margin-top: 70px;
    padding: 40px 0 30px;
    text-align: center;
    background: var(--white);
}

.about-hero img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 24px;
    border: 5px solid var(--accent-light);
}

.about-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 12px;
}

.about-content {
    padding: 30px 0 60px;
    background: var(--white);
}

.about-content .container {
    max-width: 800px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.5rem;
}

/* ========================================
   ABOUT PAGE - ENHANCED STYLES
======================================== */

/* About Hero Section */
.about-hero-section {
    margin-top: 70px;
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #e07b39 0%, #c96a2e 50%, #a85a28 100%);
    text-align: center;
    overflow: hidden;
}

.about-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.about-hero-section .container {
    position: relative;
    z-index: 1;
}

.about-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-avatar {
    margin-bottom: 24px;
}

.about-avatar img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.about-hero-section h1 {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.about-hero-section h1 .highlight {
    color: #fff3e0;
}

.about-tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.about-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

/* About Story Section */
.about-story-section {
    padding: 80px 0;
    background: #ffffff;
}

.about-story-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.story-content h2 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.story-intro {
    font-size: 1.35rem;
    color: #e07b39;
    font-weight: 500;
    margin-bottom: 24px;
    font-style: italic;
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.25rem;
}

.story-image {
    position: relative;
}

.story-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.image-caption {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #4a5568;
}

/* About Beliefs Section */
.about-beliefs-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-beliefs-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-beliefs-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 48px;
    font-family: var(--font-heading);
}

.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.belief-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.belief-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.belief-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e07b39 0%, #c96a2e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #ffffff;
}

.belief-card h3 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.belief-card p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
}

/* About Facts Section */
.about-facts-section {
    padding: 80px 0;
    background: #ffffff;
}

.about-facts-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-facts-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 48px;
    font-family: var(--font-heading);
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.fact-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.fact-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.fact-item p {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.fact-item strong {
    color: #e07b39;
}

/* About Content Types Section */
.about-content-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-content-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 48px;
    font-family: var(--font-heading);
}

.content-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.content-type {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.content-type:hover {
    border-color: #e07b39;
}

.content-type-icon {
    width: 56px;
    height: 56px;
    background: #fff3e0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #e07b39;
}

.content-type h3 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.content-type p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* About Connect Section */
.about-connect-section {
    padding: 80px 0;
    background: #ffffff;
}

.about-connect-section .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.connect-content {
    text-align: center;
}

.connect-content h2 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.connect-content > p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 32px;
    line-height: 1.7;
}

.social-links-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #ffffff;
    border-color: transparent;
}

.social-link.twitter:hover {
    background: #1da1f2;
    color: #ffffff;
    border-color: transparent;
}

.social-link.pinterest:hover {
    background: #e60023;
    color: #ffffff;
    border-color: transparent;
}

.social-link.youtube:hover {
    background: #ff0000;
    color: #ffffff;
    border-color: transparent;
}

.social-link.email:hover {
    background: #e07b39;
    color: #ffffff;
    border-color: transparent;
}

/* About CTA Section */
.about-cta-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-cta-section .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-box {
    background: linear-gradient(135deg, #e07b39 0%, #c96a2e 100%);
    border-radius: 20px;
    padding: 60px 48px;
    text-align: center;
    color: #ffffff;
}

.cta-box h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.cta-box p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 28px;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: #ffffff;
    color: #e07b39;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* About Page Responsive */
@media (max-width: 1024px) {
    .beliefs-grid,
    .content-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-image {
        order: -1;
    }

    .story-image img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .about-hero-section {
        padding: 60px 0 50px;
    }

    .about-avatar img {
        width: 140px;
        height: 140px;
    }

    .about-hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-story-section,
    .about-beliefs-section,
    .about-facts-section,
    .about-content-section,
    .about-connect-section,
    .about-cta-section {
        padding: 50px 0;
    }

    .beliefs-grid,
    .content-types-grid,
    .facts-grid {
        grid-template-columns: 1fr;
    }

    .story-image img {
        height: 350px;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .social-links-grid {
        flex-direction: column;
        align-items: center;
    }

    .social-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ========================================
   PAGE HERO & CONTENT (Generic Pages)
======================================== */
.page-hero {
    margin-top: 70px;
    padding: 50px 20px 40px;
    background: linear-gradient(135deg, #e07b39 0%, #c96a2e 50%, #a85a28 100%);
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 12px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.page-content {
    padding: 40px 20px 60px;
    background: var(--white);
}

.page-content .container {
    max-width: 800px;
}

.content-box {
    background: var(--off-white);
    padding: 40px;
    border-radius: var(--radius-md);
}

.content-box h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.content-box h3 {
    font-size: 1.2rem;
    margin: 24px 0 12px;
    color: var(--primary);
}

.content-box p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1rem;
}

.cta-box {
    margin-top: 40px;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius-sm);
    text-align: center;
    border: 2px dashed var(--gray-300);
}

.cta-box h3 {
    margin-top: 0;
}

.cta-box .btn {
    margin-top: 16px;
}

/* ========================================
   LEGAL PAGES (Privacy, Terms, Disclaimer)
======================================== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content .last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.legal-content h2 {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.legal-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content ul {
    margin: 16px 0 24px 24px;
    list-style: disc;
}

.legal-content ul li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: var(--text);
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--accent-hover);
}

.highlight-box {
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    padding: 24px;
    margin: 24px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.highlight-box ul {
    margin-bottom: 16px;
}

/* ========================================
   RESOURCES PAGE
======================================== */
.resources-section {
    padding: 50px 0 80px;
    background: #ffffff;
}

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

.resources-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.resources-intro p {
    margin: 0;
}

.resource-category {
    margin-bottom: 60px;
}

.resource-category:last-of-type {
    margin-bottom: 40px;
}

.resource-category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.resource-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e07b39 0%, #c96a2e 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-icon svg {
    color: #ffffff;
    width: 32px;
    height: 32px;
}

.resource-category-title h2 {
    font-size: 1.8rem;
    color: #1a202c;
    margin: 0 0 4px 0;
    font-weight: 700;
}

.resource-category-title p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.resource-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-color: #e07b39;
}

.resource-card.featured {
    border: 2px solid #e07b39;
    background: linear-gradient(135deg, rgba(224, 123, 57, 0.05) 0%, rgba(224, 123, 57, 0.02) 100%);
}

.resource-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
    flex-wrap: wrap;
}

.resource-card-header h3 {
    font-size: 1.25rem;
    color: #1a202c;
    margin: 0;
    font-weight: 700;
}

.resource-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e07b39;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    white-space: nowrap;
}

.resource-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 16px 0;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e07b39;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.resource-link:hover {
    color: #c96a2e;
    gap: 10px;
}

.resource-link span {
    transition: all 0.3s ease;
}

.resources-disclaimer {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    border-left: 4px solid #e07b39;
}

.resources-disclaimer h3 {
    font-size: 1.1rem;
    color: #1a202c;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.resources-disclaimer p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

/* Resources page responsive */
@media (max-width: 1024px) {
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .resource-category-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .resource-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .resources-intro {
        padding: 0 20px;
    }
}

/* ========================================
   CONTACT PAGE
======================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-box {
    background: var(--off-white);
    padding: 40px;
    border-radius: var(--radius-md);
}

.contact-info-box h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.contact-info-box > p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 24px;
}

.contact-details {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    color: var(--text);
}

.contact-details li:last-child {
    border-bottom: none;
}

.contact-details svg {
    color: var(--accent);
    flex-shrink: 0;
}

.contact-social {
    margin-top: 32px;
}

.contact-social h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.contact-social-links {
    display: flex;
    gap: 12px;
}

.contact-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    color: var(--primary);
    transition: var(--transition);
}

.contact-social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.contact-form-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--primary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(224, 123, 57, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
}

.contact-success {
    text-align: center;
    padding: 40px 0;
}

.contact-success h3 {
    font-family: var(--font-heading);
    margin: 20px 0 12px;
    color: var(--primary);
}

.contact-success p {
    color: var(--text-light);
}

.contact-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

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

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   SKIP LINK (Accessibility)
======================================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent);
    color: var(--white);
    padding: 12px 20px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   RESPONSIVE - TABLET
======================================== */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-highlight-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .category-highlight-info {
        position: static;
    }

    .travel-tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .hero h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }
}

/* ========================================
   RESPONSIVE - MOBILE
======================================== */
@media (max-width: 768px) {
    /* Header Mobile */
    .site-header > .container {
        padding: 0 20px;
    }

    .main-nav {
        position: relative;
    }

    /* Mobile Menu Toggle - Always visible on mobile */
    .menu-toggle {
        display: flex;
        order: 3;
        z-index: 1001;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Nav Right container */
    .nav-right {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-right.active {
        transform: translateX(0);
    }

    /* Navigation Menu */
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 20px;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-menu > li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 16px 0;
        font-size: 17px;
        color: var(--text);
    }

    .nav-menu a::after {
        display: none;
    }

    /* Mobile Dropdowns */
    .nav-menu .has-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-menu .has-dropdown > a::before {
        content: '';
        order: 2;
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--text-light);
        border-bottom: 2px solid var(--text-light);
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }

    .nav-menu .has-dropdown.open > a::before {
        transform: rotate(-135deg);
    }

    .nav-menu .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--gray-100);
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu .has-dropdown.open .dropdown {
        max-height: 500px;
    }

    .nav-menu .dropdown li {
        border-bottom: none;
    }

    .nav-menu .dropdown a {
        padding: 12px 20px;
        font-size: 15px;
        color: var(--text-light);
    }

    .nav-menu .dropdown a:hover {
        background: var(--gray-200);
    }

    /* Search on mobile */
    .nav-search {
        padding: 20px;
        border-top: 1px solid var(--gray-200);
    }

    .search-toggle {
        width: 100%;
        background: var(--gray-100);
        border-radius: var(--radius);
        padding: 14px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .search-toggle::after {
        content: 'Search';
        font-size: 15px;
        color: var(--text-light);
    }

    /* Hero */
    .hero-wrapper {
        padding: 15px;
    }

    .hero {
        min-height: 400px;
        padding: 40px 20px 60px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 24px;
    }

    .hero-search input {
        padding: 16px 20px;
    }

    .hero-search button {
        padding: 16px 20px;
    }

    .hero-categories {
        gap: 8px;
    }

    .hero-category-pill {
        padding: 10px 16px;
        font-size: 13px;
    }

    /* Trending */
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .trending-card-image {
        aspect-ratio: 1/1;
    }

    /* Category Highlight */
    .category-highlight-wrapper {
        padding: 15px;
    }

    .category-highlight {
        padding: 30px 20px;
    }

    /* Travel Pro */
    .travel-pro-wrapper {
        padding: 15px;
    }

    .travel-pro {
        min-height: auto;
    }

    .travel-pro-content {
        padding: 30px 20px;
    }

    .travel-pro-text h2 {
        font-size: 2rem;
    }

    .travel-pro-link {
        max-width: 100%;
    }

    /* Travel Tips */
    .travel-tips-section {
        padding: 40px 0 60px;
    }

    .travel-tips-section-header h2 {
        font-size: 1.6rem;
    }

    .travel-tips-tags {
        gap: 8px;
        margin-bottom: 30px;
    }

    .travel-tip-tag {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .travel-tips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .travel-tip-card-content {
        padding: 16px;
    }

    .travel-tip-card-content h3 {
        font-size: 1rem;
    }

    .travel-tip-card-content p {
        font-size: 0.85rem;
    }

    /* Posts */
    .posts-section {
        padding: 40px 0 60px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Single Post */
    .post-featured-image {
        margin-left: 15px;
        margin-right: 15px;
        border-radius: var(--radius);
    }

    .post-header {
        padding: 0 15px;
    }

    .single-post .breadcrumbs {
        padding: 0 15px;
    }

    .post-content {
        padding: 0 15px;
    }

    .post-content ul,
    .post-content ol {
        padding-left: 1.2rem;
    }

    .post-tags {
        padding: 0 15px;
    }

    /* Legal/Page Content */
    .legal-content,
    .content-box {
        padding: 30px 20px;
    }

    .page-content .container {
        padding: 0 15px;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    /* Footer */
    .footer-disclosure {
        padding: 14px 16px;
    }

    .footer-disclosure p {
        font-size: 12px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 20px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .site-footer nav h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .footer-links li {
        margin-bottom: 6px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-badges {
        justify-content: center;
    }

    .footer-social-icons {
        justify-content: center;
    }

    /* Single Post */
    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE
======================================== */
@media (max-width: 480px) {
    .hero {
        min-height: 400px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-category-pill {
        padding: 8px 14px;
        font-size: 12px;
    }

    .post-card-content {
        padding: 20px;
    }
}

/* ========================================
   LAZY LOADING & PERFORMANCE
======================================== */

/* Lazy loaded images */
img[data-src] {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

img.lazy-loading {
    opacity: 0;
    filter: blur(5px);
}

img.lazy-loaded {
    opacity: 1;
    filter: blur(0);
    animation: lazyFadeIn 0.4s ease-out;
}

img.lazy-error {
    opacity: 0.5;
}

@keyframes lazyFadeIn {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Skeleton loading placeholder */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-image {
    width: 100%;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
    background: var(--gray-200);
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    width: 100%;
}

.skeleton-text.short {
    width: 60%;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Progressive image loading (blur-up) */
.progressive-image {
    position: relative;
    overflow: hidden;
    background: var(--gray-100);
}

.progressive-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px);
    transform: scale(1.1);
    transition: opacity 0.3s ease;
}

.progressive-thumbnail.hidden {
    opacity: 0;
}

.progressive-full {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.progressive-full.loaded {
    opacity: 1;
}

/* Lazy sections animation - disabled for native lazy loading */
/* Sections are visible by default, browser handles lazy loading */

/* Image container with aspect ratio */
.image-container {
    position: relative;
    overflow: hidden;
    background: var(--gray-100);
}

.image-container::before {
    content: '';
    display: block;
    padding-bottom: 66.67%; /* Default 3:2 aspect ratio */
}

.image-container.ratio-16-9::before {
    padding-bottom: 56.25%;
}

.image-container.ratio-4-3::before {
    padding-bottom: 75%;
}

.image-container.ratio-1-1::before {
    padding-bottom: 100%;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Loading spinner for images */
.image-loading {
    position: relative;
}

.image-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.image-loading.loaded::after {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Content visibility optimization */
.content-visibility-auto {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    img[data-src],
    img.lazy-loading,
    img.lazy-loaded,
    [data-lazy-section],
    .progressive-thumbnail,
    .progressive-full {
        transition: none;
        animation: none;
    }

    img.lazy-loaded {
        opacity: 1;
        filter: none;
    }

    [data-lazy-section] {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   TABLE OF CONTENTS - STICKY SIDEBAR
======================================== */

/* Wrapper for content + TOC layout */
.post-content-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
}

/* TOC Sidebar Wrapper - positioned on the left */
.toc-sidebar-wrapper {
    flex-shrink: 0;
    width: 200px;
    order: -1;
}

/* The actual TOC nav */
.toc-sidebar {
    position: sticky;
    top: 130px;
    max-height: calc(100vh - 170px);
    overflow-y: auto;
    padding-right: 10px;
    padding-top: 8px;
}

/* Scrollbar styling for TOC */
.toc-sidebar::-webkit-scrollbar {
    width: 3px;
}

.toc-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.toc-sidebar::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

/* TOC Header */
.toc-sidebar-header {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    text-align: center;
}

/* TOC List */
.toc-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-item {
    margin-bottom: 0;
    border-left: 2px solid var(--gray-200);
    transition: border-color 0.2s ease;
}

.toc-item.active {
    border-left-color: var(--accent);
}

.toc-link {
    display: block;
    padding: 8px 0 8px 12px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.toc-link:hover {
    color: var(--accent);
}

.toc-item.active .toc-link {
    color: var(--accent);
    font-weight: 500;
}

/* Sub-items (h3) */
.toc-item-sub .toc-link {
    padding-left: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.toc-item-sub.active .toc-link {
    color: var(--accent);
}

/* Smooth scroll offset for fixed header */
[id^="section-"] {
    scroll-margin-top: 100px;
}

/* Responsive: TOC becomes inline box on smaller screens */
@media (max-width: 1100px) {
    .post-content-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .toc-sidebar-wrapper {
        width: 100%;
        order: 0;
        margin-bottom: 32px;
        padding: 0 20px;
    }

    .toc-sidebar {
        position: static;
        max-height: none;
        background: var(--cream);
        border-radius: var(--radius-md);
        padding: 20px;
        max-width: 750px;
        margin: 0 auto;
    }

    .toc-sidebar-header {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .toc-sidebar-header::before {
        content: "📑";
    }

    .toc-sidebar-header::after {
        content: "−";
        margin-left: auto;
        font-size: 1.2rem;
        color: var(--gray-500);
        transition: transform 0.2s;
    }

    .toc-sidebar.collapsed .toc-sidebar-header::after {
        content: "+";
    }

    .toc-sidebar .toc-sidebar-list {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--gray-200);
    }

    .toc-sidebar.collapsed .toc-sidebar-list {
        display: none;
    }

    .toc-item {
        border-left: none;
    }

    .toc-link {
        padding: 6px 0;
    }

    .toc-item-sub .toc-link {
        padding-left: 16px;
    }
}

/* ========================================
   INTERNAL LINKS
======================================== */
.internal-link {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.internal-link:hover {
    color: var(--accent-hover);
    text-decoration-style: solid;
}

/* Suggested Links Widget */
.suggested-links {
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin: 32px auto;
    max-width: 750px;
}

.suggested-links h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggested-links h4::before {
    content: "🔗";
}

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

.suggested-links li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}

.suggested-links li:last-child {
    border-bottom: none;
}

.suggested-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.suggested-links a:hover {
    color: var(--accent);
}

.suggested-links .link-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.suggested-links .link-title {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ========================================
   LAZY LOADING ANIMATIONS
======================================== */
img[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading="lazy"]:not([src]) {
    opacity: 0;
}

/* Picture element WebP fallback */
picture {
    display: block;
}

picture img {
    width: 100%;
    height: auto;
}

/* ========================================
   AD BANNER STYLES
======================================== */
.ad-banner-section {
    padding: 30px 0;
    background: var(--off-white);
}

.ad-banner {
    position: relative;
    background: var(--gray-100);
    border-radius: 12px;
    overflow: hidden;
    border: 2px dashed var(--gray-300);
}

.ad-banner-horizontal {
    max-width: 970px;
    margin: 0 auto;
    min-height: 100px;
}

.ad-banner-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
}

.ad-banner-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.ad-banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

.ad-banner-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
}

.ad-banner-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 120px;
    color: var(--gray-500);
    text-align: center;
}

.ad-banner-placeholder span {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.ad-banner-placeholder small {
    font-size: 12px;
    color: var(--gray-400);
}

/* Ad banner animation for closing */
.ad-banner-section.closing {
    animation: adBannerClose 0.3s ease forwards;
}

@keyframes adBannerClose {
    0% {
        opacity: 1;
        max-height: 300px;
        padding: 30px 0;
    }
    100% {
        opacity: 0;
        max-height: 0;
        padding: 0;
        overflow: hidden;
    }
}

/* Responsive ad banner */
@media (max-width: 768px) {
    .ad-banner-section {
        padding: 20px 0;
    }

    .ad-banner-horizontal {
        min-height: 80px;
    }

    .ad-banner-placeholder {
        padding: 25px 15px;
        min-height: 80px;
    }

    .ad-banner-placeholder span {
        font-size: 14px;
    }

    .ad-banner-close {
        width: 28px;
        height: 28px;
        top: 6px;
        right: 6px;
    }
}
