/**
 * NeoYug courses catalogue ("The Switch"). All rules are scoped under .nyc so the
 * page can sit inside any theme without leaking styles. Card prices hydrate via
 * the shared FX script; times render server-side in IST.
 */

.nyc{
  --nyc-purple:#8D22C3;--nyc-purple-lt:#A93FDD;--nyc-deep:#261A48;
  --nyc-orange:#FF551D;--nyc-peach:#FFD4C6;--nyc-cream:#FAF9F6;
  --nyc-navy:#15192C;--nyc-grey:#B0B0B0;--nyc-line:rgba(38,26,72,.10);
  /* Content (cards/affiliate) max-width. The hero ignores this and goes edge to edge. */
  --nyc-content-max:1500px;
  /* Full-bleed root: break out of the host Elementor/theme column to the viewport
     so the hero can run edge to edge. Content is re-constrained below. */
  width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);
  padding:0;overflow-x:hidden;
  font-family:inherit;color:var(--nyc-navy);line-height:1.55;
}
.nyc *{box-sizing:border-box}
/* Re-constrain readable content; the hero stays full width. */
.nyc-content,.nyc-affiliate,.nyc-guides,.nyc-letters{max-width:var(--nyc-content-max);margin-left:auto;margin-right:auto;padding-left:clamp(20px,4vw,48px);padding-right:clamp(20px,4vw,48px)}
.nyc h1,.nyc h2,.nyc h3{font-family:inherit;margin:0}

