/**
 * Premium V3 CSS Design System (Visual Storytelling)
 * Psychology & Mindfulness Website
 * 
 * Theme: "Washi Paper & Deep Spruce"
 * Concept: Digital Magazine / Art Gallery
 */

/* ============================================================================
   CSS RESET & BASE
   ============================================================================ */

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

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.25rem;
    /* Increased from 1.125rem (~20px for better modern reading) */
    line-height: 1.7;
    /* Slightly tighter than 1.8 for larger text */
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    overflow-x: hidden;
    position: relative;
}

/* NOISE TEXTURE OVERLAY - REMOVED for cleaner look */
body::before {
    display: none;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* ============================================================================
   CSS VARIABLES
   ============================================================================ */

:root {
    /* Premium V4 Palette - "Midnight Forest & Gold" */
    --color-bg-primary: #1C1F1D;
    /* Deep Slate/Forest Dark */
    --color-bg-secondary: #262B28;
    /* Slightly lighter panel */
    --color-bg-tertiary: #2D3330;

    --color-text-primary: #F0F4F2;
    /* Soft Off-white */
    --color-text-secondary: #B5C2BC;
    /* Muted Sage */
    --color-text-tertiary: #84948D;
    --color-text-light: #FFFFFF;
    /* Pure white for emphasis */

    --color-accent-dark: #ECB613;
    /* Warm Gold (from Stitch) */
    --color-accent-medium: #D4A311;
    /* Darker Gold */
    --color-gold: #ECB613;
    /* Golden accent */
    --color-border: rgba(255, 255, 255, 0.08);

    /* Spacing - Condensed for Density */
    --space-xs: 0.5rem;
    /* 8px */
    --space-sm: 1rem;
    /* 16px */
    --space-md: 1.5rem;
    /* 24px */
    --space-lg: 2rem;
    /* 32px */
    --space-xl: 3rem;
    /* 48px */
    --space-2xl: 4.5rem;
    /* 72px (Reduced from 80) */
    --space-3xl: 6rem;
    /* 96px (Reduced from 128) */
    --space-4xl: 8rem;
    /* 128px (Reduced from 160) */
    --space-5xl: 10rem;
    /* 160px */

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    /* Typography */
    --font-heading: 'Newsreader', 'Lora', Georgia, serif;
    --font-body: 'Crimson Text', Georgia, serif;
    --font-ui: 'Inter', -apple-system, sans-serif;

    /* Layout */
    --container-max: 1280px;
    /* Reduced from 1400px for better containment */
    --container-narrow: 900px;
    /* New precise narrow container */
    --reading-max: 740px;
    /* Optimal line length for reading */

    /* Transitions */
    --transition-slow: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================================
   TYPOGRAPHY - "Editorial"
   ============================================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    line-height: 1.1;
    font-weight: 500;
}

h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    /* Massive Impact */
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================================================
   LAYOUT COMPONENTS
   ============================================================================ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* ============================================================================
   HEADER
   ============================================================================ */

.site-header {
    padding: var(--space-md) 0;
    /* Reduced top padding for better balance */
    position: absolute;
    /* Transparent overlay */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    /* Push Logo Left, Menu Right */
    align-items: center;
    /* Vertically Center */
    width: 100%;
}

.header__brand {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    margin-bottom: 0.2rem;
}

.brand-tagline {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
}

/* Nav Link - Minimalist with dot indicator */
.nav-link {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    color: var(--color-text-primary);
    padding: 0.5rem;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--color-accent-medium);
    opacity: 1;
}

.main-nav ul {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-bg-primary);
        z-index: 999;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .main-nav.is-open {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: var(--space-xl);
        text-align: center;
    }

    .main-nav .nav-link {
        font-size: 1.5rem;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        gap: 6px;
        cursor: pointer;
        background: none;
        border: none;
        z-index: 1000;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--color-text-primary);
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.is-open span:nth-child(1) {
        transform: rotate(45deg) translateY(6px);
    }

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

    .mobile-menu-toggle.is-open span:nth-child(3) {
        transform: rotate(-45deg) translateY(-6px);
    }
}

/* ============================================================================
   HERO SECTION - SPLIT LAYOUT
   ============================================================================ */

