:root {
  color-scheme: light;
  --color-bolivia-yellow: #f2c230;
  --color-illimani-white: #ffffff;
  --color-earth: #241f16;
  --color-paper: #fffdf6;
  --color-aged-gold: #b98200;
  --bg: #fffdf6;
  --ink: #241f16;
  --muted: #6f6552;
  --line: #eadcaa;
  --gold: var(--color-bolivia-yellow);
  --gold-deep: var(--color-aged-gold);
  --dark: var(--color-earth);
  --cream: #fff7d7;
  --white: var(--color-illimani-white);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: block;
  background: transparent;
  color: var(--ink);
  pointer-events: none;
}

.site-header-inner {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 24px;
  width: min(1180px, 100%);
  min-height: 76px;
  margin: 0 auto;
  padding: 0 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 100px;
  background: rgba(242, 194, 48, 0.92);
  backdrop-filter: blur(28px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.16);
  pointer-events: auto;
}

.mobile-menu-toggle,
.mobile-menu-backdrop {
  display: none;
}

.mobile-menu-toggle {
  justify-self: end;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(36, 31, 22, 0.24);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.main-menu {
  display: flex;
  justify-content: center;
}

.main-menu ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu li {
  position: relative;
}

.main-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 28px 0;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.main-menu > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.main-menu > ul > li > a:hover::after {
  transform: scaleX(1);
}

.has-submenu > a span::after {
  content: "⌄";
  display: inline-block;
  margin-left: 5px;
  transform: translateY(-1px);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 290px;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 18px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  background: rgba(36, 31, 22, 0.82);
  backdrop-filter: blur(28px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  width: 100%;
}

.submenu a {
  width: 100%;
  padding: 7px 22px;
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  transition: color 160ms ease, transform 160ms ease;
}

.submenu a::before {
  content: "";
  width: 10px;
  height: 2px;
  margin-right: 0;
  opacity: 0;
  background: var(--gold);
  transition: opacity 160ms ease, margin 160ms ease;
}

.submenu a:hover {
  color: var(--gold);
  transform: translateX(8px);
}

.submenu a:hover::before {
  margin-right: 10px;
  opacity: 1;
}

.page-title,
.section {
  padding: clamp(48px, 8vw, 100px) clamp(18px, 4vw, 56px);
}

.hero {
  min-height: 70vh;
  display: grid;
  align-content: center;
  background: linear-gradient(135deg, rgba(36, 31, 22, 0.94), rgba(185, 130, 0, 0.84));
  color: var(--white);
}

.home-hero {
  position: relative;
  min-height: 100vh;
  background:
    url('/images/illimani.jpeg') top center / contain no-repeat,
    var(--white);
  color: var(--white);
  display: grid;
  place-items: end center;
  overflow: hidden;
  padding: clamp(70px, 8vw, 120px) clamp(18px, 4vw, 56px);
}

.home-hero-clean {
  min-height: min(100vh, 820px);
  background-position: center;
  background-size: contain;
}

.block-hero {
  min-height: 54vh;
  background-position: center;
  background-size: cover;
}

.hero-center {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  text-align: center;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
}

.hero-center h1 {
  margin: 0 auto;
  max-width: 1120px;
  font-size: clamp(52px, 9vw, 132px);
  line-height: 0.9;
  text-transform: uppercase;
}

.hero-lead {
  width: min(720px, 100%);
  margin: 20px auto 0;
  color: var(--white);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 700;
}

.hero-floating {
  position: absolute;
  z-index: 1;
  width: clamp(130px, 18vw, 260px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.hero-floating img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-floating-left {
  left: clamp(18px, 5vw, 76px);
  bottom: clamp(36px, 8vw, 110px);
  transform: rotate(-7deg);
}

.hero-floating-right {
  right: clamp(18px, 5vw, 76px);
  top: clamp(70px, 11vw, 150px);
  transform: rotate(8deg);
}

.button-large {
  display: inline-flex;
  margin-top: 34px;
  padding: 14px 22px;
}

.home-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  color: var(--ink);
  margin-top: -1px;
  padding: 130px clamp(18px, 4vw, 56px) 28px;
  gap: 1px;
}

.event-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  width: min(1180px, calc(100% - 36px));
  margin: -105px auto 0;
  background:
    linear-gradient(135deg, rgba(242, 194, 48, 0.92), rgba(255, 255, 255, 0.9)),
    url('/images/illimani.jpeg') center / cover no-repeat;
  color: var(--ink);
  padding: clamp(42px, 6vw, 76px) clamp(18px, 4vw, 56px);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 90px rgba(36, 31, 22, 0.22);
}

.event-strip .eyebrow {
  color: var(--ink);
}

.event-primary {
  display: grid;
  gap: 14px;
}

.template-subtitle {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

.template-subtitle p {
  margin: 0;
}

.template-subtitle span {
  width: 18px;
  height: 18px;
  background: var(--ink);
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
}

.event-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 1fr));
  gap: 12px;
  width: min(620px, 100%);
}

