/* =========================================================
   EDIT HERE — THEME COLOURS / OPTIONAL SITE BACKGROUND
   You can safely leave these as-is if you like the current look.
   To add a full-page background image, replace `none` with:
   url("assets/your-background.jpg")
   ========================================================= */
:root {
  --bg: #f6f9ff;
  --bg-deep: #edf3ff;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: rgba(255, 255, 255, 0.97);
  --text: #111111;
  --muted: #303030;
  --line: rgba(0, 0, 0, 0.12);
  --gold: #f5d768;
  --gold-deep: #c99716;
  --blue: #0f6efc;
  --blue-deep: #2149cf;
  --red: #ef1b17;
  --red-deep: #b30000;
  --purple: #2c1bf2;
  --success: #3f9f73;
  --split-blue: #0d63e8;
  --split-red: #d31410;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  --radius: 22px;
  --radius-small: 16px;
  --page-bg-image: none; /* EDIT HERE if you want a whole-site background image */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: transparent;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 50% 0 0;
  background: var(--split-blue);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0 0 0 50%;
  background: var(--split-red);
  pointer-events: none;
  z-index: -2;
}

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

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

button {
  font: inherit;
}

.no-scroll {
  overflow: hidden;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(201, 151, 22, 0.28);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.university-label {
  color: var(--text);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text);
  transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #624400;
  background: rgba(245, 215, 104, 0.7);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(22, 40, 71, 0.1);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.hero {
  padding: 72px 0 48px;
}

.hero .container {
  width: min(1280px, calc(100% - 40px));
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}

.hero-copy,
.hero-visual,
.panel,
.page-banner,
.feature-card,
.social-card,
.exec-card,
.event-list-card,
.mini-event-card,
.calendar-wrap,
.modal-panel,
.info-card,
.empty-state {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.hero-copy::before,
.page-banner::before,
.calendar-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 213, 79, 0.2);
  color: #735400;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}

.hero h1,
.page-banner h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero p,
.page-banner p,
.info-card p,
.social-card p,
.exec-card p,
.event-list-card p,
.mini-event-card p,
.empty-state p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions,
.page-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 16px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.primary-button,
.secondary-button {
  background: linear-gradient(135deg, #ffe68e 0%, var(--gold) 60%, #f0c549 100%);
  color: #4f3900;
  border: 1px solid rgba(79, 57, 0, 0.12);
  box-shadow: 0 10px 22px rgba(201, 151, 22, 0.22);
}

.primary-button:hover,
.secondary-button:hover,
.social-card:hover,
.exec-card:hover,
.feature-card:hover,
.mini-event-card:hover,
.event-list-card:hover {
  transform: translateY(-2px);
}

.hero-visual {
  padding: 14px;
  position: relative;
  overflow: hidden;
  align-self: center;
}

.hero-image {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
  border: 1px solid rgba(201, 151, 22, 0.2);
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.info-card {
  padding: 22px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 8px;
}

.section {
  padding: 20px 0 64px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.feature-grid,
.social-grid,
.exec-grid,
.home-events-grid {
  display: grid;
  gap: 18px;
}

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

.feature-card {
  padding: 24px;
}

.feature-card__emoji {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-card h3,
.social-card h3,
.exec-card h3,
.event-list-card h3,
.mini-event-card h3,
.modal-event-card h3 {
  margin: 0 0 10px;
}

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

.social-card {
  padding: 22px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  align-items: start;
}

.social-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 1.8rem;
  color: #111111;
}

.social-card__handle {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue-deep);
  font-weight: 800;
}

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

.exec-card {
  overflow: hidden;
}

.exec-card__image-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 110, 252, 0.14), rgba(245, 215, 104, 0.22));
}

.exec-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exec-card__body {
  padding: 22px;
}

.exec-card__body .pill + h3 {
  margin-top: 18px;
}

.exec-card__degree {
  color: #111111;
  font-weight: 700;
}

.exec-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.exec-card__links a {
  padding: 9px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe68e 0%, var(--gold) 60%, #f0c549 100%);
  border: 1px solid rgba(79, 57, 0, 0.14);
  color: #4f3900;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(201, 151, 22, 0.2);
}

.page-banner {
  position: relative;
  overflow: hidden;
  padding: 32px;
  margin: 34px 0 26px;
}

.page-banner h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 10px;
}

.simple-page-heading {
  padding: 34px 0 16px;
}

.simple-page-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}


.simple-page-heading h1::after {
  content: "";
  display: block;
  width: clamp(140px, 22vw, 220px);
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--red));
}

.hero h1,
.page-banner h1,
.section-header h2,
.calendar-toolbar h2 {
  color: #111111;
}

.site-tagline {
  color: #111111;
  font-weight: 800;
}

