/* The public landing page (templates/public/home.html). Colours match the
   login page: its navy, with the seal's gold as the accent. */
.landing {
  --brand-900: #12263F;
  --brand-800: #1A365D;
  --brand-700: #1E3A5F;
  --brand-600: #2C5282;
  --gold-500: #E2B64E;
  --gold-300: #F3D88F;
  --gold-800: #7A5A12;
  --tint-50: #F7FAFD;
  --tint-100: #EAF1F9;
  --line: #DDE5EE;
  --ink: #1F2933;
  --muted: #5B6770;
  color: var(--ink);
  background: var(--tint-50);
  font-size: 1.0625rem;
  line-height: 1.65;
  scroll-margin-top: 4rem;
}
.landing section[id] { scroll-margin-top: 3.2rem; }
.landing h1, .landing h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; letter-spacing: -.01em; }
.landing h1, .landing h2, .timeline b, .numbers b { font-variant-numeric: lining-nums; }
.landing h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.15; margin: 0 0 .9rem; color: var(--brand-800); }
.landing h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 .55rem; }
.landing ul, .landing ol { list-style: none; margin: 0; padding: 0; }
.eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--brand-600); margin-bottom: .75rem; }
.section-lead { max-width: 640px; color: var(--muted); margin-bottom: 2rem; }
.block { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.block.tint { background: var(--tint-100); }

/* ── Buttons ── */
.btn-gold {
  display: inline-flex; align-items: center; gap: .55rem; border-radius: 999px; padding: .8rem 1.5rem;
  font-weight: 700; font-size: 1rem; text-decoration: none; transition: transform .18s, box-shadow .18s, background .18s;
}
.btn-gold { background: var(--gold-500); color: var(--brand-900); box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.btn-gold:hover { background: var(--gold-300); color: var(--brand-900); transform: translateY(-2px); }
.hero-more { display: inline-block; margin-top: 1.1rem; color: #fff; font-weight: 600; text-decoration: none; }
.hero-more:hover { color: #fff; text-decoration: underline; }
.text-link { color: var(--brand-700); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(900px 520px at 82% 40%, var(--brand-600), transparent 70%),
              linear-gradient(135deg, var(--brand-900), var(--brand-800) 55%, var(--brand-700));
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--gold-500), #E8832A, var(--gold-500));
}
.hero-50 {
  position: absolute; left: -2vw; bottom: -9vw; font-family: 'Playfair Display', Georgia, serif; font-weight: 800;
  font-size: clamp(16rem, 36vw, 34rem); line-height: 1; color: rgba(255, 255, 255, .04); user-select: none; pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 2.5rem; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold-300); font-weight: 600; font-size: .95rem;
          letter-spacing: .04em; margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); line-height: 1.04; margin: 0 0 1.25rem; font-weight: 800; }
.hero h1 span { color: var(--gold-500); }
.hero-lead { font-size: clamp(1.08rem, 1.7vw, 1.25rem); max-width: 560px; color: rgba(255, 255, 255, .9); margin-bottom: 1.9rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-seal { display: flex; justify-content: center; }
.hero-seal img {
  width: min(100%, 340px); height: auto; border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(226, 182, 78, .14), 0 24px 60px rgba(0, 0, 0, .45);
  animation: seal-float 7s ease-in-out infinite;
}
@keyframes seal-float { 50% { transform: translateY(-10px); } }

/* ── Trust strip ── */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.trust-item { display: flex; gap: .7rem; align-items: flex-start; }
.trust-item i { font-size: 1.5rem; color: var(--brand-700); line-height: 1.2; }
.trust-item strong { display: block; font-size: 1rem; }
.trust-item span { display: block; font-size: .9rem; color: var(--muted); line-height: 1.35; }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.timeline { border-left: 3px solid var(--gold-500); padding-left: 1.5rem; }
.timeline li { position: relative; padding-bottom: 1.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: calc(-1.5rem - 9px); top: .35rem; width: 15px; height: 15px; border-radius: 50%;
  background: var(--brand-700); border: 3px solid var(--tint-50);
}
.timeline b { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; color: var(--brand-700); line-height: 1.2; }
.timeline span { color: var(--muted); }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.numbers div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem 1rem; text-align: center; }
.numbers b { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.2rem, 4.4vw, 3.2rem); color: var(--brand-700); line-height: 1.1; }
.numbers span { color: var(--muted); font-size: .95rem; }