.event-countdown div {
  min-width: 0;
  background: var(--white);
  border: 1px solid rgba(36, 31, 22, 0.18);
  padding: 18px 14px;
  text-align: center;
}

.event-countdown strong {
  display: block;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.event-countdown span,
.event-info-row span {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
}

.event-details {
  display: grid;
  gap: 10px;
}

.event-info-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 11px 20px;
  border: 3px solid rgba(237, 246, 255, 0.9);
  background: var(--white);
}

.event-info-row p {
  flex: 1;
  margin: 0;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
}

.event-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--gold-deep);
  font-size: 22px;
}

.fact-item {
  border-left: 1px solid var(--line);
  padding: 10px 24px;
}

.fact-item span {
  display: block;
  color: var(--gold-deep);
  font-weight: 800;
  text-transform: uppercase;
}

.fact-item strong {
  display: block;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.1;
}

.home-dark {
  background: linear-gradient(180deg, var(--cream), var(--white));
  color: var(--ink);
}

.home-about {
  padding: clamp(70px, 9vw, 128px) clamp(18px, 4vw, 56px);
}

.home-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 38px;
  align-items: start;
}

.about-copy h2,
.home-statement h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 96px);
  line-height: 0.96;
}

.about-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
}

.about-media img,
.about-strip img,
.gallery-ribbon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 18px;
  align-items: end;
}

.about-strip img {
  height: clamp(180px, 25vw, 340px);
  border: 8px solid var(--white);
  box-shadow: 0 20px 60px rgba(36, 31, 22, 0.12);
}

.about-strip img:nth-child(2) {
  height: clamp(230px, 32vw, 430px);
}

.home-statement {
  padding: 0 clamp(18px, 4vw, 56px) clamp(78px, 10vw, 140px);
}

.template-container {
  width: min(1170px, calc(100% - 36px));
  margin: 0 auto;
}

.about-template-gallery {
  padding: 130px 0 125px;
}

.template-about-wrap {
  position: relative;
}

.template-about-images {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.template-about-img {
  flex: 1 1 0;
}

.template-about-img:nth-child(even) {
  margin-top: 44px;
}

.template-about-img img {
  width: 100%;
  height: clamp(180px, 22vw, 310px);
  object-fit: cover;
  border: 6px solid var(--white);
  box-shadow: 0 18px 50px rgba(36, 31, 22, 0.14);
}

.about-template-details {
  padding: 0 clamp(18px, 4vw, 56px) 130px;
}

.about-template-details .template-container {
  width: 100%;
}

.template-about-top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(24px, 5vw, 70px);
  margin-bottom: 65px;
}

.story-heading h2 {
  margin: 0;
  font-size: clamp(36px, 6vw, 82px);
  line-height: 0.98;
}

.story-text {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
}

.story-text p {
  margin: 0;
}

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

.recognition-gallery figure {
  margin: 0;
}

.recognition-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 20px 60px rgba(36, 31, 22, 0.14);
}

