/* ==========================================================
   EVENTPRIME EVENTO EVENTS — FRONTEND
   Màu nhấn: --eee-accent (Evento vàng / Expo xanh, đổi trong Settings)
   ========================================================== */

/* ---------- 0) BIẾN CHUNG ---------- */
.emagic, .eee-w, .eee-events-page, .eee-terms, .eee-cal, .eee-my, .eee-fes {
  --eee-ink: #1d2327;
  --eee-muted: #646970;
  --eee-line: #e4e6e8;
  --eee-soft: #f6f7f7;
  --eee-card: #fff;
  --eee-r: 10px;
  --eee-dark: #111;
  box-sizing: border-box;
}
.emagic *, .eee-w *, .eee-events-page *, .eee-terms *, .eee-cal *, .eee-my * { box-sizing: border-box; }
.eee-ic { display: inline-block; vertical-align: middle; flex: 0 0 auto; }
.eee-muted { color: var(--eee-muted); }
.eee-upper { text-transform: uppercase; letter-spacing: .3px; }
.eee-empty { padding: 28px 16px; text-align: center; color: var(--eee-muted); background: var(--eee-soft); border-radius: var(--eee-r); }
.eee-notice { padding: 16px 18px; border-radius: var(--eee-r); background: var(--eee-soft); border-left: 4px solid var(--eee-accent, #f5c518); margin: 0 0 16px; }
.eee-notice--warn { border-left-color: #d63638; }
.eee-section-title { font-size: 20px; font-weight: 700; margin: 28px 0 14px; }

/* ---------- 1) KHUNG CỘT KIỂU EVENTPRIME (giữ class cũ cho Custom CSS) ---------- */
.emagic .ep-box-row { display: flex; flex-wrap: wrap; margin-left: 0; margin-right: 0; }
.emagic .ep-box-col-12 { flex: 0 0 100%; max-width: 100%; }
.emagic .ep-box-col-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.emagic .ep-box-col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
/* Trang chi tiết: cột phải hẹp hơn (~30%) như EventPrime gốc */
.emagic .eee-cols > #ep-sl-left-area { flex: 0 0 70%; max-width: 70%; }
.emagic .eee-cols > #ep-sl-right-area { flex: 0 0 30%; max-width: 30%; }
.emagic .eee-cols { gap: 0; margin-top: 8px; }
.emagic #ep-sl-left-area { padding-right: 40px; }
.emagic .ep-fw-bold { font-weight: 700; }
.emagic .ep-fs-2 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; }
.emagic .ep-fs-4 { font-size: 20px; }
.emagic .ep-fs-6 { font-size: 15px; }
.emagic .ep-text-small { font-size: 14px; }
.emagic .ep-text-muted { color: var(--eee-muted); }
.emagic .ep-text-break { word-break: break-word; }
.emagic .ep-my-2 { margin-top: 8px; margin-bottom: 8px; }
@media (max-width: 900px) {
  .emagic .ep-box-col-8, .emagic .ep-box-col-4, .emagic .eee-cols > #ep-sl-left-area, .emagic .eee-cols > #ep-sl-right-area { flex-basis: 100%; max-width: 100%; }
  .emagic #ep-sl-left-area { padding-right: 0; }
  .emagic #ep-sl-right-area { margin-top: 20px; }
}

/* ---------- 2) BANNER: giữ nguyên tỉ lệ ảnh gốc ---------- */
.eee-banner { border-radius: var(--eee-r); overflow: hidden; background: var(--eee-soft); text-align: center; }
.eee-banner__img { display: block; width: 100%; height: auto !important; max-height: none !important; object-fit: contain !important; margin: 0 auto; }
.eee-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.eee-gallery a { display: block; width: 96px; height: 72px; border-radius: 6px; overflow: hidden; background: var(--eee-soft); }
.eee-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 3) THANH LOẠI + ICON ---------- */
.eee-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; flex-wrap: wrap; }
.eee-toolbar__left, .eee-toolbar__right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.eee-badge { display: inline-block; padding: 8px 16px; border-radius: 8px; background: var(--eee-accent, #f5c518); color: var(--eee-ink); font-size: 15px; font-weight: 400; line-height: 1.3; text-decoration: none !important; }
.eee-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--eee-line); border-radius: 50%; background: #fff; color: var(--eee-ink); cursor: pointer; padding: 0; }
.eee-icon-btn:hover, .eee-icon-btn:focus-visible { border-color: var(--eee-ink); }
.eee-dd { position: relative; }
.eee-dd__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 180px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--eee-line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.eee-dd__menu li { margin: 0; }
.eee-dd__menu a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--eee-ink); text-decoration: none; font-size: 14px; }
.eee-dd__menu a:hover { background: var(--eee-soft); }
.eee-social { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.eee-social__a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 16px; background: var(--eee-ink); color: #fff !important; font: 700 12px/1 system-ui, sans-serif; text-decoration: none !important; }
.eee-social--facebook { background: #1877f2; } .eee-social--linkedin { background: #0a66c2; } .eee-social--youtube { background: #e62117; }
.eee-social--instagram { background: #c13584; } .eee-social--tiktok { background: #111; }

/* ---------- 4) NGÀY, TÊN, VENUE, ORGANIZER ---------- */
#ep-sl-event-start { margin: 22px 0 4px; }
#ep-sl-event-end { margin: 0 0 12px; font-size: 12px !important; color: var(--eee-muted); letter-spacing: .3px; }
#ep-sl-event-end .eee-upper, #ep-sl-event-end span { font-size: 12px; }
#ep-sl-event-name h2 { margin: 6px 0 14px; padding-left: 12px; border-left: 4px solid var(--eee-accent, #f5c518); }
.eee-venue { border: 1px solid var(--eee-line); border-radius: var(--eee-r); margin: 4px 0 14px; }
.eee-venue__head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 14px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--eee-ink); font: inherit; font-size: 14px; flex-wrap: wrap; }
.eee-venue__head span:not(.eee-venue__chev) { color: var(--eee-muted); }
.eee-venue__chev { margin-left: auto; transition: transform .2s; display: inline-flex; }
.eee-venue.is-open .eee-venue__chev { transform: rotate(180deg); }
.eee-venue__panel { padding: 0 14px 14px; border-top: 1px solid var(--eee-line); }
.eee-tabs { display: flex; gap: 6px; padding: 12px 0; flex-wrap: wrap; }
.eee-tab { border: 1px solid var(--eee-line); background: #fff; border-radius: 20px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; color: var(--eee-ink); }
.eee-tab.is-active { background: var(--eee-ink); color: #fff; border-color: var(--eee-ink); }
.eee-venue__detail { display: flex; gap: 14px; align-items: flex-start; }
.eee-venue__img { width: 160px; max-width: 40%; border-radius: 8px; height: auto; }
.eee-venue__name a { font-weight: 700; color: var(--eee-ink); text-decoration: none; }
.eee-venue__desc { font-size: 14px; color: var(--eee-muted); }
.eee-orgs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 6px 0 14px; }
.eee-orgs__label { font-weight: 700; font-size: 14px; }
.eee-orgs__chev { color: var(--eee-accent, #f5c518); display: inline-flex; }
.eee-orgs__list { display: inline-flex; flex-wrap: wrap; gap: 8px 16px; }
.eee-org { display: inline-flex; align-items: center; gap: 6px; color: var(--eee-ink) !important; text-decoration: none !important; font-size: 14px; }
.eee-org img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid var(--eee-line); }
.eee-perfs { margin: 4px 0 16px; }
.eee-perfs__label { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.eee-perfs__list { display: flex; flex-wrap: wrap; gap: 14px; }
.eee-perf { display: flex; flex-direction: column; align-items: center; width: 96px; text-align: center; text-decoration: none !important; color: var(--eee-ink) !important; }
.eee-perf__img { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--eee-soft); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; }
.eee-perf__img img { width: 100%; height: 100%; object-fit: cover; }
.eee-perf__name { font-size: 13px; font-weight: 600; margin-top: 6px; line-height: 1.3; }
.eee-perf__role { font-size: 12px; color: var(--eee-muted); }
#ep_single_event_description { font-size: 15px; line-height: 1.7; color: #3c434a; }
#ep_single_event_description img { max-width: 100%; height: auto; }

/* ---------- 5) CỘT PHẢI: ĐĂNG KÝ, QR, INFORMATION ---------- */
.eee-box { border: 1px solid var(--eee-line); border-radius: var(--eee-r); background: #fff; overflow: hidden; }
.eee-box__pad { padding: 16px 18px; }
.eee-box__pad.has-sep { border-top: 1px solid var(--eee-line); }
.eee-box__title { font-size: 17px; font-weight: 700; letter-spacing: .2px; margin-bottom: 8px; }
.eee-box__date { display: flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 12px; }
.eee-qr { text-align: center; }
.eee-qr img { width: 140px; height: 140px; max-width: 60%; image-rendering: pixelated; }
.eee-more-dates { margin: 0 0 12px; font-size: 14px; }
.eee-more-dates__t { font-weight: 700; margin-bottom: 4px; }
.eee-more-dates ul { margin: 0; padding-left: 18px; }
.eee-info { margin-top: 18px; display: block; }
.eee-info__title { font-weight: 700; padding-left: 10px; border-left: 4px solid var(--eee-accent, #f5c518); margin-bottom: 10px; }
.eee-info .ep-event-note { margin-bottom: 14px; word-break: break-word; }
.eee-info iframe { max-width: 100%; }

/* ---------- 6) NÚT ---------- */
.eee-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 6px; border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none !important; cursor: pointer; transition: filter .15s, background .15s; }
.eee-btn:hover { filter: brightness(.94); }
.eee-btn--dark { background: var(--eee-dark); color: #fff !important; }
.eee-btn--accent { background: var(--eee-accent, #f5c518); color: var(--eee-ink) !important; }
.eee-btn--ghost { background: #fff; color: var(--eee-ink) !important; border-color: var(--eee-line); }
.eee-btn--link { background: none; color: #d63638 !important; padding: 6px 8px; }
.eee-btn--block { display: flex; width: 100%; padding: 11px 16px; font-size: 14px; letter-spacing: .3px; }
.eee-btn--lg { padding: 14px 28px; font-size: 16px; }

/* ---------- 7) KHUNG ẢNH KHÔNG CẮT (thẻ sự kiện) ---------- */
.eee-media { position: relative; display: block; aspect-ratio: var(--eee-ratio, 16/9); overflow: hidden; background: var(--eee-soft); }
.eee-media__bg { position: absolute; inset: -20px; background-image: var(--eee-bg); background-size: cover; background-position: center; filter: blur(18px) saturate(1.1); opacity: .55; transform: scale(1.1); }
.eee-media__img { position: relative; z-index: 1; width: 100%; height: 100% !important; object-fit: contain !important; display: block; }
.eee-media__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #b4b9be; }
@supports not (aspect-ratio: 1/1) { .eee-media { height: 0; padding-bottom: 56.25%; } .eee-media__img { position: absolute; inset: 0; } }

/* ---------- 8) LƯỚI ----------
   Tối đa N cột (--eee-cols), tự giảm cột khi khung hẹp (mỗi thẻ >= --eee-min).
   Ô "Columns" của Elementor ghi đè bằng --eee-cols-w. */
.eee-grid { --eee-gap: 22px; --eee-min: 230px; display: grid; gap: var(--eee-gap);
  grid-template-columns: repeat(auto-fill, minmax(max(min(var(--eee-min), 100%), calc((100% - (var(--eee-cols-w, var(--eee-cols, 3)) - 1) * var(--eee-gap)) / var(--eee-cols-w, var(--eee-cols, 3)))), 1fr)); }
.eee-grid--c1 { --eee-cols: 1; } .eee-grid--c2 { --eee-cols: 2; } .eee-grid--c3 { --eee-cols: 3; }
.eee-grid--c4 { --eee-cols: 4; } .eee-grid--c5 { --eee-cols: 5; } .eee-grid--c6 { --eee-cols: 6; }
.eee-terms .eee-grid { --eee-min: 170px; }
.eee-terms--event_organizer .eee-grid, .eee-terms--performer .eee-grid { --eee-min: 150px; }

/* ---------- 9) THẺ SỰ KIỆN ---------- */
.eee-card { position: relative; display: flex; flex-direction: column; background: var(--eee-card, #fff); border: 1px solid var(--eee-line); border-radius: var(--eee-r); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.eee-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.eee-card.is-featured { border-color: var(--eee-accent, #f5c518); }
.eee-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.eee-card__type { margin-bottom: 2px; }
.eee-card__type .eee-badge { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.eee-card__title { margin: 0 !important; font-size: 16px !important; line-height: 1.35 !important; font-weight: 700; }
.eee-card__title a { color: var(--eee-ink); text-decoration: none !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.eee-card__title a:hover { text-decoration: underline !important; }
.eee-card__meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--eee-muted); line-height: 1.35; }
.eee-card__meta a { color: inherit; text-decoration: none; }
.eee-card__excerpt { margin: 4px 0 0 !important; font-size: 14px; color: var(--eee-muted); line-height: 1.5; }
.eee-card__flag { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(17,17,17,.82); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.eee-card.is-past .eee-media__img { filter: grayscale(.35); }

/* ---------- 10) DÒNG SỰ KIỆN (Events List) ---------- */
.eee-rows { display: flex; flex-direction: column; gap: 14px; }
.eee-row { display: grid; grid-template-columns: 70px 220px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--eee-card, #fff); border: 1px solid var(--eee-line); border-radius: var(--eee-r); padding: 12px; }
.eee-row__date { text-align: center; border-right: 1px solid var(--eee-line); padding-right: 10px; }
.eee-row__d { display: block; font-size: 28px; font-weight: 800; line-height: 1; color: var(--eee-ink); }
.eee-row__m { display: block; font-size: 12px; color: var(--eee-muted); margin-top: 4px; }
.eee-row__media { border-radius: 8px; }
.eee-row__title { margin: 2px 0 6px !important; font-size: 17px !important; line-height: 1.35 !important; }
.eee-row__title a { color: var(--eee-ink); text-decoration: none !important; }
.eee-row__metas { display: flex; flex-wrap: wrap; gap: 4px 16px; }
@media (max-width: 900px) {
  .eee-row { grid-template-columns: 60px minmax(0, 1fr); }
  .eee-row__media { grid-column: 1 / -1; grid-row: 1; }
  .eee-row__cta { grid-column: 1 / -1; }
  .eee-row__cta .eee-btn { width: 100%; }
}

/* ---------- 11) DÒNG GỌN (Upcoming) ---------- */
.eee-w__title { font-size: 18px; font-weight: 700; margin-bottom: 12px; padding-left: 10px; border-left: 4px solid var(--eee-accent, #f5c518); }
.eee-minis { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.eee-mini { display: flex; gap: 12px; align-items: center; margin: 0; padding: 0 0 10px; border-bottom: 1px dashed var(--eee-line); }
.eee-mini:last-child { border-bottom: 0; padding-bottom: 0; }
.eee-mini__date { flex: 0 0 52px; height: 52px; border-radius: 8px; background: var(--eee-ink); color: #fff !important; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none !important; line-height: 1.05; }
.eee-mini__date b { font-size: 19px; color: var(--eee-accent, #f5c518); }
.eee-mini__date span { font-size: 11px; opacity: .85; }
.eee-mini__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.eee-mini__title { color: var(--eee-ink) !important; font-weight: 600; font-size: 14px; line-height: 1.35; text-decoration: none !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eee-mini__venue { font-size: 12px; color: var(--eee-muted); display: flex; gap: 4px; align-items: center; }
.eee-more { margin-top: 16px; text-align: center; }

/* ---------- 12) TRANG SỰ KIỆN + BỘ LỌC TRÁI ---------- */
.eee-events-page.has-filters { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.eee-filters { position: sticky; top: 90px; }
.eee-filters__toggle { display: none; }
.eee-filters__form { background: var(--eee-soft); border-radius: var(--eee-r); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.eee-filters__title { font-weight: 800; font-size: 16px; }
.eee-f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--eee-ink); margin: 0; }
.eee-f input, .eee-f select { width: 100%; height: 40px; padding: 6px 10px; border: 1px solid #ccd0d4; border-radius: 6px; background: #fff; font: inherit; font-size: 14px; font-weight: 400; color: var(--eee-ink); }
.eee-filters__btns { display: flex; gap: 8px; }
.eee-filters__btns .eee-btn { flex: 1 1 auto; }
.eee-when { display: flex; gap: 6px; margin: 0 0 18px; flex-wrap: wrap; }
.eee-when__a { padding: 7px 16px; border-radius: 20px; border: 1px solid var(--eee-line); color: var(--eee-ink) !important; text-decoration: none !important; font-size: 14px; font-weight: 600; background: #fff; }
.eee-when__a.is-active { background: var(--eee-ink); color: #fff !important; border-color: var(--eee-ink); }
@media (max-width: 900px) {
  .eee-events-page.has-filters { grid-template-columns: 1fr; gap: 14px; }
  .eee-filters { position: static; }
  .eee-filters__toggle { display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: center; padding: 11px; border-radius: 6px; border: 1px solid var(--eee-line); background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--eee-ink); }
  .eee-filters__form { display: none; margin-top: 10px; }
  .eee-filters.is-open .eee-filters__form { display: flex; }
}

/* ---------- 13) PHÂN TRANG ---------- */
.eee-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 26px 0 6px; }
.eee-pager .page-numbers { min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--eee-line); color: var(--eee-ink); text-decoration: none; font-weight: 600; background: #fff; }
.eee-pager .page-numbers.current { background: var(--eee-ink); color: #fff; border-color: var(--eee-ink); }

/* ---------- 14) THẺ VENUE / ORGANIZER / TYPE / PERFORMER ---------- */
.eee-terms__search { display: flex; gap: 8px; margin: 0 0 18px; max-width: 460px; }
.eee-terms__search input { flex: 1 1 auto; height: 42px; padding: 6px 12px; border: 1px solid #ccd0d4; border-radius: 6px; font: inherit; }
.eee-tcard { background: var(--eee-card, #fff); border: 1px solid var(--eee-line); border-radius: var(--eee-r); overflow: hidden; display: flex; flex-direction: column; }
.eee-tcard__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; }
.eee-tcard__title { margin: 0 !important; font-size: 15px !important; line-height: 1.35 !important; }
.eee-tcard__title a { color: var(--eee-ink); text-decoration: none !important; }
.eee-tcard__count { font-size: 12px; color: var(--eee-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.eee-tcard.is-round { align-items: center; text-align: center; padding-top: 18px; }
.eee-tcard__logo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--eee-line); text-decoration: none !important; }
.eee-tcard__logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.eee-tcard__logo span { font-size: 34px; font-weight: 800; color: var(--eee-ink); }
.eee-tcard.is-round .eee-tcard__body { align-items: center; }

/* ---------- 15) ĐẦU TRANG VENUE / ORGANIZER / PERFORMER ---------- */
.eee-head { display: flex; gap: 22px; align-items: center; padding: 18px; border: 1px solid var(--eee-line); border-radius: var(--eee-r); background: #fff; margin-bottom: 16px; }
.eee-head__logo { flex: 0 0 120px; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; border: 1px solid var(--eee-line); display: flex; align-items: center; justify-content: center; background: #fff; }
.eee-head__logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.eee-head__logo span { font-size: 44px; font-weight: 800; }
.eee-head__media { flex: 0 0 280px; max-width: 40%; border-radius: 8px; overflow: hidden; }
.eee-head__body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.eee-head__title { margin: 0 !important; font-size: clamp(20px, 2.2vw, 28px) !important; line-height: 1.25 !important; }
.eee-head__desc { margin: 0 0 18px; font-size: 15px; line-height: 1.7; }
.eee-contacts { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.eee-contact { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--eee-ink) !important; text-decoration: none !important; }
@media (max-width: 700px) { .eee-head { flex-direction: column; align-items: flex-start; } .eee-head__media { max-width: 100%; flex-basis: auto; width: 100%; } }

/* ---------- 16) LỊCH THÁNG ---------- */
.eee-cal { border: 1px solid var(--eee-line); border-radius: var(--eee-r); overflow: hidden; background: #fff; }
.eee-cal.is-loading { opacity: .55; pointer-events: none; }
.eee-cal__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--eee-ink); color: #fff; }
.eee-cal__title { font-weight: 800; font-size: 17px; text-transform: capitalize; }
.eee-cal__nav { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff !important; background: rgba(255,255,255,.12); text-decoration: none !important; }
.eee-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.eee-cal__dow { padding: 8px 4px; text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--eee-muted); border-bottom: 1px solid var(--eee-line); }
.eee-cal__cell { min-height: 96px; padding: 6px; border-right: 1px solid var(--eee-line); border-bottom: 1px solid var(--eee-line); font-size: 12px; }
.eee-cal__cell:nth-child(7n) { border-right: 0; }
.eee-cal__cell.is-empty { background: var(--eee-soft); }
.eee-cal__cell.is-today .eee-cal__d { background: var(--eee-accent, #f5c518); color: var(--eee-ink); }
.eee-cal__d { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; }
.eee-cal__evs { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.eee-cal__evs li { margin: 0; }
.eee-cal__evs a { display: block; padding: 2px 5px; border-radius: 3px; background: var(--eee-soft); border-left: 3px solid var(--eee-accent, #f5c518); color: var(--eee-ink) !important; text-decoration: none !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.eee-cal__more a { background: none; border: 0; font-weight: 700; }
@media (max-width: 700px) {
  .eee-cal__cell { min-height: 54px; padding: 4px; }
  .eee-cal__evs { display: none; }
  .eee-cal__cell.has-events .eee-cal__d { box-shadow: inset 0 -3px 0 var(--eee-accent, #f5c518); }
  .eee-cal__cell.has-events { cursor: pointer; }
  .eee-cal__cell.has-events.is-show .eee-cal__evs { display: flex; position: relative; z-index: 3; }
}

/* ---------- 17) MY EVENTS ---------- */
.eee-my__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.eee-my__user { display: flex; align-items: center; gap: 12px; }
.eee-my__user img { border-radius: 50%; }
.eee-my__name { font-weight: 800; font-size: 17px; }
.eee-count { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 11px; background: var(--eee-accent, #f5c518); color: var(--eee-ink); font-weight: 700; font-size: 12px; text-align: center; line-height: 22px; }
.eee-my__list { display: flex; flex-direction: column; gap: 12px; }
.eee-my__item { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 16px; align-items: center; border: 1px solid var(--eee-line); border-radius: var(--eee-r); padding: 10px; background: #fff; }
.eee-my__media { border-radius: 8px; }
.eee-my__title { margin: 4px 0 6px !important; font-size: 16px !important; }
.eee-my__title a { color: var(--eee-ink); text-decoration: none !important; }
.eee-my__body { display: flex; flex-direction: column; gap: 4px; }
.eee-my__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.eee-status { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; background: var(--eee-soft); color: var(--eee-muted); text-transform: uppercase; width: max-content; }
.eee-status--publish { background: #e7f6ec; color: #08692b; }
.eee-status--draft, .eee-status--pending { background: #fcf3e3; color: #8a5300; }
@media (max-width: 700px) { .eee-my__item { grid-template-columns: 1fr; } .eee-my__actions .eee-btn { flex: 1 1 auto; } }

/* ---------- 18) IN ẤN ---------- */
@media print {
  .eee-toolbar__right, .eee-inquiry, .em-exh, .eee-dd { display: none !important; }
  .emagic .ep-box-col-8, .emagic .ep-box-col-4 { flex-basis: 100%; max-width: 100%; }
}

/* ---------- 19) KIỂU HIỂN THỊ ẢNH: COVER / CONTAIN / FILL ---------- */
/* Contain (mặc định): .eee-media__img đã object-fit:contain + nền mờ .eee-media__bg. */
.eee-media--cover .eee-media__img { object-fit: cover !important; }
.eee-media--fill  .eee-media__img { object-fit: fill  !important; }
/* Cover/Fill lấp kín khung nên bỏ nền mờ phía sau cho sạch. */
.eee-media--cover .eee-media__bg,
.eee-media--fill  .eee-media__bg { display: none; }

/* ---------- 20) NHÃN "FEATURED" (vàng, đè lên ảnh) ---------- */
.eee-badge-featured {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  background: #f5c518; color: #1d2327;
  font-size: 11px; font-weight: 800; line-height: 1.2;
  padding: 3px 9px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .3px;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.eee-row__media .eee-badge-featured { top: 8px; right: 8px; }

/* ---------- 21) THANH LỌC KIỂU TOP BAR ---------- */
/* Side (mặc định) giữ nguyên lưới 270px + nội dung. Top = thanh ngang trên lưới. */
.eee-events-page--top.has-filters { display: block; }
.eee-events-page--top .eee-filters { position: static; margin: 0 0 20px; }
.eee-events-page--top .eee-filters__form {
  flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px;
}
.eee-events-page--top .eee-filters__title { display: none; }
.eee-events-page--top .eee-filters__form .eee-f { flex: 1 1 160px; min-width: 150px; }
.eee-events-page--top .eee-filters__btns { flex: 0 0 auto; align-items: flex-end; }
@media (max-width: 782px) {
  .eee-events-page--top .eee-filters__form { flex-direction: column; align-items: stretch; }
  .eee-events-page--top .eee-filters__form .eee-f { flex: 1 1 auto; }
}

/* ---------- 22) NÚT HÀNH ĐỘNG TRÊN THẺ GRID ---------- */
.eee-card__cta { margin-top: auto; padding-top: 10px; }
.eee-btn--block { justify-content: center; }

/* ---------- 23) NÚT "LOAD MORE" ---------- */
.eee-loadmore { margin-top: 20px; text-align: center; }
.eee-loadmore__btn { min-width: 160px; }
.eee-loadmore.is-loading .eee-loadmore__btn { opacity: .6; pointer-events: none; }
.eee-loadmore.is-done { display: none; }

/* ---------- 24) TITLE BAR CỦA WIDGET (màu/font/underline chỉnh trong Elementor) ---------- */
/* Mặc định: chữ IN HOA; gạch chân VỪA ĐÚNG bề rộng chữ, màu = màu nhấn (đổi được). */
.eee-wtitle {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--eee-ink);
}
.eee-wtitle__in {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--eee-accent, #f5c518);
}

/* ---------- 25) "ĐÃ DIỄN RA" (sự kiện đã qua, không có nút tuỳ biến) ---------- */
.eee-ended {
  display: block; text-align: center;
  padding: 11px 14px; border-radius: 8px;
  background: var(--eee-soft); color: var(--eee-muted);
  font-weight: 700; font-size: 15px; cursor: default;
}
