/* =========================================================
   ADI YOGPEETH — ASHRAM LIFE
   Exact page-specific stylesheet for ashram-life.php
   Typography: Playfair Display + PT Serif
   ========================================================= */

.ayp-ashram-page {
    --ashram-forest: #173F35;
    --ashram-deep: #102F2A;
    --ashram-ivory: #F8F4EA;
    --ashram-white: #FFFFFF;
    --ashram-sage: #EEF1E8;
    --ashram-gold: #B8945A;
    --ashram-terracotta: #8C4936;
    --ashram-text: #26332F;
    --ashram-muted: #68736D;
    --ashram-border: rgba(23, 63, 53, .14);

    background: var(--ashram-ivory);
    color: var(--ashram-text);
    overflow: hidden;
}

.ayp-ashram-page *,
.ayp-ashram-page *::before,
.ayp-ashram-page *::after {
    box-sizing: border-box;
}

.ayp-ashram-container {
    width: 92%;
    max-width: 1440px;
    margin: 0 auto;
}

/* HERO */
.ayp-ashram-hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: flex-end;
    background:
        url("/assets/images/ashram/ashram-hero.jpg")
        center center / cover no-repeat;
}

.ayp-ashram-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(16,47,42,.64) 0%, rgba(16,47,42,.28) 55%, rgba(16,47,42,.10) 100%),
        linear-gradient(0deg, rgba(16,47,42,.78) 0%, rgba(16,47,42,.10) 60%);
}

.ayp-ashram-hero__inner {
    position: relative;
    z-index: 1;
    padding: 150px 0 92px;
}

.ayp-ashram-hero__content {
    max-width: 820px;
}

.ayp-ashram-eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 18px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ashram-terracotta);
}

.ayp-ashram-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--ashram-gold);
}

.ayp-ashram-eyebrow--light {
    color: #E1CF9E;
}

.ayp-ashram-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(52px, 6.3vw, 82px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.035em;
    color: #fff;
}

.ayp-ashram-hero h1 em,
.ayp-ashram-feature h2 em,
.ayp-ashram-community h2 em,
.ayp-ashram-rishikesh h2 em,
.ayp-ashram-cta h2 em,
.ayp-ashram-intro h2 em {
    font-style: italic;
    font-weight: 400;
}

.ayp-ashram-hero__text {
    max-width: 650px;
    margin: 26px 0 0;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.75;
    color: rgba(255,255,255,.84);
}

.ayp-ashram-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 34px;
}

.ayp-ashram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 50px;
    padding: 13px 23px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.ayp-ashram-btn:hover {
    transform: translateY(-2px);
}

.ayp-ashram-btn--light {
    background: #fff;
    color: var(--ashram-forest);
}

.ayp-ashram-hero__link {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.5);
    padding-bottom: 4px;
}

/* INTRO */
.ayp-ashram-intro {
    padding: 115px 0;
    background: var(--ashram-ivory);
}

.ayp-ashram-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(60px, 10vw, 150px);
    align-items: start;
}

.ayp-ashram-intro h2,
.ayp-ashram-section-heading h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(38px, 4vw, 56px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -.025em;
    color: var(--ashram-forest);
}

.ayp-ashram-intro__copy {
    max-width: 690px;
}

.ayp-ashram-lead {
    margin: 0 0 20px !important;
    font-family: var(--font-display) !important;
    font-size: 25px !important;
    line-height: 1.4 !important;
    color: var(--ashram-forest) !important;
}

.ayp-ashram-intro__copy p:not(.ayp-ashram-lead) {
    margin: 0 0 20px;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;
    color: var(--ashram-muted);
}

/* PRINCIPLES */
.ayp-ashram-principles-section {
    padding: 0 0 105px;
    background: var(--ashram-ivory);
}

.ayp-ashram-principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--ashram-border);
    border-bottom: 1px solid var(--ashram-border);
}

.ayp-ashram-principle {
    padding: 38px 34px;
}

