/* EVENT CARD COMPONENT STYLES */

.event-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: none !important;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(34, 102, 51, 0.13) !important;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 5rem;
  padding-right: 5rem;
}
.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(35, 42, 39, 0.18) !important;
}
.event-card-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
  font-family: "Work Sans", sans-serif;
  letter-spacing: 0.04em;
}
.event-card-number-inline {
  font-size: 1.5rem;
  font-family: "Work Sans", sans-serif;
  color: var(--dark-color);
  font-weight: 400;
  margin-right: 0.7rem;
  vertical-align: baseline;
  line-height: 1;
  display: inline-block;
}
.event-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0.7rem 0 !important;
  margin-bottom: 1.5rem !important;
  font-family: "Cormorant", serif;
  line-height: 1.08;
}
.event-card-title.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.08;
}
.event-card-date-time {
  font-size: 1.08rem;
  color: var(--dark-color);
  margin-bottom: 0.2rem;
  font-family: "Work Sans", sans-serif;
}
.event-card-location {
  font-size: 1.08rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-family: "Work Sans", sans-serif;
}

.event-card-header {
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.event-card-content {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Event images at the top */
.event-card-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
}
.event-card-gallery img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--tertiary-color);
  border: 1.5px solid var(--tertiary-color);
  box-shadow: 0 2px 8px rgba(34, 102, 51, 0.07);
  transition: transform 0.2s;
  display: block;
}
.event-card-gallery img:first-child {
  margin-left: 0;
}
.event-card-gallery img:hover {
  transform: scale(1.04);
}
.event-card-gallery .hero-btn {
  margin-left: 1.2rem;
  font-size: 1rem;
  padding: 0.5rem 1.2rem;
}

/* Speakers */
.event-card-speakers {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.speaker {
  flex: 1 1 45%;
  min-width: 260px;
  max-width: 50%;
  box-sizing: border-box;
}
.event-card-speaker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}
.event-card-speaker-img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid var(--tertiary-color);
  background: var(--secondary-color);
}
.event-card-speaker-info {
  display: flex;
  flex-direction: column;
}
.event-card-speaker-name {
  font-family: "Cormorant", serif;
  color: var(--dark-color);
  font-size: 1.08rem;
  font-weight: 700;
}
.event-card-speaker-title {
  font-size: 0.98rem;
  color: var(--dark-color);
  font-family: "Work Sans", sans-serif;
}

.event-card-gallery.gallery {
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
}
.event-card-gallery.gallery img,
.event-card-gallery-thumb {
  width: 32%;
  min-width: 0;
  height: 150px;
  max-width: none;
  border-radius: 14px;
  border: 2px solid rgba(34, 102, 51, 0.13);
  box-sizing: border-box;
}
.event-card-gallery-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tertiary-color);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color) !important;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.event-card-gallery-thumb:hover {
  background: var(--primary-color);
  color: var(--white) !important;
  text-decoration: none;
}
.event-card-speaker-img,
.event-card-speaker-img-primary {
  width: 80px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
}
.event-card-speaker-info {
  font-size: 1.18rem;
}
.event-card-speaker-name {
  font-family: "Work Sans", sans-serif;
  color: var(--dark-color);
  font-size: 1.25rem;
  font-weight: 500;
}
.event-card-speaker-title {
  font-size: 1.08rem;
}
@media (max-width: 991.98px) {
  .event-card-gallery.gallery img,
  .event-card-gallery-thumb {
    width: 100%;
    height: 120px;
  }
  .event-card-speaker-img,
  .event-card-speaker-img-primary {
    width: 60px;
    height: 80px;
  }
  .event-card {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  .speaker {
    min-width: 180px;
    max-width: 100%;
    flex-basis: 100%;
  }
}
@media (max-width: 576px) {
  .event-card-gallery {
    flex-direction: column;
    gap: 0.7rem;
    align-items: flex-start;
  }
  .event-card-gallery img {
    width: 90px;
    height: 60px;
  }
  .event-card-speaker-img {
    width: 32px;
    height: 32px;
  }
  .event-card-gallery.gallery {
    flex-direction: column;
    gap: 0.7rem;
    align-items: flex-start;
  }
  .event-card-title,
  .event-card-title.section-title {
    margin-bottom: 0.35rem;
    line-height: 1.05;
  }
}

@media (max-width: 991.98px) {
  .event-card {
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
  }
  .event-card-gallery img {
    width: 120px;
    height: 80px;
  }
  .event-card-speaker-img {
    width: 38px;
    height: 38px;
  }
}
@media (max-width: 576px) {
  .event-card-gallery {
    gap: 0.7rem;
  }
  .event-card-gallery img {
    width: 90px;
    height: 60px;
  }
  .event-card-speaker-img {
    width: 32px;
    height: 32px;
  }
  .event-card-gallery.gallery {
    flex-direction: column;
    gap: 0.7rem;
    align-items: flex-start;
  }
}

.event-card-detail-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--primary-color);
  font-family: "Work Sans", sans-serif;
  font-size: 1.08rem;
  margin-bottom: 0.7rem;
}
.event-card-detail-row i {
  color: var(--primary-color);
  font-size: 1.2em;
  margin-right: 0.5em;
}
.event-card-detail-row .event-card-date-time,
.event-card-detail-row .event-card-location {
  color: var(--primary-color);
  font-family: inherit;
  font-size: inherit;
  margin: 0;
}

.icon-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.21em;
  background: var(--tertiary-color);
  border-radius: 1.35em;
  padding: 0.28em 0.95em 0.28em 0.8em;
  margin-right: 0.6em;
  margin-bottom: 0.42em;
  box-sizing: border-box;
  vertical-align: middle;
  font-size: 1.04rem;
}
.icon-text i {
  margin-right: 0.15em;
  color: var(--primary-color);
  font-size: 1.04em;
}
.icon-text .event-card-date-time,
.icon-text .event-card-location {
  color: var(--primary-color);
  font-family: inherit;
  font-size: inherit;
  margin: 0;
}
.icon-text a,
.event-card-gallery-link {
  color: var(--primary-color) !important;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}
.icon-text a:hover,
.event-card-gallery-link:hover {
  color: var(--dark-color) !important;
  text-decoration: underline;
}

.event-card-speaker-img-primary {
  border: 1.5px solid rgba(34, 102, 51, 0.5) !important;
}

.speaker .event-card-speaker-img,
.speaker .event-card-speaker-img-primary {
  margin-right: 1.2rem;
}

@media (max-width: 991.98px) {
  .event-card {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    max-width: 100%;
  }
  .event-card-gallery.gallery img,
  .event-card-gallery-thumb {
    width: 100%;
    height: 120px;
  }
  .event-card-speaker-img,
  .event-card-speaker-img-primary {
    width: 48px;
    height: 64px;
  }
  .event-card-speakers {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }
  .speaker {
    max-width: 100%;
    min-width: 0;
    flex-basis: 100%;
  }
  .event-card-detail-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.4rem;
  }
}
@media (max-width: 576px) {
  .event-card {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
  .event-card-gallery.gallery img,
  .event-card-gallery-thumb {
    width: 100%;
    height: 90px;
  }
  .event-card-title.section-title {
    font-size: 1.1rem;
  }
  .event-card-speaker-info {
    font-size: 1rem;
  }
}
