@charset "UTF-8";
/* ===========================================================================
   THE FIGURES ROW under the hero — 10,000+ / 10+ / 60+ / 4.9
   ---------------------------------------------------------------------------
   Redesign. Colour, type, spacing, dividers and an icon per cell. The wording
   is untouched and so is the markup: this file adds nothing to the HTML.

   WHAT THE OLD ONE WAS: a flat white slab with four full-height hairlines and
   a small figure over a small label. It read as a table, not as a claim.

   WHAT IT IS NOW:
     - a lifted white card with a red hairline edge and a soft red-tinted
       shadow, so it sits ON the pink hero rather than being cut out of it;
     - a red line icon over each figure, in the same icon language as the rest
       of the page;
     - a bigger figure with the + and the star in red;
     - dividers that stop short of the card's edges instead of running the
       full height — the four cells read as one object rather than four boxes.

   THE COUNT-UP IS NOT TOUCHED. hero-slider.js rewrites the <dd>'s innerHTML on
   every frame, so nothing of mine may live inside that element. The icon is
   therefore drawn on the ITEM's ::after, outside the <dd>, where the animation
   cannot overwrite it and it cannot disturb the animation.

   WHY ::after CARRIES THE ICON AND ::before THE DIVIDER: ::before is the only
   one that can be absolutely positioned against the cell's leading edge
   without joining the grid. So the icon takes ::after and `order: -2` lifts it
   above the figure — pseudo-elements take part in grid order like any child.
   =========================================================================== */

.ryp-hero__trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* The row hairline is the 1px gap with the container's colour showing
       through; the cells paint themselves white over the rest of it. The
       COLUMN dividers are drawn separately (see ::before) because those are
       inset, and a gap cannot be inset. */
    column-gap: 0;
    row-gap: 1px;
    margin: clamp(2rem, 1.5rem + 1.2vw, 2.75rem) auto 0;
    max-width: 34rem;
    background: rgba(222, 42, 29, .16);
    border: 1px solid rgba(222, 42, 29, .18);
    border-radius: 20px;
    box-shadow:
        0 2px 6px rgba(222, 42, 29, .06),
        0 18px 44px rgba(26, 26, 26, .09);
    overflow: hidden;                      /* clips the cells to the radius */
}

.ryp-hero__trust-item {
    position: relative;
    display: grid;
    grid-template-rows: auto auto auto;    /* icon, figure, label */
    align-content: start;
    justify-items: center;
    gap: .5rem;
    padding: clamp(1.125rem, .9rem + .8vw, 1.5rem) .75rem clamp(1.25rem, 1rem + .8vw, 1.625rem);
    text-align: center;
    background: #fff;
    transition: background-color 260ms cubic-bezier(.22, 1, .36, 1);
}
.ryp-hero__trust-item:hover { background: var(--ryp-red-tint); }

/* -- the icon ------------------------------------------------------------ */
/* background-color is the paint and the SVG supplies only the shape, so the
   icon is exactly --ryp-red with no filter to tune. */
.ryp-hero__trust-item::after {
    content: "";
    order: -2;
    width: 24px;
    height: 24px;
    background-color: var(--ryp-red);
    -webkit-mask-image: var(--t-icon);
            mask-image: var(--t-icon);
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-size: contain;
            mask-size: contain;
    transition: transform 260ms cubic-bezier(.22, 1, .36, 1);
}
.ryp-hero__trust-item:hover::after { transform: translateY(-2px) scale(1.06); }

/* -- the divider --------------------------------------------------------- */
/* Inset top and bottom, and faded at both ends, so it separates the figures
   without boxing them in. */
.ryp-hero__trust-item::before {
    content: "";
    position: absolute;
    top: 1.25rem;
    bottom: 1.25rem;
    left: 0;
    width: 1px;
    background: linear-gradient(180deg,
        rgba(222, 42, 29, 0) 0%,
        rgba(222, 42, 29, .24) 28%,
        rgba(222, 42, 29, .24) 72%,
        rgba(222, 42, 29, 0) 100%);
}
/* Two columns: no divider on the left-hand cell of either row. */
.ryp-hero__trust-item:nth-child(2n+1)::before { content: none; }

/* -- the figure ---------------------------------------------------------- */
.ryp-hero__trust-num {
    /* The <dd> follows its <dt> in the markup — valid, and the right reading
       order ("Students Trained, 10,000+"). `order` lifts the figure above the
       label visually without touching either. */
    order: -1;
    margin: 0;                             /* <dd> has a browser default */
    font-family: "Belleza", Georgia, serif;
    font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem);
    line-height: 1;
    letter-spacing: -.01em;
    color: var(--ryp-ink);
    /* Tabular figures: with proportional digits the row visibly twitches while
       the number counts up, because each digit is a different width. */
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    white-space: nowrap;
    transition: color 260ms cubic-bezier(.22, 1, .36, 1);
}
.ryp-hero__trust-item:hover .ryp-hero__trust-num { color: var(--ryp-red-ink); }

