/* =========================================================
   === Page 1: Home Styling (index.css)
   === Only unique Home-page rules
   ========================================================= */

/* Title banners */
#index .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;
}

#index .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;
}

#index .main-section {
  background: linear-gradient(135deg, rgba(20,0,40,0.7), rgba(60,0,90,0.5));
  border-left: 4px solid #7526df;
  padding: 2em;
  box-shadow: inset 0 0 10px rgba(117, 38, 223, 0.4);
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 1em;
  margin: 2em 0;
}

#index .main-section p {
  margin-bottom: 1em;
  color: #d0d0d0;
  line-height: 1.6;
  font-size: 1rem;
}

#index .main-section p:first-child {
  font-weight: 600;
  color: #fff;
  font-size: 1.1rem;
}

#index .main-section .main-end {
  font-style: italic;
  color: #ffccff;
  text-shadow: 0 0 6px #7526df;
  animation: pulseGlow 2s infinite alternate;
  margin-bottom: 5em;
}

#index .main-stamp {
  background-image: url("../images/dubbchatt.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 100px;
  height: 100px;
  position: absolute;
  bottom: 1em;
  right: 1em;
  z-index: 5;
  filter: drop-shadow(0 0 6px #7526df);
  transition: transform 0.3s ease, filter 0.3s ease;
}
#index .main-stamp:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px #ff00cc);
}

/* Hover glow effect (like Page 2) */
#index .page-title-1:hover,
#index .page-title-2:hover {
  filter: drop-shadow(0 0 8px #7526df)
          drop-shadow(0 0 15px #ff00cc);
  transform: scale(1.02);
}

/* Two-column wrapper */
#index .wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2em;
  align-items: start;
}

@media (max-width: 900px) {
  #index .wrapper {
    grid-template-columns: 1fr;
  }
}

/* Column alignment */
#index .col-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2em;
}

#index .col-2 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 10px;
}

/* Responsive tweaks for banners */
@media (max-width: 900px) {
  #index .page-title-1,
  #index .page-title-2 {
    max-width: 70%;
    aspect-ratio: auto;
  }
}

@media (max-width: 600px) {
  #index .page-title-1,
  #index .page-title-2 {
    max-width: 90%;
    margin: 0 auto 1em;
  }
}

/* Events List Container */
#index #homeEventsList {
  display: block;
  padding: 10px 0;
  margin: 0;
}

/* Event Card Styling */
#index #homeEventsList li {
  list-style: none;
  margin-bottom: 12px;
}

#index .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;
}

#index .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 */
#index #homeEventsList li:not(:last-child) {
  border-bottom: 1px solid rgba(117, 38, 223, 0.4);
  padding-bottom: 1em;
}

/* Event Image */
#index .home-event.vertical img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 2px;
  background: #000;
}

/* Event Text */
#index .event-text {
  display: block;
  padding: 2px 0;
  line-height: 0.75;
  white-space: pre-line;
}

#index .event-date {
  font-weight: bold;
  color: #0ff;
  font-size: 0.75rem;
  margin-bottom: 2px;
}

#index .event-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

#index .event-location {
  font-style: italic;
  color: #ccc;
  font-size: 0.65rem;
}

/* Club Links Section */
#index .club-links {
  margin: 2em 0;
}

#index .club-links .section-label {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 1em;
  text-shadow: 0 0 5px #7526df;
}

#index .club-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8em 2em;
}

#index .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;
}

#index .club-grid li:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(255, 0, 200, 0.8);
}

#index .club-grid li:not(:last-child) {
  border-bottom: 1px solid rgba(117, 38, 223, 0.4);
  padding-bottom: 1.5em;
}
/* Homepage TODAY highlight */
#index .home-event.today-highlight {
  border: 2px solid #ffcc00;
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.6),
              0 0 24px rgba(255, 204, 0, 0.4);
  border-radius: 8px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  position: relative;
  animation: pulseGlow 2s infinite;
}

/* Reuse existing badge styles */
#index .today-badge {
  background: linear-gradient(45deg, #ff6a00, #ffcc00);
  color: black;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  animation: pulseGlow 1.5s infinite;
  display: inline-block;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 5px #ff6a00; }
  50% { box-shadow: 0 0 15px #ffcc00; }
  100% { box-shadow: 0 0 5px #ff6a00; }
}
