/*
 * Custom CSS
 */

:root {
  --bs-body-bg: var(--bs-gray-100);
  --bs-body-font-family: "Libre Franklin", sans-serif;
  --econml-blue: #0a58ca;
  --econml-blue-dark: #084298;
  --econml-blue-soft: #eef5ff;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: "Lora", serif;
  letter-spacing: -0.02em;
}

.speaker-grid a,
.organizer-grid a {
  display: block;
  font-family: "Lora", serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.speaker-grid a {
  display: flex;
  flex-direction: column;
}

.speaker-grid .speaker-name {
  display: block;
  min-height: 3.15rem;
}

.speaker-grid .col > p {
  margin-top: 0.25rem;
}

.speaker-photo-frame {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 0.4em;
  overflow: hidden;
  border-radius: 50%;
}

.headshots .speaker-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  padding-bottom: 0;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 0;
}

.speaker-photo-yiling {
  object-position: center top;
  transform: translate(-2.5%, -3%) scale(1.08);
}

@media (min-width: 576px) {
  .speaker-grid .speaker-name {
    min-height: 1.6rem;
  }
}

.hero-section::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.82) 38%,
    rgba(255, 255, 255, 0.4) 78%
  );
  background-color: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.subsection-title {
  font-size: 1.5rem;
}

.theme-card {
  height: 100%;
  padding: 2rem;
  background-color: #fff;
  border: 1px solid rgba(10, 88, 202, 0.1);
  border-top: 4px solid var(--econml-blue);
  border-radius: 1rem;
  box-shadow: 0 0.8rem 2rem rgba(33, 52, 85, 0.08);
}

.theme-card h3,
.theme-card h4 {
  margin-bottom: 1rem;
  color: var(--econml-blue-dark);
  font-size: 1.35rem;
}

.theme-card h4 {
  font-size: 1.2rem;
}

.theme-card p {
  line-height: 1.65;
}

.topic-list {
  padding-left: 1.1rem;
}

.topic-list li {
  margin-bottom: 0.3rem;
  line-height: 1.5;
}

.call-for-contributions {
  background: linear-gradient(90deg, var(--econml-blue-soft), #fff 24%, #fff 76%, var(--econml-blue-soft));
  border-block: 1px solid rgba(10, 88, 202, 0.18);
}

.call-for-contributions h3 {
  font-size: 1.5rem;
}

.call-for-contributions h4 {
  margin-bottom: 0.75rem;
  color: var(--econml-blue-dark);
  font-size: 1.25rem;
  font-weight: 700;
}

.detail-list {
  padding-left: 1.2rem;
}

.detail-list li {
  margin-bottom: 0.6rem;
  line-height: 1.65;
}

.detail-list code {
  color: var(--econml-blue-dark);
  word-break: break-word;
}

.important-dates {
  background: linear-gradient(180deg, var(--econml-blue-soft), #f8faff);
  border-block: 1px solid rgba(10, 88, 202, 0.1);
}

.date-timeline {
  position: relative;
  max-width: 54rem;
}

.date-timeline::before {
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 2px;
  content: "";
  background-color: rgba(10, 88, 202, 0.34);
  transform: translateX(-50%);
}

.date-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 1.5rem;
  align-items: center;
  min-height: 4.5rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(10, 88, 202, 0.14);
}

.date-timeline-item:not(:last-child) {
  margin-bottom: 1.25rem;
}

.date-timeline-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.date-timeline-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.9fr);
  column-gap: 2rem;
  align-items: baseline;
}

.date-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: var(--econml-blue);
  background-color: #fff;
  border: 2px solid rgba(10, 88, 202, 0.58);
  border-radius: 50%;
  box-shadow: 0 0 0 0.35rem var(--econml-blue-soft);
}

.date-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.date-timeline-content h3 {
  margin: 0;
  color: var(--econml-blue-dark);
  font-family: "Lora", serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0;
}

.date-value {
  color: var(--bs-gray-800);
  font-size: 1.05rem;
  font-weight: 600;
}

.date-note {
  grid-column: 2;
  color: var(--bs-gray-600);
  font-size: 0.9rem;
}

@media (max-width: 767.98px) {
  .date-timeline::before {
    top: 1.375rem;
    bottom: 1.375rem;
    left: 1.375rem;
  }

  .date-timeline-item {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    column-gap: 1rem;
  }

  .date-icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  .date-timeline-content {
    grid-template-columns: 1fr;
    row-gap: 0.35rem;
  }

  .date-note {
    grid-column: 1;
  }
}
