/* Speaking Hero */
.speaking-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6rem;
  overflow: hidden;
  padding: 3rem 2rem;
}

.speaking-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 183, 126, 0.15) 0%, rgba(255, 209, 102, 0.1) 100%);
  z-index: 0;
}

.speaking-background::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 119, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.speaking-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
}

.speaking-heading {
  font-family: var(--font-sans);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--mist-grey);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: fadeInUp 1s ease-out;
}

.speaking-subtext {
  font-size: 1.25rem;
  color: var(--emerald-green);
  animation: fadeInUp 1.2s ease-out;
}

/* Video Presentations Section */
.speaking-videos {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.08) 0%, rgba(0, 183, 126, 0.08) 100%);
}

.videos-container {
  max-width: 1400px;
  margin: 0 auto;
}

.videos-container h2 {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--gold);
  margin-bottom: 3rem;
}

.videos-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.video-card {
  background: linear-gradient(135deg, rgba(0, 183, 126, 0.1) 0%, rgba(0, 119, 255, 0.1) 100%);
  border: 1px solid rgba(0, 183, 126, 0.25);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
}

.video-card:hover {
  border-color: var(--emerald-green);
  background: linear-gradient(135deg, rgba(0, 183, 126, 0.15) 0%, rgba(0, 119, 255, 0.15) 100%);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 183, 126, 0.25);
}

.video-wrapper {
  position: relative;
  width: 45%;
  min-height: 300px;
  background: linear-gradient(135deg, rgba(0, 183, 126, 0.05) 0%, rgba(0, 119, 255, 0.05) 100%);
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 55%;
}

.video-details h3 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--mist-grey);
  margin-bottom: 1rem;
}

.video-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--mist-grey);
  opacity: 0.85;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.video-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--electric-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

.video-link:hover {
  color: var(--emerald-green);
  transform: translateX(5px);
}

/* Featured Presentations Section */
.featured-presentations {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.08) 0%, rgba(0, 183, 126, 0.08) 100%);
}

.presentations-container {
  max-width: 1400px;
  margin: 0 auto;
}

.presentations-container h2 {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--gold);
  margin-bottom: 3rem;
}

.presentations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.presentation-card {
  background: linear-gradient(135deg, rgba(0, 183, 126, 0.1) 0%, rgba(0, 119, 255, 0.1) 100%);
  border: 1px solid rgba(0, 183, 126, 0.25);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.presentation-card:hover {
  border-color: var(--emerald-green);
  background: linear-gradient(135deg, rgba(0, 183, 126, 0.15) 0%, rgba(0, 119, 255, 0.15) 100%);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 183, 126, 0.25);
}

.presentation-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: linear-gradient(135deg, rgba(0, 183, 126, 0.05) 0%, rgba(0, 119, 255, 0.05) 100%);
  overflow: hidden;
}

.presentation-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.presentation-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.presentation-details h3 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--mist-grey);
  margin-bottom: 1rem;
}

.presentation-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--mist-grey);
  opacity: 0.85;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.presentation-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--electric-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

.presentation-link:hover {
  color: var(--emerald-green);
  transform: translateX(5px);
}

/* Topics */
.speaking-topics {
  padding: 4rem 2rem;
  background-color: var(--deep-navy);
}

.topics-container {
  max-width: 1400px;
  margin: 0 auto;
}

.topics-container h2 {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--gold);
  margin-bottom: 3rem;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.topic-card {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0, 183, 126, 0.1) 0%, rgba(0, 119, 255, 0.05) 100%);
  border: 1px solid rgba(0, 183, 126, 0.2);
  border-radius: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.topic-card:hover {
  border-color: var(--emerald-green);
  background: linear-gradient(135deg, rgba(0, 183, 126, 0.15) 0%, rgba(0, 119, 255, 0.1) 100%);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 183, 126, 0.1);
}

.topic-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.topic-card h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--mist-grey);
  margin-bottom: 0.5rem;
}

.topic-card p {
  font-size: 0.95rem;
  color: var(--emerald-green);
}

/* Conferences */
.speaking-conferences {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.05) 0%, rgba(0, 183, 126, 0.05) 100%);
}

.conferences-container {
  max-width: 1400px;
  margin: 0 auto;
}

.conferences-container h2 {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--gold);
  margin-bottom: 3rem;
}

.conferences-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.conference-item {
  padding: 2.5rem 1.5rem;
  background-color: rgba(11, 27, 50, 0.6);
  border: 1px solid rgba(0, 119, 255, 0.3);
  border-radius: 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
}

.conference-item:hover {
  border-color: var(--electric-blue);
  background-color: rgba(0, 119, 255, 0.1);
  transform: scale(1.05);
}

.conference-logo {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--electric-blue);
  margin-bottom: 0.75rem;
}

.conference-item p {
  font-size: 0.9rem;
  color: var(--mist-grey);
  opacity: 0.7;
}

/* Added event cards section with image gallery layout */
.speaking-events {
  padding: 4rem 2rem;
  background-color: var(--deep-navy);
}

.events-container {
  max-width: 1400px;
  margin: 0 auto;
}

.events-container h2 {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--gold);
  margin-bottom: 3rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.event-card {
  background: linear-gradient(135deg, rgba(0, 183, 126, 0.08) 0%, rgba(0, 119, 255, 0.08) 100%);
  border: 1px solid rgba(0, 183, 126, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  border-color: var(--emerald-green);
  background: linear-gradient(135deg, rgba(0, 183, 126, 0.15) 0%, rgba(0, 119, 255, 0.1) 100%);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 183, 126, 0.2);
}

.event-image {
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 183, 126, 0.1) 0%, rgba(0, 119, 255, 0.1) 100%);
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.05);
}

.event-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-details h3 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--mist-grey);
  margin-bottom: 0.5rem;
}

.event-date {
  font-size: 0.95rem;
  color: var(--electric-blue);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.event-location {
  font-size: 0.9rem;
  color: var(--emerald-green);
  margin-bottom: 1rem;
}

.event-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--mist-grey);
  opacity: 0.85;
  margin-bottom: 1rem; /* Updated from 1.5rem */
}

/* Added styles for event links in video presentation cards */
.event-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--electric-blue);
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
}

.event-link:hover {
  color: var(--emerald-green);
  transform: translateX(5px);
}

/* CTA Section */
.speaking-cta {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.1) 0%, rgba(0, 183, 126, 0.1) 100%);
  text-align: center;
}

.speaking-cta h2 {
  font-family: var(--font-sans);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--mist-grey);
  margin-bottom: 1rem;
}

.speaking-cta p {
  font-size: 1.125rem;
  color: var(--mist-grey);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .speaking-heading {
    font-size: 2rem;
  }

  /* Added responsive styles for video cards */
  .video-card {
    flex-direction: column;
  }

  .video-wrapper {
    width: 100%;
    min-height: 250px;
  }

  .video-details {
    width: 100%;
    padding: 1.5rem;
  }

  .presentations-grid {
    grid-template-columns: 1fr;
  }

  .topics-grid,
  .conferences-grid {
    grid-template-columns: 1fr;
  }

  /* Updated responsive styles for event grid to show 2x2 grid */
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .event-image {
    height: 250px;
  }

  .topic-card,
  .conference-item {
    padding: 1.5rem;
  }

  .presentation-details {
    padding: 1.5rem;
  }
}
