/* ============================================
   Linstitute Page — SOA purple & gold identity,
   built on the shared design tokens in common_css/style.css.
   ============================================ */

/* ---------- Hero: deep purple band ---------- */
/* Top padding clears the fixed header (128px tall) — the band runs up
   behind the header, matching the site's original header treatment */
.li-hero {
  background-color: var(--c-purple);
  color: #fff;
  padding: 176px 0 80px;
}

.li-badge {
  display: inline-block;
  background: var(--c-gold);
  color: var(--c-purple);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.li-hero-title {
  color: #fff;
  font-size: 3.5rem;
  line-height: 1.15;
  letter-spacing: -1.12px;
  margin: 0 0 24px;
  max-width: 900px;
}

.li-gold {
  color: var(--c-gold);
}

.li-hero-lead {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 780px;
  margin: 0 0 36px;
}

.li-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* ---------- Ownership ---------- */
.li-owned-section {
  margin-top: 100px;
}

.li-owned {
  text-align: center;
}

.li-owned-title {
  margin-bottom: 24px;
}

.li-owned-text {
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- Stats: same highlights band as the homepage ---------- */
.highlights {
  background-color: var(--c-purple);
  color: white;
  margin-top: 100px;
}

.highlights-container {
  display: flex;
  gap: 50px;
  padding: 100px 0;
}

.highlight-title {
  width: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.highlight-title h2 {
  margin-bottom: 1.5rem;
}

.highlight-items {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  width: 70%;
}

.highlight-item {
  display: flex;
  align-items: start;
  justify-content: start;
  width: 30%;
}

.highlight-bar {
  background-color: rgba(216, 185, 255, 0.4);
  width: 8px;
  height: 100px;
  margin-right: 20px;
  flex-shrink: 0;
}

.highlight-content h3 {
  margin: 0 0 10px 0;
}

.highlight-content p {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

/* ---------- Competitions ---------- */
.li-comps-section {
  margin-top: 100px;
  margin-bottom: 100px;
}

.li-comps-title {
  display: block;
  text-align: center;
}

.li-comps-subtitle {
  text-align: center;
  color: #555;
  max-width: 760px;
  margin: 16px auto 48px;
}

.li-comp-card {
  background: #fff;
  border: 1px solid rgba(var(--c-purple-rgb), 0.12);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}

.li-comp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.li-comp-bar {
  background-color: var(--c-gold);
  width: 40px;
  height: 6px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.li-comp-tag {
  color: var(--c-purple);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.li-comp-sub {
  color: #6b6b6b;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.li-comp-headline {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
  margin: 0 0 10px;
}

.li-comp-detail {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Featured AMC/AIME card spans full width with a two-column layout */
.li-comp-featured {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 24px;
}

.li-comp-featured .li-comp-side {
  border-right: 1px solid rgba(var(--c-purple-rgb), 0.12);
  padding-right: 32px;
}

.li-comp-featured .li-comp-tag {
  font-size: 2rem;
}

.li-comp-featured .li-comp-sub {
  margin-bottom: 0;
}

.li-comp-featured .li-comp-headline {
  font-size: 1.5rem;
}

.li-comp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.li-comp-more {
  text-align: center;
  color: #6b6b6b;
  font-style: italic;
  margin-top: 40px;
  font-size: 1.05rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .li-owned-section,
  .highlights,
  .li-comps-section {
    margin-top: 50px;
  }

  .highlight-title {
    width: 50%;
  }

  .highlight-item {
    width: 45%;
  }
}

@media (max-width: 1000px) {
  /* Header shrinks to 54px here */
  .li-hero {
    padding: 110px 0 56px;
  }

  .li-hero-title {
    font-size: 3rem;
  }

  .li-comp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .li-hero-title {
    font-size: 2.5rem;
  }

  .highlights-container {
    flex-direction: column;
    align-items: center;
    padding: 64px 0;
  }

  .highlight-title {
    width: 80%;
    align-items: center;
    text-align: center;
  }

  .highlight-items {
    width: 80%;
    justify-content: space-between;
  }

  .li-comp-featured {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .li-comp-featured .li-comp-side {
    border-right: none;
    border-bottom: 1px solid rgba(var(--c-purple-rgb), 0.12);
    padding-right: 0;
    padding-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .li-hero-title {
    font-size: 2rem;
  }

  .highlight-item {
    width: 100%;
  }

  .highlight-bar {
    height: 80px;
  }

  .li-comp-grid {
    grid-template-columns: 1fr;
  }
}
