@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Cutive+Mono&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap");

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: Cormorant Garamond, sans-serif;
}
.main-content h4 {
  text-align: center;
  max-width: 700px;
  margin: 1rem auto 1.5rem;
}

h4 {
  font-size: larger;
}

html {
  scroll-behavior: smooth;
}

.header h1 a {
  text-decoration: none;
  color: black;
}

/* ======================================================
   CAROUSEL — VISIBILITY-TOGGLE MODEL (JS-COMPATIBLE)
   ====================================================== */

/* Carousel wrapper */
#carousel {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Viewport */
#image-holder {
  width: 100%;
  overflow: visible; /* CRITICAL: do NOT clip hidden images */
  position: relative;
}

/* Images */
.pkg img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid black;
}
/*
.image-click-zone {
  position: relative;
}

/* The clickable “center” 
.image-center-link {
  position: absolute;
  top: 15%;
  left: 20%;
  width: 60%;
  height: 70%;
  z-index: 2;
  cursor: pointer;
}
*/
.image-center-link:hover {
  box-shadow: inset 0 0 0 2px rgba(86, 57, 23, 0.4);
}

.image-click-zone {
  position: relative;
}

/* The clickable “center” */
.image-center-link {
  position: absolute;
  top: 15%;
  left: 20%;
  width: 60%;
  height: 70%;
  z-index: 2;
  cursor: pointer;
}
.image-center-link:hover {
  box-shadow: inset 0 0 0 2px rgba(86, 57, 23, 0.4);
}

.pkg {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.pkg:not(.invisible) {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

/* Navigation buttons */
#left-button,
#right-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #333;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-size: 1.2rem;
}

#left-button {
  left: 0.25rem;
}

#right-button {
  right: 0.25rem;
}

.college-and-menu {
  display: flex;
  flex-direction: row; /* desktop: row */
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid black;
  padding: 0.5rem 1rem;
}

.college-and-menu p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.3;
}

/* Dropdown button 
.dropbtn {
  background-color: rgb(86, 57, 23);
  color: white;
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
}
*/
.dropbtn:hover {
  background-color: white;
  color: rgb(86, 57, 23);
}

/* Dropdown container 
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown menu 
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f1f1f1;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}
*/
/* Show dropdown */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Dropdown links */
.dropdown-content a {
  color: black;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  font-size: 0.8rem;
}

.dropdown-content a:hover {
  background-color: rgb(200, 142, 66);
}

/* ======================================================
   MOBILE SAFETY
   ====================================================== */

@media (max-width: 850px) {
  #left-button,
  #right-button {
    font-size: 1rem;
    padding: 0.35rem 0.6rem;
  }

  .college-and-menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .dropbtn {
    margin-top: 0.4rem;
  }
}

.grid-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "header header header header header"
    "sidebar main-content main-content main-content main-content"
    "footer footer footer footer footer";
  grid-gap: 2px;
  background-color: black;
  padding: 2px;
}

.grid-container > div {
  background-color: tan;
  text-align: center;
  font-size: 1rem;
}

.header {
  grid-area: header;
  margin: 0;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px black solid;
  overflow: visible;
}

.sidebar {
  grid-area: sidebar;
  padding: 1rem 1rem 1rem 2rem; /* left padding bigger */
}

.sidebar h2 {
  margin-top: 0;
  padding-top: 0;
  text-align: center; /* center headlines */
}

.sidebar-text {
  padding-left: 0; /* overridden by sidebar padding */
}

.sidebar img {
  width: 100%;
  max-width: 220px; /* adjust as you like */
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

.main-content {
  grid-area: main-content;
  padding: 0;
}

.footer {
  grid-area: footer;
  padding: 0 1.5rem 0 1.5rem;
}

.header {
  display: flex;
  align-items: center;
}

.header h1 {
  flex: 1;
  text-align: center;
  font-size: 3em;
  transition: 0.3s ease;
}

.header h1:hover {
  animation: pulse 1s ease-in-out both;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  } /* grow 5% */
  100% {
    transform: scale(1);
  }
}

