/* Shared styling for the MESA campus landing page components. */

.mesa {
  --mesa-blue: #1c75bb;
  --mesa-yellow: #fade2d;
  --mesa-ink: #1a1a1a;
  --mesa-max: 1140px;

  box-sizing: border-box;
  font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--mesa-ink);
}

.mesa *,
.mesa *::before,
.mesa *::after {
  box-sizing: inherit;
}

.mesa__inner {
  max-width: var(--mesa-max);
  margin: 0 auto;
}

/* ---------- Hero ---------- */

.mesa-hero {
  position: relative;
  padding: clamp(36px, 8.6vw, 165px) 24px 0;
  text-align: center;
  background-color: #fff;
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
}

.mesa-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.84);
}

.mesa-hero > * {
  position: relative;
}

.mesa-hero__name {
  margin: 0;
  color: var(--mesa-blue);
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.mesa-hero__address {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: clamp(14px, 2.4vw, 36px) 0 0;
  padding: 9px 0 clamp(8px, 0.7vw, 14px);
  color: var(--mesa-blue);
  font-size: clamp(17px, 2.2vw, 26px);
  font-weight: 800;
}

/* The yellow rule sits just above the address and runs a little wider than it. */
.mesa-hero__address::before {
  content: "";
  position: absolute;
  top: 0;
  right: -18px;
  left: -18px;
  height: 5px;
  background-color: var(--mesa-yellow);
}

/* ---------- Photo strip ---------- */

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

.mesa-photos__img {
  display: block;
  width: 100%;
  height: clamp(180px, 28.4vw, 430px);
  object-fit: cover;
}

/* ---------- Principal ---------- */

.mesa-principal {
  padding: 44px 24px;
}

.mesa-principal__title {
  margin: 0 0 28px;
  color: var(--mesa-blue);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
}

.mesa-principal__body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.mesa-principal__photo {
  display: block;
  width: 100%;
}

.mesa-principal__name {
  margin: 14px 0 8px;
  font-size: 17px;
  font-weight: 800;
}

.mesa-principal__role {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.mesa-principal__bio {
  color: var(--mesa-blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.mesa-principal__bio > :first-child {
  margin-top: 0;
}

/* ---------- Map ---------- */

.mesa-map {
  padding: 44px 24px;
  text-align: center;
}

.mesa-map__address {
  margin: 0 0 18px;
  color: var(--mesa-blue);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
}

.mesa-map__frame {
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 5 / 4;
  border-radius: 28px;
  overflow: hidden;
}

.mesa-map__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Student life ---------- */

.mesa-life {
  padding: 48px 24px;
  text-align: center;
}

.mesa-life__title {
  margin: 0 0 32px;
  color: var(--mesa-blue);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
}

.mesa-life__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  align-items: start;
}

.mesa-life__col-title {
  margin: 0 0 14px;
  color: var(--mesa-blue);
  font-size: 17px;
  font-weight: 800;
}

.mesa-life__items {
  color: var(--mesa-blue);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.mesa-life__items ul,
.mesa-life__items ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mesa-life__items p {
  margin: 0;
}

/* ---------- Open house ---------- */

.mesa-openhouse {
  padding: 44px 24px;
  text-align: center;
}

.mesa-openhouse__title {
  margin: 0;
  color: var(--mesa-blue);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}

.mesa-openhouse__subtitle {
  margin: clamp(10px, 1.2vw, 20px) 0 clamp(20px, 2.3vw, 38px);
  color: var(--mesa-blue);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 800;
}

.mesa-openhouse__scroll {
  max-width: 620px;
  margin: 0 auto;
  border-radius: 14px;
  /* auto (not hidden) so long rows still scroll on narrow screens. */
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(28, 117, 187, 0.12);
}

.mesa-openhouse__table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

/* Header row carries the brand blue; body rows are separated by hairlines
   rather than a full grid, so the block reads as part of the page. */
.mesa-openhouse__table thead th {
  padding: 14px 24px;
  background-color: var(--mesa-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mesa-openhouse__table td {
  padding: 16px 24px;
  border-top: 1px solid rgba(28, 117, 187, 0.18);
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}

.mesa-openhouse__table tbody tr:nth-child(odd) {
  background-color: rgba(28, 117, 187, 0.04);
}

.mesa-openhouse__table td:first-child {
  font-weight: 700;
  color: var(--mesa-blue);
}

/* ---------- CTA row ---------- */

.mesa-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px, 8vw, 120px);
  padding: 32px 24px 56px;
}

.mesa-cta__btn {
  display: inline-block;
  min-width: 260px;
  padding: 16px 34px;
  border-radius: 999px;
  background-color: var(--mesa-yellow);
  color: var(--mesa-blue);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.mesa-cta__btn:hover {
  filter: brightness(0.94);
}

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
  .mesa-photos {
    grid-template-columns: 1fr;
  }

  .mesa-principal__body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mesa-principal__photo {
    max-width: 180px;
  }

  .mesa-cta__btn {
    width: 100%;
  }
}

/* ---------- Student life column photos ---------- */

.mesa-life__col-photo {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 0 auto 14px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  object-fit: cover;
}

/* ---------- Logo strip ---------- */

.mesa-logos {
  padding: 40px 24px;
  text-align: center;
}

.mesa-logos__title {
  margin: 0;
  color: var(--mesa-blue);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
}

.mesa-logos__intro {
  margin: clamp(10px, 1.2vw, 20px) 0 0;
  color: var(--mesa-blue);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
}

.mesa-logos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(16px, 2.4vw, 36px);
  align-items: center;
  margin-top: clamp(20px, 2.6vw, 38px);
}

.mesa-logos__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding: 10px;
}

.mesa-logos__logo {
  max-width: 100%;
  max-height: 80px;
  /* contain, not cover: logos must never be cropped. */
  object-fit: contain;
}

/* ---------- Upcoming events ---------- */

.mesa-events {
  padding: 44px 24px;
  text-align: center;
}

.mesa-events__title {
  margin: 0;
  color: var(--mesa-blue);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
}

.mesa-events__intro {
  margin-top: clamp(10px, 1.2vw, 20px);
  color: var(--mesa-blue);
  font-size: clamp(15px, 1.7vw, 19px);
  font-weight: 700;
}

.mesa-events__intro p {
  margin: 0;
}

.mesa-events__frame {
  max-width: var(--mesa-max);
  margin: clamp(20px, 2.6vw, 38px) auto 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(28, 117, 187, 0.12);
}

.mesa-events__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.mesa-events__empty {
  margin: 28px 0 0;
  color: var(--mesa-ink);
  font-size: 15px;
}

.mesa-events__cta-row {
  margin: clamp(20px, 2.4vw, 32px) 0 0;
}

.mesa-events__cta {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background-color: var(--mesa-yellow);
  color: var(--mesa-blue);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.mesa-events__cta:hover {
  filter: brightness(0.94);
}

