/* ============================================
   PAGE-SPECIFIC STYLES - RESOURCES HUB (REDESIGN)
   You asked: keep same CSS files -> we upgrade this file only.
   ============================================ */

/* Local tokens (safe even if shared-common defines none) */
:root{
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 10px 18px -18px rgba(0,0,0,0.22);
  --shadow-md: 0 18px 40px -26px rgba(0,0,0,0.35);
  --ring: 0 0 0 0.2rem rgba(16,185,129,0.14);
}

/* =========================
   HERO (upgrade your existing .resources-hero)
   ========================= */
.resources-hero{
  position: relative;
  padding: 92px 0 64px;
  background:
    radial-gradient(1200px 620px at 10% 12%, rgba(16,185,129,0.22), transparent 58%),
    radial-gradient(900px 540px at 92% 18%, rgba(6,95,70,0.18), transparent 60%),
    linear-gradient(135deg, rgba(236,253,245,1) 0%, rgba(255,255,255,1) 55%, rgba(243,244,246,1) 100%);
  border-bottom: 1px solid rgba(229,231,235,1);
  overflow: hidden;
}

.resources-hero::before{
  content:"";
  position:absolute;
  inset:auto -120px -220px auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.22), transparent 62%);
  filter: blur(2px);
}

.resources-breadcrumb a{
  color: var(--text-muted);
  text-decoration: none;
}
.resources-breadcrumb a:hover{
  color: var(--primary-green);
}

/* Hero kicker pills */
.hero-kicker{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom: 14px;
}
.kicker-pill{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.18);
  color: var(--dark-green);
}
.kicker-pill-ghost{
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(229,231,235,1);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.hero-title{
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
}
.hero-title-accent{
  display:block;
  font-weight: 900;
  color: var(--dark-green);
  letter-spacing: -0.03em;
}

.hero-lead{
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

/* Benefits row */
.hero-benefits{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
}
.benefit{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(229,231,235,1);
  box-shadow: 0 10px 30px -25px rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
  font-weight: 700;
  color: #374151;
}
.benefit i{ color: var(--primary-green); }

/* Hero side panel (replaces the basic search card look) */
.hero-side{
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(229,231,235,0.95);
  border-radius: 18px;
  box-shadow: 0 24px 45px -35px rgba(0,0,0,0.55);
  padding: 22px;
  backdrop-filter: blur(12px);
}

.hero-side-top{
  display:flex;
  gap: 12px;
  align-items:center;
}
.hero-side-icon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: rgba(16,185,129,0.14);
  color: var(--dark-green);
  font-size: 1.25rem;
}

/* upgrade existing search controls */
.search-wrap{
  position: relative;
}
.search-icon{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
}
.search-input{
  padding-left: 44px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  height: 52px;
}
.search-input:focus{
  border-color: rgba(16,185,129,0.65);
  box-shadow: var(--ring);
}

/* chips */
.chips{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}
.chip{
  appearance:none;
  border: 1px solid rgba(16,185,129,0.20);
  background: rgba(16,185,129,0.08);
  color: var(--dark-green);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.chip:hover{
  transform: translateY(-2px);
  border-color: rgba(16,185,129,0.45);
  background: rgba(16,185,129,0.12);
}

.hero-side-note{
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(243,244,246,0.7);
  border: 1px solid rgba(229,231,235,1);
  border-radius: 14px;
  padding: 12px 12px;
}
.hero-side-note a{
  color: var(--dark-green);
  font-weight: 800;
  text-decoration: none;
}
.hero-side-note a:hover{ text-decoration: underline; }

/* =========================
   SECTIONS
   ========================= */
.resources-section{
  padding: 86px 0;
}

.resources-section-alt{
  background: #f9fafb;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}

.section-title{
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-subtitle{
  color: var(--text-muted);
  margin-bottom: 0;
}

/* =========================
   SUBJECT CARDS (upgrade existing .subject-card)
   ========================= */
.subject-card{
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 22px;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.subject-card::before{
  content:"";
  position:absolute;
  inset:-120px -160px auto auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.18), transparent 62%);
}

.subject-card:hover{
  transform: translateY(-8px);
  border-color: rgba(16,185,129,0.40);
  box-shadow: 0 26px 60px -45px rgba(0,0,0,0.55);
}

.subject-icon{
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: rgba(16,185,129,0.12);
  display: grid;
  place-items: center;
  color: var(--dark-green);
  font-size: 1.9rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.subject-title{
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: .4rem;
  position: relative;
  z-index: 1;
}

.subject-desc{
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}

.level-buttons{
  display:flex;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.level-btn{
  flex: 1;
  padding: 12px 12px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 0.9rem;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  border: 1px solid rgba(229,231,235,1);
  background: rgba(255,255,255,0.9);
  color: var(--text-main);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.level-btn:hover{
  border-color: rgba(16,185,129,0.55);
  background: rgba(16,185,129,0.08);
  color: var(--dark-green);
  transform: translateY(-2px);
}

/* =========================
   TYPE CARDS (upgrade existing .resource-type-card)
   ========================= */
.resource-type-card{
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 22px;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.resource-type-card::before{
  content:"";
  position:absolute;
  inset:auto -120px -160px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,95,70,0.12), transparent 60%);
}

.resource-type-card:hover{
  transform: translateY(-8px);
  border-color: rgba(16,185,129,0.40);
  box-shadow: 0 26px 60px -45px rgba(0,0,0,0.55);
}

.resource-type-icon{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(16,185,129,0.10);
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.resource-type-title{
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
}

.resource-type-desc{
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.resource-count{
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16,185,129,0.10);
  color: var(--dark-green);
  font-size: 0.85rem;
  font-weight: 900;
  position: relative;
  z-index: 1;
}

/* CTA band modernization (keeps your cta-band class) */
.cta-band-modern{
  border-radius: 22px;
  border: 1px solid rgba(16,185,129,0.25);
  background:
    radial-gradient(900px 420px at 18% 12%, rgba(16,185,129,0.18), transparent 60%),
    radial-gradient(900px 420px at 85% 25%, rgba(6,95,70,0.16), transparent 55%),
    rgba(255,255,255,0.92);
  padding: 30px;
  box-shadow: 0 22px 55px -45px rgba(0,0,0,0.55);
}

/* Final CTA section */
.resources-final{
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(236,253,245,1) 100%);
  border-top: 1px solid #e5e7eb;
}
.cta-final-modern{
  background: linear-gradient(135deg, var(--dark-green) 0%, #111827 100%) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
}

/* Responsive adjustments */
@media (max-width: 991px){
  .resources-hero{
    padding: 76px 0 52px;
  }
  .resources-section{
    padding: 70px 0;
  }
}

@media (max-width: 575.98px){
  .hero-benefits{
    gap: 10px;
  }
  .benefit{
    width: 100%;
    justify-content: center;
  }
  .level-buttons{
    flex-direction: column;
  }
}