/*
 * TRIVYNA Child Theme — Premium Homepage CSS 2026
 * File: assets/trivyna-home.css
 * Tất cả class được prefix "tv-" để tránh xung đột với Magazine theme
 */

/* ── VARIABLES ── */
:root {
    --tv-green:      #2E7D32;
    --tv-green-mid:  #3d9142;
    --tv-green-lt:   #7CB342;
    --tv-green-pale: #e8f5e9;
    --tv-cream:      #F6E8D2;
    --tv-coral:      #F4A77D;
    --tv-coral-dk:   #e8895c;
    --tv-brown:      #4A3A2A;
    --tv-brown-md:   #6b5540;
    --tv-brown-lt:   #9c7d60;
    --tv-white:      #FFFFFF;
    --tv-off:        #FDFAF6;
    --tv-border:     #e0d3c0;
    --tv-fh:         'Playfair Display', Georgia, serif;
    --tv-fb:         'Montserrat', sans-serif;
    --tv-sh-sm:      0 2px 12px rgba(74,58,42,.07);
    --tv-sh-md:      0 8px 32px rgba(74,58,42,.10);
    --tv-sh-lg:      0 20px 60px rgba(74,58,42,.13);
    --tv-sh-g:       0 8px 32px rgba(46,125,50,.22);
    --tv-r-sm: 10px; --tv-r-md: 18px; --tv-r-lg: 28px; --tv-r-f: 9999px;
    --tv-tr: all .35s cubic-bezier(.4,0,.2,1);
}

/* ── RESET SCOPE ── */
.trivyna-homepage .tv-top-bar,
.trivyna-homepage .tv-hero,
.trivyna-homepage .tv-cat-section,
.trivyna-homepage .tv-featured-sec,
.trivyna-homepage .tv-ai-section,
.trivyna-homepage .tv-recipes-sec,
.trivyna-homepage .tv-nl-sec,
.tv-fcta { font-family: var(--tv-fb); box-sizing: border-box; }

.tv-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── TOP BAR ── */
.tv-top-bar {
    background: linear-gradient(90deg, var(--tv-green) 0%, #3d9142 50%, var(--tv-green) 100%);
    background-size: 200%; animation: tv-shimmer 5s linear infinite;
    color: #fff; text-align: center; padding: 10px 20px;
    font-size: .82rem; font-weight: 600; letter-spacing: .04em; font-family: var(--tv-fb);
}
@keyframes tv-shimmer { to { background-position: 200% 0; } }
.tv-top-bar a { color: #ffd599; text-decoration: underline; margin-left: 8px; }

/* ── HERO ── */
.tv-hero {
    background: linear-gradient(150deg, #edf7ed 0%, var(--tv-cream) 55%, #fef3e8 100%);
    padding: 90px 0 110px; position: relative; overflow: hidden;
}
.tv-hero::before, .tv-hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.tv-hero::before { top: -150px; right: -150px; width: 550px; height: 550px; background: radial-gradient(circle, rgba(124,179,66,.13) 0%, transparent 70%); }
.tv-hero::after  { bottom: -100px; left: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(244,167,125,.10) 0%, transparent 70%); }
.tv-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tv-hero-text { position: relative; z-index: 1; }

.tv-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--tv-green-pale); border: 1px solid rgba(46,125,50,.2);
    color: var(--tv-green); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: 6px 14px; border-radius: var(--tv-r-f); margin-bottom: 22px;
}
.tv-dot-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--tv-green-lt); animation: tv-pulse 2s infinite; }
@keyframes tv-pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.5);opacity:.6} }

.tv-hero-title {
    font-family: var(--tv-fh); font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700; line-height: 1.15; color: var(--tv-brown); margin: 0 0 22px;
}
.tv-hero-title em { font-style: italic; color: var(--tv-green); }
.tv-hl { position: relative; color: var(--tv-green); }
.tv-hl::after { content: ''; position: absolute; bottom: 3px; left: 0; right: 0; height: 10px; background: rgba(124,179,66,.22); border-radius: 4px; z-index: -1; }
.tv-hero-desc { font-size: .98rem; color: var(--tv-brown-md); max-width: 460px; margin: 0 0 34px; line-height: 1.78; }
.tv-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 44px; }

