/* ============================================================
   ESSE INDIA — AUSTRALIA SUBCLASS 482
   Page-specific styles. Self-contained (no external dependency).
   ============================================================ */

/* ============================================================
   1. RATING PILL (hero)
   ============================================================ */
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  margin-top: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rating-pill i.fa-google { color: #fff; font-size: 15px; }
.rating-pill b { color: var(--gold-light); font-weight: 800; }
.rating-pill .stars {
  color: #ffc107;
  letter-spacing: 1px;
  font-size: 13px;
}

/* ============================================================
   2. STATS BANNER
   ============================================================ */
.stats-banner {
  background: #fff;
  padding: 50px 0;
  position: relative;
  z-index: 3;
}
.stats-banner-compact { padding: 40px 0; }

.aaip-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.aaip-stat-card {
  background: linear-gradient(150deg, #faf8ff 0%, #f3ecff 100%);
  border: 1px solid var(--lilac-100);
  border-radius: 18px;
  padding: 26px 20px;
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  position: relative;
  overflow: hidden;
}
.aaip-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-500), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s ease;
}
.aaip-stat-card:hover::before { transform: scaleX(1); }
.aaip-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -22px rgba(75, 33, 196, .28);
  border-color: var(--purple-300);
}
.aaip-stat-card .icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-800));
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
  box-shadow: 0 10px 22px -8px rgba(75, 33, 196, .45);
}
.aaip-stat-card .num {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}
.aaip-stat-card .label {
  display: block;
  font-size: 12.5px;
  color: var(--gray);
  line-height: 1.4;
  font-weight: 600;
}

/* ============================================================
   3. STREAM CARDS — COMPLETE (self-contained)
   ============================================================ */
.stream-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stream-card {
  background: #fff;
  border-radius: var(--radius-md, 18px);
  padding: 28px 24px;
  border: 1px solid var(--lilac-100);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.stream-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple-600), var(--gold));
  transform: scaleX(0);
  transition: transform .5s ease;
  transform-origin: left;
}
.stream-card:hover::before { transform: scaleX(1); }
.stream-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px -20px rgba(75, 33, 196, .25);
  border-color: var(--purple-300);
}

.stream-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--lilac-100);
  color: var(--purple-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  transition: transform .3s ease, background .3s ease, color .3s ease;
  flex-shrink: 0;
}
.stream-card:hover .stream-icon {
  background: var(--purple-600);
  color: #fff;
  transform: scale(1.05) rotate(-4deg);
}

.stream-card h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--ink);
  line-height: 1.3;
}
.stream-card p {
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.6;
  margin: 0 0 14px;
  flex: 1;
}

/* Tags container + tag */
.subclass-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.stream-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lilac-100);
  color: var(--purple-700);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1.4;
}
.stream-tag i {
  font-size: 11px;
  color: var(--purple-600);
}

/* ============================================================
   4. PATH CARDS (Eligibility + PR Pathway)
   ============================================================ */
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.path-card {
  background: #fff;
  border: 1px solid var(--lilac-100);
  border-radius: var(--radius-md, 18px);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  box-shadow: var(--shadow-card, 0 6px 24px -12px rgba(26, 13, 61, .12));
  display: flex;
  flex-direction: column;
}
.path-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple-300);
  box-shadow: 0 24px 50px -20px rgba(75, 33, 196, .25);
}

.path-head {
  padding: 22px 24px 18px;
  background: linear-gradient(150deg, #faf8ff 0%, #f3ecff 100%);
  border-bottom: 1px solid var(--lilac-100);
}
.path-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--purple-600);
  background: rgba(106, 53, 230, .1);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.path-head h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.path-head h4 i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--lilac-100);
  color: var(--purple-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.path-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.path-body > p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  margin: 0;
}
.path-body > p b { color: var(--ink); font-weight: 700; }

.path-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.path-list li {
  position: relative;
  padding-left: 24px;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.55;
}
.path-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  color: #5be0d3;
  font-size: 11px;
}

/* ============================================================
   5. TABLE NOTE (info strip)
   ============================================================ */
.table-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(106, 53, 230, .06), rgba(245, 180, 0, .06));
  border: 1px solid var(--lilac-100);
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  margin: 32px auto 0;
  max-width: 720px;
  text-align: left;
}
.table-note i {
  color: var(--purple-500);
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}
.table-note b { color: var(--ink); font-weight: 800; }

/* Center the note inside sections */
.points-calc-section .table-note,
.expertise .table-note,
.why .table-note {
  display: flex;
}

/* ============================================================
   6. ELIGIBILITY BANNER
   ============================================================ */
.elig-banner {
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 180, 0, .18), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, .3), transparent 60%),
    linear-gradient(135deg, #1a0d3d 0%, #321a7a 100%);
  color: #fff;
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}
.elig-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.elig-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}
.elig-inner > div { flex: 1; min-width: 260px; }
.elig-inner h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}
.elig-inner p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.6;
  margin: 0;
  max-width: 640px;
}

/* ============================================================
   7. SECTION-SPECIFIC TWEAKS
   ============================================================ */
#streams .stream-grid { margin-top: 40px; }
#sponsorship .checklist-grid { margin-top: 40px; }
#pr-pathway .path-grid { margin-top: 40px; }

/* ============================================================
   8. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .aaip-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .path-grid       { grid-template-columns: repeat(2, 1fr); }
  .stream-grid     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .stream-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .elig-inner {
    flex-direction: column;
    text-align: center;
    gap: 22px;
  }
  .elig-inner > div { min-width: auto; }
  .elig-inner .btn  { width: 100%; justify-content: center; }
  .elig-inner p     { margin: 0 auto; }
}

@media (max-width: 640px) {
  .aaip-stats-grid { grid-template-columns: 1fr; gap: 14px; }
  .path-grid       { grid-template-columns: 1fr; gap: 18px; }
  .stream-grid     { grid-template-columns: 1fr; gap: 18px; }
  .aaip-stat-card  { padding: 22px 18px; }
  .aaip-stat-card .num { font-size: 26px; }
  .stats-banner    { padding: 40px 0; }
  .stats-banner-compact { padding: 30px 0; }
  .elig-banner     { padding: 40px 0; }
  .stream-card     { padding: 24px 20px; }
  .stream-icon     { width: 54px; height: 54px; font-size: 22px; }
  .table-note {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 18px;
    font-size: 12.5px;
  }
  .rating-pill {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

/* ============================================================
   9. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .aaip-stat-card,
  .aaip-stat-card::before,
  .path-card,
  .stream-card,
  .stream-card::before,
  .stream-icon {
    transition: none !important;
    animation: none !important;
  }
}