/* ═══════════════════════════════════════════════════════════════
   PILLAR — CÀ PHÊ NGUYÊN CHẤT
   Interactive Digital Magazine Style
   Kế thừa CSS variables từ style.css của Windows Coffee
   ════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   LOCAL VARIABLES (extends style.css)
───────────────────────────────────────── */
:root {
    --pillar-bg:        #0f0b08;
    --pillar-bg-alt:    #1a1108;
    --pillar-surface:   rgba(255,255,255,0.04);
    --pillar-border:    rgba(197,160,89,0.18);
    --pillar-gold:      #C5A059;
    --pillar-gold-dim:  rgba(197,160,89,0.12);
    --pillar-text:      #e8ddd0;
    --pillar-text-muted:#9e8c78;
    --pillar-accent:    #B8A07E;
    --pillar-honey:     #d4882a;
    --pillar-line:      1px solid rgba(197,160,89,0.2);

    --sec-pad:          100px 0;
    --container-width:  1000px;
    --wide-width:       1200px;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────
   SCROLL PROGRESS (injected via JS)
───────────────────────────────────────── */
.pillar-body-wrap {
    background: var(--pillar-bg);
    color: var(--pillar-text);
}

/* ─────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────── */
.pillar-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% 80%, rgba(197,160,89,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 20% 20%, rgba(95,69,47,0.3) 0%, transparent 60%),
        linear-gradient(160deg, #0f0b08 0%, #1a1108 50%, #0a0704 100%);
    overflow: hidden;
    padding: 10vh 20px 10vh;
}

/* Noise texture overlay */
.hero-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
    opacity: 0.5;
}

/* Decorative diagonal lines */
.hero-lines {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            -55deg,
            transparent,
            transparent 80px,
            rgba(197,160,89,0.03) 80px,
            rgba(197,160,89,0.03) 81px
        );
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeSlideUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.eyebrow-line {
    display: block;
    width: 48px;
    height: 1px;
    background: var(--pillar-gold);
    opacity: 0.6;
}

.eyebrow-text {
    font-family: "Georgia", serif;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pillar-gold);
    opacity: 0.8;
    white-space: nowrap;
}

.pillar-title {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 60px;
}

.title-small {
    display: block;
    font-family: "Georgia", serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--pillar-accent);
    letter-spacing: 0.06em;
    opacity: 0;
    animation: fadeSlideUp 0.9s var(--ease-out-expo) 0.35s forwards;
}

.title-large {
    display: block;
    font-family: "Georgia", serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--pillar-text);
    /* Gold gradient on text */
    background: linear-gradient(135deg, #e8ddd0 0%, #C5A059 45%, #e8ddd0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeSlideUp 1s var(--ease-out-expo) 0.5s forwards;
}

.hero-subtitle {
    /* text-wrap: balance; */
    font-family: "Georgia", serif;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--pillar-text-muted);
    /* max-width: 560px; */
    max-width: 560px;
    width: 100%;

    margin: 0 auto 56px;
    font-style: italic;
    opacity: 0;
    animation: fadeSlideUp 0.9s var(--ease-out-expo) 0.7s forwards;
}

.hero-scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s ease 1.1s forwards;
}

.hero-scroll-cue span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pillar-text-muted);
}

.scroll-arrow {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--pillar-gold), transparent);
    position: relative;
    overflow: hidden;
}

.arrow-line {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--pillar-gold), transparent);
    animation: scrollArrow 1.8s ease-in-out infinite;
}

@keyframes scrollArrow {
    0%   { top: -100%; }
    100% { top: 200%; }
}

/* Decorative rotating badge */
.hero-badge {
    position: absolute;
    bottom: 60px;
    right: 60px;
    width: 90px;
    height: 90px;
    opacity: 0;
    animation: fadeIn 1s ease 1.3s forwards;
}

.badge-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(197,160,89,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    animation: rotateSlow 20s linear infinite;
}

.badge-circle span {
    font-size: 0.45rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pillar-gold);
    opacity: 0.6;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────
   TABLE OF CONTENTS — Sticky Navigator
