@charset "UTF-8";
/* ===========================================================================
   /course/ — the courses index, as a card grid
   ---------------------------------------------------------------------------
   Owner, 16 Nov 2026: "courses.php ko redesign karo and proper layout karo
   card type kardo and sabhi courses properly show ho esa karo and make sure
   mobile main bhi perfect ho."

   WHAT WAS HERE, AND WHY IT IS BEING REVERSED. The previous pass turned the
   seven cards into one full-width ruled entry each — photograph left, words
   middle, specification right. It was done to get away from
   vinyasayogaacademy.com, whose index is a three-up grid of cards. Measured
   at 1440 it cost 2,950px for seven courses: one course on screen at a time,
   no way to compare them, and a tall empty gap in the middle column of every
   entry because the right-hand specification was the tallest thing in the row.
   The owner is right — for a page whose whole job is "here are the courses",
   that is the wrong object.

   SO IT IS A CARD GRID AGAIN, BUT NOT THEIR CARD. Theirs is a white rounded
   card, heavily shadowed, whose photograph carries the course name written
   ACROSS it, with a tinted pill of chips underneath. Every one of those is
   avoided here:

     theirs                           ours
     name written over the photo      name below it, on paper, in the serif
     big radius + drop shadow         6px radius, hairline, no shadow at all
     tinted chip pill                 a ruled spec row, labels above values
     card floats on a tint            card sits on the page, red rule on top
     identical cards                  the 200-hour card is flagged by weight

   The red top rule, the hairline dividers and the micro-label/value pairs are
   the same devices the rest of the redesign uses, so the page now reads as
   part of this site rather than as a copy of theirs.

   SECOND PASS, same day: "again layout change karo and jo cards hai unhe
   curve styling main karo and mobile main bhi sahi hona chahiye."

   So the card is curved now, and its composition changes again — but the
   four things that would make it read as theirs stay off the table. A big
   radius alone was never what made their card theirs; it was the name written
   across the photograph, the tinted chip pill, the drop shadow and the float.
   What changes here is geometry, not those:

     - the card is a 24px round-cornered panel instead of a 6px one
     - the photograph is cut with a DOME at its foot, so the paper curves up
       into the words rather than meeting them on a straight line. That arch
       is the shape of the page's own lotus and torana motifs, and it is not
       a shape their card has anywhere
     - the specification icons become circles, and the level/duration pair
       sits in a soft rounded well instead of between two hairlines
     - the button was already a pill and stays one

   THE MARKUP IS NOT TOUCHED. The cards are already in a Bootstrap row of
   col-12 / col-md-6 / col-xl-4 — 1-up, 2-up, 3-up. The previous sheet had to
   fight that to make a list; this one simply stops fighting it, which is why
   nothing in courses.php changes and no copy can be lost.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. THE GRID
   ---------------------------------------------------------------------------
   Bootstrap's own columns do the 1/2/3 already. All that is needed is an even
   gutter and equal-height cards: the column is a flex box so the card can be
   told to fill it, and the card is a flex column so its button can be pushed
   to the bottom however long the paragraph above it runs.
   --------------------------------------------------------------------------- */
.yoga-card-section .row {
    --bs-gutter-x: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    --bs-gutter-y: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.yoga-card-section .row > [class*="col-"] {
    display: flex;
}

/* ---------------------------------------------------------------------------
   2. THE CARD
   --------------------------------------------------------------------------- */
.yoga-card-section .course-details-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* the live rule caps it at 576px and centres it, which leaves a gap inside
       the column on a wide screen */
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(26, 26, 26, .14);
    border-top: 2px solid var(--ryp-red);
    /* 24px, and the top corners carry the red rule round with them. Still no
       shadow and still no float: the curve is the only thing that changed. */
    border-radius: 24px;
    box-shadow: none;
    transition: border-color 200ms ease;
}
.yoga-card-section .course-details-card:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(222, 42, 29, .45);
}

/* -- the photograph: a band, with nothing written over it ----------------- */
.yoga-card-section .course-details-card .course-img {
    position: relative;
    display: block;
    margin: 0;
    /* MEASURED: style.css:8517 pins this anchor to clamp(200px, 20vw, 250px),
       which is right when the course name is positioned over the photograph
       and wrong now that the name sits under it in normal flow -- the name was
       pushed past the fixed height and clipped away entirely. Released, the
       anchor is as tall as the picture plus the title it now carries. */
    height: auto;
    border-radius: 0;
    overflow: visible;
}
/* the live card paints a gradient over the photo so white type can sit on it.
   Our type is not on the photo, so the gradient has no job. */
