@import url("https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600&display=swap");

:root {
  --ink: #17234a;
  --muted: #5f6678;
  --line: #d8ddea;
  --paper: #f6f8fb;
  --white: #ffffff;
  --blue: #16295f;
  --green: #56b879;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Work Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(23, 35, 74, 0.06);
}

.utility,
.brand-row,
.main-nav,
main > section,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-right: clamp(18px, 4vw, 36px);
  padding-left: clamp(18px, 4vw, 36px);
}

.utility {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding-top: 8px;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.utility a:hover,
.main-nav a:hover,
.section-heading a:hover,
.events a:hover,
.site-footer a:hover {
  color: var(--green);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 86px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 300px;
  flex: 0 0 auto;
}

.brand img {
  width: 64px;
  height: auto;
  flex: 0 0 auto;
}

.brand strong {
  max-width: 230px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 28px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

.header-wide .brand-row {
  max-width: none;
  padding-right: 18px;
  padding-left: 18px;
}

.header-wide .brand {
  min-width: 0;
}

.header-wide .brand strong {
  max-width: 190px;
}

.header-wide .main-nav {
  flex-wrap: nowrap;
  gap: 10px 18px;
  white-space: nowrap;
}

.statement {
  padding-top: 42px;
  padding-bottom: 30px;
  text-align: center;
}

.label {
  margin: 0 0 10px;
  color: var(--green) !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 930px;
  margin-right: auto;
  margin-bottom: 18px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.statement > p {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.search-panel {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 26px;
  align-items: end;
  padding-top: 28px;
  padding-bottom: 26px;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.search-panel form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: 8px;
}

input,
button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 13px;
  font: inherit;
}

button {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  font-weight: 600;
}

.link-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  padding-top: 34px;
  padding-bottom: 38px;
}

.link-band a {
  padding: 13px 12px;
  color: #fff;
  background: var(--blue);
  font-weight: 600;
  text-align: center;
}

.link-band a:nth-child(2) {
  background: #1f3c72;
}

.link-band a:nth-child(3) {
  background: #255d78;
}

.link-band a:nth-child(4) {
  background: #31806f;
}

.link-band a:nth-child(5) {
  background: var(--green);
}

.action-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 28px;
  padding-bottom: 38px;
}

.action-sections .intro-card {
  min-height: 260px;
}

.action-sections .intro-card:nth-child(1) {
  border-top: 4px solid var(--blue);
}

.action-sections .intro-card:nth-child(2) {
  border-top: 4px solid #1f3c72;
}

.action-sections .intro-card:nth-child(3) {
  border-top: 4px solid #31806f;
}

.action-sections .intro-card:nth-child(4) {
  border-top: 4px solid var(--green);
}

.expanded-actions .link-band {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.expanded-actions .link-band a:nth-child(1) {
  background: var(--blue);
}

.expanded-actions .link-band a:nth-child(2) {
  background: #1f3c72;
}

.expanded-actions .link-band a:nth-child(3) {
  background: #24536f;
}

.expanded-actions .link-band a:nth-child(4) {
  background: #2b6c69;
}

.expanded-actions .link-band a:nth-child(5) {
  background: #3b946a;
}

.expanded-actions .link-band a:nth-child(6) {
  background: var(--green);
}

.expanded-actions .action-sections {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.expanded-actions .action-sections .intro-card:nth-child(5) {
  border-top: 4px solid #3b946a;
}

.expanded-actions .action-sections .intro-card:nth-child(6) {
  border-top: 4px solid var(--green);
}

.two-column,
.news-events,
.visit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 28px;
  padding-bottom: 38px;
}

.intro-card,
.events,
.director,
.visit > div,
.visit dl {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.intro-card,
.events,
.visit > div,
.visit dl {
  padding: 18px;
}

.intro-card p,
.service-grid p,
.news p,
.director blockquote,
.visit dd,
.site-footer p {
  color: var(--muted);
}

ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.services,
.news-events,
.director,
.visit {
  padding-top: 52px;
  padding-bottom: 38px;
}

.actualites-rule,
.section-rule {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 36px) 0;
}

.actualites-rule span,
.section-rule span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #000;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.actualites-rule span::after,
.section-rule span::after {
  content: "";
  flex: 1;
  border-top: 1px solid #000;
}

.actualites-rule + .news-events {
  padding-top: 18px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}

.section-heading .label {
  grid-column: 1 / -1;
}

.section-heading a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-grid article {
  min-height: 150px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.resource-card {
  display: grid;
  align-content: start;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.resource-card img {
  display: block;
  width: 100%;
  height: 184px;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
}

.resource-card h3,
.resource-card p {
  padding-right: 16px;
  padding-left: 16px;
  margin-bottom: 0;
}

.resource-card h3 {
  padding-top: 14px;
}

.resource-card p {
  padding-bottom: 14px;
}

.news-events {
  align-items: start;
}

.news-events > .news,
.news-events > .events {
  height: 100%;
}

.news article {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.news article img {
  display: block;
  width: 92px;
  height: 68px;
  object-fit: cover;
  border-radius: 3px;
}

.news time {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

.events {
  display: grid;
  gap: 12px;
  align-content: start;
}

.events a {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-weight: 600;
}

.events .event-item {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-top: 12px;
}

.event-date {
  display: grid;
  place-items: center;
  width: 46px;
  min-height: 46px;
  color: #fff;
  background: var(--blue);
  border-radius: 3px;
  line-height: 1;
}

.event-date strong {
  font-size: 14px;
  font-weight: 600;
}

.event-date small {
  font-size: 10px;
  font-weight: 400;
}

.event-item span:last-child {
  display: grid;
  gap: 3px;
}

.event-item span:last-child strong {
  font-weight: 600;
}

.event-item em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

.director {
  padding: 22px;
}

.split-home .director {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  min-height: 430px;
}

.director-text {
  display: grid;
  align-content: center;
}

.director blockquote {
  max-width: 860px;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.director-message {
  display: grid;
  gap: 10px;
}

.director-message p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.62;
}

.signature {
  margin-bottom: 0;
  color: var(--blue);
  font-weight: 400;
}

.director-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  border-radius: 4px;
}

.visit dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.map-card {
  min-height: 260px;
  overflow: hidden;
  padding: 0 !important;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
}

dt {
  color: var(--blue);
  font-weight: 600;
}

dd {
  margin: 3px 0 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
  color: #fff;
  background: var(--blue);
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .brand-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-wide .brand-row {
    padding-right: clamp(18px, 4vw, 36px);
    padding-left: clamp(18px, 4vw, 36px);
  }

  .header-wide .main-nav {
    flex-wrap: wrap;
    white-space: normal;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .search-panel,
  .two-column,
  .news-events,
  .visit {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .link-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-sections {
    grid-template-columns: 1fr;
  }

  .expanded-actions .link-band,
  .expanded-actions .action-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-home .director {
    grid-template-columns: 1fr;
  }

  .director-photo img {
    height: 280px;
    min-height: 280px;
  }
}

@media (max-width: 620px) {
  .utility,
  .site-footer {
    flex-direction: column;
  }

  .search-panel form div,
  .service-grid,
  .link-band,
  .action-sections,
  .expanded-actions .link-band,
  .expanded-actions .action-sections,
  .section-heading {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 14px;
  }

  .news article {
    grid-template-columns: 1fr;
  }

  .news article img {
    width: 100%;
    height: 120px;
  }
}

/* Variant index2: introduction text left, search form right */
.split-home .search-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding-top: 44px;
  padding-bottom: 40px;
  text-align: left;
}

.split-home .search-intro h1 {
  margin-right: 0;
  margin-left: 0;
  font-size: 14px;
  line-height: 1.28;
}

.slogan-strip {
  padding-top: 18px;
  padding-bottom: 0;
}

.slogan-strip h1 {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  color: var(--blue);
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
}

.slogan-strip h1::before,
.slogan-strip h1::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.split-home .search-intro > p,
.split-home .intro-text > p {
  max-width: 620px;
  margin-right: 0;
  margin-left: 0;
  color: var(--muted);
  font-size: 14px;
}

.split-home .intro-search {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.split-home .intro-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.intro-director-note {
  text-align: justify;
}

.intro-director-note img {
  float: right;
  width: 100px;
  height: 100px;
  margin: 0 0 12px 18px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.intro-director-note .label {
  margin-bottom: 14px;
  color: var(--blue) !important;
  font-size: 18px;
  line-height: 1.2;
}

.split-home .intro-search form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: 8px;
}

@media (max-width: 900px) {
  .split-home .search-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .intro-director-note img {
    float: none;
    display: block;
    margin-bottom: 14px;
  }

  .split-home .intro-search form div {
    grid-template-columns: 1fr;
  }
}

/* Variant index3: brighter green-led palette */
.vivid-green {
  --ink: #14324a;
  --muted: #4d6170;
  --line: #c8ead4;
  --paper: #f2fbf5;
  --white: #ffffff;
  --blue: #1b4e8a;
  --green: #56b879;
}

.vivid-green .site-header {
  border-bottom-color: #56b879;
  box-shadow: 0 8px 22px rgba(86, 184, 121, 0.12);
}

.vivid-green .brand-row {
  background:
    linear-gradient(90deg, rgba(86, 184, 121, 0.16), rgba(86, 184, 121, 0)),
    var(--white);
}

.vivid-green .main-nav a {
  color: #1f6f45;
}

.vivid-green .main-nav a:hover {
  color: #1b4e8a;
}

.vivid-green .intro-search,
.vivid-green .intro-card,
.vivid-green .events,
.vivid-green .director,
.vivid-green .visit > div,
.vivid-green .visit dl,
.vivid-green .service-grid article {
  border-color: #b4dfc2;
}

.vivid-green .intro-search {
  background: #ffffff;
  border-top: 4px solid #56b879;
  box-shadow: 0 16px 28px rgba(86, 184, 121, 0.14);
}

.vivid-green button,
.vivid-green .link-band a,
.vivid-green .site-footer {
  background: #229954;
  border-color: #229954;
}

.vivid-green .link-band a:nth-child(2) {
  background: #2ead67;
}

.vivid-green .link-band a:nth-child(3) {
  background: #43bf78;
}

.vivid-green .link-band a:nth-child(4) {
  background: #1b4e8a;
}

.vivid-green .service-grid article {
  border-top: 4px solid #56b879;
}

.vivid-green .service-grid article:nth-child(2),
.vivid-green .service-grid article:nth-child(4) {
  border-top-color: #1b4e8a;
}

.vivid-green .director {
  border-left: 6px solid #56b879;
  background: linear-gradient(90deg, #ffffff, #f2fbf5);
}

/* Visit page galleries */
.visit-page .visit-intro {
  padding-bottom: 24px;
}

.visit-actions {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.visit-actions a:nth-child(1) {
  background: var(--blue);
}

.visit-actions a:nth-child(2) {
  background: #1f3c72;
}

.visit-actions a:nth-child(3) {
  background: #255d78;
}

.visit-actions a:nth-child(4) {
  background: #31806f;
}

.visit-actions a:nth-child(5) {
  background: #3b946a;
}

.visit-actions a:nth-child(6) {
  background: var(--green);
}

.gallery-section,
.gallery-grid,
.gallery-feature {
  max-width: var(--max);
  margin: 0 auto;
  padding-right: clamp(18px, 4vw, 36px);
  padding-left: clamp(18px, 4vw, 36px);
}

.gallery-section,
.gallery-grid,
.gallery-feature {
  padding-top: 24px;
  padding-bottom: 36px;
}

.gallery-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: stretch;
}

.gallery-feature > img,
.gallery-grid img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.gallery-feature > img {
  height: 280px;
}

.gallery-feature > div,
.gallery-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.gallery-feature > div {
  display: grid;
  align-content: center;
  padding: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-grid article {
  overflow: hidden;
}

.gallery-grid img {
  height: 180px;
  border-radius: 0;
}

.gallery-grid h3,
.gallery-grid p {
  padding-right: 14px;
  padding-left: 14px;
}

.gallery-grid h3 {
  padding-top: 14px;
}

.gallery-grid p {
  padding-bottom: 16px;
  color: var(--muted);
}

.media-feature,
.accessibility-feature {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

@media (max-width: 900px) {
  .visit-actions,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-feature,
  .media-feature,
  .accessibility-feature,
  .site-plan-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .visit-actions,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.visit-video-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: center;
  text-align: left;
}

.visit-video {
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 4px;
  aspect-ratio: 16 / 9;
}

.visit-video iframe,
.visit-video video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.visit-video video {
  object-fit: cover;
}

.org-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 36px) 36px;
}

.org-section img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.org-section p {
  margin: 12px 0 0;
  color: var(--muted);
}

.site-plan-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 36px) 36px;
}

.site-plan-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.site-plan-card h2 {
  margin: 0;
  padding: 14px 16px;
  color: var(--blue);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.site-plan-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(22, 41, 95, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(22, 41, 95, 0.08) 1px, transparent 1px),
    #f8fbf9;
  background-size: 42px 42px;
}

.plan-zone {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 10px;
  color: var(--blue);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.plan-zone-blue {
  color: #ffffff;
  background: var(--blue);
}

.plan-zone-soft {
  background: var(--green);
  color: #ffffff;
}

.plan-zone-small {
  color: var(--blue);
  background: #ffffff;
}

.plan-gs1 {
  top: 34px;
  left: 23%;
  width: 27%;
  height: 78px;
}

.plan-gs2 {
  top: 34px;
  left: 52%;
  width: 27%;
  height: 78px;
}

.plan-korea {
  top: 128px;
  left: 52%;
  width: 27%;
  height: 58px;
}

.plan-poly {
  top: 196px;
  left: 52%;
  width: 27%;
  height: 58px;
}

.plan-media {
  top: 34px;
  left: 5%;
  width: 16%;
  height: 78px;
}

.plan-learning {
  top: 34px;
  left: 81%;
  width: 14%;
  height: 78px;
}

.plan-degs {
  top: 190px;
  left: 23%;
  width: 13%;
  height: 58px;
}

.plan-med {
  top: 190px;
  left: 38%;
  width: 13%;
  height: 58px;
}

.plan-science {
  top: 262px;
  left: 23%;
  width: 13%;
  height: 58px;
}

.plan-flsh {
  top: 262px;
  left: 38%;
  width: 13%;
  height: 58px;
}

.plan-direction {
  top: 76px;
  left: 13%;
  width: 34%;
  height: 92px;
}

.plan-admin {
  top: 76px;
  right: 13%;
  width: 34%;
  height: 92px;
}

.plan-secretariat {
  top: 212px;
  left: 13%;
  width: 34%;
  height: 92px;
}

.plan-numerisation {
  top: 212px;
  right: 13%;
  width: 34%;
  height: 92px;
}

@media (max-width: 900px) {
  .site-plan-section {
    grid-template-columns: 1fr;
  }
}

.office-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 36px) 36px;
}

.office-list article {
  min-height: 150px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.office-list p {
  color: var(--muted);
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 36px) 36px;
}

.room-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.room-card > img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.room-card > div {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px 16px 16px 0;
}

.room-card p {
  color: var(--muted);
}

.room-card button {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
}

.photo-modal[aria-hidden="false"] {
  display: grid;
}

.photo-modal-dialog {
  width: min(960px, 100%);
  padding: 14px;
  background: var(--white);
  border-radius: 4px;
}

.photo-modal-close {
  display: block;
  margin-left: auto;
  margin-bottom: 10px;
  min-height: 34px;
  padding: 0 12px;
}

.photo-modal-main {
  display: block;
  width: 100%;
  height: min(62vh, 560px);
  object-fit: cover;
  border-radius: 3px;
}

.photo-modal-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.photo-modal-thumbs button {
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
}

.photo-modal-thumbs img {
  display: block;
  width: 100%;
  height: 90px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .visit-video-intro,
  .office-list,
  .room-grid {
    grid-template-columns: 1fr;
  }

  .room-card {
    grid-template-columns: 1fr;
  }

  .room-card > img {
    height: 240px;
  }

  .room-card > div {
    padding: 16px;
  }
}

.resource-link {
  display: inline-flex;
  margin: 0 14px 16px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.resource-link:hover {
  color: var(--green);
}