───────────────────────────────────────── */
.mag-toc {
    position: sticky;
    top: var(--header-shrink-height, 0px);
    z-index: 100;
    background: rgba(15, 11, 8, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: var(--pillar-line);
    border-top: var(--pillar-line);
}

.toc-inner {
    max-width: var(--wide-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;

    /* display: flex;
    align-items: center;
    overflow-x: auto;
    scroll-behavior: smooth; */
}

.toc-inner::-webkit-scrollbar { display: none; }

.toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 14px 0;
    border-right: var(--pillar-line);
    padding-right: 24px;

    /* Thêm các dòng dưới đây */
    /* position: sticky;
    left: 0;
    background: rgba(15, 11, 8, 1);
    z-index: 10; */
}

.toc-icon { font-size: 0.9rem; }

.toc-header span:last-child {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pillar-text-muted);
}

.toc-list {
    display: flex;
    list-style: none;
    gap: 0;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--pillar-text-muted);
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.toc-link:hover {
    color: var(--pillar-gold);
    border-bottom-color: rgba(197,160,89,0.4);
}

.toc-link.active {
    color: var(--pillar-gold);
    border-bottom-color: var(--pillar-gold);
}

.toc-num {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--pillar-gold);
    opacity: 0.6;
    font-family: "Georgia", serif;
}

.toc-text {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.toc-progress {
    flex-shrink: 0;
    margin-left: auto;
    width: 80px;
    height: 2px;
    background: rgba(197,160,89,0.1);
    border-radius: 1px;
}

.progress-bar {
    height: 100%;
    background: var(--pillar-gold);
    border-radius: 1px;
    width: 0%;
    transition: width 0.1s linear;
}

/* ─────────────────────────────────────────
   COMMON SECTION STYLES
───────────────────────────────────────── */
.pillar-section {
    background: var(--pillar-bg);
    padding: var(--sec-pad);
}

.pillar-section.alt-bg {
    background:
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(197,160,89,0.04) 0%, transparent 70%),
        var(--pillar-bg-alt);
}

.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 52px;
}

.label-num {
    font-family: "Georgia", serif;
    font-size: 0.8rem;
    color: var(--pillar-gold);
    letter-spacing: 0.15em;
    opacity: 0.7;
}

.label-bar {
    display: block;
    width: 32px;
    height: 1px;
    background: var(--pillar-gold);
    opacity: 0.4;
}

.label-text {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pillar-text-muted);
}

.section-heading {
    font-family: "Georgia", serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--pillar-text);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.section-heading em {
    color: var(--pillar-gold);
    font-style: italic;
}

.section-heading.centered {
    text-align: center;
}

.section-subheading {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--pillar-text-muted);
    margin-bottom: 56px;
    text-align: center;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ─────────────────────────────────────────
   SECTION 01 — Định nghĩa
───────────────────────────────────────── */
.editorial-intro {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 52px;
    margin-bottom: 60px;
    align-items: start;
}

.pull-quote-left {
    border-left: 2px solid var(--pillar-gold);
    padding-left: 20px;
    position: sticky;
    top: 120px;
}

.pull-quote-left blockquote {
    font-family: "Georgia", serif;
    font-size: 0.9rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--pillar-gold);
    margin-bottom: 16px;
}

.pull-quote-left cite {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pillar-text-muted);
    font-style: normal;
}

.intro-body p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--pillar-text);
    margin-bottom: 20px;
}

.intro-body em {
    color: var(--pillar-accent);
}

/* Definition Card */
.definition-card {
    background: var(--pillar-surface);
    border: 1px solid var(--pillar-border);
    border-left: 3px solid var(--pillar-gold);
    border-radius: 2px;
    padding: 36px 40px;
    margin-bottom: 56px;
    position: relative;
}

.def-icon {
    font-size: 1.2rem;
    margin-bottom: 16px;
    display: block;
}

.definition-card h3 {
    font-family: "Georgia", serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pillar-gold);
    margin-bottom: 16px;
}

.definition-card p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--pillar-text);
    margin-bottom: 20px;
    text-align: justify;
}

