/* Bilingual rich content — Our Ideals detail pages */

/* Hero banner — 50% shorter than page defaults (450→225, 300→150, 250→125) */
.hero-banner {
    height: 225px !important;
    margin-bottom: 25px !important;
}

@media (max-width: 767px) {
    .hero-banner {
        height: 150px !important;
        margin-bottom: 8px !important;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 125px !important;
    }
}

/* Hero typography — centered title + taglines */
.hero-banner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.hero-banner .hero-content {
    padding: 0 14px;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-banner .hero-content h1 {
    font-size: clamp(1.55rem, 5.2vw, 2.35rem) !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0.03em;
    line-height: 1.15 !important;
    margin-bottom: 6px !important;
    color: #fff !important;
    width: 100%;
    text-align: center !important;
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(0, 0, 0, 0.35);
}

.hero-banner .hero-content h1::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    margin: 7px auto 0;
    background: var(--gold, #ffc107);
    border-radius: 2px;
    opacity: 0.95;
}

.hero-banner .hero-content .hero-tagline-en,
.hero-banner .hero-content .hero-tagline-hi,
.hero-banner .hero-content h1 + p:not(.hero-tagline-hi) {
    display: block !important;
    width: 100% !important;
    max-width: min(94vw, 680px);
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 0 !important;
    padding: 1px 6px !important;
    color: #fff !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    text-align: center !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow:
        0 1px 6px rgba(0, 0, 0, 0.65),
        0 2px 14px rgba(0, 0, 0, 0.45),
        0 0 1px rgba(255, 255, 255, 0.85);
    opacity: 1 !important;
}

.hero-banner .hero-content .hero-tagline-en,
.hero-banner .hero-content h1 + p:not(.hero-tagline-hi) {
    font-size: clamp(0.82rem, 2.2vw, 1.05rem) !important;
    padding-bottom: 2px !important;
}

.hero-banner .hero-content .hero-tagline-hi {
    font-size: clamp(0.86rem, 2.4vw, 1.08rem) !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    font-family: 'Nirmala UI', 'Mangal', 'Noto Sans Devanagari', 'Segoe UI', sans-serif;
}

@media (max-width: 768px) {
    .hero-banner .hero-content h1 {
        font-size: clamp(1.35rem, 5vw, 1.85rem) !important;
        margin-bottom: 4px !important;
    }

    .hero-banner .hero-content h1::after {
        width: 34px;
        height: 2px;
        margin-top: 4px;
    }

    .hero-banner .hero-content .hero-tagline-en,
    .hero-banner .hero-content .hero-tagline-hi,
    .hero-banner .hero-content h1 + p:not(.hero-tagline-hi) {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
}

@media (max-width: 480px) {
    .hero-banner .hero-content h1::after {
        display: none;
    }
}

/* Language switcher — Jan Ayush float pill (MPYPCP red on active half) */
.ideal-lang-toolbar {
    position: fixed;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    z-index: 10002;
}

.ideal-lang-switch {
    display: flex;
    align-items: stretch;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    background: #e8edf2;
    min-height: 34px;
    width: fit-content;
    -webkit-tap-highlight-color: transparent;
}

.ideal-lang-switch__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

.ideal-lang-switch__btn[data-lang="hi"] {
    font-family: 'Nirmala UI', 'Mangal', 'Noto Sans Devanagari', sans-serif;
}

.ideal-lang-switch__btn:not(.is-active) {
    background: #e8edf2;
    color: #4a5568;
    font-weight: 600;
}

.ideal-lang-switch__btn + .ideal-lang-switch__btn:not(.is-active) {
    box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.1);
}

.ideal-lang-switch__btn:not(.is-active):hover {
    background: #dde4ea;
    color: #374151;
}

.ideal-lang-switch__btn.is-active {
    background: linear-gradient(
        180deg,
        #d32f2f 0%,
        var(--primary-red, #c62828) 42%,
        var(--accent-red, #b71c1c) 100%
    );
    color: #fff;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.ideal-lang-switch__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary-red, #c62828);
    z-index: 1;
    position: relative;
}

.ideal-lang-switch__btn.is-active:focus-visible {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 0 2px #fff,
        0 0 0 4px var(--accent-red, #b71c1c);
}

@media (min-width: 768px) {
    .ideal-lang-toolbar {
        bottom: 88px;
    }
}

@media (max-width: 767px) {
    .ideal-lang-toolbar {
        bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 52px);
        right: max(12px, env(safe-area-inset-right, 0px));
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    /* No outer pill frame on mobile — buttons only, keep round capsule */
    .ideal-lang-switch {
        border: none;
        box-shadow: none;
        background: transparent;
        border-radius: 999px;
        overflow: hidden;
        min-height: 24px;
        isolation: isolate;
    }

    .ideal-lang-switch__btn + .ideal-lang-switch__btn:not(.is-active) {
        box-shadow: none;
    }

    .ideal-lang-switch__btn {
        min-height: 24px;
        padding: 0 5px;
        font-size: 0.88rem;
        letter-spacing: 0;
        line-height: 1;
        font-weight: 800;
        border-radius: 0;
        -webkit-appearance: none;
        appearance: none;
    }

    .ideal-lang-switch__btn:first-child {
        border-top-left-radius: 999px;
        border-bottom-left-radius: 999px;
    }

    .ideal-lang-switch__btn:last-child {
        border-top-right-radius: 999px;
        border-bottom-right-radius: 999px;
    }
}

.ideal-lang-panel[hidden] {
    display: none !important;
}

.ideal-lang-panel.is-active {
    display: block;
}

.ideal-rich-block {
    margin-top: 28px;
}

.ideal-rich-block h3 {
    color: var(--primary-red, #c62828);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid color-mix(in srgb, var(--primary-red, #c62828) 20%, transparent);
}

.ideal-rich-block p {
    font-size: 17px;
    line-height: 1.95;
    color: var(--text-dark, #333);
    text-align: justify;
    margin-bottom: 14px;
}

.ideal-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin: 18px 0 8px;
    list-style: none;
    padding: 0;
}

.ideal-highlights li {
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    border: 1px solid #ececec;
    border-left: 4px solid var(--primary-red, #c62828);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.ideal-highlights li i {
    color: var(--primary-red, #c62828);
    margin-right: 8px;
}

.ideal-lang-panel[data-lang="hi"] .ideal-details h2,
.ideal-lang-panel[data-lang="hi"] .ideal-rich-block h3,
.ideal-lang-panel[data-lang="hi"] .ideal-meta strong {
    font-family: 'Nirmala UI', 'Mangal', 'Segoe UI', sans-serif;
}

.ideal-lang-panel[data-lang="hi"] .ideal-description,
.ideal-lang-panel[data-lang="hi"] .ideal-rich-block p,
.ideal-lang-panel[data-lang="hi"] .ideal-meta p,
.ideal-lang-panel[data-lang="hi"] .ideal-highlights li {
    font-family: 'Nirmala UI', 'Mangal', 'Segoe UI', sans-serif;
}

.ideal-image-box img {
    display: block;
    margin: 0 auto;
}

/* Hide legacy icon under portrait (removed from layout) */
.ideal-image-box > div:has(i),
.ideal-image-box i {
    display: none !important;
}

.ideal-sources-block {
    background: #fafbfc;
    border: 1px solid #e8ecef;
    border-radius: 10px;
    padding: 20px 22px;
}

.ideal-sources-list li i.fa-book {
    color: #8d6e63;
}

.ideal-yoga-contrib-block {
    background: linear-gradient(135deg, #fffbf5 0%, #fff 55%);
    border: 1px solid color-mix(in srgb, var(--primary-red, #c62828) 12%, #eee);
    border-radius: 12px;
    padding: 22px 24px 18px;
}

.ideal-popular-intro {
    margin: 18px 0 10px !important;
    font-size: 16px !important;
    color: var(--primary-red, #c62828) !important;
    text-align: left !important;
}

.ideal-yoga-popular-list li {
    border-left-color: #ff9800;
    background: linear-gradient(135deg, #fff 0%, #fff8f0 100%);
}

.ideal-yoga-popular-list li i.fa-star {
    color: #ff9800;
}

.ideal-mpypcp-box {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-red, #c62828) 8%, #fff), #fff);
    border: 1px solid color-mix(in srgb, var(--primary-red, #c62828) 18%, transparent);
    border-radius: 10px;
    padding: 22px 24px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .ideal-rich-block h3 {
        font-size: 1.05rem;
    }

    .ideal-rich-block p {
        font-size: 14px;
        line-height: 1.75;
    }

    .ideal-highlights {
        grid-template-columns: 1fr;
    }

    .ideal-highlights li {
        font-size: 13px;
    }
}