.hero {
    min-height: 100vh;
    padding-top: var(--space-3xl);
    /* Space for header */
    padding-bottom: var(--space-2xl);
    display: flex;
    align-items: center;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

@media (min-width: 992px) {
    .hero__container {
        grid-template-columns: 0.8fr 1.2fr;
        /* 40% Text - 60% Image */
        gap: var(--space-3xl);
        min-height: 85vh;
        /* Ensure full viewport height */
    }
}

.hero__content {
    order: 2;
    /* Image first on mobile */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertically center text */
}

@media (min-width: 992px) {
    .hero__content {
        order: 1;
    }
}

.hero__subtitle {
    display: block;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-top: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.hero__text {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 500px;
}

.hero__visual {
    order: 1;
    position: relative;
    height: 60vh;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    /* Rounded all corners for better balance */
    overflow: hidden;
}

/* Gallery Container */
.hero__gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* CRITICAL FIX: Anchor to top to avoid cutting head */
    opacity: 0;
    transition: transform 6s ease-out;
    /* Slow zoom during visibility */
    animation: fadeLoop 15s infinite;
    /* 3 images * 5s each */
}

/* 
   Animation Logic for 3 items (Total 15s):
   0-33%: Item 1 visible
   33-66%: Item 2 visible
   66-100%: Item 3 visible
*/

.hero__img:nth-child(1) {
    animation-delay: 0s;
}

.hero__img:nth-child(2) {
    animation-delay: 5s;
}

.hero__img:nth-child(3) {
    animation-delay: 10s;
}

@keyframes fadeLoop {
    0% {
        opacity: 0;
        z-index: 1;
    }

    3% {
        /* Quick fade in */
        opacity: 1;
        z-index: 2;
    }

    33.33% {
        /* Stay visible */
        opacity: 1;
        z-index: 2;
    }

    36.33% {
        /* Fade out as next comes in */
        opacity: 0;
        z-index: 1;
    }

    100% {
        opacity: 0;
        z-index: 1;
    }
}

/* Subtle zoom entrance kept */
.hero:hover .hero__img {
    transform: scale(1.05);
}

@media (min-width: 992px) {
    .hero__visual {
        order: 2;
        height: 85vh;
        margin-right: calc(var(--space-lg) * -1);
        /* Bleed to edge */
    }
}

/* ============================================================================
   INTRO SECTION - PARALLAX
   ============================================================================ */

.intro {
    position: relative;
    padding: var(--space-3xl) 0;
    color: var(--color-text-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.intro__parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    /* REMOVED parallax - causes jitter and conflicts with mindfulness feel */
    background-attachment: scroll;
    animation: fadeInScale 1.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.intro__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 43, 37, 0.7);
    /* Deep Green Tint */
    z-index: 2;
}

.intro__container {
    position: relative;
    z-index: 3;
    text-align: center;
}

.intro__text-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.intro__text {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}


/* ============================================================================
   PILLARS - POSTER GRID
   ============================================================================ */

.pillars {
    padding: var(--space-xl) 0 var(--space-3xl);
}

.pillars__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .pillars__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .pillars__grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns handles 5 pillars better */
        gap: var(--space-md);
    }
}

.pillar-card--poster {
    position: relative;
    aspect-ratio: 3/4;
    /* Classic Poster Ratio */
    display: block;
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.pillar-card__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1s ease;
    /* Slower, gentler */
}

.pillar-card--poster:hover .pillar-card__bg {
    transform: scale(1.03);
    /* Subtler zoom */
}

/* Gradient Overlay - Darker on hover for readability */
.pillar-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.9) 100%);
    transition: background 0.4s ease;
}

.pillar-card--poster:hover .pillar-card__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.95) 100%);
}

.pillar-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-lg);
    z-index: 10;
    color: white;
    transform: translateY(20px);
    /* Start slightly lower */
    transition: transform 0.4s ease;
}

.pillar-card--poster:hover .pillar-card__content {
    transform: translateY(0);
    /* Slide up */
}

.pillar-card__title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: margin-bottom 0.4s ease;
}

/* Reveal Text Animation */
.pillar-card__reveal-text {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
    margin-bottom: 0;
}