.recognition-gallery figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.color-meaning {
  padding: 0 clamp(18px, 4vw, 56px) clamp(78px, 10vw, 130px);
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
}

.color-card {
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--white);
}

.color-card span {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(36, 31, 22, 0.18);
}

.color-card h3,
.color-card p {
  margin: 0;
}

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

.color-yellow span {
  background: var(--color-bolivia-yellow);
}

.color-white span {
  background: var(--color-illimani-white);
}

.home-statement h2 {
  max-width: 1120px;
}

.home-statement span {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  padding: 0 0.16em 0.08em;
}

.home-blocks {
  padding: clamp(70px, 9vw, 128px) clamp(18px, 4vw, 56px);
}

.home-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  max-width: none;
}

.block-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: clamp(18px, 3vw, 34px);
}

.block-person-card a {
  display: grid;
  gap: 14px;
  text-align: center;
  text-decoration: none;
}

.block-person-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 999px;
  border: 8px solid var(--white);
  box-shadow: 0 20px 60px rgba(36, 31, 22, 0.16);
}

.block-person-card h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
}

.block-person-card p {
  margin: 0;
  color: var(--muted);
}

.home-gallery {
  background: var(--gold);
  color: var(--ink);
  padding: clamp(70px, 9vw, 120px) 0;
  overflow: hidden;
}

.home-ex-pasantes {
  padding: clamp(70px, 9vw, 128px) clamp(18px, 4vw, 56px);
  background: var(--cream);
}

.ex-pasantes-hero {
  background:
    linear-gradient(180deg, rgba(36, 31, 22, 0.18), rgba(36, 31, 22, 0.72)),
    url('/images/senorial-historia.jpeg') center / cover no-repeat;
}

.ex-pasante-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.ex-pasante-card {
  border: 1px solid var(--line);
  background: var(--white);
}

.ex-pasante-card a {
  display: grid;
  color: inherit;
  text-decoration: none;
}

.ex-pasante-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ex-pasante-card div {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.ex-pasante-card h3,
.ex-pasante-card p,
.ex-pasante-card span {
  margin: 0;
}

.ex-pasante-card p,
.ex-pasante-card span {
  color: var(--muted);
  font-weight: 700;
}

.ex-pasante-official {
  width: min(920px, 100%);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--cream);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.video-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: var(--dark);
}

.youtube-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 220px));
  gap: 14px;
}

.youtube-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--dark);
  cursor: pointer;
}

.youtube-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease, opacity 180ms ease;
}

.youtube-thumb span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(36, 31, 22, 0.18);
}

.youtube-thumb span::before {
  content: "";
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.youtube-thumb span::after {
  content: "";
  position: absolute;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--ink);
  transform: translateX(2px);
}

.youtube-thumb:hover img {
  transform: scale(1.04);
  opacity: 0.86;
}

.youtube-popup[hidden] {
  display: none;
}

.youtube-popup {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 44px);
}

.youtube-popup-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(36, 31, 22, 0.82);
  cursor: pointer;
}

.youtube-popup-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  background: var(--dark);
  border: 8px solid var(--white);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.34);
}

.youtube-popup-panel iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.youtube-popup-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.youtube-popup-open {
  overflow: hidden;
}

.ex-pasante-admin-grid {
  display: grid;
  gap: 16px;
}

.ex-pasante-admin-card {
  display: grid;
  grid-template-columns: minmax(180px, 260px) repeat(2, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fffdf6;
}

.ex-pasante-admin-card label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-weight: 700;
}

.ex-pasante-admin-card input,
.ex-pasante-admin-card textarea,
.ex-pasante-admin-card select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 9px 10px;
}

.ex-pasante-admin-card textarea {
  resize: vertical;
}

.ex-pasante-admin-card .admin-cover-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.ex-pasante-admin-card .form-status {
  grid-column: 1 / -1;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(70px, 9vw, 120px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(135deg, rgba(255, 253, 246, 0.96), rgba(255, 247, 215, 0.9)),
    url('/images/illimani.jpeg') center / cover no-repeat;
}

.contact-band h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 6vw, 76px);
  line-height: 0.98;
}

