/* Webinar Card Component Styles */

.webinar-card {
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 350px;
  width: 100%;
  height: 100%; /* allow equal height inside swiper/grid */
  box-sizing: border-box;
}

.webinar-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.webinar-card-image {
  width: 100%;
  height: 192px;
  object-fit: cover;
}

.webinar-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* take remaining space to push button to bottom */
}

.webinar-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #002244;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.webinar-card-subtitle {
  color: #4b5563;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  flex-grow: 1;
  line-height: 1.5;
}

.webinar-card-meta {
  font-size: 0.875rem;
  color: #1f2937;
  margin-top: auto;
}

.webinar-card-meta-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.webinar-card-meta-item:last-child {
  margin-bottom: 0;
}

.webinar-card-icon {
  color: #0055AA;
  margin-right: 0.5rem;
  width: 1rem;
}

.webinar-card-button {
  margin-top: auto; /* pin to bottom of card body */
  width: 100%;
  background-color: #0055AA;
  color: #ffffff;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
  text-decoration: none;
  display: inline-flex; /* ensure centered content */
  justify-content: center;
  align-items: center;
  box-sizing: border-box; /* prevent overflow beyond card width */
}

.webinar-card-button:hover {
  background-color: #003d7a;
  color: #ffffff;
  text-decoration: none;
}

.webinar-card-button:active {
  background-color: #002244;
}

.webinar-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
  gap: 2rem;
  padding: 2rem 0;
  justify-content: start;
  align-items: stretch; /* make all cards same height */
}

/* Ensure slides can grow to fit card height */
.swiper .swiper-wrapper {
  align-items: stretch;
}

.swiper .swiper-slide {
  height: auto;
}

.swiper .swiper-slide .webinar-card {
  height: 100%;
}

@media (min-width: 640px) {
  .webinar-cards-grid {
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .webinar-cards-grid {
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .webinar-cards-grid {
    gap: 2rem;
  }
}
