/**
 * SCHOOLY Figma UI — homepage (loads last, overrides clean-ui)
 */

:root {
  --f-blue: #3366d1;
  --f-blue-dark: #2855b8;
  --f-red: #c6112e;
  --f-orange: #f97316;
  --f-black: #111111;
  --f-muted: #888888;
  --f-line: #e8e8e8;
  --f-soft: #f5f5f5;
  --f-card: #fafafa;
  --f-footer: #f8f8f8;
  --f-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --f-duration: 0.35s;
  --f-section-y: 4.5rem;
}

body.schooly-figma-home {
  background: #fff;
  font-family: "Cairo", "tajawal", sans-serif;
  --schooly-header-h: 106px;
  --f-hero-h: min(clamp(24rem, 66svh, 38rem), calc(100svh - var(--schooly-header-h)));
}

@media (max-width: 991px) {
  body.schooly-figma-home {
    --schooly-header-h: 68px;
  }
}

/* ═══════════════ HEADER (unified across all pages) ═══════════════ */
body .schooly-global-header {
  background: #fff !important;
  border-bottom: 1px solid var(--f-line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.schooly-figma-home .schooly-global-header__utility {
  min-height: 34px;
}

body.schooly-figma-home .schooly-global-nav__row {
  min-height: 72px !important;
}

body .schooly-global-nav__row {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  min-height: 72px !important;
  gap: 1rem !important;
}

body .schooly-global-brand {
  justify-self: start;
}

body .schooly-global-nav__menu {
  justify-self: center;
}

body .schooly-global-actions {
  justify-self: end;
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
}

body .schooly-global-menu {
  gap: 1.75rem !important;
}

body .schooly-global-menu > li > a {
  padding: 0 !important;
  min-height: auto !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--f-black) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  transition: color var(--f-duration) var(--f-ease) !important;
}

body .schooly-global-menu > li > a:hover,
body .schooly-global-menu > li.current-menu-item > a,
body .schooly-global-menu > li.current-menu-ancestor > a {
  color: var(--f-blue) !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Animated underline indicator instead of a filled background box */
body .schooly-global-menu > li > a {
  position: relative;
}

body .schooly-global-menu > li > a::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  bottom: -7px;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--f-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.32s var(--f-ease);
  pointer-events: none;
}

body .schooly-global-menu > li > a:hover::after,
body .schooly-global-menu > li.current-menu-item > a::after,
body .schooly-global-menu > li.current-menu-ancestor > a::after {
  transform: scaleX(1);
}

body .schooly-global-search,
body .schooly-global-action,
body .schooly-global-cart {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--f-black) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition:
    background var(--f-duration) var(--f-ease),
    color var(--f-duration) var(--f-ease),
    transform var(--f-duration) var(--f-ease) !important;
}

body .schooly-global-search:hover,
body .schooly-global-action:hover,
body .schooly-global-cart:hover {
  background: var(--f-soft) !important;
  color: var(--f-blue) !important;
  transform: translateY(-1px) !important;
}

body .schooly-global-search span,
body .schooly-global-search kbd,
body .schooly-global-action > span:not(.schooly-global-badge),
body .schooly-account-dropdown__chevron,
body .schooly-global-cart__text {
  display: none !important;
}

body .schooly-global-badge {
  background: var(--f-red) !important;
  min-width: 17px !important;
  height: 17px !important;
  font-size: 10px !important;
  top: 0 !important;
  inset-inline-end: -2px !important;
}

body .schooly-global-brand img,
body .custom-logo {
  max-height: 42px !important;
  width: auto !important;
}

body .schooly-account-dropdown.is-open .schooly-account-dropdown__toggle {
  background: var(--f-soft) !important;
  color: var(--f-blue) !important;
}

body .schooly-account-dropdown__panel {
  border-color: rgba(18, 53, 104, 0.1) !important;
  border-radius: 18px !important;
  box-shadow: 0 22px 50px rgba(18, 53, 104, 0.16) !important;
}

body .schooly-figma-lang {
  margin-inline-start: 0.75rem;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--f-black);
  color: var(--f-black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--f-duration) var(--f-ease), border-color var(--f-duration) var(--f-ease);
}

body .schooly-figma-lang:hover {
  color: var(--f-blue);
  border-color: var(--f-blue);
}

.schooly-school-detail-head__admin-mobile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  color: #3366d1;
  font-weight: 700;
}

.schooly-school-detail-head__admin-badge {
  display: inline-flex;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #2855b8;
  font-size: 0.6875rem;
  font-weight: 800;
}

/* ═══════════════ HERO ═══════════════ */
body.schooly-figma-home .figma-hero {
  margin: 0;
  padding: 0;
  max-height: calc(100svh - var(--schooly-header-h));
  overflow: hidden;
}

body.schooly-figma-home .figma-hero__slider {
  position: relative;
  height: var(--f-hero-h) !important;
  max-height: calc(100svh - var(--schooly-header-h));
  min-height: 0;
  overflow: hidden;
  background: #1a1a2e;
}