.tv-btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 30px; background: linear-gradient(135deg, var(--tv-green), var(--tv-green-lt));
    color: #fff; border-radius: var(--tv-r-f); font-size: .92rem; font-weight: 700;
    box-shadow: var(--tv-sh-g); transition: var(--tv-tr); border: none; cursor: pointer;
    text-decoration: none; font-family: var(--tv-fb);
}
.tv-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(46,125,50,.32); color: #fff; text-decoration: none; }

.tv-btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 26px; background: transparent; color: var(--tv-brown);
    border: 2px solid var(--tv-border); border-radius: var(--tv-r-f);
    font-size: .9rem; font-weight: 600; transition: var(--tv-tr);
    cursor: pointer; text-decoration: none; font-family: var(--tv-fb);
}
.tv-btn-secondary:hover { border-color: var(--tv-green-mid); color: var(--tv-green); background: var(--tv-green-pale); text-decoration: none; }

.tv-hero-stats { display: flex; gap: 36px; }
.tv-stat-num { font-family: var(--tv-fh); font-size: 1.9rem; font-weight: 700; color: var(--tv-green); line-height: 1; }
.tv-stat-lbl { font-size: .74rem; color: var(--tv-brown-lt); font-weight: 500; margin-top: 4px; }

.tv-hero-visual { position: relative; z-index: 1; }
.tv-hero-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--tv-r-lg); box-shadow: var(--tv-sh-lg); display: block; }
.tv-float-card {
    position: absolute; background: #fff; border-radius: var(--tv-r-md);
    box-shadow: var(--tv-sh-md); padding: 14px 20px;
    display: flex; align-items: center; gap: 13px;
}
.tv-fc1 { bottom: 28px; left: -32px; animation: tv-float 4s ease-in-out infinite; }
.tv-fc2 { top: 28px; right: -32px; animation: tv-float 4s ease-in-out infinite 1.8s; }
@keyframes tv-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.tv-fi { width: 44px; height: 44px; border-radius: var(--tv-r-sm); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.tv-fi-g { background: var(--tv-green-pale); }
.tv-fi-o { background: #fff2e6; }
.tv-fc-title { font-size: .82rem; font-weight: 700; color: var(--tv-brown); }
.tv-fc-sub { font-size: .71rem; color: var(--tv-brown-lt); margin-top: 2px; }

/* ── SECTIONS COMMON ── */
.tv-sec-ey { text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tv-green); margin-bottom: 8px; font-family: var(--tv-fb); }
.tv-sec-title { font-family: var(--tv-fh); font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 700; text-align: center; color: var(--tv-brown); margin: 0 0 40px; }
.tv-sec-title.tv-left { text-align: left; margin-bottom: 0; }
.tv-sec-title span { color: var(--tv-green); }
.tv-sec-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }

/* ── CATEGORIES ── */
.tv-cat-section { background: #fff; padding: 56px 0; border-bottom: 1px solid var(--tv-border); }
.tv-cat-grid-custom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}
.tv-cat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    width: 100%;
}
.tv-cat-chip-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 9999px;
    background: #FDFAF6;
    border: 1.5px solid #E6DDD0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #4A3A2A;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(74, 58, 42, 0.03);
}
.tv-cat-chip-custom:hover {
    transform: translateY(-2px);
    border-color: #2E7D32;
    color: #2E7D32;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.12);
}
.tv-cat-chip-custom.active {
    background: #2E7D32;
    border-color: #2E7D32;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
}
.tv-cat-emoji {
    font-size: 1.05rem;
}
@media (max-width: 768px) {
    .tv-cat-row {
        gap: 10px;
    }
    .tv-cat-chip-custom {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
}

/* ── FEATURED ── */
.tv-featured-sec { padding: 80px 0; background: var(--tv-off); }
.tv-feat-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.tv-feat-card {
    background: #fff; border-radius: var(--tv-r-lg); overflow: hidden;
    box-shadow: var(--tv-sh-md); transition: var(--tv-tr); display: flex; flex-direction: column;
}
.tv-feat-card:hover { transform: translateY(-6px); box-shadow: var(--tv-sh-lg); }
.tv-feat-img-wrap { position: relative; overflow: hidden; }
.tv-feat-img-wrap img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .5s ease; display: block; }
.tv-feat-card:hover .tv-feat-img-wrap img { transform: scale(1.04); }
.tv-feat-img-pl { width: 100%; aspect-ratio: 16/9; background: var(--tv-green-pale); display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.tv-badge-hot { position: absolute; top: 16px; left: 16px; background: var(--tv-coral); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--tv-r-f); }
.tv-feat-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.tv-art-cat { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tv-green); margin-bottom: 10px; }
.tv-art-cat a { color: var(--tv-green); text-decoration: none; }
.tv-feat-title { font-family: var(--tv-fh); font-size: 1.45rem; font-weight: 700; line-height: 1.3; color: var(--tv-brown); margin: 0 0 13px; }
.tv-feat-title a { color: inherit; text-decoration: none; }
.tv-feat-card:hover .tv-feat-title a { color: var(--tv-green); }
.tv-feat-excerpt { font-size: .88rem; color: var(--tv-brown-lt); line-height: 1.72; flex: 1; margin: 0 0 20px; }
.tv-art-meta { display: flex; align-items: center; gap: 14px; font-size: .75rem; color: var(--tv-brown-lt); margin-bottom: 18px; font-family: var(--tv-fb); }
.tv-mdot { width: 3px; height: 3px; border-radius: 50%; background: var(--tv-border); }
.tv-btn-read { display: inline-flex; align-items: center; gap: 8px; font-size: .83rem; font-weight: 700; color: var(--tv-green); text-decoration: none; font-family: var(--tv-fb); }
.tv-btn-read svg { transition: transform .2s ease; }
.tv-btn-read:hover svg { transform: translateX(5px); }

.tv-side-list { display: flex; flex-direction: column; gap: 16px; }
.tv-side-card {
    display: flex; gap: 14px; padding: 14px;
    background: #fff; border-radius: var(--tv-r-md);
    box-shadow: var(--tv-sh-sm); transition: var(--tv-tr); text-decoration: none; color: inherit;
    align-items: center;
}
.tv-side-card:hover { transform: translateX(6px); box-shadow: var(--tv-sh-md); }
.tv-side-emoji-box {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: var(--tv-tr);
}
.tv-side-card:hover .tv-side-emoji-box {
    transform: scale(1.05);
}
.tv-side-body { flex: 1; min-width: 0; }
.tv-side-cat { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tv-green-mid); margin-bottom: 5px; font-family: var(--tv-fb); }
.tv-side-title { font-family: var(--tv-fb); font-size: .88rem; font-weight: 600; color: var(--tv-brown); line-height: 1.4; margin-bottom: 6px; }
.tv-side-card:hover .tv-side-title { color: var(--tv-green); }
.tv-side-meta { font-size: .7rem; color: var(--tv-brown-lt); font-family: var(--tv-fb); }

