/* Conference Grid Styles - Single Line Layout */
.conference-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  margin-top: 2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  justify-content: center; /* Center the cards */
  align-items: center;
}

.conference-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 0 0 320px; /* Bigger width for conference cards */
  min-width: 320px;
}

.conference-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.conference-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.conference-image-container {
  position: relative;
  width: 100%;
  height: 220px; /* Bigger height for conference images */
  overflow: hidden;
}

.conference-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.conference-card:hover .conference-image {
  transform: scale(1.05);
}

/* Conference Overlay Styles */
.conference-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, #002d57, rgba(0, 45, 87, 0.9));
  color: white;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
  opacity: 0;
}

.conference-card:hover .conference-overlay {
  transform: translateY(0);
  opacity: 1;
}

.conference-details {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.conference-title-overlay {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: white;
  text-align: center;
}

.conference-location,
.conference-date {
  margin: 0.6rem 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
}

.conference-location i,
.conference-date i {
  color: #6ec1e4;
  font-size: 1.1rem;
}

.conference-title {
  padding: 1rem;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  display: none; /* Hide the title below image */
}

/* Responsive Design */
@media (max-width: 768px) {
  .conference-grid {
    gap: 1.5rem;
    padding-bottom: 0.5rem;
    justify-content: flex-start; /* Start from left on mobile */
  }

  .conference-card {
    flex: 0 0 280px; /* Smaller but still bigger than before */
    min-width: 280px;
  }

  .conference-image-container {
    height: 300px;
  }
  .conference-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.3s ease;
  }
  .conference-overlay {
    padding: 1.2rem;
  }

  .conference-title-overlay {
    font-size: 1.1rem;
    margin: 0 0 0.8rem 0;
  }

  .conference-location,
  .conference-date {
    font-size: 0.9rem;
    margin: 0.5rem 0;
  }
}