.def-rule {
    font-family: "Georgia", serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--pillar-gold);
    padding: 16px 20px;
    background: var(--pillar-gold-dim);
    border-radius: 2px;
    text-align: center;
    letter-spacing: 0.02em;
}

/* Comparison Block */
.comparison-block {
    background: rgba(0,0,0,0.3);
    border: var(--pillar-line);
    border-radius: 4px;
    padding: 44px;
}

.comparison-title {
    font-family: "Georgia", serif;
    font-size: 1rem;
    color: var(--pillar-text);
    text-align: center;
    margin-bottom: 36px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: center;
    margin-bottom: 28px;
}

.comparison-card {
    padding: 28px 15px;
    border: 1px solid transparent;
    border-radius: 3px;
    transition: border-color 0.3s ease;
}

.comparison-card:hover {
    border-color: var(--pillar-border);
}

.comparison-card.authentic {
    background: rgba(87, 110, 101, 0.12);
    border-color: rgba(87,110,101,0.25);
}

.comparison-card.taste {
    background: rgba(167, 138, 98, 0.08);
    border-color: rgba(167,138,98,0.2);
}

.comp-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.comp-icon { font-size: 1.1rem; }

.comp-label {
    font-size: 1rem;
    letter-spacing: 0.18em;
    font-weight: 700;
    color: var(--pillar-gold);
}

.comparison-card p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--pillar-text-muted);
}

/* .comparison-divider {
    width: 56px;
    text-align: center;
    font-size: 1.5rem;
    color: var(--pillar-text-muted);
    opacity: 0.4;
    flex-shrink: 0;
} */

.comparison-divider {
    display: inline-block;
    padding: 2px 6px;
    /* background-color: var(--pillar-gold); */
    color: var(--pillar-gold);
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 4px;
    vertical-align: middle;
    line-height: 1;
    margin: 0 10px;
}

.comparison-note {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--pillar-text-muted);
    font-style: italic;
    text-align: center;
    border-top: var(--pillar-line);
    padding-top: 24px;
}

/* ─────────────────────────────────────────
   SECTION 02 — Phân loại hạt
───────────────────────────────────────── */
.bean-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.bean-card {
    background: var(--pillar-surface);
    border: 1px solid var(--pillar-border);
    border-radius: 4px;
    padding: 32px 24px;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.bean-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--pillar-gold-dim), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bean-card:hover {
    border-color: rgba(197,160,89,0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.bean-card:hover::before {
    opacity: 1;
}

/* Robusta accent */
.bean-card.robusta { border-top: 2px solid #a78a62; }
.bean-card.arabica  { border-top: 2px solid #8ca2a0; }
.bean-card.liberica { border-top: 2px solid #7A7A7A; }

.bean-visual {
    height: 60px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.bean-shape {
    border-radius: 50% 30% 50% 30% / 30% 50% 30% 50%;
    position: relative;
}

.robusta-shape {
    width: 44px;
    height: 28px;
    background: linear-gradient(135deg, #a78a62, #5f452f);
    box-shadow: 0 4px 12px rgba(95,69,47,0.5);
}

.arabica-shape {
    width: 38px;
    height: 24px;
    background: linear-gradient(135deg, #8ca2a0, #576E65);
    box-shadow: 0 4px 12px rgba(87,110,101,0.4);
}

.liberica-shape {
    width: 52px;
    height: 22px;
    background: linear-gradient(135deg, #9e8c78, #4D4D4D);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.bean-number {
    font-family: "Georgia", serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--pillar-gold);
    opacity: 0.5;
    margin-bottom: 6px;
}

.bean-name {
    font-family: "Georgia", serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pillar-text);
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.bean-viet {
    font-size: 0.8rem;
    color: var(--pillar-text-muted);
    font-style: italic;
    margin-bottom: 20px;
}

.bean-stat-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.bean-stat {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    row-gap: 4px;
}

.stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pillar-text-muted);
    grid-column: 1;
}

.stat-val {
    font-size: 0.7rem;
    color: var(--pillar-gold);
    text-align: right;
    font-family: "Georgia", serif;
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
}

.stat-bar {
    grid-column: 1;
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pillar-gold), var(--pillar-accent));
    border-radius: 2px;
    transition: width 1.2s var(--ease-out-expo);
}

.bean-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border: 1px solid var(--pillar-border);
    border-radius: 20px;
    color: var(--pillar-text-muted);
}

/* Insight panel — revealed on hover */
.bean-insight {
    display: none;
    padding-top: 20px;
    border-top: var(--pillar-line);
    margin-top: 4px;
    animation: fadeSlideUp 0.4s ease forwards;
}

.bean-card:hover .bean-insight {
    display: block;
}

.insight-icon {
    font-size: 0.rem;
    margin-bottom: 8px;
}

.bean-insight p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--pillar-text-muted);
}

.bean-cta-note {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--pillar-text-muted);
    background: linear-gradient(135deg, rgba(212,136,42,0.08), rgba(197,160,89,0.05));
    border: 1px solid rgba(212,136,42,0.2);
    border-radius: 4px;
    padding: 20px 24px;
    text-align: center;
}