body.schooly-figma-home .figma-hero__slider .swiper-wrapper,
body.schooly-figma-home .figma-hero__slider .swiper-slide {
  height: 100% !important;
}

body.schooly-figma-home .figma-hero__slide {
  position: relative;
  height: 100%;
  min-height: 0;
}

body.schooly-figma-home .figma-hero__bg {
  position: absolute;
  inset: 0;
}

body.schooly-figma-home .figma-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    270deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

body.schooly-figma-home .figma-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none !important;
  transition: transform 8s var(--f-ease);
}

body.schooly-figma-home .figma-hero__slide.swiper-slide-active .figma-hero__bg img {
  transform: scale(1.04);
}

body.schooly-figma-home .figma-hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

body.schooly-figma-home .figma-hero__copy {
  max-width: min(520px, 100%);
  padding-block: clamp(1.25rem, 4vw, 2rem);
  text-align: start;
}

body.schooly-figma-home .figma-hero__label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

body.schooly-figma-home .figma-hero__price {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
}

body.schooly-figma-home .figma-hero__price strong {
  color: #fff;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 900;
}

body.schooly-figma-home .figma-hero__price del {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
  font-weight: 700;
}

body.schooly-figma-home .figma-hero__copy h1 {
  margin: 0 0 0.75rem;
  color: #fff !important;
  font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.75rem) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

body.schooly-figma-home .figma-hero__copy p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
  line-height: 1.65;
  max-width: 420px;
}

body.schooly-figma-home .figma-hero__watermark {
  position: absolute;
  z-index: 2;
  bottom: 1.25rem;
  inset-inline-end: max(1rem, calc((100% - 1320px) / 2 + 1rem));
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-size: 13px;
  opacity: 0.95;
}

body.schooly-figma-home .figma-hero__watermark img {
  max-height: 26px;
  filter: brightness(0) invert(1);
}

body.schooly-figma-home .figma-hero__pagination {
  position: absolute !important;
  z-index: 3;
  bottom: 1rem !important;
  left: 50% !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

body.schooly-figma-home .figma-hero__pagination .swiper-pagination-bullet {
  width: 32px;
  height: 3px;
  margin: 0 !important;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

body.schooly-figma-home .figma-hero__pagination .swiper-pagination-bullet-active {
  background: #fff;
}

/* ═══════════════ BUTTONS ═══════════════ */
body.schooly-figma-home .figma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 2.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--f-blue);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(51, 102, 209, 0.28);
  transition:
    background var(--f-duration) var(--f-ease),
    box-shadow var(--f-duration) var(--f-ease),
    transform var(--f-duration) var(--f-ease);
}

body.schooly-figma-home .figma-btn:hover {
  background: var(--f-blue-dark);
  color: #fff !important;
  box-shadow: 0 12px 32px rgba(51, 102, 209, 0.35);
  transform: translateY(-2px);
}

/* ═══════════════ SECTIONS (catalog) ═══════════════ */
body.schooly-figma-home .figma-sections {
  padding: var(--f-section-y) 0;
  background: #fff;
}

body.schooly-figma-home .figma-sections__head {
  margin-bottom: 1.75rem;
  text-align: center;
}

body.schooly-figma-home .figma-sections__head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.85rem);
  font-weight: 900;
  color: var(--f-black);
}

body.schooly-figma-home .figma-sections__head p {
  margin: 0;
  color: var(--f-muted);
  font-size: 0.9375rem;
}

body.schooly-figma-home .figma-sections__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

body.schooly-figma-home .figma-section-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.35rem 1rem;
  border: 1px solid var(--f-line);
  border-radius: 16px;
  background: var(--f-soft);
  text-decoration: none;
  transition:
    transform var(--f-duration) var(--f-ease),
    box-shadow var(--f-duration) var(--f-ease),
    background var(--f-duration) var(--f-ease);
}

body.schooly-figma-home .figma-section-card:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.08);
}

body.schooly-figma-home .figma-section-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #fff;
  color: var(--f-blue);
  font-size: 1.35rem;
  box-shadow: 0 6px 18px rgba(51, 102, 209, 0.12);
}

body.schooly-figma-home .figma-section-card__name {
  color: var(--f-black);
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

body.schooly-figma-home .figma-section-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--f-blue);
  font-size: 0.8125rem;
  font-weight: 800;
}

/* ═══════════════ SCHOOLS ═══════════════ */
body.schooly-figma-home .figma-schools {
  padding: var(--f-section-y) 0;
  background: #fff;
}

body.schooly-figma-home .figma-school {
  transition: transform var(--f-duration) var(--f-ease);
}

body.schooly-figma-home .figma-school:hover {
  transform: translateY(-4px);
}

body.schooly-figma-home .figma-school__box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1.15 / 1;
  background: var(--f-soft);
  text-decoration: none;
  transition:
    background var(--f-duration) var(--f-ease),
    box-shadow var(--f-duration) var(--f-ease);
}

