@import url('fonts.css');

:root {
  --navy: #062342;
  --navy-deep: #04192f;
  --blue: #0c5fa8;
  --blue-soft: #e9f3ff;
  --gold: #f3b126;
  --ink: #092143;
  --muted: #526276;
  --line: #d8e1ec;
  --light: #f4f8fc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 320px;
  background: #ffffff;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  width: 100%;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

[id] {
  scroll-margin-top: 74px;
}

.reference-page-shell {
  width: 100%;
  min-height: 100vh;
  background: #fff;
}

.page-width {
  width: min(100%, 1180px);
  margin-inline: auto;
}

/* ===== TOPBAR ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.topbar-inner {
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  padding-inline: 54px;
}

.brand-link {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  object-fit: contain;
}

.brand-title {
  min-width: 0;
}

.brand-line1 {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.1;
}

.brand-line2 {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
}

/* ===== NAV ===== */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  background: var(--gold);
  transition: transform 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.mail-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  border: 1px solid var(--gold);
  background: transparent;
  padding-inline: 13px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.mail-button:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

.menu-button {
  display: none;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.mobile-menu {
  display: none;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu {
  position: absolute;
  top: 100%; /* Just below the topbar-inner */
  left: 0;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--navy-deep);
  padding: 8px 18px 18px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 40;
}

.mobile-menu a {
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 12px 2px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  min-height: 292px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 292px;
  padding: 34px 42px 38px 54px;
  background:
    linear-gradient(90deg, rgba(6, 35, 66, 1) 0%, rgba(6, 35, 66, 0.98) 66%, rgba(6, 35, 66, 0.42) 100%),
    var(--navy);
}

.hero-copy h1 {
  margin: 0;
  max-width: 9ch;
  font-family: Lora, Georgia, serif;
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.94;
}

.hero-copy p {
  max-width: 430px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 138px;
  border: 1px solid transparent;
  padding: 10px 18px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-primary:hover {
  background: #ffd05f;
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.88);
  color: #fff;
}

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

.btn-sm {
  min-height: 32px;
  min-width: 100px;
  padding: 7px 14px;
  font-size: 0.72rem;
}

.hero-photo-panel {
  position: relative;
  min-height: 292px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-photo-panel::after {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  content: "";
  background: var(--gold);
}

.mission-note {
  position: absolute;
  top: 30px;
  right: 54px;
  width: 178px;
  padding: 14px 14px 13px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(5, 22, 42, 0.22);
}

.mission-note strong {
  display: block;
  color: var(--blue);
  font-family: Lora, Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.02;
}

.mission-note span {
  display: block;
  width: 74px;
  height: 3px;
  margin-top: 9px;
  background: var(--gold);
}

/* ===== INTRO STRIP ===== */
.intro-strip {
  display: grid;
  grid-template-columns: 1.35fr 0.82fr 0.82fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.intro-block {
  min-height: 156px;
  padding: 26px 30px;
  border-right: 1px solid var(--line);
}

.intro-block:last-child {
  border-right: 0;
}

.intro-block h2,
.section-title {
  margin: 0;
  color: var(--ink);
  font-family: Lora, Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

.intro-block h2 {
  font-size: 1.24rem;
  line-height: 1.2;
}

.intro-block p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.mini-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.mini-icon,
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.mini-icon {
  width: 42px;
  height: 42px;
}

.mini-icon.gold {
  color: #c77a10;
}

/* ===== SERVICES ===== */
.content-band {
  padding: 30px 54px 28px;
  background: var(--light);
}

.section-title {
  font-size: 1.14rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 18px;
  margin-top: 21px;
}

.service-card {
  min-height: 148px;
  border-right: 1px solid var(--line);
  padding: 0 14px 0 0;
  text-align: center;
}

.service-card:last-child {
  border-right: 0;
}

.service-icon {
  width: 48px;
  height: 42px;
  margin: 0 auto 10px;
}

.service-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.service-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.48;
}

/* ===== ACTIVITIES ===== */
.activities-band {
  background: #fff;
  border-top: 1px solid var(--line);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 21px;
}

.activity-card {
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 200ms ease;
}

.activity-card:hover {
  box-shadow: 0 8px 24px rgba(6, 35, 66, 0.1);
}

.activity-image {
  height: 160px;
  overflow: hidden;
}

.activity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-content {
  padding: 18px 20px 22px;
}

.activity-date {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.activity-content h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.activity-content p {
  margin: 8px 0 14px;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ===== ACTIVITY DETAIL ===== */
.activity-detail {
  padding: 40px 54px 50px;
}

.activity-detail-header {
  margin-bottom: 28px;
}

.activity-detail-header h1 {
  font-family: Lora, Georgia, serif;
  font-size: 1.8rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

.activity-lead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 680px;
}

.activity-detail-image {
  margin-bottom: 28px;
  max-height: 420px;
  overflow: hidden;
}

.activity-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-detail-body {
  max-width: 720px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--ink);
}

.activity-detail-back {
  margin-top: 36px;
}

.activity-detail-back .btn-secondary {
  border-color: var(--navy);
  color: var(--navy);
}

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

/* ===== STUDENTS & ALUMNI ===== */
.sa-section {
  padding: 48px 54px 52px;
  background: var(--light);
  border-top: 1px solid var(--line);
}

.sa-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.sa-subtitle {
  margin: 8px 0 0;
  color: var(--blue);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
}

.sa-intro {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.sa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}

.sa-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px 28px 28px;
  position: relative;
  transition: box-shadow 200ms ease;
}

.sa-card:hover {
  box-shadow: 0 8px 24px rgba(6, 35, 66, 0.08);
}

.sa-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 18px;
  border-radius: 8px;
}

.sa-card-icon.gold {
  background: #fef3c7;
  color: #b45309;
}

.sa-card h3 {
  margin: 0 0 8px;
  font-family: Lora, Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
}

.sa-card-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.sa-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sa-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.sa-list li strong {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.sa-list li span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.sa-alumni-btn {
  margin-top: 20px;
}

.sa-cta {
  text-align: center;
  margin-top: 36px;
  padding: 28px 24px;
  background: var(--navy);
  color: #fff;
}

.sa-cta p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 16px;
}

/* ===== TEAM ===== */
.team-band {
  padding: 24px 54px 30px;
  background: #fff;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 16px;
}

.team-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 100px;
}

.team-photo {
  display: flex;
  width: 76px;
  height: 88px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #b9c8d8;
  background:
    linear-gradient(145deg, rgba(12, 95, 168, 0.13), rgba(243, 177, 38, 0.10)),
    #eef5fb;
  color: var(--blue);
  font-family: Lora, Georgia, serif;
  font-size: 1.32rem;
  font-weight: 700;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
}

.team-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.48;
}

.team-card .role {
  color: var(--blue);
  font-weight: 800;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-deep);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 0.95fr 0.7fr;
  gap: 28px;
  padding: 24px 54px 23px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer h3,
.footer h4 {
  margin: 0;
  color: #fff;
  font-weight: 800;
}

.footer h3 {
  font-family: Lora, Georgia, serif;
  font-size: 1rem;
  line-height: 1.08;
}

.footer h4 {
  font-size: 0.78rem;
}

.footer p,
.footer a,
.footer li {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.7rem;
  line-height: 1.55;
  text-decoration: none;
}

.footer ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.socials {
  display: flex;
  gap: 9px;
  margin-top: 10px;
}

.social-icon-link {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.8);
  transition: background 160ms, color 160ms;
}