/*  nav flex box */
.header ul {
  display: flex;
  list-style-type: none;
  justify-content: flex-end;
  padding: 0;
  column-gap: 1rem;
  margin-left: auto;
  /*  border: red solid 1px; */
}

.header ul li {
  /* border: solid 1px red; */
  padding: 1rem;
  font-size: medium;
}

.header ul li a {
  text-decoration: none;
  color: black;
  position: relative; /* REQUIRED for ::after */
}

/* underline */
.header ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px; /* tweak spacing */
  width: 0;
  height: 2px;
  background: black; /* or white if header is dark */
  transition: width 0.25s ease;
}

/* hover state */
.header ul li a:hover::after {
  width: 100%;
}

.lists {
  border-bottom: solid black 2px;
  padding: 3rem 2rem 2rem 2rem;
}

.lists ul {
  list-style-type: none;
  /*justify-content: flex-end;*/
  padding: 0 1rem 0 1rem;
  column-gap: 1rem;
  margin: 0 auto 0 auto;
  /* border: red solid 2px; */
}

.lists li {
  /* border: solid 1px red; */
  padding: 0.4rem;
  font-size: medium;
  text-align: left;
}

.lists h3 {
  margin-bottom: 0.4rem;
  /* border: red solid 1px; */
}

.sidebar-text {
  padding: 0 1rem 0 1rem;
  font-size: 1rem;
}

.sidebar h3 {
  margin-top: 0;
  padding-top: 0;
}

.sidebar img {
  padding: 0.5rem 0.5rem 0 0.5rem;
}

#carousel img {
  max-width: none;
  width: 100%;
}

.carousel-hint {
  font-size: 1rem; /* bigger and readable */
  font-weight: 600; /* semi-bold */
  color: rgb(86, 57, 23); /* accent color */
  text-align: center; /* center the text */
  margin: 0.25rem auto 0.5rem; /* auto horizontal margins */
  display: block; /* ensure it takes full width for centering */
  letter-spacing: 0.03em;
  opacity: 0.9;
  font-style: normal;
}

.college-and-menu p {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  font-size: small;
}

.dropbtn {
  background-color: rgb(86, 57, 23);
  color: white;
  padding: 10px;
  margin: 7px 7px;
  font-size: 16px;
  border-radius: 25px;
}

.dropbtn:hover {
  background-color: white;
  color: rgb(86, 57, 23);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* dropdown appears below button */
  left: 0;
  background-color: #f1f1f1;
  min-width: 200px; /* fixed minimum width */
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000; /* above everything */
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: smaller;
  z-index: 9999;
}

.dropdown-content a:hover {
  background-color: rgb(200, 142, 66);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #d1d2df;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 18px; /* smaller icon */
  color: rgb(86, 57, 23); /* icon color */
  margin-left: 6px; /* small left margin */
  vertical-align: middle; /*aligns better with text */
}

.material-symbols-outlined:hover {
  color: white;
}

.footer h3 {
  margin-bottom: 0.5rem;
}

.footer p {
  font-size: smaller;
  text-align: justify;
}

/* Stylized date headers */
.date-header {
  grid-column: 1 / -1;
  position: sticky;
  top: 7rem; /*had been 4.5 */
  z-index: 10;
  display: inline-flex;
  align-items: center;
  background: tan;
  padding: 0.75rem 0.5rem;
  border-radius: 6px;
}

.event {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1rem;
  max-width: 720px;
  margin: 0.75rem auto;
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: system-ui, -apple-system, sans-serif;
  /*  outline: 2px solid red; */
}

.event-body {
  display: flex;
  flex-direction: column;
}
/* removed in favor of later .event-card:hover 2/23/26
.event:hover {
  background-color: rgba(200, 142, 66, 0.15);
  transform: translateX(2px);
}
*/
.event-image {
  width: 100%; /* fill the card width */
  max-height: 180px; /* optional, limit height */
  object-fit: cover; /* crop nicely */
  border-radius: 8px; /* match card rounding */
  margin-bottom: 0.8rem; /* spacing before title */
}