/* hero — full-bleed: flush to the top and both side edges */
.nyc-hero{
  position:relative;overflow:hidden;text-align:center;border-radius:0;margin-top:0;
  padding:clamp(64px,8vw,108px) 28px clamp(72px,8vw,96px);
  background:linear-gradient(168deg,#261A48 0%,#3a1c5e 26%,#7d1fb4 50%,#c93f6e 72%,#E96F46 92%);
}
.nyc-hero::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(115deg,rgba(255,255,255,.10) 0%,rgba(255,255,255,0) 40%,rgba(255,255,255,0) 60%,rgba(255,255,255,.08) 100%);mix-blend-mode:soft-light}
.nyc-hero-in{position:relative;z-index:1;max-width:760px;margin:0 auto}
.nyc-eyebrow{font-weight:700;text-transform:uppercase;letter-spacing:.26em;font-size:12px;color:var(--nyc-peach);margin:0 0 16px}
.nyc-hero h1{font-weight:700;font-size:clamp(44px,7vw,78px);line-height:1;margin:0 0 22px;color:#fff;letter-spacing:.5px}
.nyc-sub{font-weight:300;font-size:clamp(15px,2.2vw,18px);color:rgba(255,255,255,.88);margin:8px auto 34px;max-width:600px}
.nyc-seg{display:inline-flex;background:#fff;border:2px solid var(--nyc-purple);border-radius:40px;padding:6px;box-shadow:0 14px 40px -16px rgba(141,34,195,.7)}
.nyc-seg-btn{display:inline-flex;align-items:center;justify-content:center;border:0;cursor:pointer;font-family:inherit;font-weight:600;font-size:16px;line-height:1;text-transform:uppercase;letter-spacing:.05em;color:var(--nyc-purple);background:transparent;padding:12px 30px;border-radius:40px;transition:.25s;white-space:nowrap;text-decoration:none}
.nyc-seg-btn.nyc-on{background:var(--nyc-purple);color:#fff}
/* Events pill is an anchor to another page, not an in-page tab. It never carries
   the active state on the catalog, so it stays in the resting (outline) look and
   just lifts on hover to read as tappable. */
.nyc-seg-link{color:var(--nyc-purple)}
.nyc-seg-link:hover{background:rgba(141,34,195,.08)}
@media(max-width:680px){
  /* More breathing room top and bottom in the hero on phones (the clamp floors
     at 64/72; lift them so the band doesn't feel cramped). Sides stay at 28px. */
  .nyc-hero{padding-top:92px;padding-bottom:96px}
  /* Keep the Programs / Sadhanas / Events toggle on one line per label and let the
     three thirds share width evenly so no pill overflows on small phones. */
  .nyc-seg{max-width:100%;width:100%}
  .nyc-seg-btn{flex:1 1 0;padding:12px 8px;font-size:14px}
}

/* mode swap */
.nyc-only-programs,.nyc-only-sadhana{display:inline}
.nyc[data-mode="programs"] .nyc-only-sadhana{display:none}
.nyc[data-mode="sadhana"] .nyc-only-programs{display:none}
/* two banners — show only the active mode's hero */
.nyc[data-mode="programs"] .nyc-hero--sadhana{display:none}
.nyc[data-mode="sadhana"] .nyc-hero--programs{display:none}
/* darkening scrim so copy stays readable over an image background */
.nyc-hero--img::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(8,5,18,.42) 0%,rgba(8,5,18,.60) 100%)}
.nyc-offer{display:none;padding:48px 0 8px}
.nyc[data-mode="programs"] .nyc-offer-programs{display:block;animation:nyc-fade .22s cubic-bezier(.4,0,.2,1)}
.nyc[data-mode="sadhana"] .nyc-offer-sadhana{display:block;animation:nyc-fade .22s cubic-bezier(.4,0,.2,1)}
@keyframes nyc-fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* section heads + chips */
.nyc-sec-title{font-weight:600;font-size:clamp(26px,4vw,38px);color:var(--nyc-grey);margin:0 0 6px;letter-spacing:.3px}
.nyc-sec-sub{font-weight:300;font-size:15px;color:var(--nyc-navy);opacity:.6;margin:0 0 26px}
.nyc-chips{display:flex;gap:10px;flex-wrap:nowrap;margin:0 0 28px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;scroll-padding-left:2px}
.nyc-chips::-webkit-scrollbar{display:none}
.nyc-chip{flex:0 0 auto;border:1px solid var(--nyc-line);background:#fff;cursor:pointer;font-family:inherit;font-weight:500;font-size:13.5px;color:var(--nyc-navy);padding:9px 20px;border-radius:40px;transition:.2s;white-space:nowrap}
.nyc-chip:hover{border-color:var(--nyc-purple)}
.nyc-chip.nyc-on{background:var(--nyc-purple);color:#fff;border-color:var(--nyc-purple)}
.nyc-group-title{font-family:inherit;font-weight:600;font-size:20px;color:var(--nyc-purple);margin:44px 0 22px;display:flex;align-items:center;gap:10px}
.nyc-group-title::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--nyc-purple)}
.nyc-sgroup.nyc-hide{display:none}
.nyc-empty{grid-column:1/-1;color:var(--nyc-grey);font-size:14px;padding:8px 0}

/* realm image tiles (programs filter) — homepage style, photo + dark overlay.
   Fixed tile size matching the homepage ccs tiles (280x80), left-aligned so a
   partial last row packs to the left. */
.nyc-realms{display:flex;flex-wrap:wrap;justify-content:center;gap:24px;margin:0 0 30px}
.nyc-realm{flex:0 0 280px;width:280px;height:80px;position:relative;display:flex;align-items:center;justify-content:center;border:0;border-radius:16px;overflow:hidden;cursor:pointer;background-size:cover;background-position:center;isolation:isolate;transition:transform .25s,box-shadow .25s}
@media(max-width:620px){.nyc-realms{gap:12px}.nyc-realm{flex:1 1 calc(50% - 6px);width:auto;height:54px}}
@media(max-width:400px){.nyc-realm{flex:1 1 calc(50% - 6px);height:52px}}
.nyc-realm::before{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(180deg,rgba(12,8,24,.32) 0%,rgba(12,8,24,.62) 100%)}
.nyc-realm:hover{transform:translateY(-3px);box-shadow:0 16px 30px -16px rgba(20,12,40,.5)}
.nyc-realm-label{position:relative;z-index:1;font-family:inherit;font-weight:700;font-size:16px;letter-spacing:1.5px;text-transform:uppercase;color:#fff;text-align:center;text-shadow:0 2px 10px rgba(0,0,0,.45)}
.nyc-realm.nyc-on{box-shadow:0 0 0 3px var(--nyc-purple),0 16px 30px -16px rgba(20,12,40,.5)}
.nyc-realm.nyc-on::before{background:linear-gradient(180deg,rgba(141,34,195,.34) 0%,rgba(38,26,72,.72) 100%)}

/* grid: 5 up, stepping down */
.nyc-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:24px 20px;margin-bottom:14px}
@media(max-width:1280px){.nyc-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:1024px){.nyc-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){.nyc-grid{grid-template-columns:repeat(2,1fr);gap:16px 12px}}

/* split card: 4:5 image + text panel below. Fixed title (2 lines) + meta (1
   line) + bottom-pinned CTA make every card exactly the same size. */
.nyc-card{
  position:relative;display:flex;flex-direction:column;width:100%;
  background:#fff;border:1.5px solid rgba(38,26,72,.12);border-radius:14px;overflow:hidden;
  text-decoration:none;color:var(--nyc-deep);isolation:isolate;
  box-shadow:0 4px 18px rgba(20,12,40,.06);
  transition:transform .3s cubic-bezier(.2,.7,.2,1),box-shadow .3s;
}
.nyc-card:hover,.nyc-card:focus-visible{transform:translateY(-6px);box-shadow:0 16px 30px -16px rgba(20,12,40,.36);outline:none}
.nyc-card,.nyc-card:link,.nyc-card:visited,.nyc-card:hover,.nyc-card:focus,.nyc-card:active{color:var(--nyc-deep)}
/* No CTA underlines, ever — defeats a theme/Elementor global :hover underline. */
.nyc-chip,.nyc-chip:hover,.nyc-chip:focus,.nyc-realm,.nyc-realm:hover,.nyc-seg-btn,.nyc-seg-btn:hover,.nyc-seg-btn:focus,.nyc-cta,.nyc-cta:hover,.nyc-cta:focus,.nyc-card:hover,.nyc-card:focus{text-decoration:none}
.nyc-card:focus-visible{box-shadow:0 0 0 3px var(--nyc-purple-lt),0 16px 30px -16px rgba(20,12,40,.36)}
.nyc-media{position:relative;aspect-ratio:4/5;overflow:hidden}
.nyc-bg{position:absolute;inset:0;z-index:0;display:block;background-size:cover;background-position:center;transition:transform .6s ease}
.nyc-card:hover .nyc-bg{transform:scale(1.05)}
.nyc-shade{position:absolute;inset:0;z-index:1;display:block;background:linear-gradient(to bottom,rgba(8,5,18,.34) 0%,rgba(8,5,18,0) 42%)}
.nyc-top{position:absolute;top:0;left:0;right:0;z-index:2;padding:11px;display:flex;justify-content:flex-start;align-items:flex-start;gap:8px}
.nyc-badge{display:inline-flex;align-items:center;gap:5px;font-family:inherit;font-weight:700;font-size:10.5px;letter-spacing:.4px;color:#2a1402;background:#F2B23B;padding:5px 9px;border-radius:8px;white-space:nowrap}
.nyc-badge-free{background:#fff;color:var(--nyc-purple)}
.nyc-badge-feat{background:var(--nyc-purple);color:#fff}
.nyc-badge-rec{background:rgba(0,0,0,.34);backdrop-filter:blur(10px);color:#fff;font-weight:500;font-size:10px}
.nyc-body{display:flex;flex-direction:column;flex:1;padding:11px 13px 13px}
.nyc-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-wrap:balance;font-family:inherit;font-weight:600;font-size:14.5px;line-height:1.3;height:calc(2 * 1.3em);color:var(--nyc-deep)}
.nyc-meta{display:flex;align-items:center;gap:5px;font-family:inherit;font-size:12px;color:var(--nyc-deep);opacity:.62;margin-top:6px;height:1.5em;overflow:hidden;white-space:nowrap}
.nyc-ment{display:inline;font-weight:600}
.nyc-when{display:inline-flex;align-items:center;gap:5px}
.nyc-ment + .nyc-when::before{content:"·";opacity:.6;margin-right:3px}
.nyc-foot{margin-top:auto;padding-top:11px;display:flex;align-items:center;justify-content:flex-start}
/* Left-aligned solid purple pill. Price converts to the visitor currency via
   fx-price.js (the price node keeps its data-nyfx-inr hook). */
.nyc-buy{display:inline-flex;align-items:center;gap:6px;background:var(--nyc-purple);color:#fff;border-radius:999px;padding:8px 13px;box-shadow:0 8px 18px -10px rgba(141,34,195,.9);transition:background .25s}
.nyc-buy-price{display:inline-block;font-family:inherit;font-weight:600;font-size:13px;line-height:1;color:#fff;white-space:nowrap}
.nyc-buy-cta{letter-spacing:.01em}
.nyc-buy-go{flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:15px;line-height:1;color:#fff}
.nyc-card:hover .nyc-buy,.nyc-card:focus-visible .nyc-buy{background:var(--nyc-purple-lt)}

/* affiliate */
.nyc-affiliate{padding-top:56px;padding-bottom:56px}
.nyc-aff{display:grid;grid-template-columns:1.15fr 1fr;align-items:stretch;background:var(--nyc-deep);border-radius:20px;overflow:hidden}
@media(max-width:760px){.nyc-aff{grid-template-columns:1fr}}
.nyc-aff-text{padding:48px 46px;display:flex;flex-direction:column;justify-content:center}
.nyc-aff h3{font-weight:700;font-size:clamp(26px,3.4vw,34px);color:#fff;margin:0 0 12px}
.nyc-aff p{font-weight:300;color:rgba(255,255,255,.8);margin:0 0 22px;max-width:400px}
.nyc-aff-img{min-height:280px;background:radial-gradient(circle at 65% 35%,#E96F46,#8D22C3 72%)}
.nyc-cta{align-self:flex-start;display:inline-block;background:var(--nyc-orange);color:#fff;text-decoration:none;font-weight:600;font-size:15px;padding:14px 30px;border-radius:40px;box-shadow:0 20px 28px -18px rgba(255,85,29,.5);transition:.2s}
.nyc-cta:hover{filter:brightness(1.07);transform:translateY(-2px)}

@media (prefers-reduced-motion:reduce){
  .nyc *{transition:none!important;animation:none!important}
  .nyc-card:hover{transform:none}
  .nyc-card:hover .nyc-bg{transform:none}
}

/* ── Shared guides / mentors row ("Your Guides on the Inner Path") ─────────── */
.nyc-guides{padding-top:80px;padding-bottom:8px}
.nyc-guides .nyc-sec-title{text-align:center;color:var(--nyc-grey)}
.nyc-guides .nyc-sec-sub{text-align:center}
.nyc-guide-row{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:30px}
.nyc-guide{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px}
.nyc-guide,.nyc-guide:link,.nyc-guide:visited,.nyc-guide:hover,.nyc-guide:focus{text-decoration:none;color:inherit}
.nyc-avatar{width:108px;height:108px;border-radius:50%;background:radial-gradient(circle at 35% 30%,var(--nyc-purple-lt),#3a1c5e);background-size:cover;background-position:center;box-shadow:0 10px 24px rgba(0,0,0,.14);transition:transform .25s}
.nyc-avatar--img{background-color:#3a1c5e}
a.nyc-guide:hover .nyc-avatar,a.nyc-guide:focus .nyc-avatar{transform:translateY(-3px)}
.nyc-guide-name{font-family:inherit;font-weight:600;font-size:15px;color:var(--nyc-navy)}
.nyc-guide-role{font-family:inherit;font-weight:400;font-size:12.5px;color:var(--nyc-grey)}
@media(max-width:680px){
  /* Guides swipe horizontally, two mentors per slide. Each pair is a snap
     point (snap lands on every odd card), and a sliver of the next pair peeks
     to signal there's more. CSS-only; desktop 4-up grid is untouched. */
  .nyc-guide-row{
    display:flex;
    grid-template-columns:none;
    gap:14px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .nyc-guide-row::-webkit-scrollbar{display:none}
  .nyc-guide{
    flex:0 0 46%;
  }
  .nyc-guide:nth-child(odd){scroll-snap-align:start}
}

/* ── Shared testimonials ("Love Letters from the Transformed") ─────────────── */
.nyc-letters{padding-top:40px;padding-bottom:56px}
.nyc-letters .nyc-sec-title{text-align:center;color:var(--nyc-grey)}
.nyc-letters .nyc-sec-sub{text-align:center}
.nyc-letter-panel{background:linear-gradient(135deg,#F7C6B5,#FFEFEA);border-radius:24px;padding:clamp(28px,4vw,48px) clamp(20px,3vw,40px);margin-top:8px}
.nyc-letter-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.nyc-letter{background:rgba(255,255,255,.6);border-radius:16px;padding:26px 26px 22px}
.nyc-letter-quote{font-family:inherit;font-style:italic;font-size:16px;line-height:1.6;color:#5a3528;margin:0 0 16px}
.nyc-letter-name{font-family:inherit;font-weight:600;color:var(--nyc-orange);margin:0}
@media(max-width:680px){
  /* Love letters slide horizontally instead of stacking: one card per view,
     swipeable, with the next card peeking to signal there's more. */
  .nyc-letter-panel{overflow:hidden}
  .nyc-letter-grid{
    display:flex;
    grid-template-columns:none;
    gap:14px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    /* run the track to the panel edges, then pad it back in so the first card
       lines up and the last card has trailing room */
    margin:0 calc(-1 * clamp(20px,3vw,40px));
    padding:2px clamp(20px,3vw,40px);
    scroll-padding-left:clamp(20px,3vw,40px);
  }
  .nyc-letter-grid::-webkit-scrollbar{display:none}
  .nyc-letter{
    flex:0 0 85%;
    scroll-snap-align:start;
  }
}