.contact-lead {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 700;
}

.facebook-panel {
  display: grid;
  gap: 14px;
  justify-items: stretch;
  padding: 12px;
  border: 1px solid rgba(185, 130, 0, 0.42);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.88);
  box-shadow: 0 24px 80px rgba(36, 31, 22, 0.14);
}

.facebook-panel iframe {
  display: block;
  width: 100%;
  max-width: 500px;
  min-height: 620px;
  margin: 0 auto;
  border-radius: 6px;
  background: var(--white);
}

.facebook-link {
  justify-self: center;
}

.admin-hero {
  min-height: 46vh;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 140px clamp(18px, 4vw, 56px) 56px;
  background: linear-gradient(135deg, var(--gold), var(--white));
}

.admin-hero h1 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(42px, 8vw, 96px);
  line-height: 0.95;
}

.admin-hero p {
  max-width: 720px;
  margin: 0;
}

.admin-shell {
  padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 56px);
  background: var(--white);
}

.admin-notice {
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-weight: 700;
}

.admin-notice[data-closed="true"] {
  background: #fff0f0;
  border-color: #efb7b7;
}

.admin-grid {
  display: block;
}

.admin-block-editor,
.admin-resource {
  display: grid;
  gap: 14px;
  align-content: start;
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 18px 60px rgba(36, 31, 22, 0.08);
}

.admin-module-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}

.admin-module-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.admin-module-card {
  display: grid;
  gap: 8px;
  min-height: 136px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fffdf6;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.admin-module-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-deep);
  box-shadow: 0 18px 44px rgba(36, 31, 22, 0.12);
}

.admin-module-card strong {
  font-size: 22px;
}

.admin-module-card span {
  color: var(--muted);
}

.admin-resource-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.admin-resource-head div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-resource-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}

.admin-cover-preview {
  width: min(280px, 100%);
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--cream);
}

.admin-form,
.admin-list-item {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fffdf6;
}

.admin-form-wide {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.admin-form-wide label:nth-of-type(6),
.admin-form-wide label:nth-of-type(7),
.admin-form-wide label:nth-of-type(8),
.admin-form-wide .form-status {
  grid-column: 1 / -1;
}

.admin-form label,
.admin-list-item label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-list-item input,
.admin-list-item textarea,
.admin-list-item select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffdf6;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

.admin-form textarea,
.admin-list-item textarea {
  resize: vertical;
}

.admin-list {
  display: grid;
  gap: 14px;
  overflow-x: auto;
}

.admin-table {
  display: grid;
  gap: 10px;
  min-width: 760px;
}

.admin-table-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fffdf6;
}

.admin-table-row label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-weight: 700;
}

.admin-table-row input,
.admin-table-row textarea,
.admin-table-row select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 9px 10px;
}

.admin-table-row .form-status {
  grid-column: 1 / -1;
}

.admin-thumb {
  width: 86px;
  height: 86px;
  align-self: center;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--white);
}

.admin-thumb-empty {
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.person-card {
  display: grid;
  align-content: start;
}

.person-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}

.contact-line {
  color: var(--gold-deep) !important;
  font-weight: 800;
}

.field-help {
  color: var(--gold-deep);
  font-size: 14px;
  font-weight: 700;
}

.checkbox-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: auto;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--gold-deep);
  font-weight: 700;
}

.form-status[data-error="true"] {
  color: #b42318;
}

.not-found-page {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 140px clamp(18px, 4vw, 56px) 70px;
  background: linear-gradient(135deg, var(--gold), var(--white));
}

.not-found-page h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 110px);
  line-height: 0.95;
}

.video-popup[hidden] {
  display: none;
}

.video-popup {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 44px);
}

.video-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 31, 22, 0.72);
}

