/* ========================================
   RESET
   ======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #2f2f2f;
  color: white;
}

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
  background: #800020;
  text-align: center;
  padding: 8px;
  color: white;
  font-size: 14px;
}

.top-bar a {
  color: #ffdddd;
  font-weight: bold;
}

/* ========================================
   HEADER
   ======================================== */
header {
  padding: 20px 60px;
  background: #2f2f2f;
}

.info-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.campus {
  color: #915858;
  text-decoration: none;
  font-weight: bold;
}

.campus:hover {
  color: white;
}

.portal {
  color: #bd4b42;
  font-weight: bold;
  margin-left: auto;
}

.btn {
  background: #800020;
  color: white;
  border: none;
  padding: 7px 14px;
  cursor: pointer;
  font-size: 14px;
}

.btn:hover {
  background: #a00028;
}

/* main header row */
.mainhead {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.logo {
  height: 70px;
}

.text {
  margin-left: 6px;
}

.text h1 {
  font-size: 30px;
  margin-bottom: 4px;
}

.text .tagline {
  color: #ffcccc;
  font-size: 14px;
}

.text .tag {
  color: #ddd;
  font-size: 16px;
  margin-top: 4px;
}

.text .sub {
  color: #aaa;
  font-size: 12px;
  margin-top: 2px;
}

/* ========================================
   NAV
   ======================================== */
nav {
  margin-left: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

nav ul a {
  color: white;
  text-decoration: none;
  border: 2px solid #800020;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 13px;
  white-space: nowrap;
}

nav ul a:hover {
  background: #800020;
}

.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  margin-left: auto;
}

/* ========================================
   LOGIN MODAL
   ======================================== */
.login-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.login-box {
  background: #1e1e1e;
  border: 1px solid #800020;
  border-radius: 16px;
  padding: 36px 32px;
  width: 360px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: #f5f0e6;
  text-align: center;
}

.login-box p {
  color: #888;
  font-size: 13px;
  text-align: center;
}

.login-box input {
  padding: 10px 14px;
  border: 1px solid #444;
  border-radius: 10px;
  background: #2a2a2a;
  color: white;
  font-size: 14px;
  outline: none;
  width: 100%;
}

.login-box input:focus {
  border-color: #800020;
}

.login-submit {
  background: #800020;
  color: white;
  border: none;
  padding: 11px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
}

.login-submit:hover {
  background: #a00028;
}

.login-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #888;
  font-size: 18px;
  cursor: pointer;
}

.login-close:hover {
  color: white;
}

.login-error {
  color: #ff6666;
  font-size: 13px;
  text-align: center;
  min-height: 16px;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 55vh;
  background: linear-gradient(135deg, #0d0d0d, #1c0008, #0d0d0d);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 40px;
}

/* Smaller hero for inner pages — replaces inline styles */
.hero-sm {
  min-height: 28vh;
  padding: 36px 40px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  color: #f5f0e6;
  margin-bottom: 18px;
}

.hero p {
  color: #999;
  font-size: 17px;
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-btn {
  background: #800020;
  color: white;
  padding: 12px 36px;
  border-radius: 30px;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
}

.hero-btn:hover {
  background: #a00028;
}

/* smaller title for inner pages */
.hero-page-title {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  color: #f5f0e6;
  margin-bottom: 14px;
}

/* ========================================
   SECTION LABELS & HEADINGS
   ======================================== */
.section-label {
  display: block;
  text-align: center;
  color: #800020;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

/* Year label with top spacing — replaces inline style */
.section-label-spaced {
  margin-top: 60px;
  display: block;
  text-align: center;
  color: #800020;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
}

.past-sub {
  text-align: center;
  color: #888;
  font-size: 14px;
  margin-top: -30px;
  margin-bottom: 30px;
}

.see-all-row {
  text-align: center;
  margin-top: 30px;
}

/* ========================================
   HOME SECTIONS
   ======================================== */
.home-section {
  padding: 60px 24px;
  background: #111;
}

.dark-section {
  background: #181818;
}

/* ========================================
   CARD ROW — full-width grid (replaces flex row)
   ======================================== */
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  width: 100%;
  justify-content: center;
}

/* ========================================
   EVENT CARD
   ======================================== */
.event-card {
  background: #222;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #333;
  width: 100%;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  border-color: #800020;
  transform: translateY(-7px);
}

.event-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.event-card .info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-card .tag {
  background: #800020;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
}

.event-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  margin-bottom: 8px;
}

.event-card p {
  font-size: 13px;
  color: #aaa;
  line-height: 1.5;
}

.event-date-loc {
  color: #800020;
  margin-top: 8px;
  font-size: 12px;
}

/* Register button on event cards */
.register-btn {
  display: inline-block;
  margin-top: 14px;
  background: #800020;
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  align-self: flex-start;
  transition: background 0.2s;
}

.register-btn:hover {
  background: #a00028;
}

/* ========================================
   PAST CARD
   ======================================== */
.past-card {
  background: #222;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #2e2e2e;
  width: 100%;
  cursor: pointer;
  transition: 0.3s;
}

.past-card:hover {
  border-color: #800020;
  transform: translateY(-7px);
}

.past-card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  filter: saturate(0.6);
  transition: 0.3s;
}

