/* ==========================================================================
   base.css — reset + page-level styles
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { min-height: 100vh; min-height: 100dvh; line-height: 1.5; text-rendering: optimizeLegibility;
  -webkit-user-select: none; user-select: none; /* prevent text highlighting */
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul[role="list"] { list-style: none; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

html, body {
  background: var(--color-bg-deep);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
}

.skip-link {
  position: absolute; top: 0; left: 0;
  padding: 12px 16px; background: #fff; color: #000;
  font-weight: var(--fw-medium);
  transform: translateY(-100%); z-index: 100;
}
.skip-link:focus { transform: translateY(0); }

/* Page background — gradient on element, image in ::before for per-breakpoint control */
.education {
  position: relative; min-height: 100vh; min-height: 100dvh;
  isolation: isolate; overflow-x: hidden;
  background-color: var(--color-bg-deep);
  background-image: radial-gradient(ellipse 80% 50% at 75% 0%, var(--color-bg-glow) 0%, transparent 60%);
}

/* Background image overlay — positioned, faded at edges, controlled per breakpoint */
.education::before {
  content: ""; position: absolute; inset: 0;
  background-image: url('../assets/bg_fancash.png');
  background-repeat: no-repeat;
  background-position: center 40%;
  background-size: cover;
  opacity: 0.35;
  pointer-events: none; z-index: -1;
  /* Mask to fade edges so no hard lines */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, black 15%, black 70%, transparent 100%);
  mask-image:
    linear-gradient(to bottom, transparent 0%, black 15%, black 70%, transparent 100%);
}

/* Mobile: subtle, lower opacity, positioned higher */
@media (max-width: 47.99rem) {
  .education::before {
    opacity: 0.25;
    background-position: center 30%;
    -webkit-mask-image:
      linear-gradient(to bottom, transparent 0%, black 20%, black 60%, transparent 90%);
    mask-image:
      linear-gradient(to bottom, transparent 0%, black 20%, black 60%, transparent 90%);
  }
}

/* Tablet: medium opacity */
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .education::before {
    opacity: 0.3;
    background-position: center 35%;
    -webkit-mask-image:
      linear-gradient(to bottom, transparent 0%, black 15%, black 65%, transparent 95%);
    mask-image:
      linear-gradient(to bottom, transparent 0%, black 15%, black 65%, transparent 95%);
  }
}
.education__container {
  width: 100%; max-width: 90rem; margin-inline: auto;
  padding-inline: 1.5rem; padding-block: 1.5rem 5rem;
}

/* Header */
.education__header { display: flex; justify-content: center; padding-block: 1rem 1.5rem; }
.logo { display: inline-flex; }
.logo__svg { width: 160px; height: auto; }

/* Tabs */
.tabs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--color-tab-divider);
  margin-bottom: 1.5rem;
}
.tabs__tab {
  position: relative; padding: 10px 6px;
  font-size: 13px; font-weight: var(--fw-semibold);
  color: var(--color-text-subtle); text-align: center;
  transition: color var(--duration-base) var(--ease-out);
  white-space: nowrap;
}
.tabs__tab::after {
  content: ""; position: absolute; left: 50%; bottom: -1px;
  width: 0; height: 3px; background: var(--color-accent-green);
  border-radius: 3px 3px 0 0; transform: translateX(-50%);
  transition: width var(--duration-base) var(--ease-out);
}
.tabs__tab:hover:not(.is-active) { color: var(--color-text-secondary); }
.tabs__tab.is-active { color: var(--color-text-primary); }
.tabs__tab.is-active::after { width: 80%; }
.tabs__tab:focus-visible { outline: 2px solid var(--color-accent-green); outline-offset: 4px; border-radius: var(--radius-sm); }

/* Panel animation */
.panel { display: flex; flex-direction: column; animation: panel-fade var(--duration-slow) var(--ease-out); }
@keyframes panel-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Panel heading — Figma: 40px/48px desktop, 40px/44px tablet, mobile smaller */
.panel__heading {
  font-size: 22px; font-weight: var(--fw-semibold);
  line-height: 30px; letter-spacing: -0.02em;
  text-align: center; margin-bottom: 16px; color: #fff;
}
.panel__heading br { display: inline; } /* show line breaks at all breakpoints */

/* Sub-description — lighter weight on mobile for hierarchy */
.panel__lede {
  font-size: 14px; line-height: 20px; font-weight: var(--fw-regular);
  color: var(--color-text-secondary); text-align: center;
  max-width: 599px; margin-inline: auto; margin-bottom: 2rem;
}

/* FanCash icon utility classes */
.fc-icon-sm { width: 32px; height: 32px; flex-shrink: 0; border-radius: 6px; }
.fc-icon-eq { width: 52px; height: 52px; border-radius: 8px; }
.fc-icon-snack { width: var(--card-snack-icon); height: var(--card-snack-icon); flex-shrink: 0; border-radius: 4px; }

/* Responsive — tablet */
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .education__container { padding-inline: 2.5rem; padding-block: 3rem 5rem; }
  .logo__svg { width: 200px; }
  .tabs { max-width: 48rem; margin-inline: auto; margin-bottom: 2.5rem; }
  .tabs__tab { font-size: 18px; padding: 16px; }
  .panel__heading { font-size: 40px; line-height: 44px; margin-bottom: 32px; }
  .panel__heading br { display: inline; }
  .panel__lede { font-size: 16px; line-height: 24px; font-weight: 600; margin-bottom: 3rem; }
}

/* Responsive — desktop */
@media (min-width: 64rem) {
  .education__container { padding-inline: 4rem; padding-block: 1.5rem 5rem; }
  .logo__svg { width: 220px; }
  .tabs { max-width: 48rem; margin-inline: auto; margin-bottom: 2.5rem; }
  .tabs__tab { font-size: 18px; padding: 16px 40px; }
  .panel__heading { font-size: 40px; line-height: 48px; margin-bottom: 32px; }
  .panel__heading br { display: inline; }
  .panel__lede { font-size: 16px; line-height: 24px; font-weight: 600; margin-bottom: 3rem; }
}