/* ─────────────────────────────────────────
   SECTION 03 — Nhận biết
───────────────────────────────────────── */
.detection-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 60px;
    border: var(--pillar-line);
    border-radius: 4px;
    overflow: hidden;
}

.detection-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 0;
    border-bottom: var(--pillar-line);
    transition: background 0.3s ease;
}

.detection-item:last-child {
    border-bottom: none;
}

.detection-item:hover {
    background: rgba(197,160,89,0.04);
}

.detect-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Georgia", serif;
    font-size: 1.2rem;
    color: rgba(197,160,89,0.2);
    font-weight: 700;
    border-right: var(--pillar-line);
    padding: 32px 0;
}

.detect-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: var(--pillar-line);
    padding: 32px 0;
}

.detect-icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.detection-item:hover .detect-icon {
    transform: scale(1.2);
}

.detect-content {
    padding: 32px 32px;
}

.detect-content h3 {
    font-family: "Georgia", serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pillar-text);
    margin-bottom: 20px;
}

.detect-context {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pillar-gold);
    opacity: 0.6;
    margin-bottom: 16px;
}

.detect-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detect-list li {
    /* display: flex; */
    gap: 10px;
    align-items: baseline;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--pillar-text-muted);
}

.check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.check.real {
    background: rgba(87, 110, 101, 0.25);
    color: #7fb5a8;
}

.check.fake {
    background: rgba(180, 60, 60, 0.15);
    color: #c47a7a;
}

.detect-list li strong {
    color: var(--pillar-text);
}

.detect-list li em {
    color: var(--pillar-accent);
    font-style: italic;
}

/* BMT Quote */
.bmt-quote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 40px 0 0;
}

.bmt-line {
    width: 40px;
    height: 1px;
    background: var(--pillar-gold);
    opacity: 0.3;
}

.bmt-quote p {
    font-family: "Georgia", serif;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--pillar-accent);
    max-width: 520px;
}

.bmt-quote p em {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(197,160,89,0.4);
}

.bmt-quote cite {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pillar-text-muted);
    font-style: normal;
}

/* ─────────────────────────────────────────
   SECTION 04 — Công dụng
───────────────────────────────────────── */
.benefits-magazine {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 48px;
    border-top: var(--pillar-line);
}

.benefit-feature {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    padding: 40px 0;
    border-bottom: var(--pillar-line);
    align-items: start;
    transition: all 0.3s ease;
}

.benefit-feature:hover {
    padding-left: 8px;
}

.benefit-num {
    font-family: "Georgia", serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pillar-gold);
    opacity: 0.2;
    line-height: 1;
    padding-top: 4px;
    text-align: center;
}

.benefit-content h3 {
    font-family: "Georgia", serif;
    font-size: 1rem;
    color: var(--pillar-text);
    margin-bottom: 12px;
    font-weight: 700;
}

.benefit-content p {
    font-size: 0.9rem;
    line-height: 1.85;
    color: var(--pillar-text-muted);
}

.health-warning {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(197,160,89,0.06);
    border: 1px solid rgba(197,160,89,0.2);
    border-radius: 4px;
    padding: 24px 28px;
}

.warning-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }

.warning-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--pillar-text-muted);
}