.event-time {
  font-size: 0.82rem;
  color: #6b5e52;
  font-weight: 500;
  margin-left: auto;
  letter-spacing: 0.02em;
}
/* subbed out in favor of code above 
.event-time {
  font-family: "Cutive Mono", monospace;
  font-size: 0.9rem;
  text-align: right;
  color: #555;
  font-style: normal;
  letter-spacing: 0.02em;
}
*/
.event-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.15rem;
}

.event-title {
  font-weight: 600;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
/*
.event-explain {
  font-size: 0.95rem;
  color: #333;
  margin-top: 0.1rem;
}
*/
.event-meta {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.15rem;
  line-height: 1.35;
}

.event-tickets {
  font-style: normal;
  color: #444;
}
/* --------------------------------------------------
   Fonts
-------------------------------------------------- 
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap"); */

/* --------------------------------------------------
   Root variables
-------------------------------------------------- */
:root {
  --bg-main: #e8d9c5;
  --card-bg: #fdfaf7;
  --date-dark: #c6b2a3;
  --date-light: #e6ddd6;
  --text-main: #222;
  --text-muted: #4a4036;
  --accent-dark: #444;
  --accent-hover: #b32020;
  --shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.06);
  --radius: 14px;
}

/* --------------------------------------------------
   Base
-------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.events-section {
  font-size: 1.2em;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  background: #d2b48c;
}

.events-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* --------------------------------------------------
   Grid layout
-------------------------------------------------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  overflow: visible;
}

/* --------------------------------------------------
   Date header (shared per day)
-------------------------------------------------- */
.date-block {
  /* background: var(--date-light);   /* was --date-dark */
  background-color: rgb(86, 57, 23);
  color: white;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  border-radius: 6px 0 0 6px;
}

.day-block {
  /*  background: var(--date-dark);    /* was --date-light */
  background-color: rgb(208, 183, 154);
  padding: 0.55rem 0.9rem;
  border-radius: 0 6px 6px 0;
}

/* --------------------------------------------------
   Event cards
-------------------------------------------------- */
/* REPLACED WITH CHANGES BELOW 2/23/26
.event-card {
  color: #2a2a2a;
  background: #e6d8c6; /* changed form tan 2/23/26 
  border: 1px solid rgba(86, 57, 23, 0.45);
  /* CHANGED 2/23/26border: 1px solid #563917; /* thin printed border 
  border-radius: 10px;
  padding: 1.4rem 1.6rem 1.5rem;

  /* very subtle inset shading 
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04);

  display: flex;
  flex-direction: column;
}
*/
.event-card {
  color: #2a2a2a;
  background: linear-gradient(to bottom, #efe4d6 0%, #e6d8c6 35%, #e3d3c0 100%);
  border: 1px solid rgba(86, 57, 23, 0.35);
  /* CHANGED 2/23/26border: 1px solid #563917; /* thin printed border */
  border-radius: 10px;
  padding: 1.4rem 1.6rem 1.5rem;

  /* very subtle inset shading */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04);

  display: flex;
  flex-direction: column;
}

.event-card:hover {
  border-color: #d6c6ba;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------
   Title & subtitle
-------------------------------------------------- */
.event-title {
  font-family: "Libre Baskerville", serif;
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 0 0 0.4rem;
}

.event-explain {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  font-weight: 500;
  line-height: 1.35;
  /*  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.6rem; */
}

/* --------------------------------------------------
   Meta line (location + time)
-------------------------------------------------- */

.event-meta-line {
  font-size: 0.9rem; /* slightly larger */
  color: #4a4036; /* darker for readability */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem; /* tiny bit more breathing room */
  font-weight: 500;
}
/* .event-meta-line REPLACED WITH ABOVE 2/23/26{
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
*/

.meta-icon {
  font-size: 0.9rem;
}

.meta-sep {
  opacity: 0.85; /*up from 0.55 2/23/26 */
  font-weight: 600; /* add 2-23-26 */
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */
.event-footer {
  margin-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-college {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #333;
}

/* --------------------------------------------------
   Infinity link icon
-------------------------------------------------- */

.event-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #444;
  transition: color 0.2s ease;
}

.event-link svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-dark);
  opacity: 0.6;
  transition: stroke 0.25s ease, opacity 0.25s ease;
}

