/* --- Section & Background --- */
.nssc-events-section {
  background-image: url('/sites/default/files/2026-02/background.jpg'); 
  background-repeat: no-repeat;
  background-size: cover;
  padding: 4rem 0; 
  margin: 2rem 0;
}

.nssc-slider-container {
  padding: 2rem;
  background: transparent;
}

/* --- Splide & Grid Layout --- */
#nssc-events-slider .splide__list {
  display: grid !important;
  grid-auto-flow: column; 
  grid-template-rows: repeat(2, 1fr); 
  grid-auto-columns: 400px; 
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

/* Base Slide Styling */
#nssc-events-slider .splide__slide {
  list-style: none;
  background-color: #ffffff;
  border-radius: 16px;
  width: auto !important;
  overflow: visible; 
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Allow the row to take up available space */
#nssc-events-slider .views-row {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
}

/* Featured Card (First Slide) */
#nssc-events-slider .views-row:first-child {
  grid-row: 1 / span 2;
  width: 500px;
}

/* --- Vertical Spacing Logic --- */
.nssc-home-event {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto; 
  height: 100%;
}

.nssc-home-event__inner-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 25px;
  height: 100%; /* Important for the push logic */
}

/* The "Spring": This pushes the footer to the bottom of the card */
.nssc-home-event__footer {
  margin-top: auto; 
  padding-top: 1.5rem;
}

#nssc-events-slider .views-row:first-child .nssc-home-event__inner-content {
  padding-top: 0;
}

/* --- Typography --- */
.nssc-home-event__date {
  color: #953EB5;
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.nssc-home-event__title {
  font-size: 28px;
  color: #042969;
  font-weight: 600;
  margin: 0.75rem 0 0.5rem 0;
  line-height: 1.2;
}

.nssc-home-event__location {
  font-size: 1rem;
  color: #444;
  font-weight: 400;
  line-height: 1.4;
  max-width: 200px; /* Applied as requested */
}

/* Footer & More Details Link */
.nssc-home-event__more {
  color: #0056b3;
  font-weight: 600;
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* --- Image Handling (Featured Only) --- */
.nssc-home-event__image {
  display: none; 
}

#nssc-events-slider .views-row:first-child .nssc-home-event__image {
  display: block;
  width: 100%;
  margin-bottom: 1.5rem;
}

#nssc-events-slider .views-row:first-child .nssc-home-event__image img {
  width: 100%;
  height: 262px;
  display: block;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

/* --- Stretched Link --- */
.stretched-link {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  text-indent: -9999px; 
  overflow: hidden;
}