.warning-content strong {
    color: var(--pillar-text);
}

/* ─────────────────────────────────────────
   SECTION 05 — Pha chế
───────────────────────────────────────── */
.brewing-tabs {
    margin-top: 8px;
}

.tab-buttons {
    display: flex;
    border-bottom: var(--pillar-line);
    margin-bottom: 0;
    gap: 0;
}

.tab-btn {
    padding: 16px 28px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: "Georgia", serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--pillar-text-muted);
    transition: all 0.3s ease;
    margin-bottom: -1px;
}

.tab-btn:hover {
    color: var(--pillar-text);
}

.tab-btn.active {
    color: var(--pillar-gold);
    border-bottom-color: var(--pillar-gold);
}

.tab-panels {
    background: var(--pillar-surface);
    border: var(--pillar-line);
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.tab-panel {
    display: none;
    padding: 0;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

.brew-panel-inner {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
}

.brew-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    position: relative;
    border-right: var(--pillar-line);
    overflow: hidden;
}

.brew-icon-large {
    font-size: 3rem;
    position: relative;
    z-index: 2;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.brew-glow {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(30px);
}

.immersion-visual   .brew-glow { background: #5f452f; }
.percolation-visual .brew-glow { background: #576E65; }
.pressure-visual    .brew-glow { background: #C5A059; }
.hybrid-visual      .brew-glow { background: #d4882a; }

.brew-info {
    padding: 40px 44px;
}

.brew-badge {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pillar-gold);
    border: 1px solid rgba(197,160,89,0.3);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.brew-info h3 {
    font-family: "Georgia", serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pillar-text);
    margin-bottom: 16px;
}

.brew-desc {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--pillar-text-muted);
    margin-bottom: 24px;
}

.brew-reps {
    margin-bottom: 24px;
}

.brew-reps strong {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pillar-text-muted);
    margin-bottom: 10px;
}

.rep-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rep-tags span {
    font-size: 0.8rem;
    padding: 5px 12px;
    background: rgba(197,160,89,0.08);
    border: 1px solid rgba(197,160,89,0.2);
    border-radius: 2px;
    color: var(--pillar-accent);
}

.brew-flavor {
    border-top: var(--pillar-line);
    padding-top: 20px;
}

.flavor-label {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pillar-gold);
    opacity: 0.6;
    margin-bottom: 10px;
}

.brew-flavor p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--pillar-text-muted);
}

.brew-flavor strong {
    color: var(--pillar-text);
}

/* ─────────────────────────────────────────
   SECTION 06 — Sơ chế
───────────────────────────────────────── */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 0;
}

.process-step {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 0;
}

.process-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 36px;
}

.process-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(197,160,89,0.4);
    border: 2px solid var(--pillar-gold);
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.process-step:hover .process-dot {
    background: var(--pillar-gold);
}

.honey-dot {
    background: var(--pillar-honey) !important;
    border-color: var(--pillar-honey) !important;
    box-shadow: 0 0 16px rgba(212,136,42,0.5);
}

.process-line {
    width: 1px;
    flex: 1;
    min-height: 32px;
    background: linear-gradient(to bottom, var(--pillar-gold), transparent);
    opacity: 0.2;
    margin-top: 6px;
}

.process-card {
    background: var(--pillar-surface);
    border: 1px solid var(--pillar-border);
    border-radius: 4px;
    padding: 36px 40px;
    margin-bottom: 24px;
    margin-left: 24px;
    transition: all 0.3s ease;
}

.process-card:hover {
    border-color: rgba(197,160,89,0.35);
    transform: translateX(4px);
}

.featured-process {
    border-color: rgba(212,136,42,0.35);
    background: linear-gradient(135deg, rgba(212,136,42,0.06), rgba(197,160,89,0.03));
}

.featured-badge {
    display: inline-block;
    font-size: 0.55rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pillar-honey);
    border: 1px solid rgba(212,136,42,0.35);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.process-header {
    display: grid;
    grid-template-columns: 40px 1fr 44px;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.process-num {
    font-family: "Georgia", serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(197,160,89,0.25);
    line-height: 1;
}

.process-title-wrap h3 {
    font-family: "Georgia", serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--pillar-text);
    margin-bottom: 2px;
}