.video-popup-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  justify-items: center;
  width: min(980px, 100%);
  padding: clamp(10px, 2vw, 16px);
  border: 1px solid rgba(242, 194, 48, 0.62);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 31, 22, 0.9), rgba(36, 31, 22, 0.72)),
    linear-gradient(90deg, rgba(242, 194, 48, 0.22), rgba(255, 255, 255, 0.08));
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
}

.video-popup-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.intro-video {
  display: block;
  width: min(980px, 100%);
  max-height: 82vh;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 6px;
  outline: 5px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 8px rgba(242, 194, 48, 0.72),
    0 24px 80px rgba(0, 0, 0, 0.34);
}

.intro-video[hidden] {
  display: none !important;
}

.intro-video-frame {
  aspect-ratio: 16 / 9;
  border: 0;
}

.video-popup-title {
  display: grid;
  gap: 4px;
  order: -1;
  width: min(980px, 100%);
  padding: 0;
  color: var(--white);
  background: transparent;
  text-align: center;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.56);
}

.video-popup-title h2,
.video-popup-title p {
  margin: 0;
}

.video-popup-title h2 {
  font-size: clamp(22px, 3vw, 42px);
  line-height: 1.05;
}

.video-popup-open {
  overflow: hidden;
}

.is-viewable-image {
  cursor: zoom-in;
}

.image-viewer[hidden] {
  display: none;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 44px);
}

.image-viewer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(36, 31, 22, 0.82);
  cursor: zoom-out;
}

.image-viewer-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  max-width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
  margin: 0;
}

.image-viewer-panel img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
  background: var(--white);
  border: 8px solid var(--white);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.34);
}

.image-viewer-panel figcaption {
  color: var(--white);
  font-weight: 800;
  text-align: center;
}

.image-viewer-close {
  position: fixed;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.image-viewer-open {
  overflow: hidden;
}

.gallery-title {
  padding: 0 clamp(18px, 4vw, 56px) 28px;
}

.gallery-title h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 82px);
  line-height: 1;
}

.gallery-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 18px;
  padding: 0 clamp(18px, 4vw, 56px);
}

.gallery-ribbon img {
  height: clamp(220px, 30vw, 390px);
}

.hero h1,
.page-title h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(42px, 8vw, 90px);
  line-height: 0.98;
}

.hero p {
  max-width: 720px;
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.button,
.card a {
  width: fit-content;
  border: 1px solid var(--gold-deep);
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.two-column h2,
.panel h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card,
.panel {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 22px;
}

.card h2,
.card h3 {
  margin: 0 0 10px;
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}

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

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 32px;
}

dl {
  display: grid;
  gap: 6px 16px;
  grid-template-columns: max-content 1fr;
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer.site-footer {
  position: relative;
  display: block;
  padding: 0;
  border-top: 0;
  color: var(--white);
  overflow: hidden;
  background-color: var(--dark);
}

.footer.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(36, 31, 22, 0.94), rgba(36, 31, 22, 0.78)),
    linear-gradient(90deg, rgba(242, 194, 48, 0.28), rgba(255, 255, 255, 0.08));
}

.footer.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px);
}

.footer-style-two.pt-140 {
  padding-top: 140px;
}

.bg_img {
  width: 100%;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.ul_li,
.ul_li_between {
  display: flex;
  align-items: center;
}

.ul_li_between {
  justify-content: space-between;
}

.align-items-start {
  align-items: flex-start;
}

.mt-30 {
  margin-top: 30px;
}

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

.footer-style-two .xb-footer-wrap {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1fr) minmax(240px, 0.9fr);
  gap: clamp(28px, 5vw, 88px);
  padding-bottom: 120px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.xb-widget-title {
  position: relative;
  margin: 0 0 30px;
  padding-bottom: 13px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.xb-widget-title::before,
.xb-widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.16);
}

.xb-widget-title::after {
  width: 39px;
  background: var(--gold);
}

.footer-style-two .xb-list {
  display: grid;
  gap: 10px;
}

