/**
 * Ayurveda Info Pages — Shared Styles
 * Used by: ayurveda-prinicipals, ayurveda-faq, tridoshas,
 *          panchakarma-in-rishikesh, ayurveda-consulation-in-rishikesh,
 *          ayurveda-certification-in-india
 */

/* ── Article wrapper ── */
.ha-article-wrap {
    background: #fff;
    padding: 65px 0;
}
.ha-article-wrap-alt {
    background: #F8F3E9;
    padding: 65px 0;
}

/* ── Page title block (shared) ── */
.ha-page-title {
    text-align: center;
    margin-bottom: 40px;
}
.ha-page-title .ha-cursive {
    font-family: 'Alex Brush', cursive;
    font-size: 26px;
    color: #507C24;
    display: block;
    margin-bottom: 4px;
}
.ha-page-title h1 {
    font-size: 26px;
    font-weight: 700;
    color: #2d4d18;
    margin-bottom: 12px;
    line-height: 1.35;
}

/* ── Article inline image ── */
.ha-article-img {
    border-radius: 16px;
    border: 3px solid rgba(80, 124, 36, 0.15);
    box-shadow: 0 8px 28px rgba(80, 124, 36, 0.12);
    width: 100%;
    height: auto;
    display: block;
    loading: lazy;
}
.ha-article-img-wrap {
    position: relative;
    margin-bottom: 30px;
}
.ha-article-img-wrap::after {
    content: '';
    position: absolute;
    bottom: -10px; right: -10px;
    width: 100%; height: 100%;
    border-radius: 18px;
    background: rgba(80, 124, 36, 0.07);
    z-index: -1;
}

/* ── Section heading inside articles ── */
.ha-art-h2 {
    font-size: 22px;
    font-weight: 700;
    color: #2d4d18;
    margin: 36px 0 14px;
    padding-bottom: 10px;
    position: relative;
}

.ha-art-h2:first-of-type { margin-top: 0; }