.social-icon-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}

.social-icon-link svg {
  width: 16px;
  height: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1060px) {
  .page-width {
    width: 100%;
  }

  .topbar-inner {
    padding-inline: 18px;
  }

  .desktop-nav {
    gap: 18px;
  }

  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-card:nth-child(4) {
    border-right: 0;
  }

  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .desktop-nav,
  .desktop-mail {
    display: none !important;
  }

  .menu-button {
    display: inline-flex !important;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
    padding: 32px 24px 18px;
  }

  .hero-copy h1 {
    max-width: 9ch;
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .hero-copy p {
    font-size: 0.84rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .btn {
    min-width: 0;
    min-height: 34px;
    padding: 9px 11px;
    font-size: 0.68rem;
  }

  .hero-photo-panel {
    min-height: 198px;
    background-position: center;
  }

  .mission-note {
    right: 18px;
    top: 18px;
    width: 138px;
    padding: 10px;
  }

  .mission-note strong {
    font-size: 1rem;
  }

  .intro-strip {
    grid-template-columns: 1fr;
  }

  .intro-block {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px 24px;
  }

  .intro-block:last-child {
    border-bottom: 0;
  }

  .content-band,
  .team-band {
    padding-inline: 24px;
  }

  .sa-section {
    padding: 36px 24px 40px;
  }

  .sa-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .service-card {
    min-height: 145px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 18px 12px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }

  .activity-detail {
    padding: 30px 24px 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .topbar-inner {
    min-height: 70px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-title {
    max-width: 206px;
  }

  .hero-copy {
    padding: 30px 20px 16px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .intro-block h2 {
    font-size: 1.06rem;
  }

  .mini-card {
    grid-template-columns: 34px 1fr;
  }

  .content-band,
  .team-band {
    padding: 25px 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    min-height: 0;
    text-align: left;
  }

  .service-icon {
    margin: 0;
  }

  .team-card {
    grid-template-columns: 64px 1fr;
  }

  .team-photo {
    width: 64px;
    height: 74px;
  }

  .activity-detail {
    padding: 24px 20px 36px;
  }

  .activity-detail-header h1 {
    font-size: 1.4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