body.schooly-figma-home .figma-school:hover .figma-school__box {
  background: #ececec;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.06);
}

body.schooly-figma-home .figma-school__fav {
  position: absolute;
  z-index: 2;
  top: 0.5rem;
  inset-inline-end: 0.5rem;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 14px;
  cursor: pointer;
  transition: color var(--f-duration) var(--f-ease), transform var(--f-duration) var(--f-ease);
}

body.schooly-figma-home .figma-school__fav.is-favorite {
  color: var(--f-red);
}

body.schooly-figma-home .figma-school__fav:hover {
  color: var(--f-red);
  transform: scale(1.1);
}

body.schooly-figma-home .figma-schools__title {
  margin: 0 0 2rem;
  text-align: center;
  color: var(--f-black);
  font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
  font-weight: 800;
}

body.schooly-figma-home .figma-schools__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

body.schooly-figma-home .figma-school {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

body.schooly-figma-home .figma-school__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1.25rem;
}

body.schooly-figma-home .figma-school__logo img {
  max-width: 85%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s var(--f-ease);
}

body.schooly-figma-home .figma-school:hover .figma-school__logo img {
  transform: scale(1.06);
}

body.schooly-figma-home .figma-school__name {
  color: var(--f-black);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: color var(--f-duration) var(--f-ease);
}

body.schooly-figma-home .figma-school__name:hover {
  color: var(--f-blue);
}

/* ═══════════════ CANVAS BACKGROUNDS ═══════════════ */
.schooly-canvas-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body.schooly-figma-home [data-canvas-bg] {
  position: relative;
  overflow: hidden;
}

body.schooly-figma-home [data-canvas-bg] > .container {
  position: relative;
  z-index: 1;
}

/* ═══════════════ PRODUCTS ═══════════════ */
body.schooly-figma-home .figma-products {
  padding: var(--f-section-y) 0;
  background: #fff;
}

body.schooly-figma-home .figma-products--new {
  border-top: 1px solid var(--f-line);
}

body.schooly-figma-home .figma-products--best {
  border-top: 1px dashed rgba(51, 102, 209, 0.35);
}

body.schooly-figma-home .figma-products__head {
  text-align: center;
  margin-bottom: 0.5rem;
}

body.schooly-figma-home .figma-products__head h2 {
  margin: 0;
  color: var(--f-black);
  font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
  font-weight: 800;
}

body.schooly-figma-home .figma-products__head p {
  margin: 0.35rem 0 0;
  color: var(--f-muted);
  font-size: 15px;
  line-height: 1.6;
}

body.schooly-figma-home .figma-products__head a {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--f-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--f-duration) var(--f-ease);
}

body.schooly-figma-home .figma-products__head a:hover {
  color: var(--f-blue);
}

body.schooly-figma-home .figma-products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}

body.schooly-figma-home .figma-products--best .figma-products__head {
  margin-bottom: 0;
}

/* ═══════════════ HOMEPAGE BANNERS ═══════════════ */
body.schooly-figma-home .figma-home-banner.schooly-campaigns {
  display: block !important;
  padding: var(--f-section-y) 0;
  background: #fff;
  overflow: visible;
}

body.schooly-figma-home .figma-home-banner__head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 1.75rem;
}

body.schooly-figma-home .figma-home-banner__head h2 {
  margin: 0;
  color: var(--f-black);
  font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
  font-weight: 800;
}

body.schooly-figma-home .figma-home-banner__head p {
  margin: 0.35rem 0 0;
  color: var(--f-muted);
  font-size: 15px;
  line-height: 1.6;
}

body.schooly-figma-home .figma-home-banner .schooly-campaign-card {
  height: clamp(18rem, 34vw, 26rem);
  min-height: 280px;
}

body.schooly-figma-home .figma-home-banner .schooly-campaigns__container {
  width: min(calc(100% - 48px), 1380px);
}

body.schooly-figma-home .figma-products__foot {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

body.schooly-figma-home .figma-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 1.25rem 0 0;
}

body.schooly-figma-home .figma-tabs__btn {
  padding: 0 0 0.4rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--f-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color var(--f-duration) var(--f-ease),
    border-color var(--f-duration) var(--f-ease);
}

body.schooly-figma-home .figma-tabs__btn:hover {
  color: var(--f-blue);
}

body.schooly-figma-home .figma-tabs__btn.is-active,
body.schooly-figma-home .figma-tabs__btn[aria-selected="true"],
body.schooly-figma-home .figma-tabs__btn.is-active[aria-selected="true"] {
  background: transparent !important;
  color: var(--f-blue) !important;
  border-color: transparent !important;
  border-bottom: 2px solid var(--f-blue) !important;
  box-shadow: none !important;
}

body.schooly-figma-home .figma-tabs__panel {
  display: none;
}

body.schooly-figma-home .figma-tabs__panel.is-active {
  display: block;
}

/* AJAX tab skeleton (site-colored shimmer) */
body.schooly-figma-home .figma-tabs__skeleton {
  margin-top: 2rem;
}

