/* =========================================================
   ADI YOGPEETH — COURSE WHY CHOOSE
   Page-scoped component
   ========================================================= */

.ayp-course-why {
    --ayp-cw-forest: #173F35;
    --ayp-cw-deep: #102F2A;
    --ayp-cw-ivory: #F8F4EA;
    --ayp-cw-white: #FFFFFF;
    --ayp-cw-gold: #B8945A;
    --ayp-cw-gold-soft: #D9C49A;
    --ayp-cw-text: #26332F;
    --ayp-cw-muted: #68736D;
    --ayp-cw-line: rgba(23, 63, 53, .16);

    position: relative;
    overflow: hidden;
    /*
     * BACKGROUND ONLY — V2
     * The section content/layout/cards/structure remain unchanged.
     * Creates a soft editorial paper field with organic sage edges,
     * subtle gold contour lines and a quiet botanical atmosphere.
     */
    background:
        /* soft warm paper light */
        radial-gradient(
            ellipse 42% 55% at 50% 48%,
            rgba(255, 255, 255, .72) 0%,
            rgba(250, 247, 239, .42) 48%,
            transparent 78%
        ),
        /* upper-left sage organic wash */
        radial-gradient(
            ellipse 38% 32% at -2% 4%,
            rgba(126, 151, 130, .24) 0%,
            rgba(126, 151, 130, .11) 42%,
            transparent 72%
        ),
        /* lower-right sage organic wash */
        radial-gradient(
            ellipse 42% 35% at 102% 94%,
            rgba(126, 151, 130, .20) 0%,
            rgba(126, 151, 130, .08) 45%,
            transparent 74%
        ),
        /* quiet gold contour */
        radial-gradient(
            ellipse 78% 42% at 50% 0%,
            transparent 66%,
            rgba(184, 148, 90, .075) 66.3%,
            transparent 66.8%
        ),
        /* quiet green contour */
        radial-gradient(
            ellipse 92% 52% at 50% 100%,
            transparent 70%,
            rgba(23, 63, 53, .055) 70.3%,
            transparent 70.8%
        ),
        /* very subtle paper grain */
        repeating-radial-gradient(
            circle at 30% 25%,
            rgba(38, 51, 47, .018) 0,
            rgba(38, 51, 47, .018) 1px,
            transparent 1px,
            transparent 7px
        ),
        var(--ayp-cw-ivory);
    color: var(--ayp-cw-text);
    padding: clamp(76px, 9vw, 128px) 0 clamp(80px, 10vw, 136px);
}

.ayp-course-why *,
.ayp-course-why *::before,
.ayp-course-why *::after {
    box-sizing: border-box;
}

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

.ayp-course-why__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
    gap: clamp(44px, 7vw, 104px);
    align-items: end;
    margin-bottom: clamp(42px, 5vw, 68px);
}

.ayp-course-why__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    color: #7D5A28;
    font-family: var(--font-body, "PT Serif", Georgia, serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .23em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ayp-course-why__eyebrow span {
    width: 25px;
    height: 1px;
    background: var(--ayp-cw-gold);
    flex: 0 0 auto;
}

.ayp-course-why__title {
    max-width: 760px;
    margin: 0;
    color: var(--ayp-cw-forest);
    font-family: var(--font-display, "Playfair Display", Georgia, serif);
    font-size: clamp(42px, 5.2vw, 76px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: .98;
}

.ayp-course-why__intro {
    align-self: center;
    max-width: 620px;
}

.ayp-course-why__intro p {
    margin: 0;
    color: #4E5E58;
    font-family: var(--font-body, "PT Serif", Georgia, serif);
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.75;
}

/* =========================================================
   TOP CONTENT CARDS
   ========================================================= */

.ayp-course-why__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: clamp(42px, 5vw, 64px);
}

.ayp-course-why__card {
    position: relative;
    min-height: 300px;
    padding: clamp(28px, 3vw, 38px);
    overflow: hidden;
    border: 1px solid rgba(23, 63, 53, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 8px 30px rgba(31, 48, 43, .045);
    transition:
        transform 240ms ease,
        box-shadow 240ms ease,
        border-color 240ms ease;
}

.ayp-course-why__card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -115%;
    width: 65%;
    height: 100%;
    transform: skewX(-18deg);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .5),
        transparent
    );
    pointer-events: none;
}

.ayp-course-why__card:hover {
    transform: translateY(-7px);
    border-color: rgba(184, 148, 90, .48);
    box-shadow: 0 20px 46px rgba(31, 48, 43, .11);
}

.ayp-course-why__card:hover::after {
    animation: aypCourseWhyFlash 700ms ease both;
}

@keyframes aypCourseWhyFlash {
    from { left: -115%; }
    to { left: 135%; }
}

.ayp-course-why__card-number {
    display: block;
    margin-bottom: 48px;
    color: var(--ayp-cw-gold);
    font-family: var(--font-display, "Playfair Display", Georgia, serif);
    font-size: 22px;
    line-height: 1;
}