/* ── Quote / highlight block ── */
.ha-quote-block {
    background: linear-gradient(135deg, #f4f9e8 0%, #e8f3d0 100%);
    border-left: 5px solid #507C24;
    border-radius: 0 14px 14px 0;
    padding: 22px 28px;
    margin: 28px 0;
    font-size: 16px;
    color: #2d4d18;
    font-style: italic;
    line-height: 1.8;
    box-shadow: 0 2px 10px rgba(80, 124, 36, 0.08);
}
.ha-quote-block a { color: #507C24; font-weight: 600; text-decoration: none; }
.ha-quote-block a:hover { text-decoration: underline; }

/* ── Bullet list ── */
.ha-art-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.ha-art-list > li {
    display: flex;
    gap: 14px;
    padding: 5px 0;
    border-bottom: 1px solid #f0ede5;
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}
.ha-art-list > li:last-child { border-bottom: none; }
.ha-art-list > li::before {
    content: '';
    flex-shrink: 0;
    width: 22px; height: 22px;
    background: url('/images/ha-bullet.svg') center / contain no-repeat;
    background-color: transparent;
    border-radius: 0;
    margin-top: 1px;
    box-shadow: none;
}

/* ── Numbered named list (with h4 titles) ── */
.ha-named-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    counter-reset: ha-nl;
}
.ha-named-list > li {
    counter-increment: ha-nl;
    position: relative;
    padding: 18px 20px 18px 68px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef3e8;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(80, 124, 36, 0.05);
    transition: box-shadow 0.2s;
}
.ha-named-list > li:hover { box-shadow: 0 5px 18px rgba(80, 124, 36, 0.1); }
.ha-named-list > li::before {
    content: counter(ha-nl);
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    background: linear-gradient(135deg, #97BC17, #507C24);
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ha-named-list > li h4 {
    font-size: 15px;
    font-weight: 700;
    color: #2d4d18;
    margin-bottom: 6px;
}
.ha-named-list > li p {
    font-size: 14px;
    color: #555;
    line-height: 1.75;
    margin: 0;
}

/* ── Dosha cards (Tridoshas page) ── */
.ha-dosha-card {
    background: #fff;
    border-radius: 18px;
    padding: 34px 28px;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s, box-shadow 0.25s;
}
.ha-dosha-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(80, 124, 36, 0.14);
}
.ha-dosha-card-vata { border-top: 4px solid #507C24; }
.ha-dosha-card-pitta { border-top: 4px solid #97BC17; }
.ha-dosha-card-kapha { border-top: 4px solid #76B51B; }

.ha-dosha-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: rgba(80,124,36,0.07);
}
.ha-dosha-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}
.ha-dosha-card-vata .ha-dosha-icon  { background: rgba(100,160,220,0.10); }
.ha-dosha-card-pitta .ha-dosha-icon { background: rgba(255,140,50,0.10); }
.ha-dosha-card-kapha .ha-dosha-icon { background: rgba(80,150,220,0.10); }

.ha-dosha-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.ha-dosha-card-vata .ha-dosha-badge { background: rgba(80,124,36,0.1); color: #507C24; }
.ha-dosha-card-pitta .ha-dosha-badge { background: rgba(151,188,23,0.15); color: #6a8f00; }
.ha-dosha-card-kapha .ha-dosha-badge { background: rgba(118,181,27,0.12); color: #5a7f10; }

.ha-dosha-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2d4d18;
    margin-bottom: 12px;
}
.ha-dosha-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin: 0;
}
.ha-dosha-trait {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #f4f9e8;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #507C24;
    margin: 3px 3px 3px 0;
}

/* ── Panchakarma step cards ── */
.ha-pk-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 22px 24px;
    background: #fff;
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(80, 124, 36, 0.06);
    border: 1px solid #eef3e8;
    transition: box-shadow 0.2s;
}
.ha-pk-step:hover { box-shadow: 0 6px 22px rgba(80, 124, 36, 0.11); }
.ha-pk-step-num {
    flex-shrink: 0;
    width: 46px; height: 46px;
    background: linear-gradient(135deg, #97BC17 0%, #507C24 100%);
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(80, 124, 36, 0.3);
}
.ha-pk-step h4 {
    font-size: 16px;
    font-weight: 700;
    color: #2d4d18;
    margin-bottom: 6px;
}
.ha-pk-step p {
    font-size: 14px;
    color: #555;
    line-height: 1.75;
    margin: 0;
}

/* ── Panchakarma phase badge ── */
.ha-phase-label {
    display: inline-block;
    background: linear-gradient(135deg, #97BC17, #507C24);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

/* ── FAQ items (ayurveda-faq & panchakarma pages) ── */
.ha-faq-item {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 0 10px !important;
    margin-bottom: 16px !important;
    border-left: 4px solid #507C24 !important;
    box-shadow: 0 2px 10px rgba(80, 124, 36, 0.06) !important;
    transition: box-shadow 0.2s !important;
}
.ha-faq-item:hover { box-shadow: 0 6px 20px rgba(80, 124, 36, 0.1) !important; }

/* Question */
.ha-faq-item h4 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #2d4d18 !important;
    margin-bottom: 14px !important;
    line-height: 1.55 !important;
}

/* Answer wrapper — override any inline style */
.ha-faq-answer,
.ha-faq-item .ha-faq-answer,
.ha-faq-item > div > .ha-faq-answer {
    font-size: 16px !important;
    line-height: 1.9 !important;
    color: #444 !important;
    margin: 0 !important;
}

/* Plain paragraph text inside answer */
.ha-faq-answer > p,
.ha-faq-item .ha-faq-answer p {
    font-size: 16px !important;
    line-height: 1.9 !important;
    color: #444 !important;
    margin-bottom: 10px !important;
}

/* ── Lists inside FAQ answers — ha-bullet.svg icon ── */
.ha-faq-answer ul,
.ha-faq-answer .simple-list {
    list-style: none !important;
    padding: 8px 0 0 0 !important;
    margin: 6px 0 0 0 !important;
}
.ha-faq-answer ul li,
.ha-faq-answer .simple-list .list-item,
.ha-faq-answer .simple-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 7px 0 !important;
    font-size: 16px !important;
    color: #444 !important;
    line-height: 1.85 !important;
    background: none !important;
    list-style: none !important;
    border: none !important;
    margin-left: 0 !important;
}
/* Override custom.css absolute-positioned ::before with flexbox version */
.ha-faq-answer ul li::before,
.ha-faq-answer .simple-list li::before,
.ha-faq-answer .simple-list .list-item::before {
    content: '' !important;
    flex-shrink: 0 !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    background-image: url('/images/ha-bullet.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: transparent !important;
    margin-top: 3px !important;
    margin-left: 0 !important;
    position: static !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
/* Paragraph inside list item */
.ha-faq-answer ul li p,
.ha-faq-answer .simple-list .list-item p,
.ha-faq-answer .simple-list li p {
    margin: 0 !important;
    font-size: 16px !important;
    color: #444 !important;
    line-height: 1.85 !important;
}

/* ── Info cards (consultation, certification) ── */
.ha-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    height: 100%;
    box-shadow: 0 4px 18px rgba(80, 124, 36, 0.08);
    border-top: 4px solid #507C24;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}
.ha-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(80, 124, 36, 0.13);
}
.ha-info-card .ha-info-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #f4f9e8, #ddefc0);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.ha-info-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #2d4d18;
    margin-bottom: 10px;
}
.ha-info-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* ── Cert badge strips ── */
.ha-cert-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(80, 124, 36, 0.06);
    border-left: 4px solid #97BC17;
}
.ha-cert-badge .ha-cert-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #97BC17, #507C24);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ha-cert-badge h4 {
    font-size: 15px;
    font-weight: 700;
    color: #2d4d18;
    margin-bottom: 3px;
}
.ha-cert-badge p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ── Table of contents ── */
.ha-toc {
    background: #f4f9e8;
    border-radius: 14px;
    padding: 22px 28px;
    margin-bottom: 36px;
    border: 1px solid rgba(80, 124, 36, 0.14);
}
.ha-toc-title {
    font-size: 13px;
    font-weight: 700;
    color: #507C24;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ha-toc ol {
    margin: 0;
    padding-left: 20px;
    column-count: 2;
    column-gap: 24px;
}
.ha-toc ol li { margin-bottom: 7px; }
.ha-toc ol li a {
    color: #507C24;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.5;
}
.ha-toc ol li a:hover { text-decoration: underline; }

/* ── Section divider with icon ── */
.ha-section-divider {
    text-align: center;
    margin: 48px 0 40px;
    position: relative;
}
.ha-section-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0;
    width: 100%; height: 1px;
    background: #eaf3d8;
}
.ha-section-divider span {
    position: relative;
    display: inline-block;
    background: #fff;
    padding: 0 16px;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .ha-toc ol { column-count: 1; }
}
@media (max-width: 767px) {
    .ha-article-wrap,
    .ha-article-wrap-alt { padding: 40px 0; }
    .ha-art-h2 { font-size: 19px; margin: 28px 0 12px; }
    .ha-dosha-card { padding: 26px 20px; margin-bottom: 20px; }
    .ha-pk-step { flex-direction: column; gap: 12px; }
    .ha-pk-step-num { width: 38px; height: 38px; font-size: 16px; }
    .ha-named-list > li { padding: 16px 16px 16px 58px; }
    .ha-toc { padding: 18px 20px; }
    .ha-info-card { padding: 24px 18px; }
    .ha-faq-item { padding: 20px 18px; }
    .ha-faq-item h4 { font-size: 15px; }
    .ha-faq-item p,
    .ha-faq-item .txt-color-05,
    .ha-faq-item ul li,
    .ha-faq-item .simple-list .list-item { font-size: 14px !important; }
}
