/* =========================================================
   === Page 1: Home Styling (page1.css)
   === Only unique Home-page rules
   ========================================================= */

/* Title banners */
#page1 .page-title-1 {
  background-image: url("../images/1page-title1.gif");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 100%;
  max-width: 200px;          /* adjust to your art */
  aspect-ratio: 156 / 23;    /* keeps proportions */
  margin-bottom: 1em;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

#page1 .page-title-2 {
  background-image: url("../images/1page-title2.gif");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;   /* or 'cover' depending on your preference */
  width: 100%;
  max-width: 350px;           /* match the native width */
  aspect-ratio: 7 / 1;        /* matches 350x50 exactly */
  margin-bottom: 1em;
  display: block;
  box-shadow: 0 0 10px #7526df;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover glow effect (like Page 2) */
#page1 .page-title-1:hover,
#page1 .page-title-2:hover {
  filter: drop-shadow(0 0 8px #7526df)
          drop-shadow(0 0 15px #ff00cc);
  transform: scale(1.02);
}

/* Two-column wrapper */
#page1 .wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2em;
  align-items: start;
}

@media (max-width: 900px) {
  #page1 .wrapper {
    grid-template-columns: 1fr;
  }
}

/* Column alignment */
#page1 .col-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2em;
}

#page1 .col-2 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 10px;
}

/* Responsive tweaks for banners */
@media (max-width: 900px) {
  #page1 .page-title-1,
  #page1 .page-title-2 {
    max-width: 70%;
    aspect-ratio: auto;
  }
}

@media (max-width: 600px) {
  #page1 .page-title-1,
  #page1 .page-title-2 {
    max-width: 90%;
    margin: 0 auto 1em;
  }
}

/* Events List Container */
#page1 #homeEventsList {
  display: block;
  padding: 10px 0;
  margin: 0;
}

/* Event Card Styling */
#page1 #homeEventsList li {
  list-style: none;
  margin-bottom: 12px;
}

#page1 .home-event.vertical {
  display: block;
  text-align: center;
  font-family: sans-serif;
  font-size: 10px;
  line-height: 1.4;
  background: rgba(30, 0, 50, 0.6);
  color: #fff;
  border: 1px solid #7526df;
  border-radius: 6px;
  padding: 1em;
  max-width: 100px;
  box-shadow: 0 0 10px rgba(117, 38, 223, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#page1 .home-event.vertical:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(255, 0, 200, 0.8);
  background-color: rgba(40, 0, 60, 0.8);
}

/* Divider Glow Between Cards */
#page1 #homeEventsList li:not(:last-child) {
  border-bottom: 1px solid rgba(117, 38, 223, 0.4);
  padding-bottom: 1em;
}

/* Event Image */
#page1 .home-event.vertical img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 2px;
  background: #000;
}

/* Event Text */
#page1 .event-text {
  display: block;
  padding: 2px 0;
  line-height: 0.75;
  white-space: pre-line;
}

#page1 .event-date {
  font-weight: bold;
  color: #0ff;
  font-size: 0.75rem;
  margin-bottom: 2px;
}

#page1 .event-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

#page1 .event-location {
  font-style: italic;
  color: #ccc;
  font-size: 0.65rem;
}

/* Club Links Section */
#page1 .club-links {
  margin: 2em 0;
}

#page1 .club-links .section-label {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 1em;
  text-shadow: 0 0 5px #7526df;
}

#page1 .club-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8em 2em;
}

#page1 .club-grid li {
  background: rgba(30, 0, 50, 0.6);
  border: 1px solid #7526df;
  border-radius: 6px;
  padding: 1em;
  box-shadow: 0 0 10px rgba(117, 38, 223, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#page1 .club-grid li:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(255, 0, 200, 0.8);
}

#page1 .club-grid li:not(:last-child) {
  border-bottom: 1px solid rgba(117, 38, 223, 0.4);
  padding-bottom: 1.5em;
}