.ayp-course-why__card h3 {
    max-width: 310px;
    margin: 0;
    color: var(--ayp-cw-forest);
    font-family: var(--font-display, "Playfair Display", Georgia, serif);
    font-size: clamp(24px, 2vw, 30px);
    font-weight: 500;
    line-height: 1.08;
}

.ayp-course-why__card-rule {
    display: block;
    width: 34px;
    height: 1px;
    margin: 18px 0 16px;
    background: var(--ayp-cw-gold);
}

.ayp-course-why__card p {
    max-width: 390px;
    margin: 0;
    color: #55635D;
    font-family: var(--font-body, "PT Serif", Georgia, serif);
    font-size: 16px;
    line-height: 1.68;
}

/* =========================================================
   STRUCTURE — PREMIUM HOUR BREAKDOWN
   ========================================================= */

.ayp-course-why__structure {
    position: relative;
    margin-bottom: clamp(70px, 8vw, 108px);
    padding: clamp(34px, 4.5vw, 58px);
    overflow: hidden;
    border: 1px solid rgba(216, 181, 108, .28);
    border-radius: 22px;
    background: var(--ayp-cw-deep);
    color: var(--ayp-cw-white);
    box-shadow: 0 24px 70px rgba(16, 47, 42, .13);
}

.ayp-course-why__structure::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 92% 8%, rgba(216, 181, 108, .12), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,.025), transparent 48%);
}

.ayp-course-why__structure-top,
.ayp-course-why__structure-bar,
.ayp-course-why__structure-grid {
    position: relative;
    z-index: 1;
}

