/* ════════════════════════════════════════════════════════════════
   THE MOUNTAIN-TOP SCHOOL OF BUSINESS STUDIES — Hospitality page add-on
   Loaded only by hospitality.html. Uses existing design tokens from
   style.css (--navy, --gold, --off-white, etc.). Does not override any
   existing rule; every selector is prefixed .school- / .sch-
   ════════════════════════════════════════════════════════════════ */

/* ── Sub-navigation bar (sits under the hero, below the main navbar) ── */
.school-subnav {
  position: sticky;
  top: 70px;                      /* height of the main fixed navbar */
  z-index: 900;                   /* below navbar (1000) and mobile menu (999) */
  background: var(--navy-mid);
  border-bottom: 2px solid var(--gold);
  box-shadow: var(--shadow-md);
}
.school-subnav-inner {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: .5rem;
  flex-wrap: wrap;
}
.school-subnav-btn,
.school-subnav-link {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  background: none;
  border: none;
  padding: .95rem 1rem;
  cursor: pointer;
  text-align: left;
  line-height: 1.25;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  transition: color var(--transition), background var(--transition);
}
.school-subnav-btn:hover,
.school-subnav-link:hover,
.school-subnav-btn[aria-expanded="true"] {
  color: var(--gold);
  background: rgba(255,255,255,.04);
}
.school-subnav-btn:focus-visible,
.school-subnav-link:focus-visible,
.school-dropdown a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.school-subnav-arrow {
  display: inline-block;
  width: .55rem;
  height: .55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.school-subnav-btn[aria-expanded="true"] .school-subnav-arrow {
  transform: rotate(225deg) translateY(-2px);
}

/* Dropdown panel */
.school-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  max-width: 100%;
  background: var(--navy);
  border: 1px solid rgba(201,168,76,.35);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: .5rem 0;
  list-style: none;
  margin: 0;
}
.school-dropdown.open { display: block; animation: schoolFade .2s ease; }
.school-dropdown li { margin: 0; }
.school-dropdown a {
  display: block;
  padding: .8rem 1.25rem;
  font-size: .88rem;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  line-height: 1.35;
}
.school-dropdown a:hover { background: rgba(201,168,76,.12); color: var(--gold); }
.school-dropdown small { display: block; font-size: .72rem; color: rgba(255,255,255,.5); margin-top: .15rem; }
.school-dropdown .school-dd-label {
  padding: .6rem 1.25rem .25rem;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
@keyframes schoolFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ── School information section ── */
.school-section { scroll-margin-top: 140px; }
.school-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.school-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-top: 1.25rem;
}
.school-pillar {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: .8rem 1rem;
  font-weight: 600;
  font-size: .85rem;
  color: var(--text-dark);
}
.school-facts {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: rgba(255,255,255,.85);
}
.school-facts h3 { color: var(--white); margin-bottom: 1rem; }
.school-facts ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.school-facts li { font-size: .88rem; position: relative; padding-left: 1.5rem; }
.school-facts li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.school-facts a { color: var(--gold); }

.school-docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.school-doc {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.school-doc:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); transform: translateY(-2px); }
.school-doc-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--navy); color: var(--gold);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; letter-spacing: .04em;
}
.school-doc strong { display: block; font-size: .92rem; }
.school-doc span.sub { font-size: .78rem; color: var(--text-light); }

/* ── Programmes ── */
.sch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.sch-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;                   /* lets long words wrap inside grid on phones */
}
.sch-card h3 { margin: .5rem 0 .6rem; font-size: 1.2rem; overflow-wrap: anywhere; }
.sch-card p { font-size: .88rem; }
.sch-badge {
  align-self: flex-start;
  background: var(--navy);
  color: var(--gold);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
}
.sch-card .paywall-locked { margin-top: auto; padding-top: 1rem; }
.sch-includes { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .5rem; }
.sch-includes li { font-size: .85rem; position: relative; padding-left: 1.4rem; }
.sch-includes li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.sch-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.sch-actions .btn { flex: 1 1 140px; justify-content: center; text-align: center; }

/* Keep the unlock button inside the card on narrow screens */
.sch-card .paywall-overlay { padding: 1.75rem 1rem; }
.sch-card .paywall-overlay .paywall-unlock-btn {
  font-size: .85rem;
  padding: .8rem .75rem;
  white-space: normal;
  line-height: 1.3;
  min-width: 0;
}

/* ── Mobile / small screens ── */
@media (max-width: 768px) {
  .school-intro-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .school-subnav-inner { gap: 0; position: static; }  /* dropdown then spans the full bar width */
  .school-subnav-btn { flex: 1 1 100%; font-size: .72rem; padding: .85rem .25rem; }
  .school-subnav-link { flex: 1 1 auto; font-size: .72rem; padding: .6rem .25rem .85rem; }
  .school-dropdown { left: 0; right: 0; min-width: 0; max-width: none; border-radius: 0; max-height: 70vh; overflow-y: auto; }
  .school-pillars { grid-template-columns: 1fr; }
  .school-facts { padding: 1.5rem; }
  .sch-card { padding: 1.4rem; }
}
@media (max-width: 380px) {
  .school-subnav-btn, .school-subnav-link { font-size: .68rem; letter-spacing: .03em; }
  .sch-actions .btn { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .school-dropdown.open { animation: none; }
  .school-doc, .school-subnav-arrow { transition: none; }
}
