/* Our Teachers — listing + bio (shared EN/HI) */
:root {
    --ot-red: #c62828;
    --ot-red-dark: #b71c1c;
    --ot-ink: #1a1a1a;
    --ot-muted: #666;
    --ot-border: #e6e6e6;
    --ot-bg: #f5f5f5;
    --ot-card-radius: 12px;
    --ot-font: "Noto Sans Devanagari", "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
    --ot-font-hi-name: "Sahitya", "Noto Sans Devanagari", serif;
}

.ot-hero,
.ot-section,
.ot-bio-wrap {
    font-family: var(--ot-font);
}

.ot-hero {
    background:
        linear-gradient(135deg, rgba(183, 28, 28, 0.92) 0%, rgba(198, 40, 40, 0.85) 55%, rgba(120, 20, 20, 0.9) 100%),
        url('../images/site/yoga.jpg') center / cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 64px 20px 56px;
    margin-bottom: 0;
}

.ot-hero h1 {
    color: #fff;
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.04em;
    margin: 0 0 12px;
}

.ot-hero p {
    margin: 0 auto;
    max-width: 32rem;
    font-size: 1.02rem;
    line-height: 1.55;
    opacity: 0.92;
    font-weight: 400;
}

.ot-section {
    background: linear-gradient(180deg, #f7f4f2 0%, #f0eeeb 100%);
    padding: 48px 0 72px;
}

.ot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 12px;
}

/* —— Premium teacher card: 80% photo / 20% details —— */
.ot-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.ot-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 18px 40px rgba(198, 40, 40, 0.14);
}

.ot-card-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    flex: 1;
    height: 100%;
    min-height: 0;
    color: inherit;
    text-decoration: none;
}

.ot-card-inner:hover,
.ot-card-inner:focus {
    color: inherit;
    text-decoration: none;
    outline: none;
}

.ot-card:focus-within {
    outline: 3px solid var(--ot-red);
    outline-offset: 3px;
}

.ot-card-photo {
    position: relative;
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
    height: auto !important;
    max-height: none !important;
    width: 100%;
    overflow: hidden;
    background: #e8e4df;
    box-sizing: border-box;
    min-height: 0;
}

.ot-card-photo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.55) 45%,
        #fff 100%
    );
    pointer-events: none;
    z-index: 1;
}

.ot-card-photo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
    margin: 0 !important;
    transition: transform 0.45s ease;
}

.ot-card:hover .ot-card-photo img {
    transform: scale(1.04);
}

.ot-card-body {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 14px 14px 12px;
    gap: 4px;
    background: #fff;
    box-sizing: border-box;
    margin-top: -36px;
    font-family: "Noto Sans Devanagari", "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
}

.ot-card-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
    width: 100%;
    margin: 0;
}

.ot-card-body h2 {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    margin: 0;
    color: #1c1c1c;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
}

html[lang="hi"] .ot-card-body h2,
html[lang="hi"] .ot-profile-intro h1 {
    font-family: var(--ot-font-hi-name);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.ot-card-role {
    margin: 0;
    display: inline-block;
    flex: 0 0 auto;
    color: var(--ot-red-dark);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: none;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(198, 40, 40, 0.06);
    border: 1px solid rgba(198, 40, 40, 0.18);
    white-space: nowrap;
}

.ot-card-exp {
    margin: 2px 0 0;
    color: #5a5a5a;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.ot-card-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 6px 0 10px;
    padding: 0;
}

.ot-card-tags li {
    margin: 0;
    padding: 2px 9px;
    border-radius: 4px;
    background: #f6f3f0;
    color: #4a4a4a;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.5;
}

.ot-card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 132px;
    padding: 7px 18px;
    border: 1.5px solid var(--ot-red);
    border-radius: 6px;
    background: transparent;
    color: var(--ot-red) !important;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ot-card-link::after {
    display: none;
}

.ot-card:hover .ot-card-link,
.ot-card-inner:focus .ot-card-link,
.ot-card-inner:focus-visible .ot-card-link,
.ot-card-link:active {
    background: var(--ot-red);
    color: #fff !important;
    border-color: var(--ot-red);
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.22);
    transform: translateY(-1px);
}

/* Listing: hero stats, CTA */
.ot-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 40px;
    list-style: none;
    margin: 28px auto 0;
    padding: 0;
}

.ot-stats li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 0;
}