.footer-style-two .xb-list li a {
  position: relative;
  display: inline-block;
  color: var(--white);
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 800;
  line-height: 1.55;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, transform 160ms ease;
}

.footer-style-two .xb-list li a::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 160ms ease;
}

.footer-style-two .xb-list li a:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.footer-style-two .xb-list li a:hover::before {
  left: 0;
  right: auto;
  width: 100%;
}

.xb-newsletter {
  display: grid;
  gap: 16px;
}

.xb-item--logo strong {
  display: block;
  max-width: 360px;
  color: var(--gold);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.94;
  text-transform: uppercase;
}

.xb-item--title {
  max-width: 430px;
  margin: 0;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.xb-item--summary {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.xb-footer_info .xb-contact {
  display: grid;
  gap: 16px;
}

.xb-footer_info .xb-contact li {
  color: var(--white);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
}

.xb-footer_info .xb-contact a {
  color: currentColor;
  text-decoration: none;
}

.xb-footer_info .xb-contact a:hover,
.xb-footer-bottom-inner a:hover {
  color: var(--gold);
}

.footer-style-two .xb-footer_bottom {
  background: none;
}

.xb-footer-bottom-inner {
  gap: 20px;
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.82);
}

.xb-footer-bottom-inner p {
  margin: 0;
}

.xb-footer-bottom-inner a {
  color: var(--white);
  text-decoration: none;
}

.social-link {
  gap: 14px;
  flex-wrap: wrap;
}

.social-link li,
.social-link a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 991px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: fixed;
    padding: 12px clamp(12px, 4vw, 24px);
  }

  .site-header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: auto;
    padding: 8px 10px 8px 20px;
    border-radius: 100px;
  }

  .mobile-menu-toggle {
    display: grid;
  }

  .menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 18;
    background: rgba(36, 31, 22, 0.58);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .menu-open .mobile-menu-backdrop {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .main-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 25;
    display: block;
    width: min(86vw, 360px);
    height: 100vh;
    overflow-y: auto;
    padding: 92px 24px 32px;
    background: rgba(36, 31, 22, 0.96);
    color: var(--white);
    box-shadow: -24px 0 70px rgba(0, 0, 0, 0.24);
    transform: translateX(105%);
    transition: transform 220ms ease;
  }

  .menu-open .main-menu {
    transform: translateX(0);
  }

  .main-menu > ul {
    display: grid;
    gap: 8px;
  }

  .main-menu a {
    width: 100%;
    padding: 12px 0;
    font-size: 15px;
  }

  .main-menu > ul > li > a::after {
    bottom: 8px;
    background: var(--gold);
  }

  .submenu {
    position: static;
    display: flex;
    min-width: 100%;
    max-height: none;
    margin: 0 0 10px;
    padding: 4px 0 4px 14px;
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: visible;
    border: 0;
    border-left: 1px solid rgba(242, 194, 48, 0.42);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .submenu a {
    padding: 7px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
  }

  .submenu a:hover {
    color: var(--gold);
    transform: translateX(4px);
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-floating {
    display: none;
  }

  .home-facts,
  .event-strip,
  .home-about,
  .template-about-top,
  .about-strip,
  .gallery-ribbon,
  .contact-band,
  .admin-grid,
  .footer-style-two .xb-footer-wrap,
  .ex-pasante-admin-card {
    grid-template-columns: 1fr;
  }

  .footer-style-two.pt-140 {
    padding-top: 76px;
  }

  .footer-style-two .xb-footer-wrap {
    padding-bottom: 70px;
  }

  .xb-footer-bottom-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .template-about-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-form-wide {
    grid-template-columns: 1fr;
  }

  .admin-resource-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .recognition-gallery {
    grid-template-columns: 1fr;
  }

  .template-about-img:nth-child(even) {
    margin-top: 0;
  }

  .event-strip {
    text-align: center;
  }

  .template-subtitle {
    justify-content: center;
  }

  .home-facts {
    padding-top: 60px;
  }

  .home-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