body.schooly-figma-home .figma-skel-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--f-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

body.schooly-figma-home .figma-skel-card__img {
  aspect-ratio: 1 / 1;
  border-radius: 0;
}

body.schooly-figma-home .figma-skel-card__line {
  height: 14px;
  margin: 1rem 1.125rem 0;
  border-radius: 4px;
}

body.schooly-figma-home .figma-skel-card__line.short {
  width: 60%;
  margin-top: 0.55rem;
}

body.schooly-figma-home .figma-skel-card__price {
  width: 42%;
  height: 18px;
  margin: 0.75rem 1.125rem 1.25rem;
  border-radius: 4px;
}

body.schooly-figma-home .figma-empty {
  margin-top: 2rem;
  text-align: center;
  color: var(--f-muted);
}

/* Product card — unified store design */
.figma-product-card.schooly-product-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  padding: 0 !important;
  border: 1px solid var(--f-line) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 12px rgba(17, 17, 17, 0.04) !important;
  background: #fff !important;
  overflow: hidden !important;
  transform: none !important;
  transition:
    transform var(--f-duration) var(--f-ease),
    box-shadow var(--f-duration) var(--f-ease),
    border-color var(--f-duration) var(--f-ease) !important;
}

.figma-product-card.schooly-product-card::after {
  display: none !important;
}

.figma-product-card.schooly-product-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(51, 102, 209, 0.18) !important;
  box-shadow: 0 20px 48px rgba(17, 17, 17, 0.1) !important;
}

.figma-product-card .schooly-product-card__image,
.figma-product-card__media {
  position: relative !important;
  flex: none !important;
  width: 100% !important;
  margin: 0 !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  background: var(--f-soft) !important;
  box-shadow: none !important;
}

.figma-product-card__img-link,
.figma-product-card .schooly-product-card__image .product-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.figma-product-card__media img,
.figma-product-card .schooly-product-card__image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: scale(1) !important;
  filter: none !important;
  transition: transform 0.55s var(--f-ease) !important;
}

.figma-product-card:hover .figma-product-card__media img,
.figma-product-card:hover .schooly-product-card__image img {
  transform: scale(1.06) !important;
}

.figma-product-card .schooly-product-card__image-shade {
  display: none !important;
}

.figma-product-card__badges {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 4;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  max-width: calc(100% - 3.5rem);
}

.figma-badge {
  flex: 0 0 auto;
  padding: 0.32rem 0.6rem;
  border-radius: 3px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.figma-badge--discount {
  background: var(--f-red);
  font-weight: 800;
}

.figma-badge--top {
  background: var(--f-blue);
  font-weight: 600;
}

.figma-badge--flash {
  background: var(--f-black);
  font-weight: 600;
}

.figma-badge--new {
  background: #6b7280;
}

.figma-badge--sold {
  background: var(--f-black);
}

.figma-product-card__actions {
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity var(--f-duration) var(--f-ease),
    transform var(--f-duration) var(--f-ease);
}

.figma-product-card:hover .figma-product-card__actions {
  opacity: 1;
  transform: translateY(0);
}

.figma-product-card__action {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #6b7280;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition:
    color var(--f-duration) var(--f-ease),
    transform var(--f-duration) var(--f-ease),
    background var(--f-duration) var(--f-ease),
    box-shadow var(--f-duration) var(--f-ease);
}

.figma-product-card__view:hover {
  color: var(--f-blue);
  background: #fff;
  transform: scale(1.08);
}

.figma-product-card__wish:hover {
  color: var(--f-red);
  background: #fff;
  transform: scale(1.08);
}

.figma-product-card__info,
.figma-product-card .schooly-product-card__body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  gap: 0 !important;
  padding: 1rem 1.125rem 1.25rem !important;
  background: #fff !important;
}

