:root {
  --bg: #F8F9FD;
  --surface: #ffffff;
  --surface-2: #eef4f7;
  --ink: #172033;
  --muted: #5f6b7c;
  --muted-2: #7a8796;
  --line: #dbe4eb;
  --primary: #5f7890;
  --primary-dark: #3f5668;
  --teal: #008c95;
  --green: #1d8b5f;
  --amber: #a86700;
  --accent: #ef7a00;
  --accent-dark: #c95f00;
  --shadow: 0 20px 50px rgba(22, 34, 52, 0.1);
  --radius: 8px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.events-page {
  background: var(--bg);
}

.events-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.events-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.events-brand img {
  width: 128px;
  max-height: 34px;
}

.events-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.events-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.events-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
}

.events-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(720px, calc(100vh - 68px));
  padding: clamp(52px, 7vw, 92px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(248, 249, 253, .98) 0%, rgba(248, 249, 253, .94) 38%, rgba(248, 249, 253, .62) 58%, rgba(248, 249, 253, .12) 100%),
    url("https://www.commeet.co/wp-content/plugins/commeet-page-assets/assets/images/commeet-event-bg.webp") center right / cover no-repeat;
}

.events-hero > div:first-child {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
}

.events-eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
}

.events-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.14;
  letter-spacing: 0;
}

.events-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.events-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.events-button,
.events-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.events-button {
  color: #fff;
  background: var(--accent);
}

.events-link-button {
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid var(--line);
}

.events-section {
  padding: clamp(48px, 7vw, 86px) clamp(20px, 5vw, 72px);
  background: #fff;
}

.events-section.alt {
  background: var(--bg);
}

.events-container {
  width: min(var(--container), 100%);
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.section-head h2 {
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.featured-event {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: 28px;
  align-items: stretch;
}

.featured-copy,
.event-card,
.resource-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(22, 34, 52, .06);
}

.featured-copy {
  padding: clamp(24px, 4vw, 42px);
}

.event-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--primary-dark);
  background: var(--surface-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.event-date {
  margin: 18px 0 10px;
  color: var(--accent-dark);
  font-weight: 800;
}

.featured-copy h3,
.event-card h3,
.resource-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.25;
}

.featured-copy p,
.event-card p,
.resource-panel p {
  margin: 14px 0 0;
  color: var(--muted);
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.event-tags span {
  padding: 6px 9px;
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.featured-media {
  overflow: hidden;
  border-radius: 8px;
}

.featured-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.event-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 24px;
}

.event-filter span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.event-filter span:first-child {
  color: #fff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.event-card {
  overflow: hidden;
}

.event-card-link {
  display: grid;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.event-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-2);
}

.event-card-body {
  display: grid;
  align-content: start;
  padding: 22px;
}

.event-card h3 {
  margin-top: 10px;
  font-size: 21px;
}

.event-card .event-date {
  margin-top: 0;
  font-size: 14px;
}

.review-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent-dark);
  font-size: 14px;
}

.event-card a,
.featured-copy a,
.resource-panel a {
  margin-top: 20px;
}

.events-review-section {
  color: var(--ink);
}

.review-main {
  max-width: 1100px;
}

.review-section-head {
  display: flex;
  flex-direction: column;
  /* align-items: flex-end; */
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.review-section-head > div:first-child {
  /* max-width: 720px; */
}

.review-section-head h2 {
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

.review-section-head p:not(.events-eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
}

.events-review-section .filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.events-review-section .pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px;
  padding: 5px 14px !important;
  color: var(--muted) !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
  appearance: none;
}

.events-review-section .pill:hover {
  color: #fff !important;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

.events-review-section .pill.active,
.events-review-section .pill.active:hover {
  color: #9a4b00 !important;
  background: #fff3e6 !important;
  border-color: #f39c3a !important;
}

.search-wrap {
  margin-bottom: 32px;
}

.search-wrap input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.search-wrap input:focus {
  border-color: #f39c3a;
  box-shadow: 0 0 0 3px rgba(239, 122, 0, .12);
}

.year-group {
  padding-bottom: 32px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.year-label {
  padding-bottom: 8px;
  margin-bottom: 18px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.review-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.review-card {
  display: block;
  overflow: hidden;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.review-card:hover {
  border-color: #c7d2dc;
  box-shadow: 0 16px 34px rgba(22, 34, 52, .08);
  transform: translateY(-2px);
}

.review-card.is-disabled {
  cursor: default;
}

.review-card.is-disabled:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.review-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 11;
  color: var(--muted-2);
  background: var(--surface-2);
}

.review-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card-img svg {
  width: 28px;
  height: 28px;
  opacity: .2;
}

.review-card-body {
  padding: 14px;
}

.review-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.review-card-date {
  color: var(--muted-2);
  font-size: 12px;
}

.review-card-tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.tag-finance {
  color: #9a4b00;
  background: #fff3e6;
}

.tag-ai {
  color: #3c3489;
  background: #eeedfe;
}

.tag-retail {
  color: #633806;
  background: #faeeda;
}

.tag-travel {
  color: #085041;
  background: #e1f5ee;
}

.review-card-title {
  display: -webkit-box;
  min-height: 42px;
  margin-bottom: 10px;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.review-card-cta,
.review-card-ended {
  font-size: 12px;
  font-weight: 700;
}

.review-card-cta {
  color: var(--accent);
}

.review-card-ended {
  color: var(--muted-2);
}

.empty {
  padding: 48px 20px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.resource-panel {
  padding: 24px;
}

.resource-panel h3 {
  font-size: 22px;
}

.events-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  color: #fff;
  background: linear-gradient(135deg, #172033, #3f5668 72%, #008c95);
  border-radius: 8px;
}

.events-cta h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.2;
}

.events-cta p {
  max-width: 680px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .78);
}

.events-cta .events-link-button {
  color: #fff;
  background: var(--accent);
  border: 0;
}

@media (max-width: 980px) {
  .events-hero {
    background:
      linear-gradient(90deg, rgba(248, 249, 253, .98) 0%, rgba(248, 249, 253, .92) 62%, rgba(248, 249, 253, .42) 100%),
      url("https://www.commeet.co/wp-content/plugins/commeet-page-assets/assets/images/commeet-event-bg.webp") center right / cover no-repeat;
  }

  .featured-event,
  .events-cta {
    grid-template-columns: 1fr;
  }

  .event-grid,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .events-topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .events-nav {
    justify-content: flex-start;
  }

  .events-hero {
    min-height: 0;
    background:
      linear-gradient(180deg, rgba(248, 249, 253, .96) 0%, rgba(248, 249, 253, .93) 100%),
      url("https://www.commeet.co/wp-content/plugins/commeet-page-assets/assets/images/commeet-event-bg.webp") center / cover no-repeat;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 12px;
  }

  .review-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .events-review-section .filters {
    justify-content: flex-start;
  }

  .event-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

}