.ot-stats strong {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.ot-stats span {
    font-size: 0.82rem;
    opacity: 0.88;
}

.ot-cta--list {
    max-width: 1056px;
    margin: 44px auto 0;
    box-sizing: border-box;
}

.ot-btn i {
    margin-right: 4px;
}

.footer-about-text {
    text-align: justify;
    line-height: 1.8;
}

.footer-read-more {
    color: var(--primary-red);
    font-weight: 600;
}

.icon-primary-red {
    color: var(--primary-red);
}

/* Bio page */
.ot-bio-wrap {
    background: var(--ot-bg);
    padding: 28px 0 64px;
}

.ot-breadcrumb {
    font-size: 0.9rem;
    color: var(--ot-muted);
    margin-bottom: 16px;
    clear: both;
}

.ot-breadcrumb a {
    color: var(--ot-red);
    text-decoration: none;
    font-weight: 600;
}

.ot-breadcrumb a:hover {
    text-decoration: underline;
}

.ot-breadcrumb span {
    margin: 0 8px;
    color: #aaa;
}

.ot-lang-switch {
    float: right;
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.ot-lang-switch a {
    color: var(--ot-red);
    font-weight: 700;
    text-decoration: none;
}

.ot-hero .ot-lang-switch a {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    color: #fff;
}

.ot-hero .ot-lang-switch a:hover,
.ot-hero .ot-lang-switch a:focus-visible {
    background: #fff;
    color: var(--ot-red-dark);
}

.ot-profile-card {
    background: #fff;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-card-radius);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.ot-profile-head {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
    align-items: stretch;
    background:
        linear-gradient(135deg, rgba(198, 40, 40, 0.06) 0%, transparent 55%),
        #fff;
    border-bottom: 1px solid var(--ot-border);
}

.ot-profile-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    background: linear-gradient(180deg, #faf7f5 0%, #f3eeea 100%);
    border-right: 1px solid var(--ot-border);
    box-sizing: border-box;
}

.ot-profile-photo img {
    width: 100% !important;
    height: auto !important;
    max-width: 180px !important;
    max-height: 220px !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.ot-profile-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 32px;
    text-align: left;
}

.ot-eyebrow {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ot-red);
}

.ot-profile-intro h1 {
    margin: 0 0 12px;
    font-size: clamp(1.55rem, 3vw, 2rem);
    color: var(--ot-ink);
    font-weight: 800;
    line-height: 1.2;
}

html[lang="hi"] .ot-profile-intro h1 {
    font-family: var(--ot-font-hi-name);
    font-weight: 700;
}

.ot-role-badge {
    display: inline-flex;
    align-self: flex-start;
    margin: 0 0 10px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(198, 40, 40, 0.08);
    border: 1px solid rgba(198, 40, 40, 0.22);
    color: var(--ot-red-dark);
    font-weight: 700;
    font-size: 0.88rem;
}

.ot-exp-highlight {
    margin: 0;
    color: #444;
    font-size: 1rem;
    font-weight: 600;
}

.ot-exp-num {
    color: var(--ot-ink);
}

.ot-facts {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 0;
    border-bottom: 1px solid var(--ot-border);
    background: #fcfcfc;
}

.ot-fact {
    padding: 18px 22px;
    border-right: 1px solid var(--ot-border);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ot-fact:last-child {
    border-right: none;
}

.ot-fact-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ot-muted);
}

.ot-fact-value {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ot-ink);
    line-height: 1.35;
}

.ot-fact-specs .ot-chips {
    justify-content: flex-start;
    margin-top: 2px;
}

.ot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ot-chips li {
    background: #fff5f5;
    color: var(--ot-red-dark);
    border: 1px solid #f0bcbc;
    border-radius: 6px;
    padding: 4px 11px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ot-profile-about {
    padding: 26px 32px 30px;
    text-align: left;
}

.ot-profile-about h2,
.ot-block h2 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    color: var(--ot-red);
    font-weight: 800;
}

.ot-profile-about p {
    margin: 0 0 12px;
    color: #444;
    text-align: justify;
    line-height: 1.75;
    font-size: 0.98rem;
}

.ot-profile-about p:last-child {
    margin-bottom: 0;
}

.ot-teach-list {
    margin: 0;
    padding: 0 !important;
    list-style: none !important;
}

.ot-teach-list li {
    position: relative;
    margin: 0 0 10px;
    padding: 10px 14px 10px 38px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    color: #333;
    line-height: 1.45;
    font-weight: 500;
}

.ot-teach-list li:last-child {
    margin-bottom: 0;
}

.ot-teach-list li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    border-radius: 50%;
    background: var(--ot-red);
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.12);
}

.ot-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ot-gallery-item {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f0ebe6;
    aspect-ratio: 4 / 3;
}