.ayp-ashram-principle + .ayp-ashram-principle {
    border-left: 1px solid var(--ashram-border);
}

.ayp-ashram-principle__number {
    display: block;
    margin-bottom: 22px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .13em;
    color: var(--ashram-gold);
}

.ayp-ashram-principle h3 {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--ashram-forest);
}

.ayp-ashram-principle p {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--ashram-muted);
}

/* SECTION HEADING */
.ayp-ashram-schedule-section {
    padding: 115px 0;
    background: #fff;
}

.ayp-ashram-section-heading {
    max-width: 720px;
    margin-bottom: 62px;
}

.ayp-ashram-section-heading > p:last-child {
    max-width: 650px;
    margin: 20px 0 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ashram-muted);
}

/* SCHEDULE */
.ayp-ashram-schedule {
    max-width: 1050px;
    margin: 0 auto;
}

.ayp-ashram-schedule__item {
    display: grid;
    grid-template-columns: 85px 46px minmax(0, 1fr);
    gap: 20px;
    min-height: 100px;
}

.ayp-ashram-schedule__item time {
    padding-top: 5px;
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--ashram-forest);
    text-align: right;
}

.ayp-ashram-schedule__line {
    position: relative;
    display: flex;
    justify-content: center;
}

.ayp-ashram-schedule__line::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: -4px;
    width: 1px;
    background: var(--ashram-border);
}

.ayp-ashram-schedule__line span {
    position: relative;
    z-index: 1;
    width: 13px;
    height: 13px;
    margin-top: 5px;
    border: 1px solid var(--ashram-gold);
    border-radius: 50%;
    background: #fff;
}

.ayp-ashram-schedule__item:last-child .ayp-ashram-schedule__line::before {
    display: none;
}

.ayp-ashram-schedule__item h3 {
    margin: 0 0 7px;
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--ashram-forest);
}

.ayp-ashram-schedule__item p {
    max-width: 650px;
    margin: 0;
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--ashram-muted);
}

/* RHYTHM */
.ayp-ashram-rhythm {
    background: var(--ashram-deep);
    color: #fff;
}

.ayp-ashram-rhythm__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid rgba(255,255,255,.13);
    border-right: 1px solid rgba(255,255,255,.13);
}

.ayp-ashram-rhythm__grid > div {
    min-height: 150px;
    padding: 34px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.ayp-ashram-rhythm__grid > div + div {
    border-left: 1px solid rgba(255,255,255,.13);
}

.ayp-ashram-rhythm strong {
    font-family: var(--font-display);
    font-size: 29px;
    font-weight: 500;
    color: #E1C892;
}

.ayp-ashram-rhythm span {
    margin-top: 6px;
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255,255,255,.65);
}

/* FEATURE */
.ayp-ashram-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.ayp-ashram-feature--ivory {
    background: var(--ashram-ivory);
}

.ayp-ashram-feature--sage {
    background: var(--ashram-sage);
}

.ayp-ashram-feature--reverse .ayp-ashram-feature__image {
    order: 2;
}

.ayp-ashram-feature--reverse .ayp-ashram-feature__content {
    order: 1;
}

.ayp-ashram-feature__image {
    min-height: 640px;
}

.ayp-ashram-feature__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 640px;
    object-fit: cover;
}

.ayp-ashram-feature__content {
    align-self: center;
    padding: clamp(60px, 8vw, 115px);
}

.ayp-ashram-feature__content h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -.025em;
    color: var(--ashram-forest);
}

.ayp-ashram-feature__content > p:not(.ayp-ashram-eyebrow) {
    max-width: 600px;
    margin: 23px 0 0;
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--ashram-muted);
}

.ayp-ashram-feature__content ul {
    margin: 27px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ashram-border);
}

.ayp-ashram-feature__content li {
    position: relative;
    padding: 13px 0 13px 23px;
    border-bottom: 1px solid var(--ashram-border);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ashram-text);
}

