@charset "UTF-8";
/* ===========================================================================
   COURSES — "Choose Your Yoga Teacher Training In Rishikesh"
   ---------------------------------------------------------------------------
   Rebuilt 15 Nov 2026 alongside the markup.

   WHAT IT WAS, and what vinyasayogaacademy.com still is: a grid of vertical
   cards, each a cover photograph with the course title burnt over its
   bottom-left corner, a Yoga Alliance seal in the photo's top-right, a boxed
   LEVEL | DURATION pill below it, then two icon-badge rows, then a button.

   WHAT IT IS NOW: three wide rows. Picture on one side, everything else on the
   other. The title is a heading, not an overlay. Level, duration and style are
   one line of plain meta. The seal sits next to the certification it refers to.

   The 200-hour row is still the one marked out — it is the course most people
   arrive looking for — but by a red edge and a filled button rather than by
   being scaled up, which is what a grid needed and a list does not.
   =========================================================================== */

.ryp-courses {
    display: grid;
    gap: clamp(1.25rem, 1rem + 1.2vw, 2rem);
    /* Capped to the same 1320px the rest of the page uses, and centred.

       The rows sit in a .container-fluid while the masthead above them sits in
       a .container, so they were running 1416px wide against the heading's
       1320px — overhanging it by about 48px on each side. That is what read as
       "stretched": not only the long line length but the block being visibly
       wider than the heading over it. Matching .container lines the left edge
       of every row up with the first letter of the headline. */
    max-width: 82.5rem;                    /* = .container's 1320px */
    margin-inline: auto;
}

.ryp-course {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: #fff;
    border: 1px solid rgba(222, 42, 29, .16);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 2px 6px rgba(181, 31, 20, .05),
        0 16px 40px rgba(26, 26, 26, .07);
    transition: box-shadow 300ms cubic-bezier(.22, 1, .36, 1),
                border-color 300ms cubic-bezier(.22, 1, .36, 1);
}
.ryp-course:hover {
    border-color: rgba(222, 42, 29, .34);
    box-shadow:
        0 4px 10px rgba(181, 31, 20, .08),
        0 24px 52px rgba(26, 26, 26, .12);
}

/* -- the picture --------------------------------------------------------- */
/* The picture must never decide how tall the row is — the body does. The
   photo is absolutely placed inside the panel so its own proportions cannot
   push the row out: the three files are 1440x1920, 1280x800 and 900x581, and
   letting the first one size its row stretched it to 605px against 372px for
   the other two. On a phone the panel has no sibling to take its height from,
   so there it gets an explicit ratio. */
.ryp-course__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ryp-red-tint);       /* holds the space before load */
}
.ryp-course__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(.22, 1, .36, 1);
}
.ryp-course:hover .ryp-course__media img { transform: scale(1.05); }

/* -- the body ------------------------------------------------------------ */
.ryp-course__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(.625rem, .5rem + .5vw, .875rem);
    padding: clamp(1.25rem, 1rem + 1.2vw, 2.25rem);
}

/* Level / duration / style on one line, separated by a dot rather than boxed
   into pills with icons. */
.ryp-course__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    margin: 0;
    font-family: "Figtree", system-ui, sans-serif;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ryp-red-ink);
}
.ryp-course__meta > span + span::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: .75rem;
    border-radius: 50%;
    background: rgba(222, 42, 29, .45);
    vertical-align: .18em;
}

.ryp-course__title {
    margin: 0;
    font-family: "Belleza", Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
    line-height: 1.2;
    color: var(--ryp-ink);
}
/* inherit, not just colour. style.css carries a bare `a { font-size:
   var(--body-font-size) }`, and the heading's text lives inside this anchor —
   so the <h3> computed 30px while the words on screen rendered at 16px, which
   is exactly what it looked like: a title smaller than its own paragraph. */
.ryp-course__title a {
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-decoration: none;
}
.ryp-course:hover .ryp-course__title a { color: var(--ryp-red-ink); }

.ryp-course__intro {
    margin: 0;
    max-width: 62ch;
    font-size: clamp(.9375rem, .91rem + .18vw, 1.0625rem);
    line-height: 1.65;
    color: var(--ryp-ink-soft);
}

/* The seal, beside the thing it certifies. */
.ryp-course__cert {
    display: flex;
    align-items: center;
    gap: .625rem;
    margin: 0;
    padding-top: .25rem;
    font-size: clamp(.875rem, .85rem + .15vw, .9375rem);
    font-weight: 600;
    color: var(--ryp-ink);
}
.ryp-course__cert img {
    width: 42px;
    height: 42px;
    flex: none;
    object-fit: contain;
}

.ryp-course .theme-button { margin-top: .375rem; }

/* ---------------------------------------------------------------------------
   THE 200-HOUR ROW
   --------------------------------------------------------------------------- */
/* The lead card was marked with a red border round it and a red bar down the
   inside edge of its text. The owner asked for both to go: a card that is
   outlined and shadowed differently reads as a different KIND of card, not as
   the recommended one. A flag says which it is in a word, and the card stays
   the same object as the two under it.

   The deeper shadow goes too — it was the other half of the same outlining. */
.ryp-course__flag {
    position: absolute;
    top: clamp(.75rem, .6rem + .5vw, 1.125rem);
    left: clamp(.75rem, .6rem + .5vw, 1.125rem);
    z-index: 3;
    margin: 0;
    padding: .4375rem .9375rem;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1;
    color: #fff;
    background: var(--ryp-red);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(222, 42, 29, .34);
}
/* The card already clips to a 20px radius; the flag has to live above that
   clip or its own corners are shaved off by it. */
.ryp-course { position: relative; }

/* Its button is the filled one; the other two stay outlined. One primary
   action in the section, not three. */
.ryp-course.is-lead .theme-button {
    background-image: linear-gradient(var(--ryp-red), var(--ryp-red));
    background-color: var(--ryp-red);
    border-color: var(--ryp-red);
    color: #fff;
}
.ryp-course.is-lead .theme-button::after { background: var(--ryp-red-deep); }

/* ---------------------------------------------------------------------------
   WIDE — picture beside the body
   --------------------------------------------------------------------------- */
@media (min-width: 48rem) {
    .ryp-course {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
        align-items: stretch;
    }
    /* Beside the body now, so it takes the body's height instead of a ratio. */
    .ryp-course__media { aspect-ratio: auto; }
}

@media (min-width: 62rem) {
    /* At the full 1320px this puts the picture near 510px and the body near
       800px. The old 0.8/1.7 split gave the body 960px, which is far past a
       comfortable line even with the paragraph capped. */
    .ryp-course { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
}

/* ---------------------------------------------------------------------------
   PHONE
   --------------------------------------------------------------------------- */
@media (max-width: 47.99rem) {
    .ryp-course { border-radius: 16px; }
    .ryp-course__media { aspect-ratio: 16 / 9; }
    .ryp-course .theme-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .ryp-course,
    .ryp-course__media img { transition: none; }
    .ryp-course:hover .ryp-course__media img { transform: none; }
}
