/* =========================================
   FEATURES — Skoolapps (Redesigned icons)
   ========================================= */

.features { background: var(--clr-bg); }

.features__header {
  text-align: center;
  margin-bottom: var(--sp-16);
}
.features__header h2 { line-height: var(--lh-snug); }
.features__header .text-teal { color: var(--clr-teal); }

/* ── Feature row layout ── */
.features__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: var(--sp-16);
  padding-block: var(--sp-16);
  border-bottom: 1px solid var(--clr-border);
}
.feature-item:last-child { border-bottom: none; }

.feature-item--reverse {
  grid-template-columns: 1fr 260px;
}
.feature-item--reverse .feature-item__content {
  order: 1;
  text-align: right;
}
.feature-item--reverse .feature-item__icon-wrap { order: 2; }

/* ── Icon wrap — large illustrated card ── */
.feature-item__icon-wrap {
  width: 240px;
  height: 240px;
  flex-shrink: 0;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.4s ease;
  cursor: default;
}

/* Each feature gets its own gradient + glow */
#feat-fees    .feature-item__icon-wrap { background: linear-gradient(135deg, #1d6e3e 0%, #2a9a5c 50%, #00c97a 100%); box-shadow: 0 16px 56px rgba(0,150,80,0.30); }
#feat-attend  .feature-item__icon-wrap { background: linear-gradient(135deg, #005f8e 0%, #0288c4 50%, #29b6f6 100%); box-shadow: 0 16px 56px rgba(2,136,196,0.28); }
#feat-exam    .feature-item__icon-wrap { background: linear-gradient(135deg, #6a1b9a 0%, #9c27b0 50%, #ce93d8 100%); box-shadow: 0 16px 56px rgba(156,39,176,0.25); }
#feat-comm    .feature-item__icon-wrap { background: linear-gradient(135deg, #b5390a 0%, #e64a19 50%, #ff8a65 100%); box-shadow: 0 16px 56px rgba(230,74,25,0.25); }
#feat-reports .feature-item__icon-wrap { background: linear-gradient(135deg, #1565c0 0%, #1976d2 50%, #64b5f6 100%); box-shadow: 0 16px 56px rgba(25,118,210,0.25); }
#feat-ops     .feature-item__icon-wrap { background: linear-gradient(135deg, #4e342e 0%, #6d4c41 50%, #a1887f 100%); box-shadow: 0 16px 56px rgba(109,76,65,0.25); }

/* Gloss sheen top-left */
.feature-item__icon-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 100%);
  border-radius: 28px 28px 0 0;
  pointer-events: none;
}

/* Subtle dot texture */
.feature-item__icon-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.feature-item:hover .feature-item__icon-wrap {
  transform: translateY(-10px) scale(1.04) rotate(-1deg);
}
#feat-fees:hover    .feature-item__icon-wrap { box-shadow: 0 28px 72px rgba(0,150,80,0.40); }
#feat-attend:hover  .feature-item__icon-wrap { box-shadow: 0 28px 72px rgba(2,136,196,0.38); }
#feat-exam:hover    .feature-item__icon-wrap { box-shadow: 0 28px 72px rgba(156,39,176,0.35); }
#feat-comm:hover    .feature-item__icon-wrap { box-shadow: 0 28px 72px rgba(230,74,25,0.35); }
#feat-reports:hover .feature-item__icon-wrap { box-shadow: 0 28px 72px rgba(25,118,210,0.35); }
#feat-ops:hover     .feature-item__icon-wrap { box-shadow: 0 28px 72px rgba(109,76,65,0.35); }

/* The SVG inside — large and detailed */
.feature-item__icon-wrap svg {
  width: 140px;
  height: 140px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.20));
}

/* ── Feature content ── */
.feature-item__content h3 {
  font-size: clamp(var(--fs-xl), 2.5vw, var(--fs-2xl));
  color: var(--clr-black);
  margin-bottom: var(--sp-4);
  transition: color var(--transition-fast);
}
.feature-item:hover .feature-item__content h3 { color: var(--clr-primary); }
.feature-item__content p {
  font-size: var(--fs-base);
  color: var(--clr-text-muted);
  line-height: var(--lh-loose);
  max-width: 520px;
}
.feature-item--reverse .feature-item__content p { margin-left: auto; }

/* Feature tag chips */
.feature-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.feature-item--reverse .feature-item__tags { justify-content: flex-end; }
.feature-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--clr-bg-alt);
  color: var(--clr-primary);
  border: 1px solid var(--clr-border);
}

/* ── CTA banner ── */
.cta-banner {
  background: var(--clr-primary);
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,201,122,0.15) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}
.cta-banner__inner { text-align: center; max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.cta-banner__inner h2 { color: var(--clr-white); margin-bottom: var(--sp-4); }
.cta-banner__inner p  { color: rgba(255,255,255,0.82); font-size: var(--fs-md); margin-bottom: var(--sp-8); }
.cta-banner__actions  { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .feature-item,
  .feature-item--reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .feature-item--reverse .feature-item__content { order: 2; text-align: center; }
  .feature-item--reverse .feature-item__icon-wrap { order: 1; }
  .feature-item__icon-wrap { width: 200px; height: 200px; }
  .feature-item__icon-wrap svg { width: 110px; height: 110px; }
  .feature-item__content p,
  .feature-item--reverse .feature-item__content p { max-width: 100%; margin: 0 auto; }
  .feature-item--reverse .feature-item__tags { justify-content: center; }
  .feature-item__tags { justify-content: center; }
}
@media (max-width: 480px) {
  .feature-item__icon-wrap { width: 170px; height: 170px; }
  .feature-item__icon-wrap svg { width: 90px; height: 90px; }
}