.yoga-card-section .course-details-card .course-img::after { display: none; }
.yoga-card-section .course-details-card .course-img img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    /* The dome: the foot is cut with an ellipse — 50% horizontally, 9%
       vertically — a shallow arch rather than a half-circle, so the picture
       still reads as a picture.

       The TOP corners are left square on purpose. The card is overflow:hidden
       with a 24px radius, so it already clips them; giving the photo its own
       top radius as well drew a second, slightly smaller curve inside the
       first and left a hairline of paper showing between the red rule and the
       picture. One curve, not two. */
    border-radius: 0 0 50% 50% / 0 0 9% 9%;
    transition: none;
}
.yoga-card-section .course-details-card:hover .course-img img { transform: none; }

/* -- the name, below the photograph -------------------------------------- */
.yoga-card-section .course-details-card .course-details-header {
    position: static;
    inset: auto;
    margin: 0;
    padding: clamp(1rem, .85rem + .6vw, 1.25rem) clamp(1rem, .85rem + .6vw, 1.25rem) 0;
    background: none;
    font-family: "Belleza", Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem);
    line-height: 1.22;
    text-align: left;
    text-shadow: none;
    color: var(--ryp-ink);
}
.yoga-card-section .course-details-card .course-img:hover .course-details-header { color: var(--ryp-red-ink); }

/* -- level and duration: a ruled spec row, not a tinted pill -------------- */
.yoga-card-section .course-details-card .course-top-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: clamp(.75rem, .65rem + .4vw, 1rem) clamp(1rem, .85rem + .6vw, 1.25rem) 0;
    padding: .625rem .875rem;
    /* A soft well, not a tinted chip pill: paper-coloured, hairline edge, the
       two values still separated by a rule rather than floated as chips. */
    background: var(--ryp-paper, #f7f5f1);
    border: 1px solid rgba(26, 26, 26, .10);
    border-top: 1px solid rgba(26, 26, 26, .10);
    border-radius: 14px;
}
.yoga-card-section .course-details-card .course-top-info .top-item {
    display: flex;
    flex-direction: column;
    gap: .125rem;
    padding: 0;
}
.yoga-card-section .course-details-card .course-top-info .top-item + .top-item {
    padding-left: .875rem;
    border-left: 1px solid rgba(26, 26, 26, .14);
}
/* the live card separates the chips with a dot; the rule does that job now */
.yoga-card-section .course-details-card .course-top-info .top-item::before,
.yoga-card-section .course-details-card .course-top-info .top-item::after { display: none; }
.yoga-card-section .course-details-card .course-top-info .top-item .label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ryp-ink-soft);
}
.yoga-card-section .course-details-card .course-top-info .top-item .value {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--ryp-ink);
}

/* -- the paragraph ------------------------------------------------------- */
.yoga-card-section .course-details-card .course-details-intro {
    margin: clamp(.75rem, .65rem + .4vw, 1rem) clamp(1rem, .85rem + .6vw, 1.25rem) 0;
    /* MEASURED: the live card gives this paragraph padding-left: 18px, which
       set its first word 18px to the right of the heading, the spec row and
       the button -- every other block in the card lines up at the same left
       edge, and this one did not. */
    padding-left: 0;
    padding-right: 0;
    font-size: .9375rem;
    line-height: 1.62;
    color: var(--ryp-ink-soft);
}

/* -- the two specification rows ------------------------------------------
   margin-top:auto is what makes the cards line up: however short or long the
   paragraph above is, this block and the button below it sit at the bottom of
   every card in the row. ------------------------------------------------- */
.yoga-card-section .course-details-card .course-details-body {
    margin: clamp(1rem, .85rem + .6vw, 1.25rem) clamp(1rem, .85rem + .6vw, 1.25rem) 0;
    margin-top: auto;
    padding: 0;
    background: none;
    border: 0;
}
.yoga-card-section .course-details-card .course-details-body .detail-item {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    column-gap: .625rem;
    align-items: center;
    padding: .625rem 0;
    border-bottom: 0;
    border-top: 1px solid rgba(26, 26, 26, .14);
}
.yoga-card-section .course-details-card .course-details-body .detail-item .detail-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    background: var(--ryp-red-tint);
    border-radius: 50%;
}
.yoga-card-section .course-details-card .course-details-body .detail-item .detail-icon img {
    width: 14px;
    height: 14px;
}
.yoga-card-section .course-details-card .course-details-body .detail-item .detail-content {
    display: flex;
    flex-direction: column;
    gap: .0625rem;
}
.yoga-card-section .course-details-card .course-details-body .detail-item .detail-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ryp-ink-soft);
}
.yoga-card-section .course-details-card .course-details-body .detail-item .detail-value {
    font-size: .875rem;
    line-height: 1.4;
    color: var(--ryp-ink);
}

