@charset "UTF-8";
/* ===========================================================================
   SECTION — "What Is Yoga Alliance Certification?"
   ---------------------------------------------------------------------------
   Rebuilt to the owner's second reference: the four credentials become a row
   of cards, and the photograph moves below them, full width, with its caption
   as a bar across the bottom.

   NO MARKUP WAS TOUCHED. This is the live section's own HTML — the same <ul>,
   the same four <li>, the same <figure> — rearranged entirely in CSS. That is
   deliberate: every word, every image and every link stays exactly as it is,
   because there is nothing here that could drop one.

   Selectors mirror the live ones (all prefixed .certified-section) so they win
   on source order rather than on weight.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   LAYOUT: two stacked bands instead of two side-by-side columns
   --------------------------------------------------------------------------- */
.certified-section .cert-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);   /* was 1.45fr 1fr */
    gap: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}

/* The four credentials, in a row. */
.certified-section .cert-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(.875rem, .5rem + 1.2vw, 1.5rem);
    max-width: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The vertical rule that joined the old stacked list has nothing to join now. */
.certified-section .cert-item:not(:last-child)::after { display: none; }

/* ---------------------------------------------------------------------------
   THE CARDS
   Icon top-left, number top-right, title, then the text — the reference's
   arrangement. The number lives inside the <h3> in the markup, so it is lifted
   out of the flow and pinned to the corner rather than moved.
   --------------------------------------------------------------------------- */
.certified-section .cert-item {
    position: relative;
    display: block;                      /* was a flex row: badge | card */
    padding: clamp(1.125rem, .8rem + 1vw, 1.625rem);
    background: #fff;
    border: 1.5px solid var(--ryp-red);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(26, 26, 26, .04), 0 10px 26px rgba(26, 26, 26, .05);
    transition: transform 260ms cubic-bezier(.22, 1, .36, 1),
                box-shadow 260ms cubic-bezier(.22, 1, .36, 1);
}
.certified-section .cert-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 4px rgba(222, 42, 29, .10), 0 18px 38px rgba(26, 26, 26, .10);
}

/* -- the icon ------------------------------------------------------------ */
.certified-section .cert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: clamp(.75rem, .5rem + .6vw, 1.125rem);
    padding: 7px;
    background: var(--ryp-red-tint);
    border: 1px solid rgba(222, 42, 29, .22);
    border-radius: 50%;
    box-shadow: none;
    transition: transform 260ms cubic-bezier(.22, 1, .36, 1);
}
.certified-section .cert-item:hover .cert-badge { transform: scale(1.06); }
.certified-section .cert-badge img { width: 100%; height: 100%; object-fit: contain; }
/* The live rule hangs decorative ticks off the badge; they crowd a round icon
   this size. */
.certified-section .cert-badge::before,
.certified-section .cert-badge::after { display: none; }

/* -- the number, pinned to the corner ------------------------------------ */
.certified-section .cert-meta-step {
    position: absolute;
    top: clamp(1.125rem, .8rem + 1vw, 1.625rem);
    right: clamp(1.125rem, .8rem + 1vw, 1.625rem);
    min-width: 0;
    height: auto;
    padding: 0;
    background: none;
    border: 0;
    font-family: "Belleza", Georgia, serif;
    font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem);
    font-weight: 400;
    line-height: 1;
    color: rgba(222, 42, 29, .45);
    font-variant-numeric: tabular-nums;
}

/* -- title and text ------------------------------------------------------- */
.certified-section .cert-card {
    display: block;
    padding: 0;
    flex: none;
    /* The live rule makes this position:relative, which made IT the anchor for
       the absolutely placed number — so "01" landed beside the title's second
       line instead of in the card's corner, overlapping the text. Static hands
       the anchoring back to .cert-item. */
    position: static;
}
.certified-section .cert-item-title,
.certified-section .cert-item--ya .cert-item-title {
    display: block;
    /* The live rule makes the title position:relative (for an underline it
       draws with ::after), which made IT the anchor for the absolutely placed
       number — so "01" sat beside the title's last line, over the words.
       Static hands the anchoring up to .cert-item, where the corner is. */
    position: static;
    /* Room for the number, so a long title never runs under it. */
    padding-right: 2.25rem;
    margin: 0 0 .625rem;
    font-size: clamp(.9375rem, .85rem + .35vw, 1.0625rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--ryp-ink);
}
.certified-section .cert-item:hover .cert-item-title { color: var(--ryp-red-ink); }
.certified-section .cert-item-title::after { display: none; }   /* the old underline */

.certified-section .cert-card p {
    margin: 0;
    font-size: clamp(.8125rem, .78rem + .2vw, .9375rem);
    line-height: 1.6;
    color: var(--ryp-ink-soft);
}
.certified-section .cert-card p strong { color: var(--ryp-red-ink); }

/* ---------------------------------------------------------------------------
   THE PHOTOGRAPH
   Full width under the cards, red-edged, with the caption as a solid bar
   across the bottom rather than a floating panel.
   --------------------------------------------------------------------------- */