.past-card:hover img {
  filter: saturate(1);
}

.past-card .info {
  padding: 16px 18px;
}

.past-card .year {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #800020;
  margin-bottom: 6px;
}

.past-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  margin-bottom: 7px;
  color: #f5f0e6;
}

.past-card p {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

.card-link {
  display: inline-block;
  margin-top: 12px;
  color: #800020;
  font-weight: bold;
  text-decoration: none;
  font-size: 13px;
}

.card-link:hover {
  color: #ff3355;
}

/* ========================================
   EVENT GRID (upcoming page)
   ======================================== */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 36px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

/* ========================================
   PAST SCROLL (past page — keeps horizontal scroll)
   ======================================== */
.past-scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 14px;
  max-width: 1600px;
  margin: 0 auto;
}

.past-scroll .past-card {
  flex-shrink: 0;
  width: 320px;
}

/* ========================================
   FULL PAGE SECTION
   ======================================== */
.full-section {
  padding: 70px 40px;
  background: #111;
}

/* ========================================
   FILTER BAR (upcoming page)
   ======================================== */
.filter-bar {
  background: #1a1a1a;
  padding: 20px 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-label {
  color: #888;
  font-size: 14px;
}

.filter-btn {
  background: #333;
  color: white;
  border: 1px solid #555;
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
}

.filter-btn:hover {
  background: #800020;
  border-color: #800020;
}

.active-filter {
  background: #800020;
  border-color: #800020;
}

/* ========================================
   SEARCH BAR (past page)
   ======================================== */
.search-bar-wrap {
  background: #1a1a1a;
  padding: 18px 40px;
  display: flex;
  justify-content: center;
}

.search-bar-wrap input {
  padding: 10px 20px;
  width: 320px;
  border-radius: 30px;
  border: 1px solid #800020;
  background: #222;
  color: white;
  outline: none;
  font-size: 14px;
}

.no-results-msg {
  display: none;
  text-align: center;
  padding: 40px;
  color: #666;
}

/* ========================================
   EVENT DETAIL PAGE — full width
   ======================================== */
.detail-hero {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
}

.detail-body {
  max-width: 100%;
  padding: 50px 80px;
}

.detail-body h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  margin-bottom: 10px;
  color: #f5f0e6;
}

.detail-body .event-meta {
  color: #888;
  font-size: 14px;
  margin-bottom: 24px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.detail-body .event-meta span {
  background: #222;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #444;
}

.detail-body p {
  color: #bbb;
  line-height: 1.7;
  margin-bottom: 18px;
  font-size: 15px;
}

.detail-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  margin: 30px 0 14px;
  color: #f5f0e6;
}

