/* Speaking Engagements Styling */

.speaking-engagement {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  border-radius: 8px;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.speaking-engagement:hover {
  background-color: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.engagement-image {
  flex-shrink: 0;
  width: 180px;
}

.engagement-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.engagement-image img:hover {
  transform: scale(1.05);
}

.engagement-content {
  flex: 1;
  min-width: 0; /* Prevents flex item from overflowing */
}

.engagement-header {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.engagement-header strong {
  color: #2c3e50;
}

.engagement-header a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.engagement-header a:hover {
  color: #004999;
  text-decoration: underline;
}

.engagement-date {
  color: #6c757d;
  font-size: 0.95rem;
}

.engagement-topic {
  color: #495057;
  line-height: 1.5;
}

.engagement-topic a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.engagement-topic a:hover {
  color: #004999;
  text-decoration: underline;
}

/* Dark mode support */
[data-theme="dark"] .speaking-engagement {
  background-color: #2d3748;
}

[data-theme="dark"] .speaking-engagement:hover {
  background-color: #374151;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .engagement-header strong {
  color: #e2e8f0;
}

[data-theme="dark"] .engagement-header a {
  color: #60a5fa;
}

[data-theme="dark"] .engagement-header a:hover {
  color: #93c5fd;
}

[data-theme="dark"] .engagement-date {
  color: #9ca3af;
}

[data-theme="dark"] .engagement-topic {
  color: #d1d5db;
}

[data-theme="dark"] .engagement-topic a {
  color: #60a5fa;
}

[data-theme="dark"] .engagement-topic a:hover {
  color: #93c5fd;
}

[data-theme="dark"] .engagement-image img {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .speaking-engagement {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .engagement-image {
    width: 100%;
    max-width: 300px;
  }

  .engagement-content {
    width: 100%;
  }
}

/* Ensure no image layout still works */
.speaking-engagement:not(:has(.engagement-image)) .engagement-content {
  width: 100%;
}