.figma-product-card__cat {
  display: block;
  margin: 0 0 0.35rem;
  color: var(--f-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

.figma-product-card h3,
.figma-product-card .figma-product-card__title {
  min-height: auto !important;
  margin: 0 0 0.65rem !important;
  padding: 0 !important;
  color: var(--f-black) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.figma-product-card__title a,
.figma-product-card h3 a {
  color: var(--f-black) !important;
  text-decoration: none;
  transition: color var(--f-duration) var(--f-ease);
}

.figma-product-card__title a:hover,
.figma-product-card:hover h3 a {
  color: var(--f-blue) !important;
}

.figma-product-card__price,
.figma-product-card .schooly-product-card__price {
  display: flex !important;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.5rem;
  margin-top: auto !important;
  padding-top: 0.5rem !important;
  color: var(--f-blue) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.figma-product-card__price > .woocommerce-Price-amount {
  color: var(--f-blue) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
}

.figma-product-card__price ins,
.figma-product-card__price ins .woocommerce-Price-amount,
.figma-product-card .schooly-product-card__price ins {
  color: #dc2626 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  opacity: 1 !important;
}

.figma-product-card__price del,
.figma-product-card .schooly-product-card__price del {
  color: #4b5c76 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  opacity: 1 !important;
  position: relative !important;
  display: inline-block !important;
}

.figma-product-card__price del .woocommerce-Price-amount,
.figma-product-card .schooly-product-card__price del .woocommerce-Price-amount {
  color: inherit !important;
  text-decoration: none !important;
}

.figma-product-card__price del::after,
.figma-product-card .schooly-product-card__price del::after {
  content: "" !important;
  position: absolute !important;
  left: 12% !important;
  right: 12% !important;
  top: 52% !important;
  height: 1px !important;
  background: rgba(75, 92, 118, 0.55) !important;
  pointer-events: none !important;
}

.figma-product-card__price .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.5rem;
}

.figma-product-card__swatches {
  display: flex;
  gap: 6px;
  margin-top: 0.75rem;
  padding-top: 0;
}

.figma-product-card__swatches span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--swatch, #d1d5db);
  border: 1px solid rgba(0, 0, 0, 0.12);
  transition: transform var(--f-duration) var(--f-ease);
}

.figma-product-card:hover .figma-product-card__swatches span {
  transform: scale(1.08);
}

.figma-product-card__view-link.schooly-product-link {
  display: inline-flex !important;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
  max-width: 100%;
  min-height: 42px;
  margin-top: 0.85rem;
  padding: 0 0.6rem 0 0.875rem;
  border: 1px solid var(--f-line);
  border-radius: 10px;
  background: var(--f-soft);
  color: var(--f-black);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background var(--f-duration) var(--f-ease),
    color var(--f-duration) var(--f-ease),
    border-color var(--f-duration) var(--f-ease),
    transform var(--f-duration) var(--f-ease);
}

.figma-product-card__view-link.schooly-product-link i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--f-black);
  font-size: 11px;
  transition:
    transform var(--f-duration) var(--f-ease),
    background var(--f-duration) var(--f-ease),
    color var(--f-duration) var(--f-ease);
}

.figma-product-card:hover .figma-product-card__view-link.schooly-product-link {
  border-color: var(--f-blue);
  background: var(--f-blue);
  color: #fff;
}

.figma-product-card:hover .figma-product-card__view-link.schooly-product-link i {
  background: #fff;
  color: var(--f-blue);
  transform: translateX(-3px);
}

.figma-product-card .product-action_list {
  display: none !important;
}

/* ═══════════════ OUT OF STOCK ═══════════════ */
.figma-product-card.is-out-of-stock .figma-product-card__img-link img {
  opacity: 0.55;
  filter: grayscale(30%);
}

.figma-product-card__oos-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
  pointer-events: none;
}

.figma-product-card__oos-overlay span {
  padding: 6px 16px;
  border-radius: 6px;
  background: rgba(15, 15, 15, 0.82);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

/* ═══════════════ AVAILABLE SIZES ═══════════════ */
.figma-product-card__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.figma-product-card__sizes span {
  min-width: 30px;
  padding: 2px 7px;
  border: 1px solid #d1d9e6;
  border-radius: 5px;
  background: #f4f6fb;
  color: #3a4a6b;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  line-height: 1.6;
}

.figma-product-card__sizes--oos span {
  border-color: #e9c8c8;
  background: #fdf3f3;
  color: #b94040;
}

/* ═══════════════ TRENDING ═══════════════ */
body.schooly-figma-home .figma-trending {
  padding: var(--f-section-y) 0;
  background: #fff;
  border-top: 1px solid var(--f-line);
}

body.schooly-figma-home .figma-trending .figma-section-head h2 {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
  font-weight: 800;
}

body.schooly-figma-home .figma-trending .figma-section-head p {
  text-align: center;
  color: var(--f-muted);
  font-size: 14px;
}

body.schooly-figma-home .figma-trending__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

body.schooly-figma-home .figma-trending__card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  text-decoration: none;
  border-radius: 4px;
  transition:
    transform var(--f-duration) var(--f-ease),
    box-shadow var(--f-duration) var(--f-ease);
}

body.schooly-figma-home .figma-trending__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0%, transparent 55%);
  pointer-events: none;
  transition: opacity var(--f-duration) var(--f-ease);
}

body.schooly-figma-home .figma-trending__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.12);
}

body.schooly-figma-home .figma-trending__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--f-ease);
}

body.schooly-figma-home .figma-trending__card:hover img {
  transform: scale(1.05);
}

body.schooly-figma-home .figma-trending__label {
  position: absolute;
  z-index: 2;
  bottom: 1rem;
  inset-inline-start: 1rem;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

/* ═══════════════ BLOG ═══════════════ */
body.schooly-figma-home .figma-blog {
  padding: var(--f-section-y) 0;
  background: #fff;
  border-top: 1px solid var(--f-line);
}

/* ═══════════════ SCHOOLS STRIP (premium cover cards) ═══════════════ */
.schooly-schools-strip {
  --st-green: #1a7a52;
  --st-green-deep: #0f5a3a;
  --st-green-soft: #e8f6ef;
  --st-bg: #f4f9f7;
  --st-card-w: clamp(300px, 26vw, 352px);
  --st-logo: 60px;
  position: relative;
  padding: 56px 0 30px;
  background:
    radial-gradient(85% 60% at 50% 0%, rgba(26, 122, 82, 0.08) 0%, rgba(26, 122, 82, 0) 60%),
    var(--st-bg);
  overflow: hidden;
}

.schooly-schools-strip::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -120px;
  inset-inline-end: -90px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 98, 206, 0.1) 0%, rgba(47, 98, 206, 0) 70%);
  pointer-events: none;
}