.pillar-card--poster:hover .pillar-card__reveal-text {
    max-height: 150px;
    /* Enough to show approx 4-5 lines */
    opacity: 1;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.pillar-card__action {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
    /* Slight delay */
}

.pillar-card--poster:hover .pillar-card__action {
    opacity: 1;
}

.btn-icon {
    display: inline-block;
    transition: transform 0.3s;
}

.pillar-card--poster:hover .btn-icon {
    transform: translateX(4px);
}

/* ============================================================================
   ARTICLES GRID
   ============================================================================ */

.featured-articles {
    padding: var(--space-2xl) 0;
    background: var(--color-bg-secondary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
    /* Reduced from --space-xl for better density */
}

.article-card {
    display: flex;
    flex-direction: column;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

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

.article-card__image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    margin-bottom: var(--space-md);
    filter: grayscale(10%);
    transition: filter var(--transition-base);
    border-radius: var(--radius-sm);
}

.article-card:hover .article-card__image {
    filter: grayscale(0%);
}

/* Placeholder for articles without featured image */
.article-card__placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    margin-bottom: var(--space-md);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 50%, var(--color-bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-tertiary);
    font-family: var(--font-ui);
    font-size: 2.5rem;
    opacity: 0.6;
    transition: opacity var(--transition-base);
}

.article-card:hover .article-card__placeholder {
    opacity: 0.8;
}

.article-card__category {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.article-card__title {
    margin-bottom: var(--space-sm);
}

.article-card__title a {
    font-size: 2rem;
    /* Increased from 1.75rem for better prominence */
    line-height: 1.3;
    /* Improved from 1.2 for better readability */
    color: var(--color-text-primary);
    font-weight: 500;
    /* Slightly bolder for emphasis */
    display: inline;
    /* For underline effect */
    background-image: linear-gradient(to right, var(--color-gold) 0%, var(--color-gold) 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s;
    padding-bottom: 2px;
}

.article-card__title a:hover {
    color: var(--color-accent-dark);
    background-size: 100% 2px;
    /* Animated underline from left to right */
}

.article-card__excerpt {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.article-card__content {
    padding-top: var(--space-xs);
}

.article-card__meta {
    display: flex;
    gap: var(--space-md);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    margin-top: var(--space-md);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
    background: #1E2522;
    /* Darker Spruce */
    color: #A3ACA8;
    /* Soft Grey for secondary text */
    padding: var(--space-2xl) 0;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 992px) {
    .footer__grid {
        grid-template-columns: 1.2fr 0.8fr 1fr;
        /* Brand wider, Nav narrower */
        gap: var(--space-3xl);
    }
}

/* Column 1: Brand */
.footer__logo {
    font-size: 1.75rem;
    color: #F0F2F1;
    /* Off-white */
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.footer__desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    max-width: 350px;
}

.footer__copyright {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    opacity: 0.6;
    margin-top: auto;
}

/* Column 2: Navigation */
.footer__heading {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gold);
    margin-bottom: var(--space-md);
}

.footer__nav-list {
    list-style: none;
    padding: 0;
}

.footer__nav-list li {
    margin-bottom: 0.75rem;
}

.footer__nav-list a {
    color: #E0E4E2;
    transition: color 0.2s;
    font-size: 1rem;
}

.footer__nav-list a:hover {
    color: var(--color-gold);
}

/* Column 3: Newsletter */
.footer__newsletter-desc {
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: white;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-input:focus {
    border-color: var(--color-gold);
}

.newsletter-button {
    background: var(--color-gold);
    color: #1A1A1A;
    border: none;
    border-radius: 0;
    padding: 1rem 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-button:hover {
    background: #D4AF75;
}

/* ============================================================================
   SUBPAGES (Writing, Teaching, etc.)
   ============================================================================ */

/* ============================================================================
   SUBPAGES GLOBAL
   ============================================================================ */

/* Critical: All subpages need padding to clear the absolute header */
body.page-subpage {
    padding-top: 120px;
    /* Reduced from 180px for tighter spacing */
}

/* Individual Page Tweaks (if needed) */
.writing-page {
    padding-bottom: var(--space-3xl);
    background: var(--color-bg-primary);
}

.page-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-header h1 {
    font-size: 3.5rem;
    /* Smaller than Hero H1 */
    margin-bottom: var(--space-md);
    color: var(--color-accent-dark);
}

.page-intro {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-top: var(--space-lg);
}

/* ============================================================================
   FILTERS (PILL DESIGN)
   ============================================================================ */

.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    /* Pill Shape */
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 47, 0.2);
}

.filter-count {
    display: inline-block;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 1rem;
    transition: background 0.3s;
}

.filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ============================================================================
   CONTACT PAGE (Premium Split)
   ============================================================================ */

.contact-page {
    /* Top padding handled by body.page-subpage */
    padding-bottom: var(--space-4xl);
    background: var(--color-bg-primary);
}

/* ============================================================================
   ABOUT PAGE (Premium V3)
   ============================================================================ */

/* Section 1: Hero */
.about-hero {
    padding-bottom: var(--space-4xl);
}

.about-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (min-width: 992px) {
    .about-hero__grid {
        grid-template-columns: 1.1fr 1fr; /* Slimmer text vs visual */
        gap: var(--space-5xl);
        align-items: center;
    }
}

.about-hero__title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin: var(--space-sm) 0 var(--space-lg);
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.about-hero__desc p {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.8;
    max-width: 540px; /* Slimmer for editorial feel */
}

.about-hero__desc p:first-of-type {
    font-size: 1.35rem; /* Slightly more balanced lead */
    color: var(--color-text-primary);
    font-weight: 500;
}

.about-hero__image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    aspect-ratio: 4/5; /* Portrait to match text height */
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section 2: Philosophy (Dark) */
.about-philosophy {
    background: var(--color-text-primary);
    /* Dark spruce */
    padding: var(--space-5xl) 0;
    color: var(--color-bg-primary);
    /* Light text */
    text-align: center;
}

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

.philosophy-quote {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.3;
    margin: var(--space-2xl) 0;
    font-style: italic;
}

.text-light {
    color: var(--color-bg-primary);
}

.text-light-soft {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Fix visibility on light philosophy section */
.about-philosophy .text-light-soft {
    color: rgba(28, 31, 29, 0.7); /* Dark semi-transparent */
}

.text-gold {
    color: var(--color-accent-medium);
}

/* Section 3: Pillars Grid */
.about-pillars {
    padding: var(--space-5xl) 0;
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md); /* Reduced from xl */
    margin-top: var(--space-xl); /* Balanced gap */
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns handles 5 items better */
    }
}

.pillar-card-minimal {
    padding: var(--space-xl);
    background: var(--color-bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    height: 100%;
}

.pillar-card-minimal--placeholder {
    background: linear-gradient(135deg, #1C1F1D 0%, #2A312B 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pillar-card-minimal:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.08);
    border-color: transparent;
    /* Clean look */
}

.pillar-num {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--color-accent-medium);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.pillar-card-minimal h3 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.pillar-card-minimal p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.about-cta {
    margin-top: var(--space-4xl);
}

/* ============================================================================
   TEACHING PAGE (Premium V3)
   ============================================================================ */

.teaching-hero {
    padding: var(--space-4xl) 0;
}

.teaching-hero__visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.08);
}

.teaching-hero__visual img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.7s ease;
}

.teaching-hero__visual:hover img {
    transform: scale(1.02);
}

.section-spacing {
    padding: var(--space-xl) 0; /* Reduced from 3xl (96px) to xl (48px) for tighter rhythm */
}

.teaching-methodology {
    background: var(--color-bg-secondary);
}

.method-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl); /* Reduced from 2xl */
    margin-top: var(--space-xl); /* Balanced gap */
}