.event-link:hover svg {
  stroke: var(--accent-hover);
  opacity: 1;
}

.event-link::after {
  content: " →";
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform: translateX(-4px);
}

.event-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Remove any decorative lines above date header */
.date-header::before,
.date-header::after {
  content: none !important;
}

/* Logo hidden by default (desktop) */
.header-logo {
  display: none;
  width: 84px;
  height: auto;
  flex-shrink: 0;
}

.month-header {
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;

  font-family: "Cormorant Garamond", serif;
  font-size: 2.15rem; /* slightly refined scale */
  font-weight: 500; /* lighter = more elegant */
  letter-spacing: 0.08em; /* airy, editorial spacing */
  text-transform: uppercase;

  color: rgb(86, 57, 23);
  margin: 3.5rem 0 1.25rem;
  padding-bottom: 0.6rem;
}

/* Line beneath month header */
.month-header::after {
  content: "";
  display: block;
  width: 90%; /* almost full width */
  height: 2px;
  background-color: rgb(86, 57, 23); /* subtle complementary color */
  margin: 0.9rem auto 0 auto; /* center line with spacing */
  border-radius: 1px; /* soft edges */
}

/* Mobile About nav hidden by default */
#mobile-about-nav {
  display: none;
}

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

/* -------------------------
   Mobile (max-width: 850px)
------------------------- */

@media (max-width: 850px) {
  /* ---------------------------------
     Grid layout (single column)
  --------------------------------- */
  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "header"
      "main-content"
      "sidebar"
      "footer";
  }

  /* ---------------------------------
     Header layout
  --------------------------------- */
  .header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid black;
  }

  /* Show logo on mobile */
  .header-logo {
    display: block;
    width: 84px;
    height: auto;
    flex-shrink: 0;
  }

  /* Center site title */
  .header h1 {
    flex: 1;
    margin: 0;
    font-size: 2em;
    text-align: center;
  }

  .college-and-menu {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem; /* smaller spacing */
    padding: 0.5rem 0;
  }

  .college-and-menu p {
    margin: 0;
  }

  .college-and-menu .dropbtn {
    margin: 0;
  }

  .carousel-hint {
    margin-bottom: 0.25rem; /* half the desktop spacing */
  }
  /* Hide desktop month navigation */
  #month-nav {
    display: none;
  }

  #welcome {
    scroll-margin-top: 7.5rem; /* try 5rem–6.5rem */
  }
  .date-header {
    top: 6.4rem; /* smaller offset for mobile */
  }
  /* ---------------------------------
     Mobile About navigation
  --------------------------------- */
  #mobile-about-nav {
    display: flex;
    list-style: none;
    margin-left: auto;
    padding: 0;
  }

  #mobile-about-nav li {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  #mobile-about-nav li a {
    text-decoration: none;
    color: black;
    position: relative;
  }

  /* Hover underline effect */
  #mobile-about-nav li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: black;
    transition: width 0.2s ease;
  }

  #mobile-about-nav li a:hover::after {
    width: 100%;
  }

  .event-link::after {
    opacity: 1;
    transform: translateX(0);
  }

  /* ---------------------------------
     Sidebar (now at bottom)
  --------------------------------- */
  .sidebar {
    grid-area: sidebar;
    padding: 1rem;
    text-align: center;
  }

  .sidebar img {
    display: none;
  }

  /* ---------------------------------
     Events + carousel
  --------------------------------- */
  .events-grid {
    grid-template-columns: 1fr;
  }

  #left-button,
  #right-button {
    font-size: 1rem;
    padding: 0.35rem 0.6rem;
  }
}
