/* =========================================
   EXPERT BIO PAGES (EDITORIAL LAYOUT)
   ========================================= */

/* --- 1. HERO SECTION --- */
.bio-hero {
    background-color: var(--bg-light);
    padding: 160px 5% 80px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.bio-hero-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start; /* Fixes the jumping text issue */
}

.bio-hero-text {
    padding-top: 30px; /* Visually balances the text with the image */
}

.bio-hero-image-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.15);
}

.bio-hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.bio-back-link {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.bio-back-link:hover {
    color: var(--accent-amber);
}

.bio-name {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 500;
    color: var(--text-primary);
    margin: 16px 0 8px;
    letter-spacing: -0.02em;
}

.bio-cred {
    font-size: 0.4em;
    vertical-align: super;
    color: var(--accent-amber);
    font-weight: 700;
    margin-left: 4px;
}

.bio-subtitle {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* SEO Keyword Pills */
.bio-topic-tags { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    margin-top: 16px; 
}
/* --- EXPERT BIO TOPIC PILLS (Clickable) --- */
.bio-topic-tag {
    font-family: var(--font-sans);
    font-size: 0.8rem; 
    font-weight: 600; 
    color: #475569; 
    background: #F1F5F9; 
    padding: 6px 12px; 
    border-radius: 8px; 
    border: 1px solid transparent;
    
    /* Converts it to a proper link */
    text-decoration: none; 
    display: inline-block; 
    cursor: pointer; 
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bio-topic-tag:hover {
    background: #ffffff;
    border-color: var(--accent-amber);
    color: var(--accent-amber);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
    transform: translateY(-2px);
}

/* --- 2. READING COLUMN (BODY) --- */
.bio-body-section {
    background-color: var(--bg-white);
    padding: 80px 5%;
}

.bio-reading-column {
    max-width: 680px;
    margin: 0 auto;
}

.bio-trust-box {
    background: rgba(217, 119, 6, 0.05);
    border-left: 4px solid var(--accent-amber);
    padding: 24px 32px;
    border-radius: 0 16px 16px 0;
    margin-bottom: 60px;
}

.bio-trust-box h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-amber);
    margin-top: 0;
    margin-bottom: 12px;
}

.bio-trust-box p {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.bio-section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-primary);
    margin: 60px 0 20px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 16px;
}

.bio-reading-column p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 24px;
}

.bio-reading-column ul {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #334155;
    padding-left: 20px;
    margin-bottom: 32px;
}

.bio-reading-column li {
    margin-bottom: 12px;
}

