* {
  box-sizing: border-box;
}

:root {
  --primary: #c81f25;
  --primary-dark: #951219;
  --navy: #112a46;
  --navy-soft: #183a61;
  --text: #243244;
  --muted: #5b6776;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e4e8ef;
  --shadow: 0 18px 40px rgba(17, 42, 70, 0.08);
  --radius: 20px;
  --container: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background:
    linear-gradient(180deg, #eaf6ff 0%, #c8e2f3 42%, #b4d4e8 58%, #d9edf8 100%);
  border-bottom: 1px solid #8fb6cf;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 3px 10px rgba(17,42,70,0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--navy);
  font-weight: 700;
}

.brand img,
.footer-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-title {
  display: block;
  font-size: 1.05rem;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}


.site-nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.58rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(149, 18, 25, 0.18);
}

.site-nav a:hover {
  background: var(--primary-dark);
  color: #ffffff;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  font-size: 1.2rem;
  cursor: pointer;
}

.hero {
  background:
    linear-gradient(135deg, rgba(17, 42, 70, 0.98), rgba(24, 58, 97, 0.88)),
    radial-gradient(circle at top right, rgba(200, 31, 37, 0.25), transparent 40%);
  color: #fff;
  padding: 2.4rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffc8cb;
  margin-bottom: 0.9rem;
  font-size: 0.83rem;
}

.hero h1,
.section-heading h2 {
  margin: 0 0 1rem;
  line-height: 1.15;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 13ch;
}

.hero-text {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.7rem 0 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  text-decoration: none !important;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  opacity: 0.97;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--navy);
}


.hero-action-btn {
  background: var(--primary);
  color: #ffffff;
  min-width: 168px;
  border: 1px solid var(--primary);
  box-shadow: 0 5px 14px rgba(149, 18, 25, 0.2);
}

.hero-action-btn:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

.full-width {
  width: 100%;
  margin-top: 0.9rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: rgba(255,255,255,0.92);
}

.hero-points li::before {
  content: "•";
  color: #ff9ca1;
  margin-right: 0.45rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
}

.hero-card-content {
  padding: 1.25rem 1.25rem 1.4rem;
}

.hero-card-content h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.hero-card-content a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.office-hours {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.office-hours h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.office-hours p {
  margin: 0.2rem 0;
}

.notice-bar {
  background: #fff5f5;
  border-top: 1px solid #ffd8da;
  border-bottom: 1px solid #ffd8da;
}

.hero-notices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}


.important-label {
  color: #c81f25;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.notice-item {
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.section {
  padding: 4.6rem 0;
}

.section-alt {
  background: var(--bg);
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.2rem;
}

.section-heading.left {
  text-align: left;
  margin-inline: 0;
}

.section-heading p {
  color: var(--muted);
  margin-top: 0;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.info-card,
.programme-card,
.campus-card,
.warning-card,
.contact-card,
.contact-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-card,
.warning-card,
.contact-panel {
  padding: 1.45rem;
}

.check-list,
.footer-links {
  padding-left: 1.1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.programme-card,
.campus-card,
.contact-card {
  padding: 1.5rem;
}

.programme-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: #ffe7e8;
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 1rem;
}

.admissions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
}

.warning-card h3,
.contact-card h3,
.programme-card h3,
.campus-card h3 {
  margin-top: 0;
}

.campus-grid {
  grid-template-columns: repeat(3, 1fr);
}

.featured-campus {
  border: 2px solid #f2c6c9;
  background: linear-gradient(180deg, #fff, #fff8f8);
}

.contact-section {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.contact-cards {
  display: grid;
  gap: 1rem;
}

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.88);
  padding-top: 3rem;
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand p {
  margin: 0.35rem 0 0;
  color: rgba(255,255,255,0.72);
}

.footer-links {
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2rem;
  padding: 1rem 0 1.7rem;
  text-align: center;
  color: rgba(255,255,255,0.68);
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .footer-grid,
  .card-grid,
  .admissions-grid,
  .campus-grid,
  .hero-notices {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 18ch;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 18px;
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    padding-top: 1.8rem;
  }

  .nav-wrap {
    min-height: 74px;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-subtitle {
    font-size: 0.78rem;
  }
}


.course-details {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.course-details li {
  margin-bottom: 0.7rem;
}

.course-details strong {
  color: var(--navy);
  font-weight: 700;
}


.centered-card-content {
  text-align: center;
}

.centered-card-content .office-hours {
  text-align: center;
}

.centered-card-content a {
  color: #ffffff;
}


@media (max-width: 780px) {
  .site-nav a {
    width: 100%;
    text-align: center;
  }
}