/* ── AI SECTION ── */
.tv-ai-section {
    background: linear-gradient(135deg, #1a5c1e 0%, var(--tv-green) 40%, #388e3c 100%);
    padding: 90px 0; position: relative; overflow: hidden;
}
.tv-ai-section::before { content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; border-radius: 50%; background: rgba(255,255,255,.04); pointer-events: none; }
.tv-ai-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; position: relative; z-index: 1; }
.tv-ai-info { color: #fff; }
.tv-ai-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); border-radius: var(--tv-r-f); padding: 6px 14px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.9); margin-bottom: 20px; font-family: var(--tv-fb); }
.tv-dot-coral { width: 6px; height: 6px; background: var(--tv-coral); border-radius: 50%; animation: tv-pulse 2s infinite; }
.tv-ai-title { font-family: var(--tv-fh); font-size: clamp(1.8rem,3vw,2.7rem); font-weight: 700; line-height: 1.2; margin: 0 0 16px; color: #fff; }
.tv-ai-title em { font-style: italic; color: rgba(244,167,125,.9); }
.tv-ai-desc { font-size: .92rem; line-height: 1.76; color: rgba(255,255,255,.78); margin: 0 0 34px; }
.tv-ai-features { display: flex; flex-direction: column; gap: 18px; }
.tv-ai-feat { display: flex; align-items: flex-start; gap: 14px; }
.tv-ai-icon { width: 42px; height: 42px; border-radius: var(--tv-r-sm); background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.tv-aft { font-size: .86rem; font-weight: 600; color: #fff; font-family: var(--tv-fb); }
.tv-afd { font-size: .78rem; color: rgba(255,255,255,.62); margin-top: 2px; font-family: var(--tv-fb); }

.tv-ai-widget { background: #fff; border-radius: var(--tv-r-lg); padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.22); }
.tv-w-tabs { display: flex; border: 2px solid var(--tv-border); border-radius: var(--tv-r-f); padding: 4px; margin-bottom: 26px; background: var(--tv-off); }
.tv-w-tab { flex: 1; padding: 10px 14px; border-radius: var(--tv-r-f); font-size: .78rem; font-weight: 600; text-align: center; cursor: pointer; transition: all .18s; color: var(--tv-brown-lt); border: none; background: transparent; font-family: var(--tv-fb); }
.tv-w-tab.tv-active { background: var(--tv-green); color: #fff; box-shadow: var(--tv-sh-g); }
.tv-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.tv-fg { display: flex; flex-direction: column; gap: 6px; }
.tv-flbl { font-size: .74rem; font-weight: 600; color: var(--tv-brown-md); font-family: var(--tv-fb); }
.tv-inp { padding: 11px 15px; border: 2px solid var(--tv-border); border-radius: var(--tv-r-sm); font-size: .85rem; font-family: var(--tv-fb); color: var(--tv-brown); background: var(--tv-off); transition: border-color .18s; outline: none; width: 100%; }
.tv-inp:focus { border-color: var(--tv-green-mid); background: #fff; }
.tv-gender-row { display: flex; gap: 8px; }
.tv-gen-btn { flex: 1; padding: 10px; border: 2px solid var(--tv-border); border-radius: var(--tv-r-sm); font-size: .82rem; font-weight: 600; font-family: var(--tv-fb); background: var(--tv-off); color: var(--tv-brown-md); cursor: pointer; transition: all .18s; }
.tv-gen-btn.tv-active { border-color: var(--tv-green-mid); background: var(--tv-green-pale); color: var(--tv-green); }
.tv-submit-btn { width: 100%; padding: 15px; margin-top: 6px; background: linear-gradient(135deg, var(--tv-green), var(--tv-green-lt)); color: #fff; border: none; border-radius: var(--tv-r-md); font-size: .9rem; font-weight: 700; font-family: var(--tv-fb); cursor: pointer; transition: var(--tv-tr); box-shadow: var(--tv-sh-g); display: block; }
.tv-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(46,125,50,.36); }
.tv-result { margin-top: 16px; padding: 14px; background: var(--tv-green-pale); border-radius: var(--tv-r-sm); font-size: .83rem; color: var(--tv-green); line-height: 1.65; font-family: var(--tv-fb); }

/* ── RECIPES ── */
.tv-recipes-sec { padding: 80px 0; background: var(--tv-cream); }
.tv-rec-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.tv-rec-card { background: #fff; border-radius: var(--tv-r-md); overflow: hidden; box-shadow: var(--tv-sh-sm); transition: var(--tv-tr); }
.tv-rec-card:hover { transform: translateY(-6px); box-shadow: var(--tv-sh-md); }
.tv-rec-img-wrap { position: relative; overflow: hidden; }
.tv-rec-img-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .5s ease; }
.tv-rec-card:hover .tv-rec-img-wrap img { transform: scale(1.06); }
.tv-rec-pl { width: 100%; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.tv-rec-time { position: absolute; bottom: 10px; right: 10px; background: rgba(255,255,255,.9); border-radius: var(--tv-r-f); padding: 4px 10px; font-size: .7rem; font-weight: 600; color: var(--tv-brown); font-family: var(--tv-fb); }
.tv-rec-body { padding: 20px; }
.tv-rec-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tv-rec-tag { font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--tv-r-f); background: var(--tv-green-pale); color: var(--tv-green); font-family: var(--tv-fb); }
.tv-rec-title { font-family: var(--tv-fh); font-size: 1rem; font-weight: 600; color: var(--tv-brown); line-height: 1.35; margin: 0 0 8px; }
.tv-rec-title a { color: inherit; text-decoration: none; }
.tv-rec-card:hover .tv-rec-title a { color: var(--tv-green); }
.tv-rec-desc { font-size: .8rem; color: var(--tv-brown-lt); line-height: 1.62; margin: 0 0 14px; font-family: var(--tv-fb); }
.tv-rec-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--tv-border); }
.tv-cals { font-size: .78rem; font-weight: 600; color: var(--tv-green); text-decoration: none; font-family: var(--tv-fb); }

/* ── NEWSLETTER ── */
.tv-nl-sec { padding: 90px 0; background: var(--tv-green); position: relative; overflow: hidden; }
.tv-nl-inner { max-width: 600px; margin: 0 auto; text-align: center; padding: 0 24px; position: relative; z-index: 1; }
.tv-nl-title { font-family: var(--tv-fh); font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 700; color: #fff; margin: 0 0 12px; }
.tv-nl-desc { font-size: .92rem; color: rgba(255,255,255,.75); margin: 0 0 28px; font-family: var(--tv-fb); }
.tv-nl-form { display: flex; gap: 12px; max-width: 440px; margin: 0 auto; }
.tv-nl-inp { flex: 1; padding: 14px 20px; border-radius: var(--tv-r-f); border: 2px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; font-size: .88rem; font-family: var(--tv-fb); outline: none; }
.tv-nl-inp::placeholder { color: rgba(255,255,255,.5); }
.tv-nl-inp:focus { border-color: var(--tv-coral); }
.tv-nl-btn { padding: 14px 26px; background: var(--tv-coral); color: #fff; border: none; border-radius: var(--tv-r-f); font-size: .86rem; font-weight: 700; font-family: var(--tv-fb); cursor: pointer; transition: var(--tv-tr); white-space: nowrap; }
.tv-nl-btn:hover { background: var(--tv-coral-dk); transform: translateY(-2px); }
.tv-nl-note { font-size: .72rem; color: rgba(255,255,255,.48); margin-top: 12px; font-family: var(--tv-fb); }

/* ── FLOATING BUTTONS ── */
.tv-fcta { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.tv-fcta-ai, .tv-fcta-top { border: none; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--tv-sh-md); transition: var(--tv-tr); }
.tv-fcta-ai:hover, .tv-fcta-top:hover { transform: scale(1.12); }
.tv-fcta-ai { width: 60px; height: 60px; font-size: 1.5rem; background: linear-gradient(135deg, var(--tv-green), var(--tv-green-lt)); color: #fff; }
.tv-fcta-top { width: 48px; height: 48px; font-size: 1rem; background: #fff; color: var(--tv-green); border: 2px solid var(--tv-border); }

/* ── SCROLL ANIMATIONS ── */
.tv-anim { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.tv-anim.tv-in { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .tv-hero-inner { grid-template-columns: 1fr; }
    .tv-hero-visual { display: none; }
    .tv-ai-inner { grid-template-columns: 1fr; }
    .tv-feat-grid { grid-template-columns: 1fr; }
    .tv-rec-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
    .tv-hero { padding: 50px 0 70px; }
    .tv-hero-stats { gap: 20px; }
    .tv-rec-grid { grid-template-columns: 1fr; }
    .tv-nl-form { flex-direction: column; }
    .tv-row2 { grid-template-columns: 1fr; }
    .tv-fcta { bottom: 20px; right: 16px; }
    .tv-cat-section, .tv-featured-sec, .tv-ai-section, .tv-recipes-sec, .tv-nl-sec { padding-left: 0; padding-right: 0; }
}
@media (max-width: 480px) {
    .tv-hero-stats { flex-wrap: wrap; }
    .tv-cat-chips { gap: 8px; }
    .tv-cat-chip { padding: 10px 14px; font-size: .8rem; }
}
/* ====== CUSTOM SITE FOOTER ====== */
.tv-site-footer { background:var(--tv-brown); color:var(--tv-cream); padding:60px 24px 24px; font-family:var(--tv-fb); }
.tv-footer-inner { max-width:1280px; margin:0 auto; }
.tv-footer-top { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:44px; margin-bottom:52px; }
.tv-footer-brand .tv-logo-img { height:38px; margin-bottom:16px; filter:brightness(0) invert(1); opacity:0.88; }
.tv-footer-brand p { font-size:0.83rem; line-height:1.76; color:rgba(246,232,210,0.68); max-width:280px; margin-bottom:20px; }
.tv-f-socials { display:flex; gap:10px; margin-top:20px; }
.tv-f-si { width:36px; height:36px; border-radius:8px; background:rgba(255,255,255,0.08); display:flex; align-items:center; justify-content:center; font-size:1rem; transition:var(--tv-tr); text-decoration:none; color:inherit; }
.tv-f-si:hover { background:var(--tv-green); transform:translateY(-2px); }
.tv-footer-col h4 { font-size:0.8rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--tv-cream); margin-bottom:16px; margin-top:0; }
.tv-footer-col ul { display:flex; flex-direction:column; gap:10px; list-style:none; padding:0; margin:0; }
.tv-footer-col ul li a { font-size:0.82rem; color:rgba(246,232,210,0.58); transition:var(--tv-tr); text-decoration:none; }
.tv-footer-col ul li a:hover { color:var(--tv-coral); padding-left:4px; }
.tv-footer-bottom { border-top:1px solid rgba(255,255,255,0.08); padding-top:24px; display:flex; align-items:center; justify-content:space-between; font-size:0.78rem; color:rgba(246,232,210,0.42); flex-wrap:wrap; gap:12px; }
.tv-footer-bottom a { color:rgba(246,232,210,0.52); text-decoration:none; }
.tv-footer-bottom a:hover { color:var(--tv-coral); }

/* Hide parent theme footer on homepage template */
.trivyna-homepage footer.footer {
    display: none !important;
}

@media(max-width: 1024px) {
    .tv-footer-top { grid-template-columns:1fr 1fr; }
}
@media(max-width: 768px) {
    .tv-footer-top { grid-template-columns:1fr; }
    .tv-footer-bottom { flex-direction:column; text-align:center; }
}
/* ====== CUSTOM SITE HEADER ====== */
.tv-site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(253,250,246,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--tv-border);
    box-shadow: var(--tv-sh-sm);
}
.tv-header-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.tv-logo-img { height: 50px; width: auto; display: block; }
.tv-logo-fallback { font-family: var(--tv-fh); font-size: 1.6rem; font-weight: 700; color: var(--tv-green); }
.tv-main-nav { display: flex; align-items: center; gap: 4px; }
.tv-nav-link {
    display: inline-block; padding: 8px 14px;
    border-radius: 9999px;
    font-size: 0.82rem; font-weight: 600; color: var(--tv-brown);
    transition: var(--tv-tr);
    text-decoration: none;
}
.tv-nav-link:hover { color: var(--tv-green); background: var(--tv-green-pale); }
.tv-nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--tv-green), var(--tv-green-lt));
    color: #fff; border-radius: 9999px;
    font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em;
    box-shadow: var(--tv-sh-g); transition: var(--tv-tr);
    text-decoration: none;
}
.tv-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(46,125,50,0.32); }

/* Hide default parent header globally */
header.main-header,
#masthead {
    display: none !important;
}

@media (max-width: 768px) {
    .tv-main-nav { display: none; }
    .tv-site-header {
        position: relative;
    }
    .tv-header-inner {
        height: 60px;
        padding: 0 16px;
        justify-content: center; /* Center logo on mobile */
    }
    .tv-logo-img {
        max-height: 44px;
        width: auto;
    }
}