/* -- the button ---------------------------------------------------------- */
.yoga-card-section .course-details-card .course-highlight-footer {
    margin: clamp(1rem, .85rem + .6vw, 1.25rem) clamp(1rem, .85rem + .6vw, 1.25rem);
    padding: 0;
    border: 0;
}
.yoga-card-section .course-details-card .course-highlight-footer .theme-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: .5rem 1rem;
    background: transparent;
    border: 1px solid var(--ryp-red);
    border-radius: 999px;
    color: var(--ryp-red-ink);
    font-weight: 600;
    font-size: .9375rem;
    line-height: 1.25;
    text-align: center;
    transition: background-color 200ms ease, color 200ms ease;
}
.yoga-card-section .course-details-card .course-highlight-footer .theme-button:hover,
.yoga-card-section .course-details-card .course-highlight-footer .theme-button:focus-visible {
    background: var(--ryp-red);
    color: #fff;
}

/* -- the accreditation badge some cards carry ----------------------------
   It sat over the photograph on the live card. On a card whose photograph is
   now plain, it belongs with the specification it describes. -------------- */
.yoga-card-section .course-details-card .card-watermark {
    position: absolute;
    top: .625rem;
    right: .625rem;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: .25rem;
    background: rgba(255, 255, 255, .92);
    border-radius: 50%;
    opacity: 1;
}
.yoga-card-section .course-details-card .card-watermark img { width: 34px; height: auto; }

/* ---------------------------------------------------------------------------
   3. THE FEATURED CARD
   ---------------------------------------------------------------------------
   The 200-hour is the course most people come for. It is marked by weight —
   a heavier red rule and a flag — and NOT by a different shape, so the row
   still reads as one set of cards.
   --------------------------------------------------------------------------- */
.yoga-card-section .course-details-card--featured {
    border-top-width: 4px;
    border-color: rgba(222, 42, 29, .38);
    border-top-color: var(--ryp-red);
}
.yoga-card-section .cs-card__flag {
    position: absolute;
    top: .625rem;
    left: .625rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin: 0;
    padding: .3125rem .625rem;
    background: var(--ryp-red);
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.yoga-card-section .course-details-card--featured .course-details-header { padding-top: clamp(1rem, .85rem + .6vw, 1.25rem); }

/* ---------------------------------------------------------------------------
   4. THE REASSURANCE STRIP under the grid
   --------------------------------------------------------------------------- */
/* .cs-note is the WRAPPER of three .cs-note__item blocks, not one note --
   putting the icon/text grid on the wrapper made its three items collide into
   a 2.5rem column, one word per line. The wrapper lays the items out; each
   item carries the icon-and-text grid. */
.yoga-card-section .cs-note {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    column-gap: clamp(1.5rem, 1rem + 2vw, 3rem);
    row-gap: 1.25rem;
    align-items: start;
    margin-top: clamp(2rem, 1.6rem + 1.6vw, 3rem);
    padding-top: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    border-top: 2px solid var(--ryp-red);
}
.yoga-card-section .cs-note__item {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    column-gap: .875rem;
    align-items: start;
}
.yoga-card-section .cs-note__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--ryp-red-tint);
    border-radius: 50%;
    color: var(--ryp-red-ink);
}
.yoga-card-section .cs-note__title {
    margin: 0 0 .25rem;
    font-family: "Belleza", Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
    color: var(--ryp-ink);
}
.yoga-card-section .cs-note__text { margin: 0; color: var(--ryp-ink-soft); }

/* ---------------------------------------------------------------------------
   5. PHONE
   ---------------------------------------------------------------------------
   One card per row is Bootstrap's col-12 already. What a phone needs on top
   of that is a shorter photograph — a 3:2 band at 335px wide is 223px of
   picture before a single word, which pushes the course name under the fold
   on a small screen. 16:9 gives the same card a 188px band and brings three
   cards' worth of names into reach.
   --------------------------------------------------------------------------- */
@media (max-width: 47.99rem) {
    .yoga-card-section .course-details-card .course-img img { aspect-ratio: 16 / 9; }
    .yoga-card-section .cs-note { row-gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .yoga-card-section .course-details-card,
    .yoga-card-section .course-details-card .course-highlight-footer .theme-button { transition: none; }
}