@media (min-width: 992px) {
    .method-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.method-card {
    text-align: center;
    padding: var(--space-3xl) var(--space-2xl);
    background: #1F2321; /* Slightly darker midnight spruce */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.method-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-gold);
    box-shadow: 0 20px 40px rgba(236, 182, 19, 0.08);
}

.method-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-lg);
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.method-card h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.method-card p {
    font-family: var(--font-ui);
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    font-weight: 400;
}

/* ============================================================================
   PODCAST PAGE (Premium V3)
   ============================================================================ */

.podcast-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

@media (min-width: 768px) {
    .podcast-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .podcast-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.podcast-card {
    background: var(--color-bg-secondary);
    /* fallback */
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid var(--color-border);
    /* Add border for structure */
}

.podcast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

.podcast-card__cover {
    aspect-ratio: 1/1;
    /* Square album cover */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    font-size: 3rem;
}

.podcast-card__content {
    padding: var(--space-md);
    /* Increased padding */
}

.podcast-card__content h3 {
    font-size: 1.125rem;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.podcast-card__content p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.platform-links {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 180px;
    justify-content: center;
}

.platform-btn.spotify {
    background: #1DB954;
    color: white;
}

.platform-btn.apple {
    background: #872EC4;
    color: white;
}

.platform-btn.rss {
    background: transparent;
    border-color: var(--color-text-primary);
    color: var(--color-text-primary);
}

.platform-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    filter: brightness(1.1);
}

/* ============================================================================
   EMPTY STATE & PAGINATION
   ============================================================================ */

.no-posts {
    text-align: center;
    padding: var(--space-3xl) 0;
    color: var(--color-text-tertiary);
}

.no-posts__icon {
    margin-bottom: var(--space-md);
    color: var(--color-gold);
    opacity: 0.7;
}

.btn-text {
    display: inline-block;
    margin-top: var(--space-md);
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--color-accent-dark);
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 2px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pagination__btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.method-item {
    margin-bottom: var(--space-xl);
}

.method-label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-sm);
}