.schooly-schools-strip > .container {
  position: relative;
  z-index: 2;
}

/* ── Header ── */
.schooly-schools-strip__head {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
}

.schooly-schools-strip__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 16px;
  border: 1px solid rgba(26, 122, 82, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--st-green-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 18px rgba(15, 90, 58, 0.08);
  backdrop-filter: blur(6px);
}

.schooly-schools-strip__eyebrow i {
  color: var(--st-green);
}

.schooly-schools-strip__title {
  margin: 0;
  color: #0c2a1f;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.schooly-schools-strip__subtitle {
  margin: 10px 0 0;
  color: #5a6b64;
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 600;
  line-height: 1.6;
}

/* ── Marquee (CSS-driven, smooth & click-proof) ── */
.schooly-schools-marquee {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 12px 0 16px;
  overflow: hidden;
  /* Run the scroll mechanics in LTR so the transform stays predictable in RTL pages. */
  direction: ltr;
}

.schooly-schools-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: schooly-schools-scroll var(--marquee-duration, 40s) linear infinite;
}

/* Pause smoothly when the user hovers anywhere over the strip. */
.schooly-schools-marquee:hover .schooly-schools-marquee__track {
  animation-play-state: paused;
}

.schooly-schools-marquee__group {
  display: flex;
  gap: 16px;
  padding-inline-end: 16px;
  flex: 0 0 auto;
}

@keyframes schooly-schools-scroll {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .schooly-schools-marquee__track {
    animation: none;
  }
  .schooly-schools-marquee {
    overflow-x: auto;
  }
}

.schools-ticker-slide {
  width: var(--st-card-w);
  flex: 0 0 var(--st-card-w);
}

/* ── Card ── */
.schooly-ticker-card {
  position: relative;
  width: 100%;
  height: 100%;
  /* Restore RTL for the Arabic card content inside the LTR marquee. */
  direction: rtl;
  border: 1px solid rgba(15, 40, 90, 0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 2px 6px rgba(15, 40, 90, 0.04),
    0 16px 40px rgba(15, 40, 90, 0.09);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.5s ease,
    border-color 0.4s ease;
}

.schooly-ticker-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  border: 1.5px solid transparent;
  pointer-events: none;
  transition: border-color 0.4s ease;
}

.schooly-ticker-card:hover {
  border-color: rgba(26, 122, 82, 0.28);
  box-shadow:
    0 4px 10px rgba(15, 40, 90, 0.06),
    0 30px 64px rgba(15, 90, 58, 0.18);
  transform: translateY(-8px);
}

.schooly-ticker-card:hover::after {
  border-color: rgba(26, 122, 82, 0.22);
}

.schooly-ticker-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.schooly-ticker-card__fav {
  position: absolute;
  z-index: 5;
  top: 13px;
  inset-inline-end: 13px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--f-blue);
  box-shadow: 0 8px 22px rgba(15, 40, 90, 0.18);
  backdrop-filter: blur(10px);
  transition:
    transform 0.35s ease,
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.schooly-ticker-card__fav:hover,
.schooly-ticker-card__fav.is-favorite {
  border-color: var(--f-blue);
  background: var(--f-blue);
  color: #fff;
  transform: scale(1.12) rotate(-6deg);
}

/* Heart pops like product cards when favorited. */
.schooly-ticker-card__fav.is-favorite i {
  animation: heartBeat 0.6s ease;
}

/* ── Cover (full image, never cropped) ── */
.schooly-ticker-card__cover {
  position: relative;
  aspect-ratio: 16 / 7.5;
  overflow: hidden;
  background: linear-gradient(150deg, #0f2e23 0%, #15463a 55%, #0c2a1f 100%);
}

/* Blurred backdrop fills the empty space behind the contained image. */
.schooly-ticker-card__blur {
  position: absolute;
  inset: -12%;
  z-index: 0;
  background-image: var(--st-cover);
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(1.35) brightness(0.85);
  transform: scale(1.18);
  opacity: 0.6;
}

.schooly-ticker-card__img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition:
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.45s ease;
}

.schooly-ticker-card:hover .schooly-ticker-card__img {
  transform: scale(1.05);
  filter: saturate(1.06);
}

.schooly-ticker-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(130% 90% at 50% -10%, rgba(9, 24, 55, 0) 45%, rgba(9, 24, 55, 0.22) 100%),
    linear-gradient(180deg, rgba(7, 31, 22, 0) 42%, rgba(7, 31, 22, 0.42) 80%, rgba(7, 31, 22, 0.62) 100%);
  pointer-events: none;
}