.hero-copy,
.hero-visual,
.panel,
.calendar-wrap,
.footer-panel {
  backdrop-filter: blur(14px);
}

.hero-copy,
.social-card,
.exec-card,
.event-list-card,
.mini-event-card,
.calendar-wrap,
.panel,
.modal-panel,
.footer-panel {
  color: #111111;
}

.social-card__icon--discord,
.social-card__icon--email {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.social-card__icon--instagram,
.social-card__icon--tiktok,
.social-card__icon--rubric {
  background: #ffffff;
  color: #111111;
}

.icon-button:hover,
.close-modal:hover,
.nav-toggle:hover {
  background: rgba(15, 110, 252, 0.12);
}

.exec-card__links a:hover {
  background: linear-gradient(135deg, #fff0a7 0%, #f7dd77 60%, #f3c754 100%);
  transform: translateY(-1px);
}

.footer-panel {
  position: relative;
  overflow: hidden;
}

.footer-panel::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--red));
}

.section--compact-top {
  padding-top: 0;
}

.stack-heading {
  margin-bottom: 18px;
}

.stack-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #111111;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(245, 215, 104, 0.3);
  color: #714d00;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.calendar-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.calendar-wrap,
.panel {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.calendar-toolbar h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calendar-toolbar__buttons {
  display: flex;
  gap: 10px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(15, 110, 252, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  cursor: pointer;
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.weekday-row {
  margin-bottom: 10px;
}

.weekday-cell {
  padding: 10px 0;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}

.calendar-grid {
  grid-auto-rows: minmax(112px, auto);
}

.calendar-cell {
  border: 1px solid rgba(22, 40, 71, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  padding: 12px;
  text-align: left;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.calendar-cell--empty {
  background: transparent;
  border-style: dashed;
  opacity: 0.35;
}

.calendar-cell--today {
  outline: 2px solid rgba(245, 215, 104, 0.95);
}

.calendar-cell--event {
  background: linear-gradient(180deg, rgba(245, 215, 104, 0.2), rgba(255, 255, 255, 0.82));
}

.calendar-cell:hover {
  transform: translateY(-1px);
}

.calendar-day-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-weight: 900;
  background: rgba(245, 215, 104, 0.34);
  color: #111111;
}

.calendar-labels {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calendar-tag,
.calendar-more {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
}

.calendar-tag {
  background: rgba(245, 215, 104, 0.32);
  color: #111111;
}

.calendar-more {
  background: rgba(17, 17, 17, 0.08);
  color: #111111;
}

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

.event-list-card,
.mini-event-card,
.modal-event-card {
  padding: 20px;
}

.event-list-card__header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 12px;
}

.mini-event-card .pill + h3,
.event-list-card .pill + h3,
.modal-event-card .pill + h3 {
  margin-top: 14px;
}

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

.home-events-grid--hero {
  margin-top: 26px;
}

.mini-event-card {
  min-height: 170px;
}

.mini-event-card--blank {
  background: rgba(255, 255, 255, 0.38);
  border: 1px dashed rgba(22, 50, 83, 0.18);
  box-shadow: none;
}

.empty-state {
  padding: 26px;
}

.site-footer {
  padding: 18px 0 24px;
}

.footer-panel {
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.footer-panel p {
  margin: 4px 0;
  color: #111111;
}

.footer-note:empty {
  display: none;
}

.footer-panel a {
  color: #111111;
  font-weight: 800;
}

.event-modal {
  position: fixed;
  inset: 0;
  background: rgba(22, 40, 71, 0.68);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.22s ease;
  z-index: 100;
}

.event-modal--open {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  width: min(760px, 100%);
  max-height: min(80vh, 820px);
  overflow: auto;
  padding: 24px;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
}

.modal-header h2 {
  margin: 8px 0 0;
}

.close-modal {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15, 110, 252, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  cursor: pointer;
}

.modal-content {
  display: grid;
  gap: 14px;
}

.modal-event-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(22, 50, 83, 0.08);
  border-radius: var(--radius-small);
}

code {
  background: rgba(15, 110, 252, 0.08);
  padding: 3px 6px;
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .hero-grid,
  .calendar-layout,
  .feature-grid,
  .social-grid,
  .exec-grid,
  .home-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calendar-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 10px;
  }

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

  .hero-grid,
  .feature-grid,
  .social-grid,
  .exec-grid,
  .home-events-grid,
  .home-stats {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-copy,
  .page-banner,
  .calendar-wrap,
  .panel,
  .footer-panel {
    padding: 20px;
  }

  .calendar-grid {
    gap: 8px;
    grid-auto-rows: minmax(88px, auto);
  }

  .calendar-cell {
    padding: 10px;
  }

  .event-list-card__header,
  .footer-panel,
  .section-header,
  .modal-header {
    flex-direction: column;
    align-items: flex-start;
  }

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