/* ============================================
   UDI HOMEPAGE EVENT CARD
   ============================================ */

.udi-event-card {
  display: flex;
  flex-direction: row;
  background-color: #FFFFFF;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 24px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.udi-event-card:hover {
  transform: translateY(-2px);
  background-color: #EEEEEE;
}

/* ── Image ── */
.udi-card-image {
  width: 480px;
  min-width: 480px;
  flex-shrink: 0;
  background-color: #EAE9E4;
}

.udi-card-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.udi-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.udi-card-no-image {
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.udi-card-no-image .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: rgba(12, 54, 76, 0.2);
}

/* ── Content ── */
.udi-card-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* ── Hide category tag ── */
.udi-card-category {
  display: none;
}

/* ── Title ── */
.udi-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.udi-card-title a {
  color: #0C364C !important;
  text-decoration: none;
}

.udi-card-title a:hover {
  color: #397287;
}

/* ── Date & time ── */
.udi-card-date {
  color: #0C364C !important;
  font-size: 0.9rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.udi-card-date .dashicons {
  color: #F1C22A;
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* ── Excerpt ── */
.udi-card-excerpt {
  color: rgba(12, 54, 76, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Button ── */
.udi-card-btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: 8px;
  background-color: #F1C22A;
  color: #0C364C !important;
  border: none;
  border-radius: 0;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.udi-card-btn:hover {
  background-color: #E6B40F;
  color: #0C364C;
}

/* ── No events ── */
.udi-no-events {
  color: #0C364C;
  font-size: 1rem;
}

/* ============================================
   UDI SINGLE EVENT PAGE
   ============================================ */

.udi-single-event {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.udi-event-inner {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
}

/* ── Left: Image ── */
.udi-event-image {
  width: 420px;
  min-width: 420px;
  flex-shrink: 0;
  overflow: hidden;
}

.udi-event-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ── Right: Content ── */
.udi-event-content {
  flex: 1;
}

.udi-event-title {
  color: #0C364C;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

/* ── Dates ── */
.udi-event-dates {
  margin-bottom: 24px;
}

.udi-event-dates .ee-event-datetimes-ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.udi-event-dates .ee-event-datetimes-li {
  background-color: #F2F2F2;
  padding: 16px;
  margin-bottom: 12px;
}

.udi-event-dates .ee-event-datetimes-li-daterange,
.udi-event-dates .ee-event-datetimes-li-timerange {
  color: #0C364C;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 4px;
}

.udi-event-dates .dashicons-calendar,
.udi-event-dates .dashicons-clock {
  color: #F1C22A;
}

.udi-event-dates .ee-event-datetimes-li-date-desc {
  color: #0C364C;
  font-size: 0.9rem;
  line-height: 1.6;
  display: block;
  margin-top: 10px;
}

/* ── Tickets ── */
.udi-event-tickets {
  margin-bottom: 24px;
}

.udi-event-tickets .tkt-slctr-tbl {
  width: 100%;
  border-collapse: collapse;
}

.udi-event-tickets .tkt-slctr-tbl thead tr {
  background-color: #0C364C;
}

.udi-event-tickets .tkt-slctr-tbl thead th {
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border: none;
}

.udi-event-tickets .tkt-slctr-tbl tbody td {
  padding: 12px 16px;
  color: #0C364C;
  font-size: 0.95rem;
  border: none;
  border-bottom: 1px solid #EAE9E4;
  vertical-align: middle;
}

.udi-event-tickets .ticket-selector-tbl-qty-slct {
  background-color: #F2F2F2;
  border: none;
  border-radius: 0;
  color: #0C364C;
  padding: 6px 10px;
  font-size: 0.95rem;
  cursor: pointer;
}

.udi-event-tickets .ticket-selector-submit-btn-wrap {
  margin-top: 16px;
  text-align: right;
}

.udi-event-tickets input.ticket-selector-submit-btn {
  background-color: #F1C22A;
  color: #0C364C;
  border: none;
  border-radius: 0;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.udi-event-tickets input.ticket-selector-submit-btn:hover {
  background-color: #E6B40F;
}

.udi-event-tickets .ticket-selector-disabled-submit-btn-msg {
  display: none;
}

/* ── Description ── */
.udi-event-description {
  color: #0C364C;
  font-size: 0.95rem;
  line-height: 1.7;
}

.udi-event-description a {
  color: #0C364C;
  text-decoration: underline;
}

.udi-event-description a:hover {
  color: #397287;
}

/* ── Venue ── */
.udi-event-description .espresso-venue-dv {
  background-color: #F2F2F2;
  padding: 20px;
  margin-top: 24px;
}

.udi-event-description .espresso-venue-dv h4 {
  color: #0C364C;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.udi-event-description .espresso-venue-dv h4 a {
  color: #0C364C;
  text-decoration: none;
}

.udi-event-description .espresso-venue-dv h4 a:hover {
  color: #397287;
}

.udi-event-description .espresso-venue-dv p {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.udi-event-description .dashicons-location-alt {
  color: #F1C22A;
}

.ee-gmap-wrapper {
  margin-top: 16px;
  overflow: hidden;
}

/* ============================================
   UDI EVENT ARCHIVE PAGE
   ============================================ */

.udi-event-archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.udi-archive-title {
  color: #0C364C;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.udi-archive-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.udi-event-card-archive {
  background-color: #FFFFFF;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.udi-event-card-archive:hover {
  transform: translateY(-2px);
  background-color: #EEEEEE;
}

.udi-card-image-archive {
  width: 300px;
  min-width: 300px;
  flex-shrink: 0;
}

.udi-card-image-archive img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.udi-card-content-archive {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.udi-card-title-archive {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.udi-card-title-archive a {
  color: #0C364C;
  text-decoration: none;
}

.udi-card-title-archive a:hover {
  color: #397287;
}

.udi-card-meta-archive {
  color: #0C364C;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.udi-card-meta-archive .dashicons {
  color: #F1C22A;
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.udi-card-excerpt-archive {
  color: rgba(12, 54, 76, 0.75);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.udi-card-btn-archive {
  display: inline-block;
  align-self: flex-start;
  margin-top: 8px;
  background-color: #F1C22A;
  color: #0C364C;
  border: none;
  border-radius: 0;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.udi-card-btn-archive:hover {
  background-color: #E6B40F;
  color: #0C364C;
}

.udi-no-events {
  color: #0C364C;
  font-size: 1rem;
}

.udi-archive-pagination {
  margin-top: 32px;
}

/* ── Image 50% width ── */
.udi-card-image {
  width: 50%;
  min-width: 50%;
  flex-shrink: 0;
}

.udi-card-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.udi-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .udi-event-card,
  .udi-event-card-archive,
  .udi-event-inner {
    flex-direction: column;
  }

  .udi-card-image,
  .udi-card-image-archive,
  .udi-event-image {
    width: 100%;
    min-width: unset;
    min-height: 220px;
  }

  .udi-card-content,
  .udi-card-content-archive {
    padding: 20px;
  }

  .udi-event-image img {
    max-height: 300px;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .udi-event-card {
    flex-direction: column !important;
    gap: 0 !important;
  }

  .udi-card-image,
  .udi-card-image-archive,
  .udi-event-image {
    width: 100% !important;
    min-width: unset !important;
    min-height: unset !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .udi-card-image a {
    display: block !important;
    line-height: 0 !important;
    font-size: 0 !important;
  }

  .udi-card-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .udi-card-content {
    padding: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .udi-card-title {
    font-size: 1.3rem !important;
  }
}