/* Global styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Cabin', sans-serif !important;
}

body {
  font-family: 'Cabin', sans-serif !important;
  line-height: 1.5;
  color: #333333;
  background-color: #ffffff;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Category sections */
.speaking-categories {
  margin-bottom: 2rem;
}

.category-section {
  margin-bottom: 3rem;
}

.category-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e9ecef;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #212529;
}

.category-description {
  font-size: 0.95rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* Engagement list */
.engagement-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .engagement-list.teaching {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .engagement-list.conferences {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Engagement item */
.engagement-item {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.engagement-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Teaching specific styles */
.teaching-item {
  display: flex;
  flex-direction: column;
}

.engagement-content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Meta header */
.engagement-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.engagement-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #495057;
  background-color: #e9ecef;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

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

/* Title and details */
.engagement-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: #212529;
}

.engagement-venue {
  font-size: 0.875rem;
  color: #343a40;
  margin-bottom: 0.25rem;
}

.engagement-location {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
}

/* Conference-specific styles */
.conference-item {
  position: relative;
}

/* Action buttons */
.engagement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.action-button {
  font-size: 0.875rem;
  font-weight: 500;
  color: #344559;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.action-button:hover {
  color: #0d6efd;
  text-decoration: underline;
}

.action-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.25rem;
}

/* Year group marker */
.year-marker {
  position: relative;
  margin: 2rem 0 1rem;
  text-align: center;
}

.year-marker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #e9ecef;
  z-index: 0;
}

.year-text {
  position: relative;
  background-color: #ffffff;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6c757d;
  display: inline-block;
  z-index: 1;
}