.ayp-ashram-feature__content li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 20px;
    width: 6px;
    height: 6px;
    border: 1px solid var(--ashram-gold);
    transform: rotate(45deg);
}

.ayp-ashram-text-link {
    display: inline-flex;
    gap: 12px;
    margin-top: 28px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(23,63,53,.35);
    color: var(--ashram-forest);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
}

/* COMMUNITY */
.ayp-ashram-community {
    padding: 125px 0;
    background:
        linear-gradient(90deg, rgba(16,47,42,.96), rgba(16,47,42,.79)),
        url("/assets/images/ashram/common-space.jpg")
        center / cover no-repeat;
}

.ayp-ashram-community__grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: clamp(60px, 10vw, 150px);
    align-items: center;
}

.ayp-ashram-community h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(40px, 4.5vw, 60px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.03em;
    color: #fff;
}

.ayp-ashram-community__copy {
    max-width: 690px;
}

.ayp-ashram-community__copy p {
    margin: 0 0 21px;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255,255,255,.76);
}

.ayp-ashram-community__copy .ayp-ashram-lead {
    color: #fff !important;
}

/* RISHIKESH */
.ayp-ashram-rishikesh {
    padding: 115px 0;
    background: var(--ashram-ivory);
}

.ayp-ashram-rishikesh__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(55px, 8vw, 120px);
    align-items: center;
}

.ayp-ashram-rishikesh__image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.ayp-ashram-rishikesh__content {
    max-width: 600px;
}

.ayp-ashram-rishikesh h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 500;
    line-height: 1.04;
    color: var(--ashram-forest);
}

.ayp-ashram-rishikesh__content > p:not(.ayp-ashram-eyebrow) {
    margin: 23px 0 0;
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--ashram-muted);
}

/* QUOTE */
.ayp-ashram-quote {
    padding: 125px 20px;
    background: var(--ashram-sage);
    text-align: center;
}

.ayp-ashram-quote__mark {
    display: block;
    margin-bottom: 18px;
    font-family: var(--font-display);
    font-size: 76px;
    line-height: .55;
    color: var(--ashram-gold);
}

.ayp-ashram-quote blockquote {
    max-width: 900px;
    margin: 0 auto;
    font-family: var(--font-display);
    font-size: clamp(31px, 3.5vw, 49px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -.025em;
    color: var(--ashram-forest);
}

.ayp-ashram-quote p {
    margin: 25px 0 0;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .15em;
    color: var(--ashram-muted);
}

/* CTA */
.ayp-ashram-cta {
    padding: 105px 0;
    background: var(--ashram-forest);
}

.ayp-ashram-cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 50px;
    align-items: center;
}

.ayp-ashram-cta h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(40px, 4.5vw, 60px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.03em;
    color: #fff;
}

.ayp-ashram-cta h2 em {
    color: #E0CA98;
}

.ayp-ashram-cta__inner > div > p:last-child {
    max-width: 650px;
    margin: 20px 0 0;
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.75;
    color: rgba(255,255,255,.72);
}

/* TABLET */
@media (max-width: 1000px) {
    .ayp-ashram-hero {
        min-height: 680px;
    }

    .ayp-ashram-intro__grid,
    .ayp-ashram-community__grid {
        gap: 60px;
    }

    .ayp-ashram-feature__content {
        padding: 60px 7%;
    }

    .ayp-ashram-feature__image,
    .ayp-ashram-feature__image img {
        min-height: 520px;
    }

    .ayp-ashram-cta__inner {
        grid-template-columns: 1fr;
    }
}