.schooly-ticker-card__shine {
  position: absolute;
  inset: -45% -50%;
  z-index: 3;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 42%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 58%
  );
  transform: translateX(-40%) rotate(6deg);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.85s ease;
  pointer-events: none;
}

.schooly-ticker-card:hover .schooly-ticker-card__shine {
  opacity: 1;
  transform: translateX(38%) rotate(6deg);
}

.schooly-ticker-card__products {
  position: absolute;
  z-index: 4;
  bottom: 13px;
  inset-inline-start: 13px;
  min-height: 27px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(7, 31, 22, 0.5);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.2px;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.22);
}

.schooly-ticker-card__products i {
  font-size: 9px;
  opacity: 0.85;
}

/* ── Body ── */
.schooly-ticker-card__body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 17px 15px;
  text-align: start;
}

/* Logo straddles the cover / body boundary on the right (lives in body, not clipped). */
.schooly-ticker-card__logo {
  position: absolute;
  z-index: 5;
  top: 0;
  inset-inline-end: 17px;
  width: var(--st-logo);
  height: var(--st-logo);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.28);
  transform: translateY(-50%);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.schooly-ticker-card:hover .schooly-ticker-card__logo {
  transform: translateY(-50%) scale(1.07) rotate(-3deg);
}

.schooly-ticker-card__logo img {
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: cover;
}

.schooly-ticker-card__label,
.schooly-ticker-card__name {
  max-width: calc(100% - var(--st-logo) - 6px);
}

.schooly-ticker-card__label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  color: var(--st-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.schooly-ticker-card__name {
  margin: 0;
  min-height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #0c2a1f;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -0.2px;
}

.schooly-ticker-card__cta {
  width: 100%;
  margin-top: auto;
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(15, 40, 90, 0.08);
  color: var(--st-green-deep);
  font-size: 12px;
  font-weight: 800;
}

.schooly-ticker-card__cta i {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--st-green-soft);
  color: var(--st-green);
  transition:
    transform 0.4s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.schooly-ticker-card:hover .schooly-ticker-card__cta i {
  background: var(--st-green);
  color: #fff;
  transform: translateX(-5px);
}

/* ── Discover more button ── */
.schooly-schools-strip__more {
  margin-top: 26px;
  text-align: center;
}

.schooly-schools-strip__more-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--st-green) 0%, var(--st-green-deep) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(15, 90, 58, 0.28);
  transition:
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.4s ease,
    filter 0.3s ease;
}

.schooly-schools-strip__more-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow: 0 20px 40px rgba(15, 90, 58, 0.4);
}

.schooly-schools-strip__more-btn i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  transition: transform 0.4s ease, background 0.3s ease;
}

.schooly-schools-strip__more-btn:hover i {
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(-5px);
}

@media (max-width: 768px) {
  .schooly-schools-strip {
    --st-card-w: clamp(264px, 80vw, 320px);
    --st-logo: 54px;
    padding: 40px 0 22px;
  }

  .schooly-schools-strip__head {
    margin-bottom: 22px;
  }

  .schooly-ticker-card__name {
    font-size: 16px;
    min-height: 44px;
  }

  .schooly-schools-strip__more {
    margin-top: 20px;
  }
}

body.schooly-figma-home .figma-blog__card {
  transition:
    transform var(--f-duration) var(--f-ease),
    box-shadow var(--f-duration) var(--f-ease);
}

body.schooly-figma-home .figma-blog__card:hover {
  transform: translateY(-4px);
}

body.schooly-figma-home .figma-blog__card h3 a {
  transition: color var(--f-duration) var(--f-ease);
}

body.schooly-figma-home .figma-blog__card:hover h3 a {
  color: var(--f-blue);
}

body.schooly-figma-home .figma-blog__card h3 {
  margin: 0.75rem 0 0.35rem;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

body.schooly-figma-home .figma-blog__card h3 a {
  color: var(--f-black);
  text-decoration: none;
}

body.schooly-figma-home .figma-blog__thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

body.schooly-figma-home .figma-blog__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--f-ease);
}

body.schooly-figma-home .figma-blog__card:hover .figma-blog__thumb img {
  transform: scale(1.05);
}