.ryp-hero__trust-num sup {
    font-size: .46em;
    top: -.72em;
    margin-left: .06em;
    color: var(--ryp-red);
}
.ryp-hero__trust-star {
    margin-left: .1em;
    font-size: .62em;
    color: var(--ryp-red);
    vertical-align: .12em;
}

/* Counting is decoration: if it never runs, the markup already holds the real
   figure. Nothing here hides or dims the number while it counts. */
.ryp-hero__trust-num[data-counting] { color: var(--ryp-ink); }

/* -- the label ----------------------------------------------------------- */
.ryp-hero__trust-label {
    margin: 0;
    /* Two lines of space are RESERVED whether the label needs them or not.
       "Students Trained" is one line and "Countries Represented" is two; without
       this the four cells end up different heights and the four figures sit at
       four different distances from the bottom. The text is centred inside the
       reserved box, so a one-line label reads as deliberate. */
    display: grid;
    place-content: center;
    min-height: calc(2 * 1.35em);
    font-family: "Figtree", system-ui, sans-serif;
    font-size: .6875rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-wrap: balance;                    /* splits a two-word label evenly */
    color: var(--ryp-ink-soft);
}

/* ---------------------------------------------------------------------------
   ONE ICON PER FIGURE
   ---------------------------------------------------------------------------
   POSITIONAL, like every :nth-child mapping. The four figures were replaced on
   15 Nov 2026 (the old four were the source site's four), and these icons were
   replaced with them. Change $ryp_trust in index.php and these must change too.
   --------------------------------------------------------------------------- */
/* 1  Verified Google Reviews  ->  a review bubble with a tick */
.ryp-hero__trust-item:nth-child(1) { --t-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 11.4a7.6 7.6 0 0 1-7.6 7.6H8.9L4.1 21.9l1.1-4A7.6 7.6 0 1 1 20.8 11.4z'/%3E%3Cpath d='M8.7 11.3 11 13.6l4.5-4.6'/%3E%3C/svg%3E"); }

/* 2  Rated Out Of 5  ->  a star */
.ryp-hero__trust-item:nth-child(2) { --t-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='none'%3E%3Cpath d='m12 3 2.7 5.7 6.3.9-4.5 4.4 1.1 6.2L12 17.3 6.4 20.2l1.1-6.2L3 9.6l6.3-.9z'/%3E%3C/svg%3E"); }

/* 3  Maximum Batch Size  ->  a small group */
.ryp-hero__trust-item:nth-child(3) { --t-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8.4' r='3'/%3E%3Cpath d='M3 19.8v-.7a4.6 4.6 0 0 1 4.6-4.6h2.8a4.6 4.6 0 0 1 4.6 4.6v.7'/%3E%3Cpath d='M16.6 6.8a2.9 2.9 0 0 1 0 5.2'/%3E%3Cpath d='M18 14.8a4.6 4.6 0 0 1 3.4 4.4v.6'/%3E%3C/svg%3E"); }

/* 4  Yoga Alliance Registrations  ->  an award seal */
.ryp-hero__trust-item:nth-child(4) { --t-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='6'/%3E%3Cpath d='M8.2 14.4 7 22l5-2.8 5 2.8-1.2-7.6'/%3E%3C/svg%3E"); }

/* ---------------------------------------------------------------------------
   WIDE: all four in a row
   ---------------------------------------------------------------------------
   This has to restate the 4-column layout rather than inherit it. hero-slider.css
   sets it in its own `min-width: 62rem` block, but this whole file loads after
   that one, so the 2-column rule above would otherwise win at every width —
   media queries add no specificity, only source order decides.
   --------------------------------------------------------------------------- */
@media (min-width: 62rem) {
    .ryp-hero__trust {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: 54rem;
        row-gap: 0;                        /* one row now: no row hairline */
    }
    /* Every cell but the first gets a divider again — the 2-column rule above
       hid it on cell 3, which is mid-row here. */
    .ryp-hero__trust-item:nth-child(n+2)::before { content: ""; }
    .ryp-hero__trust-item:nth-child(1)::before  { content: none; }
}

/* ---------------------------------------------------------------------------
   NARROW
   Still two across — four cells stacked would push the hero's next section a
   long way down the phone. The card just tightens up.
   --------------------------------------------------------------------------- */
@media (max-width: 26rem) {
    .ryp-hero__trust { border-radius: 16px; }
    .ryp-hero__trust-item { padding: 1rem .5rem 1.125rem; gap: .4375rem; }
    .ryp-hero__trust-item::after { width: 20px; height: 20px; }
    .ryp-hero__trust-item::before { top: .875rem; bottom: .875rem; }
    .ryp-hero__trust-num { font-size: 1.5rem; }
    .ryp-hero__trust-label { font-size: .625rem; letter-spacing: .07em; }
}

@media (prefers-reduced-motion: reduce) {
    .ryp-hero__trust-item,
    .ryp-hero__trust-item::after,
    .ryp-hero__trust-num { transition: none; }
    .ryp-hero__trust-item:hover::after { transform: none; }
}