.method-link {
    font-size: 1.5rem;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

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

.method-desc {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* Right Column: Form */
.premium-form {
    background: var(--color-bg-secondary);
    padding: var(--space-3xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.03);
}

.form-group {
    margin-bottom: var(--space-xl);
    position: relative;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--color-text-primary);
    border-radius: 0;
    transition: border-color 0.3s, background-position 0.3s;
}

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

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

/* Floating Labels */
.form-group.floating .form-label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-family: var(--font-ui);
    color: var(--color-text-tertiary);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-group.floating .form-input:focus~.form-label,
.form-group.floating .form-input:not(:placeholder-shown)~.form-label,
.form-group.floating .form-textarea:focus~.form-label,
.form-group.floating .form-textarea:not(:placeholder-shown)~.form-label {
    top: -12px;
    font-size: 0.75rem;
    color: var(--color-accent-dark);
    font-weight: 600;
}

/* Standardized Button System */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-ui);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--color-gold);
    color: #1C1F1D;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(236, 182, 19, 0.2);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn-outline:hover {
    background: var(--color-gold);
    color: #1C1F1D;
    transform: translateY(-2px);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 3rem;
    background: var(--color-gold); /* Switched to gold for better brand consistency & visibility */
    color: #1C1F1D;
    border: none;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-top: var(--space-lg);
}

.btn-submit:hover {
    background: #FFD24D; /* Brighter gold */
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(236, 182, 19, 0.3);
}

.form-privacy {
    margin-top: var(--space-lg);
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    text-align: center;
}

/* ============================================================================
   SINGLE POST LAYOUT (FIXED)
   ============================================================================ */

.single-post {
    padding-bottom: var(--space-5xl);
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr;
    /* Default mobile stack */
    gap: var(--space-3xl);
}

@media (min-width: 992px) {
    .post-layout {
        grid-template-columns: 1fr 300px;
        /* Main + Sidebar */
        align-items: start;
    }
}

/* Main Content Area */
.post-main {
    width: 100%;
    min-width: 0;
    /* Prevent grid blowout */
}

/* Header Centering */
.post-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 840px;
    /* Optimal header width */
    margin-left: auto;
    margin-right: auto;
}

.post-category {
    display: inline-block;
    color: var(--color-gold);
    font-family: var(--font-ui);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    text-decoration: none;
}

.post-title {
    margin-bottom: var(--space-md);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.25;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-xl);
}

/* Featured Image */
.post-featured-image {
    margin: 0 auto var(--space-3xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

/* Article Content - "Sửa sửa" cho nó nằm giữa */
.article-content {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text-paragraph);
    max-width: 740px;
    /* Khoảng trắng hai bên cho dễ đọc (Premium standard) */
    margin-left: auto;
    margin-right: auto;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content h2,
.article-content h3 {
    margin-top: 2em;
    margin-bottom: 0.75em;
    color: var(--color-text-primary);
}

.article-content img {
    margin: 2em auto;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.05);
}

.article-content blockquote {
    border-left: 4px solid var(--color-gold);
    padding-left: var(--space-lg);
    margin: 2em 0;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--color-text-secondary);
}

/* Elements within content that need full width? 
   Usually we keep everything 740px. 
*/

/* Sidebar */
.post-sidebar {
    display: none;
    /* Hide on mobile defaults */
}

@media (min-width: 992px) {
    .post-sidebar {
        display: block;
        position: sticky;
        top: 100px;
        /* Sticky sidebar */
    }
}

.table-of-contents {
    padding: var(--space-lg);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.table-of-contents h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
    color: var(--color-text-tertiary);
}

/* ============================================================================
   TESTIMONIALS & TOASTS (UX Improvements)
   ============================================================================ */

/* TESTIMONIALS (Moved from inline) */
.testimonials-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.testimonial-card {
    background: var(--color-bg-secondary);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--color-gold);
    /* Default backup */
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card--primary {
    border-left-color: var(--color-accent-medium);
}

.testimonial-card--gold {
    border-left-color: var(--color-gold);
}

.testimonial-quote {
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-author {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* TOAST NOTIFICATIONS */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 24px;
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    border-left: 4px solid var(--color-gold);
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    max-width: 360px;
    animation: slideInToast 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast--success {
    border-left-color: #3A6351;
}

.toast--error {
    border-left-color: #D32F2F;
}

@keyframes slideInToast {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}