.highlights-list {
  list-style: none;
  padding: 0;
}

.highlights-list li {
  padding: 8px 0;
  border-bottom: 1px solid #333;
  color: #bbb;
  font-size: 14px;
}

.highlights-list li::before {
  content: "✦ ";
  color: #800020;
}

.gallery-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.gallery-row img {
  flex: 1 1 260px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #333;
}

.register-cta {
  background: #800020;
  color: white;
  padding: 13px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 16px;
  display: inline-block;
  margin-top: 30px;
}

.register-cta:hover {
  background: #a00028;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: #800020;
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  color: white;
}

.loading-msg {
  text-align: center;
  padding: 80px;
  color: #888;
}

/* Past event badge — replaces inline style in event-detail.js */
.past-badge {
  background: #555;
  color: #ccc;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-right: 8px;
}

/* ========================================
   FORMS PAGE
   ======================================== */
.forms-page {
  padding: 70px 40px;
  background: #f5f0e6;
  min-height: 60vh;
}

.forms-page h2 {
  color: #800020;
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  text-align: center;
  margin-bottom: 8px;
}

.forms-page > p {
  color: #2f2f2f;
  text-align: center;
  margin-bottom: 30px;
  font-size: 15px;
}

.form-selector {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.form-selector select {
  padding: 12px 20px;
  font-size: 15px;
  border: 2px solid #800020;
  border-radius: 30px;
  outline: none;
  background: white;
  color: #2f2f2f;
  cursor: pointer;
  min-width: 260px;
}

.form-display {
  max-width: 420px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.form-display legend {
  font-size: 20px;
  font-weight: bold;
  color: #800020;
  margin-bottom: 18px;
  display: block;
}

.form-display fieldset {
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-display input,
.form-display select,
.form-display textarea {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  width: 100%;
}

.form-display input:focus,
.form-display select:focus {
  border-color: #800020;
}

.form-display button {
  padding: 11px;
  background: #800020;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
}

.form-display button:hover {
  background: #5e0018;
}

/* success message */
.success-msg {
  display: none;
  text-align: center;
  padding: 30px;
}

.success-msg .success-icon {
  font-size: 50px;
}

.success-msg h3 {
  color: #800020;
  font-size: 24px;
  margin: 12px 0;
}

.success-msg p {
  color: #555;
}

.success-msg button {
  margin-top: 18px;
  background: #800020;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

/* ========================================
   FOOTER — larger & more prominent
   ======================================== */
footer {
  background: #000;
  color: #f5f0e6;
  padding: 60px 80px 30px;
}

.footer-top {
  text-align: center;
  margin-bottom: 40px;
}

.footer-top h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 8px;
}

.footer-top p {
  color: #888;
  font-size: 16px;
}

.footer-cols {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  gap: 40px;
}

.footer-col h3 {
  font-size: 16px;
  margin-bottom: 14px;
  border-bottom: 2px solid #800020;
  padding-bottom: 6px;
  display: inline-block;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #ccc;
  text-decoration: none;
  font-size: 15px;
}

.footer-col a:hover {
  color: #800020;
}

.footer-col p {
  color: #ccc;
  font-size: 15px;
  margin-bottom: 6px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #800020;
  margin-top: 36px;
  padding-top: 18px;
  font-size: 13px;
  color: #888;
}

/* ========================================
   MOBILE
   ======================================== */
@media (max-width: 768px) {
  header {
    padding: 16px 20px;
  }

  .mainhead {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background: #1a1a1a;
    padding: 14px;
    border-radius: 10px;
    gap: 8px;
    width: 100%;
  }

  nav ul.open {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero h1 {
    font-size: 32px;
  }

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

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

  footer {
    padding: 36px 24px 20px;
  }

  .footer-cols {
    flex-direction: column;
  }

  .gallery-row img {
    width: 100%;
  }

  .login-box {
    width: 90%;
  }

  .detail-body {
    padding: 30px 20px;
  }
}
