/* Knowledge & Insights page styles.
   Shared: page-hero, balance-cta-section (assets/css/custom.css). */

body.page-template-knowledge-insights-page {
    --ki-heading: #13213a;
    --ki-text: #5c6068;
    --ki-olive: #46552f;
    --ki-rust: #8a3f1c;
}

/* ---- Shared bits ---- */
.ki-title {
    margin: 0 0 14px;
    color: var(--ki-heading);
    font-family: var(--font-secondary);
    font-size: var(--fs-h2);
    font-weight: 600;
    line-height: 1.12;
}
.ki-desc {
    margin: 0;
    color: var(--ki-text);
    font-size: var(--fs-body);
    line-height: 1.6;
}
.ki-btn {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 3px;
    background: var(--ki-olive);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s ease;
}
.ki-btn:hover { background: #374424; color: #fff; }
.ki-btn--rust { background: var(--ki-rust); }
.ki-btn--rust:hover { background: #6f3115; }
.ki-icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
}
.ki-icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ki-icon--sage  { background: #e3ead7; color: #3c5531; }
.ki-icon--blush { background: #f7e1d8; color: #a14a2c; }
.ki-icon--sky   { background: #dbe9f3; color: #1e3d63; }
.ki-icon--sand  { background: #f6e6d2; color: #a45d1d; }

/* ---- Science of life ---- */
.ki-science {
    padding: 56px 0 50px;
    background: #fff;
}
.ki-science__row {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 50px;
    align-items: center;
}
.ki-science__intro p {
    margin: 0 0 16px;
    color: var(--ki-text);
    font-size: var(--fs-body);
    line-height: 1.6;
}
.ki-science__intro .ki-btn {
    margin-top: 18px;
}
.ki-concepts {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.ki-concept {
    padding: 14px 26px 22px;
}
.ki-concept:nth-child(even) {
    border-left: 1px solid #e3e1da;
}
.ki-concept h3 {
    margin: 14px 0 8px;
    color: var(--ki-heading);
    font-family: var(--font-secondary);
    font-size: var(--fs-lead);
    font-weight: 700;
    line-height: 1.2;
}
.ki-concept p {
    margin: 0;
    color: var(--ki-text);
    font-size: var(--fs-small);
    line-height: 1.55;
}

/* ---- Everyday life ---- */
.ki-everyday {
    padding: 50px 0;
    background: #fbf6ee;
}
.ki-everyday__row {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 50px;
    align-items: center;
}
.ki-everyday__img {
    width: 100%;
    aspect-ratio: 0.92;
    border-radius: 3px;
    object-fit: cover;
    object-position: 35% 50%; /* keeps the woman and her cup in the frame */
    box-shadow: 0 10px 26px rgb(60 40 20 / 18%);
}
.ki-everyday__content > p {
    margin: 0 0 14px;
    color: var(--ki-text);
    font-size: var(--fs-body);
    line-height: 1.6;
}
.ki-everyday__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 20px;
}
.ki-mini {
    padding: 20px 22px;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 4px 16px rgb(60 40 20 / 6%);
}
.ki-mini h3 {
    margin: 14px 0 10px;
    color: var(--ki-heading);
    font-family: var(--font-secondary);
    font-size: var(--fs-lead);
    font-weight: 700;
}
.ki-mini p {
    margin: 0;
    color: var(--ki-text);
    font-size: var(--fs-small);
    line-height: 1.6;
}

/* ---- Nourishment ---- */
.ki-nourish {
    padding: 52px 0 56px;
    background: #fff;
}
.ki-nourish__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 26px;
}
.ki-food {
    overflow: hidden;
    border-radius: 4px;
    background: #faf8f4;
    box-shadow: 0 4px 16px rgb(60 40 20 / 7%);
}
.ki-food img {
    display: block;
    width: 100%;
    aspect-ratio: 2.1 / 1;
    object-fit: cover;
}
.ki-food__body {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 14px;
    padding: 0 18px 22px;
}
.ki-food__body .ki-icon {
    width: 56px;
    height: 56px;
    margin-top: -24px;
    border: 3px solid #faf8f4;
}
.ki-food__body .ki-icon svg {
    width: 30px;
    height: 30px;
}
.ki-food h3 {
    align-self: center;
    margin: 12px 0 0;
    color: var(--ki-heading);
    font-family: var(--font-secondary);
    font-size: var(--fs-lead);
    font-weight: 700;
    line-height: 1.2;
}
.ki-food p {
    grid-column: 2;
    margin: 10px 0 0;
    color: var(--ki-text);
    font-size: var(--fs-small);
    line-height: 1.55;
}

/* ---- Himalayan tradition ---- */
.ki-himalayan {
    padding: 52px 0 56px;
    background: #eef1e6;
}
.ki-himalayan__head,
.ki-insights__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}
.ki-himalayan__head p,
.ki-insights__head p {
    max-width: 720px;
    margin: 0;
    color: var(--ki-text);
    font-size: var(--fs-body);
    line-height: 1.6;
}
.ki-triad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin: 30px auto 0;
    padding: 0;
    list-style: none;
    text-align: center;
}
/* Body / Breath / Mind: round green-on-cream illustrations (13 Oct). The PNGs
   are already circular with transparent corners; border-radius keeps the edge
   clean if an editor swaps in a square image from the Page Images box. */
.ki-triad__photo {
    display: block;
    width: 170px;
    height: 170px;
    margin: 0 auto 20px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 6px 14px rgb(60 40 20 / 12%));
}
@media (max-width: 575px) {
    .ki-triad__photo {
        width: 140px;
        height: 140px;
    }
}
/* Previous version: line icons in pastel circles (no longer in the markup). */
.ki-triad__tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    margin-bottom: 18px;
    border-radius: 50%;
}
.ki-triad__tile svg {
    width: 54px;
    height: 54px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ki-triad__tile--body { background: #dfe7d4; color: #133d17; }
.ki-triad__tile--breath { background: #d6ecf8; color: #133c6d; }
.ki-triad__tile--mind { background: #f5e6d1; color: #6e3416; }
.ki-triad h3 {
    margin: 0 0 8px;
    color: var(--ki-heading);
    font-family: var(--font-secondary);
    font-size: var(--fs-h4);
    font-weight: 700;
}
.ki-triad p {
    margin: 0;
    color: var(--ki-text);
    font-size: var(--fs-small);
    line-height: 1.55;
}

/* ---- Frequently Asked Questions ---- */
.ki-faq {
    padding: clamp(56px, 6vw, 80px) 0;
    background: #fff;
}
.ki-faq__head {
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
}
.ki-faq__head p {
    margin: 10px 0 0;
    color: var(--ki-text);
    font-size: var(--fs-body);
    line-height: 1.6;
}
.ki-faq__list {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid #ece6dc;
}
.ki-faq__item {
    border-bottom: 1px solid #ece6dc;
}
.ki-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 4px;
    color: var(--ki-heading);
    font-family: var(--font-secondary);
    font-size: var(--fs-h4);
    font-weight: 700;
    line-height: 1.3;
    list-style: none;
    cursor: pointer;
}
.ki-faq__q::-webkit-details-marker {
    display: none;
}
/* Plus that turns into a minus when the answer is open */
.ki-faq__q::after {
    content: '';
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 1px solid #c9a46e;
    border-radius: 50%;
    background:
        linear-gradient(#b07a28, #b07a28) center / 12px 1.5px no-repeat,
        linear-gradient(#b07a28, #b07a28) center / 1.5px 12px no-repeat;
    transition: transform .25s ease, background-color .25s ease;
}
.ki-faq__item[open] > .ki-faq__q::after {
    background:
        linear-gradient(#fff, #fff) center / 12px 1.5px no-repeat;
    background-color: #b07a28;
    transform: rotate(180deg);
}
.ki-faq__q:hover,
.ki-faq__q:focus-visible {
    color: #8b5a1a;
}
.ki-faq__q:focus-visible {
    outline: 2px solid #b07a28;
    outline-offset: 2px;
}
.ki-faq__a {
    padding: 0 4px 22px;
    color: var(--ki-text);
    font-size: var(--fs-body);
    line-height: 1.7;
}
.ki-faq__a p {
    margin: 0 0 12px;
}
.ki-faq__a p:last-child {
    margin-bottom: 0;
}
.ki-faq__a ul {
    margin: 0 0 12px;
    padding-left: 20px;
}
.ki-faq__a li {
    margin-bottom: 6px;
}
.ki-faq__a strong {
    color: var(--ki-heading);
}
/* Daily schedule: time on the left, activity on the right */
.ki-faq__a .ki-faq__schedule {
    padding: 0;
    list-style: none;
}
.ki-faq__schedule li {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 14px;
    margin: 0;
    padding: 7px 0;
    border-bottom: 1px dashed #ece6dc;
}
.ki-faq__schedule li span {
    color: #8b5a1a;
    font-weight: 700;
}
.ki-faq__more {
    margin: 28px 0 0;
    color: var(--ki-text);
    font-size: var(--fs-body);
    text-align: center;
}
.ki-faq__more a {
    color: #8b5a1a;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
@media (max-width: 575px) {
    .ki-faq__schedule li {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* ---- Insights ---- */
.ki-insights {
    padding: 56px 0 60px;
    background: #fdf8f1;
}
.ki-insights__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 28px;
}
.ki-insight {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 4px 16px rgb(60 40 20 / 7%);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.ki-insight:hover {
    box-shadow: 0 10px 24px rgb(60 40 20 / 12%);
    transform: translateY(-3px);
}
.ki-insight img {
    display: block;
    width: 100%;
    aspect-ratio: 1.65 / 1;
    object-fit: cover;
}
.ki-insight__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px 22px;
}
.ki-insight__body strong {
    color: #1e4b6b;
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.ki-insight__body span {
    color: var(--ki-text);
    font-size: var(--fs-body);
    line-height: 1.5;
}

/* ---- Responsive ---- */
@media (max-width: 1199px) {
    .ki-insights__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 991px) {
    .ki-science__row,
    .ki-everyday__row {
        grid-template-columns: 1fr;
    }
    .ki-himalayan__head,
    .ki-insights__head {
        flex-direction: column;
        gap: 20px;
    }
    .ki-triad p br {
        display: none;
    }
}
/* Three nourishment cards: stay in one row until tablets, then stack
   (two columns would leave the third card on its own). */
@media (max-width: 767px) {
    .ki-nourish__grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 575px) {
    .ki-concepts,
    .ki-everyday__cards,
    .ki-nourish__grid,
    .ki-insights__grid,
    .ki-triad {
        grid-template-columns: 1fr;
    }
    .ki-concept:nth-child(even) {
        border-left: 0;
    }
    .ki-triad {
        row-gap: 34px;
    }
}

/* Desktop sizing for icons and cards */
.ki-concepts .ki-icon { width: 92px; height: 92px; }
.ki-concepts .ki-icon svg { width: 50px; height: 50px; }
.ki-concept h3 { font-size: var(--fs-h4); }
.ki-concept p, .ki-mini p { font-size: var(--fs-body); }
.ki-mini .ki-icon { width: 72px; height: 72px; }
.ki-mini .ki-icon svg { width: 40px; height: 40px; }
.ki-mini h3 { font-size: var(--fs-h4); }
.ki-food__body { grid-template-columns: 68px 1fr; }
.ki-food__body .ki-icon { width: 68px; height: 68px; }
.ki-food__body .ki-icon svg { width: 36px; height: 36px; }
.ki-food h3 { font-size: var(--fs-h4); }
.ki-food p { font-size: var(--fs-small); }
.ki-triad__tile svg { width: 62px; height: 62px; }
.ki-triad h3 { font-size: var(--fs-h3); }
.ki-triad p { font-size: var(--fs-body); }
.ki-insight__body span { font-size: var(--fs-body); }
.ki-insight__body strong { font-size: var(--fs-small); }

/* Closing lines under the Dinacharya / Ritucharya cards and the Nourishment
   cards - centred, no side bar, in the gold of the header's "Book a
   Consultation" button (--am-gold) */
.ki-everyday__closing,
.ki-nourish__closing {
    max-width: 900px;
    margin: 44px auto 0;
    padding: 0;
    border: 0;
    color: #b07a28;
    font-size: var(--fs-body);
    font-style: italic;
    line-height: 1.6;
    text-align: center;
}

/* Even spacing between every section (was 50-60px, uneven top/bottom) */
.ki-science,
.ki-everyday,
.ki-nourish,
.ki-himalayan,
.ki-insights {
    padding-top: clamp(56px, 6vw, 80px);
    padding-bottom: clamp(56px, 6vw, 80px);
}
.ki-insights__head p + p { margin-top: 12px; }