/* ── Values ── */
.values { background: linear-gradient(135deg, var(--brand-900), var(--brand-800)); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; }
.values .eyebrow { color: var(--gold-300); }
.values h2 { color: #fff; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.values article { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 1.5rem; }
.values article i { font-size: 1.6rem; color: var(--gold-500); }
.values article h3 { margin-top: .6rem; color: var(--gold-300); }
.values article p { margin: 0; color: rgba(255, 255, 255, .9); }
.values .motto { font-family: 'Playfair Display', Georgia, serif; font-size: 1.35rem; line-height: 1.35; color: #fff; }

/* ── Programmes ── */
.prog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.prog-grid article { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand-700); border-radius: 14px; padding: 1.4rem; transition: transform .18s, box-shadow .18s; }
.prog-grid article:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30, 58, 95, .14); }
.prog-grid .wide { grid-column: 1 / -1; border-top-color: var(--gold-500); }
.prog-grid i { font-size: 1.5rem; color: var(--brand-700); }
.prog-grid h3 { margin-top: .45rem; }
.prog-grid ul { display: flex; flex-wrap: wrap; gap: .4rem; }
.prog-grid li { background: var(--tint-100); border-radius: 999px; padding: .22rem .7rem; font-size: .92rem; }

/* ── Recognition ── */
.rank { background: var(--gold-500); color: var(--brand-900); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.rank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.rank .eyebrow { color: var(--brand-800); }
.rank h2 { color: var(--brand-900); font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: .4rem; }
.rank-main p { margin: 0; font-size: 1.1rem; }
.rank li { display: flex; gap: .6rem; padding: .35rem 0; font-weight: 600; }
.rank li i { color: var(--brand-700); }

/* ── Campus ── */
.campus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.25rem; }
.campus-grid div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1rem; text-align: center; font-weight: 600; }
.campus-grid i { display: block; font-size: 1.8rem; color: var(--brand-700); margin-bottom: .45rem; }

/* ── Portal ── */
.portal { background: linear-gradient(135deg, var(--brand-800), var(--brand-700)); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; }
.portal .eyebrow { color: var(--gold-300); }
.portal h2 { color: #fff; }
.portal p { color: rgba(255, 255, 255, .9); margin-bottom: 1.5rem; }
.portal-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: center; }
.portal-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.portal-cards article { background: #fff; color: var(--ink); border-radius: 16px; padding: 1.4rem; }
.portal-cards h3 { color: var(--brand-700); }
.portal-cards li { padding: .3rem 0 .3rem 1.2rem; position: relative; font-size: .98rem; line-height: 1.4; }
.portal-cards li::before { content: ''; position: absolute; left: 0; top: .78rem; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-list li { display: flex; gap: .75rem; padding: .45rem 0; align-items: flex-start; }
.contact-list i { color: var(--brand-700); font-size: 1.15rem; line-height: 1.6; }
.contact-list a { color: var(--ink); }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; }
.info-card li { border-top: 1px solid var(--line); }
.info-card li:first-child { border-top: 0; }
.info-card a { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.info-card a:hover { color: var(--brand-700); }
.info-card a .bi-chevron-right { margin-left: auto; color: var(--muted); }

/* ── Reveal on scroll (only when the script has switched it on) ── */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-seal img { animation: none; }
  .prog-grid article, .btn-gold { transition: none; }
}

/* ── Smaller screens ── */
@media (max-width: 991px) {
  .trust-grid, .campus-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid, .portal-grid, .rank-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-seal { order: -1; }
  .hero-seal img { width: 170px; }
  .kicker { justify-content: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .prog-grid, .portal-cards, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .trust-grid { grid-template-columns: 1fr; }
}
