/* Landing Page */
.landing-page {
  text-align: center;
  margin-top: 0px;
  padding: 0 20px;
}

/* Intro section centered and constrained */
.intro {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 20px;
}

.motto {
  font-size: 36px;
  font-weight: 700;
  color: var(--metu-red);
  margin-bottom: 20px;
  line-height: 1.3;
}

.mission {
  font-size: 20px;
  color: #444;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* Hero slider */
.hero-slider {
  width: 100%;
  background-color: white; /* base background is white */
}

.slider {
  position: relative;
  width: 100%;
  height: 60vh; /* full screen height */
  background-color: black; /* black only for image area */
  overflow: hidden;
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* preserve image aspect ratio */
  background-color: black;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}

.slider img.active {
  display: block;
}

/* === Dots BELOW the black slider, on white === */
.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 16px 0 20px 0;
  background-color: white; /* make this white so it separates visually */
}

.slider-dots .dot {
  height: 6px;
  width: 50px;
  border-radius: 3px;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slider-dots .dot.active {
  background-color: var(--metu-red);
}

.slider-dots .dot:hover {
  background-color: #666;
}


/* Collaborators */
.collaborators {
  background-color: #f9f9f9;
  padding: 20px 0;
  text-align: center;
}

.collaborators-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.collab-logo {
  max-height: 150px;
  max-width: 300px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.collab-logo:hover {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .collab-logo {
    max-width: 100px;
    max-height: 40px;
  }
}

.scrolling-logos {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.logo-track {
  display: flex;
  width: max-content;
  animation: scroll-left 30s linear infinite;
}

.logo-track img {
  height: 60px;
  margin: 0 40px;
  object-fit: contain;
}

@keyframes scroll-left {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Talks and News - 2 Column Layout */
.talks-and-news {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.talks-news-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  justify-content: space-between;
}

/* Left Column: Talks & Events */
.latest-events {
  flex: 2 1 0;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
}

/* Event Grid */
.event-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}
.event-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.event-card:hover {
  transform: translateY(-4px);
}

.event-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 12px;
}

.event-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #ba0c2f;
}

.event-card p {
  font-size: 15px;
  margin: 6px 0;
  color: #333;
}

.event-tags {
  margin-bottom: 10px;
}

.event-tag {
  display: inline-block;
  background: #eee;
  color: #333;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
  margin: 2px 4px 0 0;
  font-weight: 500;
}

.event-tag.RomerTalk {
  background-color: #d64d23;
  color: white;
}

.past-tag {
  background-color: #777;
  color: white;
}

.upcoming-tag {
  background-color: var(--metu-red);
  color: white;
}

.show-more-button {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 20px;
  background-color: #ba0c2f;
  color: white;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.show-more-button:hover {
  background-color: #900a24;
}

/* Right Column: News */
.latest-news {
  flex: 1 1 0;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.news-item {
  border-bottom: 1px solid #ddd;
  padding-bottom: 12px;
  text-align: left;
}

.news-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--metu-red);
  margin-bottom: 4px;
}

.news-snippet {
  font-size: 15px;
  color: #444;
  line-height: 1.5;
}

/* Responsive */
/* Small to Medium screens: switch to 2 columns (3x2 layout) */
@media (max-width: 1600px) {
  .event-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1000px) {
  .latest-events {
    flex: 1 1 0;
  }
  .event-list {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 768px) {
  .talks-news-container {
    flex-direction: column;
  }

  .latest-events,
  .latest-news {
    width: 100%;
  }

  .event-list {
    grid-template-columns: repeat(1, 1fr);
  }

 .hero-slider {
    height: 250px !important;
  }

  .hero-slider .slider {
    height: 250px !important;
  }

  .hero-slider .slide {
    height: 250px !important;
  }
}

@media (max-width: 480px) {
  .event-list {
    grid-template-columns: 1fr;
  }


}