/* MOBILE */
@media (max-width: 700px) {
    .ayp-ashram-container {
        width: 90%;
    }

    .ayp-ashram-hero {
        min-height: 650px;
        background-position: 58% center;
    }

    .ayp-ashram-hero__inner {
        padding: 100px 0 55px;
    }

    .ayp-ashram-hero h1 {
        font-size: clamp(44px, 12vw, 60px);
    }

    .ayp-ashram-hero__text {
        font-size: 15.5px;
        line-height: 1.7;
    }

    .ayp-ashram-hero__actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .ayp-ashram-intro,
    .ayp-ashram-schedule-section,
    .ayp-ashram-rishikesh {
        padding: 75px 0;
    }

    .ayp-ashram-intro__grid,
    .ayp-ashram-community__grid,
    .ayp-ashram-rishikesh__grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .ayp-ashram-intro h2,
    .ayp-ashram-section-heading h2,
    .ayp-ashram-feature__content h2,
    .ayp-ashram-rishikesh h2 {
        font-size: 36px;
    }

    .ayp-ashram-intro__copy p:not(.ayp-ashram-lead),
    .ayp-ashram-community__copy p,
    .ayp-ashram-feature__content > p:not(.ayp-ashram-eyebrow),
    .ayp-ashram-rishikesh__content > p:not(.ayp-ashram-eyebrow) {
        font-size: 15.5px;
        line-height: 1.75;
    }

    .ayp-ashram-lead {
        font-size: 22px !important;
    }

    .ayp-ashram-principles-section {
        padding-bottom: 75px;
    }

    .ayp-ashram-principles {
        grid-template-columns: 1fr;
    }

    .ayp-ashram-principle {
        padding: 29px 0;
    }

    .ayp-ashram-principle + .ayp-ashram-principle {
        border-left: 0;
        border-top: 1px solid var(--ashram-border);
    }

    .ayp-ashram-schedule__item {
        grid-template-columns: 54px 30px minmax(0, 1fr);
        gap: 9px;
    }

    .ayp-ashram-schedule__item time {
        font-size: 16px;
    }

    .ayp-ashram-schedule__item h3 {
        font-size: 21px;
    }

    .ayp-ashram-schedule__item p {
        font-size: 14.5px;
    }

    .ayp-ashram-rhythm__grid {
        grid-template-columns: 1fr 1fr;
    }

    .ayp-ashram-rhythm__grid > div {
        min-height: 125px;
        padding: 25px 12px;
    }

    .ayp-ashram-rhythm__grid > div:nth-child(3) {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.13);
    }

    .ayp-ashram-rhythm__grid > div:nth-child(4) {
        border-top: 1px solid rgba(255,255,255,.13);
    }

    .ayp-ashram-rhythm strong {
        font-size: 25px;
    }

    .ayp-ashram-rhythm span {
        font-size: 11px;
    }

    .ayp-ashram-feature {
        grid-template-columns: 1fr;
    }

    .ayp-ashram-feature--reverse .ayp-ashram-feature__image,
    .ayp-ashram-feature--reverse .ayp-ashram-feature__content {
        order: initial;
    }

    .ayp-ashram-feature__image,
    .ayp-ashram-feature__image img {
        min-height: 340px;
    }

    .ayp-ashram-feature__content {
        padding: 65px 7%;
    }

    .ayp-ashram-community {
        padding: 78px 0;
    }

    .ayp-ashram-community h2 {
        font-size: 39px;
    }

    .ayp-ashram-rishikesh__image img {
        aspect-ratio: 1 / .82;
    }

    .ayp-ashram-quote {
        padding: 82px 18px;
    }

    .ayp-ashram-quote blockquote {
        font-size: 30px;
    }

    .ayp-ashram-cta {
        padding: 75px 0;
    }

    .ayp-ashram-cta h2 {
        font-size: 39px;
    }
}

@media (max-width: 380px) {
    .ayp-ashram-hero h1 {
        font-size: 42px;
    }

    .ayp-ashram-schedule__item {
        grid-template-columns: 47px 27px minmax(0, 1fr);
    }

    .ayp-ashram-schedule__item h3 {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ayp-ashram-page *,
    .ayp-ashram-page *::before,
    .ayp-ashram-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
