/* Phase 4: homepage Education only. Images and equal editorial sheets carry depth.
 * The ivory is the existing Unification token (#F4EFE3). Its final layer is
 * transparent; alpha-only edge blending preserves that shared page canvas.
 * No artwork, new hue, outer panel, texture, blur or animated background.
 */
body.rn-visual.home .site-main--front > .education-section {
 --rv-education-ink:var(--rn-text-primary);
 --rv-education-muted:var(--rn-text-secondary);
 --rv-education-paper:var(--rn-surface-2);
 --rv-education-canvas:none;
 --rv-education-border:var(--rn-border-subtle);
 --rv-education-border-hover:var(--rn-border-strong);
 --rv-education-sage:var(--rn-text-secondary);
 --rv-education-label:var(--rn-surface-1);
 --rv-education-focus:var(--rn-focus);
 --rv-education-shadow:none;
 --rv-education-hover-shadow:none;
 --rv-education-gap:20px;
 --rv-education-radius:14px;
 padding-block:var(--rv-space-10) var(--rv-space-14);
 border:0;
 background:var(--rv-education-canvas);
 color:var(--rv-education-ink);
}
@media screen and (forced-colors:none) {
 :where(:root[data-theme=light]) body.rn-visual.home .site-main--front > .education-section {
  --rv-education-ink:var(--rv-ink);--rv-education-muted:var(--rv-text-secondary);
  --rv-education-paper:var(--rv-surface-warm);--rv-education-ivory:var(--rv-canvas-ivory);
  --rv-education-canvas:linear-gradient(180deg,rgba(244,239,227,0) 0%,rgba(244,239,227,.45) 9%,#F4EFE3 24%,#F4EFE3 80%,rgba(244,239,227,0) 100%);
  --rv-education-border:var(--rv-border-soft);--rv-education-border-hover:var(--rv-border-medium);
  --rv-education-sage:#476B59;--rv-education-label:#EAF0E9;--rv-education-focus:#126A78;
  --rv-education-shadow:var(--rv-shadow-2);
  --rv-education-hover-shadow:0 2px 5px rgba(7,59,76,.05),0 12px 28px rgba(7,59,76,.09),0 22px 44px rgba(7,59,76,.04);
 }
}
@media screen and (forced-colors:none) and (prefers-color-scheme:light) {
 :where(:root:not([data-theme])) body.rn-visual.home .site-main--front > .education-section {
  --rv-education-ink:var(--rv-ink);--rv-education-muted:var(--rv-text-secondary);
  --rv-education-paper:var(--rv-surface-warm);--rv-education-ivory:var(--rv-canvas-ivory);
  --rv-education-canvas:linear-gradient(180deg,rgba(244,239,227,0) 0%,rgba(244,239,227,.45) 9%,#F4EFE3 24%,#F4EFE3 80%,rgba(244,239,227,0) 100%);
  --rv-education-border:var(--rv-border-soft);--rv-education-border-hover:var(--rv-border-medium);
  --rv-education-sage:#476B59;--rv-education-label:#EAF0E9;--rv-education-focus:#126A78;
  --rv-education-shadow:var(--rv-shadow-2);
  --rv-education-hover-shadow:0 2px 5px rgba(7,59,76,.05),0 12px 28px rgba(7,59,76,.09),0 22px 44px rgba(7,59,76,.04);
 }
}
body.rn-visual.home .education-section > .container.rn-depth-panel {
 padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;
 -webkit-backdrop-filter:none;backdrop-filter:none;
}
body.rn-visual.home .education-section > .container.rn-depth-panel::before {content:none}
body.rn-visual.home .education-section .education-home {min-width:0;padding:0}
body.rn-visual.home .education-section .education-home__heading {
 display:block;margin:0 0 var(--rv-space-6);padding:0;border:0;text-align:center;
}
body.rn-visual.home .education-section .education-home__intro {max-width:none;min-width:0}
body.rn-visual.home .education-section .education-home__title {
 display:block;margin:0;font-family:var(--rn-font-display);font-weight:var(--rn-weight-display);
 font-size:var(--rn-section-size);line-height:var(--rn-leading-heading);
 color:var(--rv-education-ink);text-align:center;text-align-last:auto;
}
body.rn-visual.home .education-section .education-home__intro p {
 display:block;max-width:640px;margin:var(--rv-space-2) auto 0;
 font-family:var(--rn-font-ui);font-size:var(--rn-text-ui-sm);line-height:1.9;
 color:var(--rv-education-muted);text-align:center;font-weight:var(--rn-weight-regular);
}
body.rn-visual.home .education-section .education-home__viewport {
 min-width:0;max-width:calc(100% + 8px);margin-inline:-4px;
 padding:var(--rv-space-4) var(--rv-space-1) 28px;overflow-x:auto;overflow-y:hidden;
 direction:rtl;scroll-snap-type:x mandatory;scroll-padding-inline:4px;
 overscroll-behavior-x:contain;overflow-anchor:none;scrollbar-width:none;
 touch-action:pan-x pan-y pinch-zoom;
}
body.rn-visual.home .education-section .education-home__viewport::-webkit-scrollbar {display:none}
body.rn-visual.home .education-section .education-home__grid {
 display:grid;grid-template-columns:none;grid-auto-flow:column;
 grid-auto-columns:calc((100% - var(--rv-education-gap)*3)/4);
 align-items:stretch;gap:var(--rv-education-gap);min-width:0;
}
body.rn-visual.home .education-section .education-card-pro--home {
 display:block;grid-column:auto;min-width:0;min-height:0;
 border:1px solid var(--rv-education-border);border-radius:var(--rv-education-radius);
 background:var(--rv-education-paper);box-shadow:var(--rv-education-shadow);
 overflow:hidden;transform:none;scroll-snap-align:start;
 transition:border-color var(--rv-motion-material) ease-out,box-shadow var(--rv-motion-material) ease-out;
}
body.rn-visual.home .education-section .education-card-pro__link {
 display:block;height:100%;padding:0;color:var(--rv-education-ink);
 border:0;border-radius:inherit;background:transparent;text-decoration:none;
 box-shadow:none;overflow:hidden;min-width:0;
}
body.rn-visual.home .education-section .education-card-pro--home .education-card-pro__media {
 position:relative;display:block;width:100%;height:auto;min-height:0;
 aspect-ratio:4 / 3;overflow:hidden;border:0;border-radius:0;
 background:var(--rv-education-label);
}
body.rn-visual.home .education-section .education-card-pro--home .education-card-pro__media img {
 display:block;width:100%;height:100%;max-width:none;object-fit:cover;
 object-position:center;filter:none;transform:none;
 transition:transform var(--rv-motion-image) ease-out;
}
body.rn-visual.home .education-section .education-card-pro--home .education-card-pro__badge {
 position:absolute;display:inline-flex;align-items:center;inset-inline-start:12px;
 inset-inline-end:auto;inset-block-start:12px;bottom:auto;
 max-width:calc(100% - 24px);min-height:26px;padding:2px var(--rv-space-2);
 border:0;border-radius:6px;background:var(--rv-education-label);
 color:var(--rv-education-sage);font-family:var(--rn-font-ui);font-size:var(--rn-text-xs);
 font-weight:var(--rn-weight-regular);line-height:var(--rn-leading-ui);box-shadow:none;
 -webkit-backdrop-filter:none;backdrop-filter:none;
}
body.rn-visual.home .education-section .education-card-pro--home .education-card-pro__body {
 display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:20px calc(var(--rn-card-title-size) * 3.6) calc(var(--rn-text-ui-sm) * 3.8);
 gap:var(--rv-space-1);min-width:0;height:auto;min-height:156px;padding:var(--rv-space-4);
 background:var(--rv-education-paper);text-align:start;
}
body.rn-visual.home .education-section .education-card-pro--home .education-card-pro__top {
 grid-row:1;display:flex;align-items:center;justify-content:flex-start;
 gap:var(--rv-space-2);margin:0;min-width:0;flex-wrap:nowrap;
 font-family:var(--rn-font-ui);font-size:var(--rn-text-xs);line-height:var(--rn-leading-ui);
 color:var(--rv-education-muted);font-weight:var(--rn-weight-regular);
}
body.rn-visual.home .education-section .education-card-pro--home .education-card-pro__top span {
 color:inherit;font-weight:var(--rn-weight-regular);white-space:nowrap;font-variant-numeric:tabular-nums;
}
body.rn-visual.home .education-section .education-card-pro__top span + span::before {
 content:"";display:inline-block;width:2px;height:2px;margin-inline-end:var(--rv-space-2);
 background:currentColor;vertical-align:middle;border-radius:50%;opacity:.55;
}
body.rn-visual.home .education-section .education-card-pro--home .education-card-pro__body h3 {
 grid-row:2;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
 overflow:hidden;min-height:0;max-height:calc(var(--rn-card-title-size) * 3.6);margin:0;padding:0;
 font-family:var(--rn-font-ui);font-size:var(--rn-card-title-size);font-weight:var(--rn-weight-medium);line-height:1.8;
 color:var(--rv-education-ink);overflow-wrap:anywhere;
}
body.rn-visual.home .education-section .education-card-pro--home .education-card-pro__body p {
 grid-row:3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
 overflow:hidden;min-height:0;max-height:calc(var(--rn-text-ui-sm) * 3.8);margin:0;padding:0;
 font-family:var(--rn-font-ui);font-size:var(--rn-text-ui-sm);font-weight:var(--rn-weight-regular);line-height:1.9;
 color:var(--rv-education-muted);overflow-wrap:anywhere;
}
body.rn-visual.home .education-section .education-home__navigation {
 display:flex;align-items:center;justify-content:center;gap:var(--rv-space-3);min-height:44px;margin-top:-8px;
}
body.rn-visual.home .education-section .education-home__navigation[hidden] {display:none}
body.rn-visual.home .education-section .education-home__arrow {
 display:grid;place-items:center;width:44px;height:44px;padding:var(--rv-space-3);
 border:1px solid var(--rv-education-border);border-radius:50%;
 background:var(--rv-education-paper);color:var(--rv-education-ink);
 box-shadow:var(--rv-shadow-1);cursor:pointer;
 transition:border-color var(--rv-motion-fast) ease-out,background-color var(--rv-motion-fast) ease-out;
}
body.rn-visual.home .education-section .education-home__arrow .icon {width:18px;height:18px;background:currentColor}
body.rn-visual.home .education-section .education-home__arrow:disabled {opacity:.42;cursor:default;box-shadow:none}
body.rn-visual.home .education-section .education-home__cta {display:flex;justify-content:center;margin-top:var(--rv-space-3)}
body.rn-visual.home .education-section .education-home__all {
 position:static;display:inline-flex;align-items:center;justify-content:center;gap:var(--rv-space-3);
 min-height:44px;max-width:100%;padding:var(--rv-space-2) var(--rv-space-4);border:1px solid transparent;
 border-radius:var(--rv-radius-sm);background:transparent;color:var(--rv-education-ink);
 font-family:var(--rn-font-ui);font-size:var(--rn-text-ui-sm);font-weight:var(--rn-weight-medium);line-height:var(--rn-leading-ui);
 box-shadow:none;transform:none;text-decoration:none;
 transition:color var(--rv-motion-fast) ease-out,border-color var(--rv-motion-fast) ease-out;
}
body.rn-visual.home .education-section .education-home__all .icon {width:16px;height:16px;background:currentColor}
body.rn-visual.home .education-section :is(a,button,.education-home__viewport):focus-visible {
 outline:2px solid var(--rv-education-focus);outline-offset:3px;
}
body.rn-visual.home .education-section .education-card-pro__link:focus-visible {outline-offset:-4px}
body.rn-visual.home .education-section .education-card-pro--home:focus-within {
 border-color:var(--rv-education-border-hover);box-shadow:var(--rv-education-hover-shadow);
}
@media (hover:hover) and (pointer:fine) {
 body.rn-visual.home .education-section .education-card-pro--home:hover {
  transform:none;border-color:var(--rv-education-border-hover);box-shadow:var(--rv-education-hover-shadow);
 }
 body.rn-visual.home .education-section .education-card-pro--home:hover img {transform:scale(1.02)}
 body.rn-visual.home .education-section .education-home__all:hover {
  color:var(--rv-education-sage);text-decoration:underline;text-underline-offset:4px;
 }
 body.rn-visual.home .education-section .education-home__arrow:not(:disabled):hover {border-color:var(--rv-education-border-hover)}
}
@media (min-width:768px) and (max-width:959px) {
 body.rn-visual.home .education-section .education-home__grid {grid-auto-columns:calc((100% - var(--rv-education-gap))/2)}
}
@media (min-width:960px) and (max-width:1099px) {
 body.rn-visual.home .education-section .education-home__grid {grid-auto-columns:calc((100% - var(--rv-education-gap)*2)/3)}
}
/* Center an incomplete row without enlarging its editorial cards. Safe
 * alignment keeps overflowing tablet rows at their native RTL start edge. */
@media (min-width:768px) {
 body.rn-visual.home .education-section .education-home__grid {
  justify-content:start;justify-content:safe center;
 }
}
@media (min-width:1100px) {
 /* The existing homepage query returns at most four items, all of which fit. */
 body.rn-visual.home .education-section .education-home__grid {justify-content:center}
}
@media (max-width:1099px) {
 body.rn-visual.home .site-main--front > .education-section {padding-block:var(--rv-space-8) var(--rv-space-12)}
}
@media (max-width:767px) {
 body.rn-visual.home .site-main--front > .education-section {--rv-education-gap:16px;padding-block:var(--rv-space-6) var(--rv-space-10)}
 body.rn-visual.home .education-section .education-home__heading {margin-bottom:var(--rv-space-4)}
 body.rn-visual.home .education-section .education-home__title {font-size:var(--rn-section-size);line-height:var(--rn-leading-heading);font-family:var(--rn-font-display);font-weight:var(--rn-weight-display);}
 body.rn-visual.home .education-section .education-home__intro p {font-size:var(--rn-text-ui-sm);line-height:1.9;font-family:var(--rn-font-ui);font-weight:var(--rn-weight-regular);}
 body.rn-visual.home .education-section .education-home__grid {grid-auto-columns:86%}
}
@media (prefers-reduced-motion:reduce) {
 body.rn-visual.home .education-section :is(.education-card-pro--home,.education-card-pro__media img,.education-home__arrow,.education-home__all) {transition:none;scroll-behavior:auto}
 body.rn-visual.home .education-section .education-card-pro--home:hover img {transform:none}
}
@media (forced-colors:active) {
 body.rn-visual.home .site-main--front > .education-section {
  --rv-education-ink:CanvasText;--rv-education-muted:CanvasText;--rv-education-paper:Canvas;
  --rv-education-canvas:none;--rv-education-border:ButtonText;--rv-education-border-hover:Highlight;
  --rv-education-label:Canvas;--rv-education-sage:CanvasText;--rv-education-focus:Highlight;
  --rv-education-shadow:none;--rv-education-hover-shadow:none;
 }
}
@media print {
 body.rn-visual.home .site-main--front > .education-section {padding-block:var(--rv-space-6);background:none}
 body.rn-visual.home .education-section .education-home__viewport {overflow:visible;margin:0;padding:0}
 body.rn-visual.home .education-section .education-home__grid {grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--rv-space-4)}
 body.rn-visual.home .education-section .education-card-pro--home {box-shadow:none;break-inside:avoid;background:#fff;color:#000}
 body.rn-visual.home .education-section .education-home__navigation {display:none}
}