.ot-gallery-item img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.35s ease;
}

.ot-gallery-item:hover img {
    transform: scale(1.04);
}

.ot-block {
    background: #fff;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-card-radius);
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}

.ot-block h2 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    color: var(--ot-red);
}

.ot-block p {
    margin: 0 0 12px;
    color: #444;
    text-align: justify;
    line-height: 1.7;
}

.ot-block p:last-child {
    margin-bottom: 0;
}

.ot-block ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #444;
}

.ot-block ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.ot-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--ot-border);
    border-top: 4px solid var(--ot-red);
    border-radius: var(--ot-card-radius);
    padding: 22px 26px;
    align-items: center;
}

.ot-cta p {
    margin: 0;
    flex: 1 1 200px;
    color: #444;
    font-weight: 600;
}

.ot-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.92rem;
}

.ot-btn-primary {
    background: var(--ot-red);
    color: #fff;
}

.ot-btn-primary:hover {
    background: var(--ot-red-dark);
    color: #fff;
}

.ot-btn-ghost {
    background: #fff;
    color: var(--ot-red);
    border: 2px solid var(--ot-red);
}

.ot-btn-ghost:hover {
    background: #fff5f5;
    color: var(--ot-red-dark);
}

@media (max-width: 900px) {
    .ot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .ot-profile-head {
        grid-template-columns: 180px 1fr;
    }

    .ot-profile-photo {
        padding: 18px 14px;
    }

    .ot-profile-photo img {
        max-width: 140px !important;
        max-height: 180px !important;
    }

    .ot-profile-intro {
        padding: 20px 18px;
    }

    .ot-facts {
        grid-template-columns: 1fr 1fr;
    }

    .ot-fact-specs {
        grid-column: 1 / -1;
        border-right: none;
        border-top: 1px solid var(--ot-border);
    }

    .ot-profile-about {
        padding: 22px 20px;
    }

    .ot-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Site-wide mobile rules force p to 14-16px !important and shrink rem; keep card text proportional. */
@media (max-width: 768px) {
    .ot-card-body h2 {
        font-size: 18px;
    }

    .ot-card-role {
        font-size: 12px !important;
    }

    .ot-card-exp {
        font-size: 13px !important;
    }

    .ot-card-tags li {
        font-size: 12px;
    }

    .ot-card-link {
        font-size: 13px;
    }
}

@media (max-width: 560px) {
    .ot-grid {
        grid-template-columns: 1fr;
        max-width: 380px !important;
        margin: 0 auto;
        padding: 0;
        gap: 22px;
    }

    .ot-hero {
        padding: 40px 16px 32px;
    }

    .ot-stats {
        gap: 14px 24px;
        margin-top: 22px;
    }

    .ot-stats strong {
        font-size: 1.2rem;
    }

    /* Button spacing comes from the site-wide mobile [class*="btn"] margins. */
    .ot-cta--list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 32px;
        padding: 18px;
    }

    .ot-cta--list p {
        flex: none;
        margin: 0 !important;
        text-align: center;
    }

    .ot-cta--list .ot-btn {
        justify-content: center;
    }

    .ot-lang-switch {
        float: none;
        display: block;
        margin-bottom: 10px;
    }

    .ot-profile-head {
        grid-template-columns: 1fr;
    }

    .ot-profile-photo {
        border-right: none;
        border-bottom: 1px solid var(--ot-border);
        padding: 20px 16px;
    }

    .ot-profile-photo img {
        max-width: 160px !important;
        max-height: 200px !important;
    }

    .ot-profile-intro {
        padding: 18px 16px 20px;
        text-align: center;
        align-items: center;
    }

    .ot-role-badge {
        align-self: center;
    }

    .ot-facts {
        grid-template-columns: 1fr;
    }

    .ot-fact {
        border-right: none;
        border-bottom: 1px solid var(--ot-border);
        text-align: center;
        align-items: center;
    }

    .ot-fact:last-child,
    .ot-fact-specs {
        border-bottom: none;
        border-top: none;
    }

    .ot-fact-specs .ot-chips {
        justify-content: center;
    }

    .ot-profile-about {
        padding: 20px 16px 22px;
    }

    .ot-gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ot-card,
    .ot-card-photo img,
    .ot-card-link,
    .ot-gallery-item img {
        transition: none;
    }

    .ot-card:hover,
    .ot-card:hover .ot-card-photo img,
    .ot-card:hover .ot-card-link,
    .ot-gallery-item:hover img {
        transform: none;
    }
}
