/* ==========================================================================
   Highland University — Shared Stylesheet
   Classic collegiate theme · Navy (#13294b) + Gold (#c9a227)
   ========================================================================== */

:root {
  --navy: #13294b;
  --navy-dark: #0c1c34;
  --navy-light: #1f3d6b;
  --gold: #c9a227;
  --gold-light: #e0c25a;
  --paper: #f7f5f0;
  --ink: #1f2733;
  --muted: #5b6573;
  --line: #e2ddd3;
  --white: #ffffff;
  --shadow: 0 2px 14px rgba(19, 41, 75, 0.08);
  --shadow-lg: 0 10px 40px rgba(19, 41, 75, 0.16);
  --radius: 6px;
  --maxw: 1180px;
  --font-serif: "Georgia", "Times New Roman", "Songti SC", "Noto Serif", serif;
  --font-sans: "Helvetica Neue", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: var(--navy-light); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold); }
img, svg { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--white); }
.section--navy { background: var(--navy); color: #dbe4f0; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-sans);
  margin-bottom: .6em;
}
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .18s;
  font-family: var(--font-sans);
}
.btn--gold { background: var(--gold); color: var(--navy-dark); }
.btn--gold:hover { background: var(--gold-light); color: var(--navy-dark); transform: translateY(-1px); }
.btn--outline { border-color: var(--white); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-light); color: var(--white); transform: translateY(-1px); }

/* ==========================================================================
   Top utility bar
   ========================================================================== */
.utility-bar {
  background: var(--navy-dark);
  color: #aab8cc;
  font-size: .82rem;
}
.utility-bar .container { display: flex; justify-content: flex-end; align-items: center; gap: 22px; height: 38px; }
.utility-bar a { color: #aab8cc; }
.utility-bar a:hover { color: var(--gold-light); }

/* Language switcher */
.lang-switch { display: flex; gap: 4px; align-items: center; }
.lang-switch button {
  background: transparent;
  border: 1px solid transparent;
  color: #aab8cc;
  font-size: .8rem;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all .15s;
}
.lang-switch button:hover { color: var(--white); }
.lang-switch button.active { background: var(--gold); color: var(--navy-dark); font-weight: 700; }

/* ==========================================================================
   Masthead / Navigation
   ========================================================================== */
.masthead { background: var(--navy); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.masthead .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 50px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-serif); color: var(--white); font-size: 1.3rem; font-weight: 700; letter-spacing: .01em; }
.brand-tag { color: var(--gold-light); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #e4ebf5;
  font-size: .95rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 4px;
  transition: all .15s;
}
.nav a:hover, .nav a.active { background: var(--navy-light); color: var(--white); }
.nav a.active { box-shadow: inset 0 -3px 0 var(--gold); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; color: var(--white); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(12,28,52,.86) 0%, rgba(12,28,52,.55) 55%, rgba(12,28,52,.25) 100%); z-index: 1; }
.hero__inner { position: relative; z-index: 2; padding: 110px 0 96px; max-width: 680px; }
.hero h1 { color: var(--white); font-size: 3.1rem; margin-bottom: .35em; }
.hero p { font-size: 1.25rem; color: #e4ebf5; margin-bottom: 1.6em; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(201,162,39,.22), transparent 70%); }
.page-hero__inner { position: relative; z-index: 2; padding: 72px 0 64px; max-width: 760px; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: #cdd9ea; font-size: 1.15rem; margin-bottom: 0; }
.breadcrumb { font-size: .85rem; color: #9fb0c8; margin-bottom: 18px; }
.breadcrumb a { color: #9fb0c8; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ==========================================================================
   Stat strip
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.12); }
.stat { padding: 30px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-serif); font-size: 2.6rem; color: var(--gold-light); line-height: 1; }
.stat__label { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #cdd9ea; margin-top: 8px; }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { height: 8px; background: linear-gradient(90deg, var(--navy), var(--gold)); }
.card__body { padding: 26px; flex: 1; }
.card__body h3 { margin-bottom: .4em; }
.card__icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(19,41,75,.07); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.5rem; }
.card .muted { color: var(--muted); font-size: .95rem; }
.card__link { margin-top: 14px; font-weight: 700; font-size: .9rem; color: var(--navy); }
.card__link::after { content: " →"; color: var(--gold); }

/* Feature row */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.feature--reverse .feature__text { order: 2; }

/* ==========================================================================
   Program / course table
   ========================================================================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; background: var(--white); font-size: .95rem; }
table.data th, table.data td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--navy); color: var(--white); font-family: var(--font-sans); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
table.data tbody tr:hover { background: #faf8f3; }
table.data td:last-child { color: var(--muted); }

/* Accordion (faculties) */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.accordion__item + .accordion__item { border-top: 1px solid var(--line); }
.accordion__head {
  width: 100%; text-align: left; background: var(--white); border: 0; cursor: pointer;
  padding: 20px 24px; font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.accordion__head:hover { background: #faf8f3; }
.accordion__head .plus { color: var(--gold); font-size: 1.5rem; transition: transform .2s; flex-shrink: 0; }
.accordion__item.open .accordion__head .plus { transform: rotate(45deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion__panel-inner { padding: 0 24px 24px; color: var(--muted); }
.accordion__item.open .accordion__panel { max-height: 600px; }
.accordion__panel-inner ul { margin: 0; padding-left: 20px; }
.accordion__panel-inner li { margin-bottom: 6px; }

/* ==========================================================================
   News / list items
   ========================================================================== */
.newsitem { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.newsitem:last-child { border-bottom: 0; }
.newsitem__date { flex-shrink: 0; width: 92px; text-align: center; }
.newsitem__date .d { font-family: var(--font-serif); font-size: 1.8rem; color: var(--navy); line-height: 1; }
.newsitem__date .m { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.newsitem h3 { font-size: 1.15rem; margin-bottom: .25em; }
.newsitem p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Quote / testimonial */
.quote { background: var(--white); border-left: 5px solid var(--gold); padding: 28px 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.quote p { font-family: var(--font-serif); font-size: 1.2rem; font-style: italic; color: var(--navy); }
.quote cite { font-style: normal; font-weight: 700; color: var(--muted); font-size: .9rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--navy-light)); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #cdd9ea; max-width: 620px; margin: 0 auto 1.6em; }

/* Info list (contact / facts) */
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts .k { font-weight: 700; color: var(--navy); min-width: 130px; }
.facts .v { color: var(--muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy-dark); color: #9fb0c8; padding: 60px 0 28px; font-size: .92rem; }
.footer h4 { color: var(--white); font-family: var(--font-sans); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer a { color: #9fb0c8; display: block; padding: 4px 0; }
.footer a:hover { color: var(--gold-light); }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer__brand img { height: 46px; }
.footer__brand .brand-name { font-size: 1.15rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: #76859b; }

/* ==========================================================================
   Helpers / animation
   ========================================================================== */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

[hidden] { display: none !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  h1 { font-size: 2.1rem; } .hero h1 { font-size: 2.3rem; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature--reverse { grid-template-columns: 1fr; gap: 30px; }
  .feature--reverse .feature__text { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 78px; left: 0; right: 0;
    background: var(--navy); flex-direction: column; align-items: stretch;
    padding: 10px 16px 18px; gap: 2px; box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 14px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .utility-bar .container { gap: 12px; }
  .hero__inner { padding: 70px 0 56px; }
  .section { padding: 52px 0; }
  .footer__grid { grid-template-columns: 1fr; }
}
