/* Fees & cash scholarships — premium OTR dashboard cards (November 2026 Mathematics) */
#fees-scholarships {
  scroll-margin-top: 5.5rem;
}

.otr-fs-section {
  position: relative;
  padding: 4.25rem 0 4.75rem;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(250, 204, 21, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 50%, rgba(56, 189, 248, 0.04), transparent 50%),
    radial-gradient(ellipse 50% 40% at 100% 60%, rgba(192, 132, 252, 0.05), transparent 50%),
    rgba(17, 24, 39, 0.45);
  border-top: 1px solid rgba(250, 204, 21, 0.12);
  border-bottom: 1px solid rgba(15, 23, 42, 0.6);
  overflow: hidden;
}

#fees-scholarships.otr-fs-section {
  padding-bottom: 3.5rem;
}

.otr-fs-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.otr-fs-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250, 204, 21, 0.8);
  margin-bottom: 0.55rem;
}

.otr-fs-title {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.otr-fs-title-line {
  display: block;
  color: #f8fafc;
  font-weight: 700;
}

.otr-fs-title-accent {
  display: inline-block;
  color: #fde047;
  background: linear-gradient(180deg, #fef9c3 0%, #fde047 45%, #eab308 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid rgba(250, 204, 21, 0.55);
}

.otr-fs-sub {
  font-size: 0.98rem;
  color: rgba(203, 213, 225, 0.92);
  line-height: 1.65;
  margin: 0;
}

.otr-fs-sub strong {
  color: #e2e8f0;
  font-weight: 600;
}

.otr-fs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fde047;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(250, 204, 21, 0.4);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.08);
}

.otr-fs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .otr-fs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.05rem;
  }
}

.otr-fs-card {
  --otr-fs-glow: rgba(250, 204, 21, 0.22);
  --otr-fs-border: rgba(250, 204, 21, 0.35);
  --otr-fs-icon: #fde047;
  position: relative;
  border-radius: 1.15rem;
  padding: 0.95rem 0.8rem 0.8rem;
  text-align: left;
  color: #e2e8f0;
  background: linear-gradient(168deg, rgba(28, 36, 62, 0.94) 0%, rgba(10, 14, 28, 0.98) 100%);
  border: 1px solid var(--otr-fs-border);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset, 0 4px 14px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.otr-fs-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, transparent 38%);
  pointer-events: none;
}

.otr-fs-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--otr-fs-border) 70%, white 30%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset, 0 8px 18px rgba(0, 0, 0, 0.32);
}

.otr-fs-card:active {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--otr-fs-border) 55%, white 45%);
}

.otr-fs-card--c5,
.otr-fs-card--c9 {
  --otr-fs-glow: rgba(56, 189, 248, 0.35);
  --otr-fs-border: rgba(56, 189, 248, 0.42);
  --otr-fs-icon: #7dd3fc;
}
.otr-fs-card--c6,
.otr-fs-card--c10 {
  --otr-fs-glow: rgba(34, 211, 238, 0.32);
  --otr-fs-border: rgba(34, 211, 238, 0.4);
  --otr-fs-icon: #67e8f9;
}
.otr-fs-card--c7,
.otr-fs-card--c11 {
  --otr-fs-glow: rgba(192, 132, 252, 0.34);
  --otr-fs-border: rgba(192, 132, 252, 0.42);
  --otr-fs-icon: #d8b4fe;
}
.otr-fs-card--c8,
.otr-fs-card--c12 {
  --otr-fs-glow: rgba(250, 204, 21, 0.38);
  --otr-fs-border: rgba(250, 204, 21, 0.48);
  --otr-fs-icon: #fde047;
}

.otr-fs-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  margin-bottom: 0.1rem;
}

#fees-scholarships .otr-fs-card h3.otr-fs-class {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  color: #facc15;
  -webkit-text-fill-color: #facc15;
  background: none;
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

.otr-fs-class-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.otr-fs-class-icon i {
  font-size: 1.05rem;
  color: var(--otr-fs-icon);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.otr-fs-fee-pill {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 0.7rem;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #f8fafc;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
}

.otr-fs-fee-lbl {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.otr-fs-sch-heading {
  position: relative;
  z-index: 1;
  margin: 0.15rem 0 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  text-align: center;
}

.otr-fs-sch-list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0.15rem 0;
  font-size: 0.74rem;
  line-height: 1.35;
}

.otr-fs-sch-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0;
}

.otr-fs-sch-list li + li {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.otr-fs-sch-rank {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.68rem;
}

.otr-fs-medal {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: #0f172a;
  flex-shrink: 0;
}

.otr-fs-medal--1 {
  background: linear-gradient(165deg, #bbf7d0, #16a34a);
  color: #0f172a;
}
.otr-fs-medal--2 {
  background: linear-gradient(165deg, #fef9c3, #ca8a04);
  color: #0f172a;
}
.otr-fs-medal--3 {
  background: linear-gradient(165deg, #fecaca, #dc2626);
  color: #0f172a;
}

.otr-fs-sch-amt {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  color: #fde047;
  white-space: nowrap;
}

.otr-fs-actions {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.35rem;
}

.otr-fs-actions .otr-fs-syllabus {
  order: 1;
}

.otr-fs-actions .otr-fs-apply {
  order: 2;
}

.otr-fs-apply,
.otr-fs-syllabus {
  width: 100%;
  border-radius: 999px;
  padding: 0.48rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.otr-fs-apply {
  border: 1px solid rgba(133, 77, 14, 0.35);
  padding: 0.34rem 0.4rem;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: #0a0c1a;
  background: linear-gradient(165deg, #fef9c3 0%, #fde047 40%, #eab308 78%, #ca8a04 100%);
  box-shadow:
    0 2px 0 #854d0e,
    0 3px 10px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 250, 220, 0.5);
}

.otr-fs-card:hover .otr-fs-apply {
  color: #0f172a;
  border-color: rgba(2, 132, 199, 0.55);
  background: linear-gradient(165deg, #e0f2fe 0%, #7dd3fc 38%, #38bdf8 72%, #0ea5e9 100%);
  box-shadow:
    0 2px 0 #0369a1,
    0 3px 8px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}

.otr-fs-apply:hover,
.otr-fs-card:hover .otr-fs-apply:hover {
  color: #0f172a;
  border-color: rgba(14, 165, 233, 0.65);
  background: linear-gradient(165deg, #f0f9ff 0%, #bae6fd 32%, #38bdf8 68%, #0284c7 100%);
  transform: translateY(-3px);
  box-shadow:
    0 2px 0 #0369a1,
    0 4px 10px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.otr-fs-syllabus {
  border: 1.5px solid rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.otr-fs-syllabus:hover {
  border-color: rgba(250, 204, 21, 0.45);
  color: #fde047;
  background: rgba(15, 23, 42, 0.75);
}

.otr-fs-apply:active,
.otr-fs-card:hover .otr-fs-apply:active {
  transform: translateY(0);
  background: linear-gradient(165deg, #bae6fd 0%, #38bdf8 55%, #0284c7 100%);
  border-color: rgba(2, 132, 199, 0.7);
  box-shadow:
    0 1px 0 #0369a1,
    0 2px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.otr-fs-syllabus:active {
  transform: translateY(1px);
}

.otr-fs-apply:focus-visible,
.otr-fs-syllabus:focus-visible {
  outline: 2px solid #fde047;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .otr-fs-card,
  .otr-fs-apply,
  .otr-fs-syllabus {
    transition: none;
  }
  .otr-fs-card:hover,
  .otr-fs-apply:hover,
  .otr-fs-syllabus:hover {
    transform: none;
  }
}