/* --- 3. BOOK ROWS (Scrollable Fixed Box) --- */
.book-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    
    /* Fixed scroll logic */
    max-height: 460px; /* Perfectly slices the 4th book in half */
    overflow-y: auto;
    padding-right: 12px;
    
    /* Custom Webkit Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.book-list::-webkit-scrollbar {
    width: 6px;
}

.book-list::-webkit-scrollbar-track {
    background: transparent;
}

.book-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

.book-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    padding-right: 0px;
    border-radius: 16px;
    background: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.04);
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.book-row:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(0,0,0,0.08);
}

.book-cover {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    height: 90px; flex: 0 0 auto; border-radius: 4px; overflow: hidden; background: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,.15), 0 3px 8px rgba(0,0,0,.08);
}
.book-cover::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 18%;
    background: linear-gradient(to right,rgba(0,0,0,.34),rgba(0,0,0,.16) 45%,rgba(0,0,0,0)); mix-blend-mode: multiply; pointer-events: none;
}
.book-cover::after {
    content: ""; position: absolute; inset: 0 0 0 auto; width: 12%;
    background: linear-gradient(to left,rgba(255,255,255,.95),rgba(255,255,255,0)) 0 0/100% 100% no-repeat,
    repeating-linear-gradient(to bottom,rgba(0,0,0,.06),rgba(0,0,0,.06) 1px,transparent 1px,transparent 3px);
    opacity: .85; pointer-events: none;
}
.book-thumb {
    height: 100%; width: auto; max-height: 90px; object-fit: contain; border-radius: inherit;
    background: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), inset 0 0 18px rgba(0,0,0,.08); display: block;
}

.book-title { margin: 0; line-height: 1.3; color: var(--text-primary); text-wrap: balance;}
.book-title .main { font-weight: 700; color: #0f172a; font-size: 1.15rem; }
.book-title .sub { font-weight: 400; color: #64748b; font-size: 0.9rem; }
.book-year { color: #94a3b8; font-size: 0.9rem; margin-left: 6px; font-weight: 500; }

/* --- 4. CONNECT SECTION --- */
.contact-list {
    display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin-top: 20px;
}
.contact-list li { display: flex; align-items: center; gap: 8px; }
.contact-list a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; background: var(--bg-light); border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px; font-size: 0.95rem; font-weight: 600; color: #475569;
    text-decoration: none; transition: all 0.2s;
}
.contact-list a:hover { background: #fff; color: var(--accent-amber); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.contact-list .icon { width: 20px; height: 20px; border-radius: 4px; }

/* --- 5. CONVERSION ENGINE --- */
.bio-conversion {
    /* Lighter, distinct navy gradient to separate from footer */
    background: linear-gradient(135deg, #1e2b45 0%, #0f172a 100%);
    padding: 100px 5%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.bio-conversion-content {
    max-width: 600px;
    margin: 0 auto;
}
.bio-conversion h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 32px;
    text-wrap: balance;
}

@media (max-width: 900px) {
    .bio-hero-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .bio-hero-image-wrapper { max-width: 400px; margin: 0 auto; }
    .bio-topic-tags { justify-content: center; }
}

/* --- 6. KEYWORD EXPANSION TOGGLE (Animated) --- */
.bio-topic-tag.hidden-tag {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.bio-topic-tag.hidden-tag.is-visible {
    opacity: 1;
    transform: translateY(0);
}

button.bio-topic-tag.toggle-more {
    cursor: pointer;
    background: transparent;
    border: 1px dashed #94a3b8;
    color: #64748b;
    transition: all 0.2s ease;
}

button.bio-topic-tag.toggle-more:hover {
    border-color: var(--accent-amber);
    color: var(--accent-amber);
    background: rgba(217, 119, 6, 0.05);
}

/* =========================================
   DR. YUM STORE-IN-STORE MODULE
   ========================================= */

.dr-yum-toolkit-wrapper {
    background: #f8faee; /* Soft version of the Dr. Yum lime green */
    border: 2px solid #c9e072; /* Dr. Yum lime green accent */
    border-radius: 24px;
    padding: 32px 40px;
    margin: 60px 0;
    box-shadow: 0 12px 30px -10px rgba(0,0,0,0.06);
}

.dr-yum-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.dr-yum-brand-lockup {
    width: 220px; /* Locks the container width so both SVGs match perfectly */
    display: flex;
    flex-direction: column;
    gap: 8px; /* Breathing room between text and circles */
}

.dr-yum-text, 
.dr-yum-circles {
    width: 100%;
    height: auto;
    display: block;
}

.dr-yum-circles {
    max-width: 240px;
    height: auto;
    margin-bottom: 8px;
    display: block;
}

.dr-yum-title-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dr-yum-text {
    max-width: 200px;
    height: auto;
    display: block;
}

.toolkit-badge {
    background: #c9e072; /* Dr. Yum Lime */
    color: #3b5082; /* Dr. Yum Navy */
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 8px;
    margin-top: 0; 
}

.dr-yum-description {
    color: #475569;
    margin-bottom: 32px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.dr-yum-footer-link {
    margin-top: 24px;
    text-align: center;
}

.dr-yum-footer-link a {
    color: #d20d88; /* Dr. Yum Magenta */
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dr-yum-footer-link a:hover {
    color: #3b5082; /* Dr. Yum Navy */
    text-decoration: underline;
}

.dr-yum-header h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: #3b5082; /* Dr. Yum Navy */
    margin: 0;
    line-height: 1.1;
}

.dr-yum-toolkit-wrapper p {
    color: #475569;
    margin-bottom: 32px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.toolkit-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.toolkit-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px 24px;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 700;
    color: #3b5082;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    text-align: left;
}

.toolkit-btn:hover {
    border-color: #d20d88; /* Dr. Yum Magenta */
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(210, 13, 136, 0.15);
}

.toolkit-btn .btn-icon {
    font-size: 2rem;
    line-height: 1;
}


/* =========================================
   TOOLKIT MODALS (POP-UPS)
   ========================================= */

.toolkit-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.toolkit-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.toolkit-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: 32px;
    padding: 40px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.3);
    
    /* Smooth scrolling */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.toolkit-modal-content::-webkit-scrollbar { width: 6px; }
.toolkit-modal-content::-webkit-scrollbar-track { background: transparent; }
.toolkit-modal-content::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; }

.toolkit-modal-overlay.active .toolkit-modal-content {
    transform: translateY(0) scale(1);
}

.toolkit-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #f1f5f9;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.75rem;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.toolkit-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.05);
}

.toolkit-modal-content .modal-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: #3b5082;
    margin-top: 0;
    margin-bottom: 24px;
    padding-right: 50px; /* Make room for close btn */
}

.modal-link-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 18px 24px;
    border-radius: 16px;
    color: #0f172a;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s;
}

.modal-link-btn::after {
    content: "→";
    color: #94a3b8;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.modal-link-btn:hover {
    border-color: #c9e072;
    background: #f8faee;
    color: #3b5082;
}

.modal-link-btn:hover::after {
    color: #3b5082;
    transform: translateX(4px);
}

.video-group-label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin: 20px 0 10px;
    padding-left: 4px;
}


/* --- Mobile Adjustments for Store-in-Store --- */
@media (max-width: 600px) {
    .dr-yum-toolkit-wrapper {
        padding: 24px;
        border-radius: 20px;
    }
    
    .toolkit-btn {
        padding: 16px 20px;
        font-size: 1.1rem;
    }
    
    /* "Bottom Sheet" effect for modals on mobile */
    .toolkit-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    .toolkit-modal-content {
        border-radius: 32px 32px 0 0;
        margin-top: auto; 
        padding: 32px 24px 50px;
        max-height: 90vh;
    }
    
    .toolkit-modal-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