.process-en {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--pillar-text-muted);
    font-style: italic;
}

.process-icon-wrap {
    font-size: 1.5rem;
    text-align: center;
}

.process-steps-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: var(--pillar-line);
}

.mini-step {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    border: var(--pillar-line);
    border-radius: 3px;
    padding: 8px 14px;
}

.mini-num {
    font-family: "Georgia", serif;
    font-size: 0.8rem;
    color: var(--pillar-gold);
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(197,160,89,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mini-step span:last-child {
    font-size: 0.8rem;
    color: var(--pillar-text-muted);
}

.mini-arrow {
    color: var(--pillar-text-muted);
    opacity: 0.6;
    font-size: 0.9rem;
}

.process-insight {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--pillar-text-muted);
}

.process-insight strong {
    display: block;
    color: var(--pillar-text);
    margin-bottom: 8px;
    font-size: 1rem;
    letter-spacing: 0.03em;
}

.honey-insight {
    background: rgba(212,136,42,0.05);
    border: 1px solid rgba(212,136,42,0.15);
    border-radius: 3px;
    padding: 16px 20px;
}

.honey-note {
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--pillar-text-muted);
    font-style: italic;
    opacity: 0.7;
}

.process-flavor-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: var(--pillar-line);
}

.flavor-tag {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    padding: 5px 14px;
    border: 1px solid var(--pillar-border);
    border-radius: 20px;
    color: var(--pillar-text-muted);
    background: rgba(255,255,255,0.02);
}

.flavor-tag.gold {
    border-color: rgba(212,136,42,0.35);
    color: var(--pillar-honey);
    background: rgba(212,136,42,0.06);
}

/* ─────────────────────────────────────────
   CTA SECTION
───────────────────────────────────────── */
.pillar-cta {
    background: linear-gradient(135deg, #0f0b08 0%, #1c1308 40%, #0a0704 100%);
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
    border-top: var(--pillar-line);
}

.cta-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pillar-gold);
    opacity: 0.6;
    margin-bottom: 24px;
}