.certified-section .cert-feature {
    position: static;            /* it was sticky beside the old column */
    top: auto;
    margin: 0;
    padding: 0;
    background: none;
    border: 1.5px solid var(--ryp-red);
    border-radius: 16px;
    overflow: hidden;            /* clips the photo and the bar to the radius */
    box-shadow: 0 2px 6px rgba(222, 42, 29, .10), 0 18px 40px rgba(26, 26, 26, .10);
}
.certified-section .cert-feature > img {
    display: block;
    width: 100%;
    height: clamp(260px, 34vw, 460px);
    object-fit: cover;
    object-position: center 42%;
    border-radius: 0;
}

.certified-section .cert-feature-caption {
    position: static;            /* was absolutely placed inside the frame */
    display: flex;
    align-items: center;
    gap: clamp(.75rem, .5rem + .6vw, 1.125rem);
    margin: 0;
    padding: clamp(.875rem, .6rem + .8vw, 1.25rem) clamp(1rem, .7rem + 1vw, 1.75rem);
    background: #1f5b54;         /* the deep green of the reference's bar */
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}
.certified-section .cert-feature-caption .cert-caption-icon {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
}
.certified-section .cert-feature-caption .cert-caption-text {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .5rem;
}
.certified-section .cert-feature-caption .cert-caption-title {
    font-size: clamp(.9375rem, .85rem + .35vw, 1.0625rem);
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #fff;
}
.certified-section .cert-feature-caption .cert-caption-sub {
    font-size: clamp(.75rem, .72rem + .2vw, .875rem);
    color: rgba(255, 255, 255, .82);
}

/* ---------------------------------------------------------------------------
   ANIMATION
   The hidden state lives behind `.rd-armed`, which only site.js adds. Without
   that script nothing is hidden and the section just renders.
   --------------------------------------------------------------------------- */
.certified-section .cert-list.rd-armed > .cert-item,
.certified-section .cert-feature.rd-armed > * {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
}
.certified-section .cert-list.rd-armed.is-in > .cert-item,
.certified-section .cert-feature.rd-armed.is-in > * {
    opacity: 1;
    transform: none;
    transition: opacity 620ms cubic-bezier(.22, 1, .36, 1),
                transform 620ms cubic-bezier(.22, 1, .36, 1);
}
/* 70ms apart, so the four read as one movement left to right. */
.certified-section .cert-list.rd-armed.is-in > .cert-item:nth-child(1) { transition-delay:   0ms; }
.certified-section .cert-list.rd-armed.is-in > .cert-item:nth-child(2) { transition-delay:  70ms; }
.certified-section .cert-list.rd-armed.is-in > .cert-item:nth-child(3) { transition-delay: 140ms; }
.certified-section .cert-list.rd-armed.is-in > .cert-item:nth-child(4) { transition-delay: 210ms; }

@media (prefers-reduced-motion: reduce) {
    .certified-section .cert-list.rd-armed > .cert-item,
    .certified-section .cert-feature.rd-armed > * { opacity: 1; transform: none; transition: none; }
    .certified-section .cert-item { transition: none; }
}

/* ---------------------------------------------------------------------------
   RESPONSIVE
   Four across on a desktop, two on a tablet, one on a phone. The cards are
   equal-width tracks, so nothing has to be re-specified per breakpoint.
   --------------------------------------------------------------------------- */
@media (max-width: 61.99rem) {
    .certified-section .cert-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 35.99rem) {
    .certified-section .cert-list { grid-template-columns: minmax(0, 1fr); }
    .certified-section .cert-feature > img { height: clamp(200px, 56vw, 300px); }
    .certified-section .cert-feature-caption { flex-wrap: wrap; }
}

/* ---------------------------------------------------------------------------
   MOBILE: the text stays open
   ---------------------------------------------------------------------------
   Under 768px the live stylesheet turns these items into an accordion:

     .certified-section .cert-item > .cert-card > .cert-item-title ~ *
         { max-height: 0; opacity: 0; overflow: hidden }

   and only reveals the body when the item carries `.is-open`. That made sense
   for the old stacked list, which had something to tap. The redesign shows
   these as four cards with no toggle at all, so on a phone three of the four
   rendered as a title with NOTHING under it — measured: 0px tall, with 106px,
   65px and 85px of text inside, unreachable.

   Here the body is simply always open. Nothing is behind a tap that has no
   control to tap.
   --------------------------------------------------------------------------- */
@media (max-width: 47.99rem) {
    .certified-section .cert-item > .cert-card > .cert-item-title ~ *,
    .certified-section .cert-item.is-open > .cert-card > .cert-item-title ~ * {
        max-height: none;
        opacity: 1;
        overflow: visible;
        transition: none;
    }
    /* The live rule also hangs a chevron off the title to drive that accordion;
       with nothing to open, it would be a control that does nothing. */
    .certified-section .cert-item-title::before { display: none; }
}