body.schooly-figma-home .figma-blog__thumb time {
  position: absolute;
  top: 0.65rem;
  inset-inline-start: 0.65rem;
  padding: 4px 8px;
  background: var(--f-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

body.schooly-figma-home .figma-blog__read {
  color: var(--f-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-transform: uppercase;
  transition: color var(--f-duration) var(--f-ease);
}

body.schooly-figma-home .figma-blog__read:hover {
  color: var(--f-blue);
}

body.schooly-figma-home .figma-blog__pagination {
  position: relative !important;
  margin-top: 1.25rem;
  text-align: center;
}

body.schooly-figma-home .figma-blog__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  opacity: 1;
}

body.schooly-figma-home .figma-blog__pagination .swiper-pagination-bullet-active {
  background: var(--f-black);
}

/* ═══════════════ FEATURES BAR ═══════════════ */
body.schooly-figma-home .figma-features {
  padding: 2.5rem 0;
  background: #fff;
  border-top: 1px solid var(--f-line);
}

body.schooly-figma-home .figma-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

body.schooly-figma-home .figma-features__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 0 1.5rem;
  transition: transform var(--f-duration) var(--f-ease);
}

body.schooly-figma-home .figma-features__item:hover {
  transform: translateY(-3px);
}

body.schooly-figma-home .figma-features__item i {
  font-size: 1.75rem;
  color: var(--f-black);
  margin-bottom: 0.35rem;
  transition: color var(--f-duration) var(--f-ease);
}

body.schooly-figma-home .figma-features__item:hover i {
  color: var(--f-blue);
}

body.schooly-figma-home .figma-features__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10%;
  inset-inline-end: 0;
  width: 1px;
  height: 80%;
  background: var(--f-line);
}

body.schooly-figma-home .figma-features__item strong {
  color: var(--f-black);
  font-size: 15px;
  font-weight: 800;
}

body.schooly-figma-home .figma-features__item span {
  color: var(--f-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ═══════════════ FOOTER ═══════════════ */
/* Keep the polished dark navy footer; only hide the duplicate trust strip
   on the homepage because HomeTrustBar already shows the features. */
body.schooly-figma-home .sf__trust {
  display: none !important;
}

/* Hide legacy homepage sections noise */
body.schooly-figma-home .ecommza-section {
  padding: 0 !important;
  background: transparent !important;
}

body.schooly-figma-home main > .container:first-child {
  padding: 0;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1199px) {
  body.schooly-figma-home .figma-schools__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  body.schooly-figma-home .figma-products__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 576px) {
  body.schooly-figma-home {
    --f-hero-h: min(clamp(22rem, 60svh, 34rem), calc(100svh - var(--schooly-header-h)));
  }
}

@media (min-width: 768px) {
  body.schooly-figma-home {
    --f-hero-h: min(clamp(23rem, 63svh, 36rem), calc(100svh - var(--schooly-header-h)));
  }

  body.schooly-figma-home .figma-hero__bg::after {
    background: linear-gradient(
      270deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.22) 50%,
      rgba(0, 0, 0, 0.08) 100%
    );
  }
}

@media (min-width: 1200px) {
  body.schooly-figma-home {
    --f-hero-h: min(clamp(24rem, 66svh, 38rem), calc(100svh - var(--schooly-header-h)));
  }
}

@media (max-width: 991px) {
  body.schooly-figma-home .figma-hero__inner {
    align-items: flex-end;
    padding-bottom: 2.75rem;
  }

  body.schooly-figma-home .figma-hero__bg::after {
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.35) 45%,
      rgba(0, 0, 0, 0.12) 100%
    );
  }

  body.schooly-figma-home .figma-hero__copy {
    max-width: 100%;
    padding-block: 0;
  }

  body.schooly-figma-home .figma-hero__copy p {
    max-width: 100%;
    margin-bottom: 1.125rem;
  }

  body.schooly-figma-home .figma-hero__watermark {
    display: none;
  }

  body.schooly-figma-home .figma-hero__pagination {
    bottom: 0.75rem !important;
  }

  body .schooly-global-nav__menu {
    display: none !important;
  }
  body.schooly-figma-home .schooly-global-nav__row {
    grid-template-columns: 1fr auto !important;
  }
  body.schooly-figma-home .figma-schools__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  body.schooly-figma-home .figma-sections__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  body.schooly-figma-home .figma-products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  body.schooly-figma-home .figma-features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  body.schooly-figma-home .figma-home-banner .schooly-campaign-card {
    height: clamp(16rem, 58vw, 22rem);
    min-height: 260px;
  }

  body.schooly-figma-home .figma-home-banner .schooly-campaigns__container {
    width: calc(100% - 30px);
  }
  body.schooly-figma-home .figma-features__item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 575px) {
  body.schooly-figma-home {
    --f-hero-h: min(clamp(17rem, 44svh, 22rem), calc(100svh - var(--schooly-header-h)));
  }

  body.schooly-figma-home .figma-hero__inner {
    padding-bottom: 2.25rem;
  }

  body.schooly-figma-home .figma-hero__copy h1 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem) !important;
    margin-bottom: 0.5rem;
  }

  body.schooly-figma-home .figma-hero__copy p {
    font-size: 0.8125rem;
    line-height: 1.55;
    margin-bottom: 1rem;
  }

  body.schooly-figma-home .figma-hero .figma-btn {
    min-height: 42px;
    padding: 0 1.5rem;
    font-size: 14px;
  }

  body.schooly-figma-home .figma-schools__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  body.schooly-figma-home .figma-trending__grid {
    grid-template-columns: 1fr;
  }
  body.schooly-figma-home .figma-tabs {
    gap: 1rem;
  }
}