.cta-inner h2 {
    font-family: "Georgia", serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--pillar-text);
    margin-bottom: 20px;
    background: linear-gradient(135deg, #e8ddd0, #C5A059, #e8ddd0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-desc {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--pillar-text-muted);
    margin-bottom: 44px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-desc strong {
    color: var(--pillar-gold);
}

.cta-button {
    display: inline-block;
    padding: 16px 44px;
    background: var(--pillar-gold);
    color: #0f0b08;
    text-decoration: none;
    font-family: "Georgia", serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    border-radius: 2px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.cta-button:hover {
    background: var(--pillar-text);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(197,160,89,0.25);
}

.cta-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.cta-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(197,160,89,0.07);
}

.cta-circle.c1 { width: 400px; height: 400px; top: -200px; right: -100px; }
.cta-circle.c2 { width: 280px; height: 280px; bottom: -140px; left: -40px; }
.cta-circle.c3 { width: 180px; height: 180px; top: 20%; left: 20%; }

/* ─────────────────────────────────────────
   KEYFRAME ANIMATIONS
───────────────────────────────────────── */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Scroll-reveal utility */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─────────────────────────────────────────
   RESPONSIVE — TABLET (max 900px)
───────────────────────────────────────── */
@media (max-width: 900px) {
    :root {
        --sec-pad: 72px 0;
    }

    .editorial-intro {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .pull-quote-left {
        position: static;
        display: flex;
        gap: 16px;
        border-left: none;
        border-bottom: var(--pillar-line);
        padding: 0 0 24px 0;
    }

    .pull-quote-left blockquote {
        font-size: 0.8rem;
    }

    .bean-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bean-insight { display: block !important; }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .comparison-divider { text-align: center; padding: 8px 0; }

    .brew-panel-inner {
        grid-template-columns: 1fr;
    }

    .brew-visual {
        padding: 32px;
        border-right: none;
        border-bottom: var(--pillar-line);
    }

    .brew-info { padding: 28px 24px; }

    .hero-badge { display: none; }
}

/* ─────────────────────────────────────────
   RESPONSIVE — MOBILE (max 640px)
───────────────────────────────────────── */
@media (max-width: 640px) {
    :root {
        --sec-pad: 56px 0;
        --container-width: 100%;
    }

    .hero-eyebrow { flex-direction: column; gap: 8px; }
    .eyebrow-line { display: none; }
    .eyebrow-text { font-size: 0.58rem; }

    .title-large { font-size: 2.8rem; }
    .title-small {
        font-size: 0.9rem;
    }

    .hero-subtitle {
        max-width: 90% !important;
    }

    /* .mag-toc { display: none; } */
    .mag-toc {
        top: var(--header-shrink-height-mobile, 0px);
    }
    

    .section-label { margin-bottom: 32px; }

    .section-heading { font-size: 1.4rem; }

    .definition-card { padding: 24px 15px; }

    .comparison-block { padding: 24px 15px; }

    .detection-item {
        grid-template-columns: 44px 1fr;
    }

    .detect-content { padding: 20px 15px; }

    .detect-step-num { font-size: 0.9rem; }

    .detect-icon { font-size: 1.1rem; }

    .process-step {
        grid-template-columns: 32px 1fr;
    }

    .process-card {
        padding: 24px 20px;
        margin-left: 12px;
    }

    .process-header {
        grid-template-columns: 28px 1fr 36px;
        gap: 10px;
    }

    .process-steps-mini {
        flex-direction: column;
        gap: 8px;
    }

    .mini-arrow { transform: rotate(90deg); }

    .tab-buttons {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .tab-buttons::-webkit-scrollbar { display: none; }

    .tab-btn { padding: 14px 16px; font-size: 0.68rem; white-space: nowrap; }

    .brew-info { padding: 24px 15px; }

    .benefit-feature {
        grid-template-columns: 48px 1fr;
        gap: 20px;
    }

    .benefit-num { font-size: 1.8rem; }

    .cta-button { padding: 14px 32px; font-size: 0.68rem; }
}


/* ─────────────────────────────────────────
   JAVASCRIPT SUPPORT (inline script nhỏ)
   Dán script này vào cuối {% block content %}
───────────────────────────────────────── */

/*
<script>
(function () {
    // 1. Progress bar + TOC active highlight
    const sections = document.querySelectorAll('.pillar-section[id], section[id]');
    const tocLinks = document.querySelectorAll('.toc-link');
    const progressBar = document.getElementById('toc-progress-bar');

    function onScroll() {
        const scrolled = window.scrollY;
        const total = document.documentElement.scrollHeight - window.innerHeight;
        if (progressBar) progressBar.style.width = ((scrolled / total) * 100).toFixed(1) + '%';

        let current = '';
        sections.forEach(sec => {
            if (scrolled >= sec.offsetTop - 160) current = sec.id;
        });
        tocLinks.forEach(link => {
            link.classList.toggle('active', link.getAttribute('href') === '#' + current);
        });
    }

    window.addEventListener('scroll', onScroll, { passive: true });

    // 2. Smooth scroll
    document.querySelectorAll('a[href^="#"]').forEach(a => {
        a.addEventListener('click', e => {
            e.preventDefault();
            const target = document.querySelector(a.getAttribute('href'));
            if (target) target.scrollIntoView({ behavior: 'smooth', block: 'start' });
        });
    });

    // 3. Tab switching
    document.querySelectorAll('.tab-btn').forEach(btn => {
        btn.addEventListener('click', () => {
            document.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active'));
            document.querySelectorAll('.tab-panel').forEach(p => p.classList.remove('active'));
            btn.classList.add('active');
            document.getElementById('tab-' + btn.dataset.tab).classList.add('active');
        });
    });

    // 4. Scroll reveal
    const revealEls = document.querySelectorAll('.reveal');
    const observer = new IntersectionObserver(entries => {
        entries.forEach(e => { if (e.isIntersecting) { e.target.classList.add('revealed'); observer.unobserve(e.target); } });
    }, { threshold: 0.12 });
    revealEls.forEach(el => observer.observe(el));
})();
</script>
*/