.ayp-course-why__structure-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.ayp-course-why__structure-top h3 {
    max-width: 720px;
    margin: 0;
    color: var(--ayp-cw-white);
    font-family: var(--font-display, "Playfair Display", Georgia, serif);
    font-size: clamp(30px, 3.25vw, 46px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -.025em;
}

.ayp-course-why__structure-top p {
    max-width: 330px;
    margin: 0;
    color: rgba(255,255,255,.68);
    font-family: var(--font-body, "PT Serif", Georgia, serif);
    font-size: 15px;
    line-height: 1.55;
    text-align: right;
}

.ayp-course-why__structure-bar {
    display: flex;
    gap: 3px;
    height: 12px;
    margin-bottom: 34px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
}

.ayp-course-why__structure-bar span {
    flex: 0 0 var(--ayp-structure-share, 25%);
    min-width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #D8B56C, #E8CC91);
    transition: filter .25s ease, transform .25s ease;
}

.ayp-course-why__structure-bar span:nth-child(2) { background: linear-gradient(90deg, #A9C6B8, #C7D8CE); }
.ayp-course-why__structure-bar span:nth-child(3) { background: linear-gradient(90deg, #F0E9DA, #FFFDF8); }
.ayp-course-why__structure-bar span:nth-child(4) { background: linear-gradient(90deg, #DCA878, #EBC09D); }

.ayp-course-why__structure-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.ayp-course-why__structure-item {
    min-width: 0;
    padding: 0 clamp(18px, 2.2vw, 30px);
    border-left: 1px solid rgba(255,255,255,.15);
}

.ayp-course-why__structure-item:first-child {
    padding-left: 0;
    border-left: 0;
}

.ayp-course-why__structure-item:last-child {
    padding-right: 0;
}

.ayp-course-why__structure-hours {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 12px;
}

.ayp-course-why__structure-hours strong {
    color: var(--ayp-cw-gold);
    font-family: var(--font-display, "Playfair Display", Georgia, serif);
    font-size: clamp(40px, 4.2vw, 62px);
    font-weight: 500;
    line-height: .9;
    letter-spacing: -.035em;
}

.ayp-course-why__structure-hours span {
    color: rgba(255,255,255,.55);
    font-family: var(--font-body, "PT Serif", Georgia, serif);
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ayp-course-why__structure-item h4 {
    margin: 0 0 9px;
    color: var(--ayp-cw-white);
    font-family: var(--font-body, "PT Serif", Georgia, serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
}

.ayp-course-why__structure-item p {
    margin: 0;
    color: rgba(255,255,255,.70);
    font-family: var(--font-body, "PT Serif", Georgia, serif);
    font-size: 14px;
    line-height: 1.55;
}

/* =========================================================
   HOW TO CHOOSE
   ========================================================= */

.ayp-course-why__choice {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(50px, 8vw, 110px);
    align-items: start;
    margin-bottom: 56px;
}

.ayp-course-why__choice-left h3 {
    max-width: 560px;
    margin: 0 0 18px;
    color: var(--ayp-cw-forest);
    font-family: var(--font-display, "Playfair Display", Georgia, serif);
    font-size: clamp(32px, 3.5vw, 50px);
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1.02;
}

.ayp-course-why__choice-eyebrow {
    margin: 0 0 14px;
    color: #7D5A28;
    font-family: var(--font-body, "PT Serif", Georgia, serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.ayp-course-why__choice-intro {
    max-width: 540px;
    margin: 0;
    color: #56645E;
    font-family: var(--font-body, "PT Serif", Georgia, serif);
    font-size: 16px;
    line-height: 1.72;
}

.ayp-course-why__after {
    max-width: 540px;
    margin-top: 34px;
    padding: 22px 24px;
    border: 1px solid var(--ayp-cw-gold);
    border-radius: 10px;
    background: rgba(255,255,255,.28);
}

.ayp-course-why__after span {
    display: block;
    margin-bottom: 9px;
    color: #7D5A28;
    font-family: var(--font-body, "PT Serif", Georgia, serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.ayp-course-why__after p {
    margin: 0;
    color: var(--ayp-cw-text);
    font-family: var(--font-body, "PT Serif", Georgia, serif);
    font-size: 15px;
    line-height: 1.65;
}

.ayp-course-why__points {
    border-top: 1px solid var(--ayp-cw-line);
}

.ayp-course-why__point {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 16px;
    padding: 17px 0;
    border-bottom: 1px solid var(--ayp-cw-line);
}

.ayp-course-why__point-number {
    color: #9A7138;
    font-family: var(--font-display, "Playfair Display", Georgia, serif);
    font-size: 15px;
    font-weight: 600;
}

.ayp-course-why__point p {
    margin: 0;
    color: #42524C;
    font-family: var(--font-body, "PT Serif", Georgia, serif);
    font-size: 15px;
    line-height: 1.58;
}

.ayp-course-why__point strong {
    color: var(--ayp-cw-forest);
    font-weight: 700;
}

/* =========================================================
   CTA
   ========================================================= */

.ayp-course-why__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 10px;
}

.ayp-course-why__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 52px;
    padding: 0 25px;
    border: 1px solid var(--ayp-cw-forest);
    border-radius: 999px;
    background: var(--ayp-cw-forest);
    color: #fff;
    font-family: var(--font-body, "PT Serif", Georgia, serif);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.ayp-course-why__button span {
    font-size: 18px;
    line-height: 1;
    transition: transform 180ms ease;
}

.ayp-course-why__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(23,63,53,.16);
}

.ayp-course-why__button:hover span {
    transform: translateX(4px);
}

.ayp-course-why__cta p {
    margin: 0;
    color: var(--ayp-cw-muted);
    font-family: var(--font-body, "PT Serif", Georgia, serif);
    font-size: 14px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
    .ayp-course-why__header {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .ayp-course-why__intro {
        max-width: 760px;
    }

    .ayp-course-why__cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ayp-course-why__card {
        min-height: 330px;
        padding: 26px;
    }

    .ayp-course-why__structure-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 30px;
    }
}

@media (max-width: 820px) {
    .ayp-course-why {
        padding-top: 70px;
        padding-bottom: 76px;
    }

    .ayp-course-why__cards {
        grid-template-columns: 1fr;
    }

    .ayp-course-why__card {
        min-height: auto;
    }

    .ayp-course-why__card-number {
        margin-bottom: 32px;
    }

    .ayp-course-why__structure-top {
        display: block;
    }

    .ayp-course-why__structure-top p {
        margin-top: 8px;
        text-align: left;
    }

    .ayp-course-why__structure-bar {
        height: 9px;
    }

    .ayp-course-why__structure-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 30px;
    }

    .ayp-course-why__structure-item:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }

    .ayp-course-why__choice {
        grid-template-columns: 1fr;
        gap: 42px;
    }
}

@media (max-width: 560px) {
    .ayp-course-why {
        padding-top: 58px;
        padding-bottom: 64px;
    }

    .ayp-course-why__container {
        width: calc(100% - 34px);
    }

    .ayp-course-why__title {
        font-size: clamp(38px, 12vw, 54px);
    }

    .ayp-course-why__intro p {
        font-size: 16px;
    }

    .ayp-course-why__card {
        padding: 25px 22px;
        border-radius: 12px;
    }

    .ayp-course-why__structure {
        padding: 25px 20px;
        border-radius: 13px;
    }

    .ayp-course-why__structure-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .ayp-course-why__structure-item,
    .ayp-course-why__structure-item:nth-child(3) {
        padding: 0;
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.14);
        padding-top: 24px;
    }

    .ayp-course-why__structure-item:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .ayp-course-why__structure-bar {
        height: 8px;
        margin-bottom: 24px;
    }

    .ayp-course-why__choice-left h3 {
        font-size: 34px;
    }

    .ayp-course-why__point {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
    }

    .ayp-course-why__cta {
        justify-content: flex-start;
    }

    .ayp-course-why__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ayp-course-why__card,
    .ayp-course-why__button,
    .ayp-course-why__button span {
        transition: none;
    }

    .ayp-course-why__card::after {
        display: none;
    }
}
