
<style>
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --gold: #EAB308;
    --gold-light: #FDE68A;
    --gold-dark: #CA8A04;
    --purple: #6366f1;
    --purple-light: #a5b4fc;
    --dark: #1a1a2e;
    --text: #374151;
    --muted: #6B7280;
    --bg: #f8f9fa;
    --white: #ffffff;
    --card-border: #e5e7eb;
  }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
  }

  /* ===== SECTION WRAPPER ===== */
  .seminar-section {
    background-color: var(--bg);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
  }

  /* Subtle dot grid background */
  .seminar-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.35;
    pointer-events: none;
  }

  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
  }

  /* ===== SECTION HEADER ===== */
  .section-header {
    text-align: center;
    margin-bottom: 64px;
  }

  .section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: var(--gold-dark);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 999px;
    margin-bottom: 20px;
  }

  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 14px;
  }

  .section-title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .section-subtitle {
    color: var(--muted);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
  }

  /* ===== MONTH GROUP ===== */
  .month-group {
    margin-bottom: 64px;
  }

  /* Month header bar */
  .month-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    position: relative;
  }

  .month-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--dark);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 999px;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(26,26,46,0.18);
    position: relative;
    z-index: 2;
  }

  .month-pill .month-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
  }

  .month-pill .event-count {
    background: rgba(234,179,8,0.2);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 999px;
    font-family: 'DM Sans', sans-serif;
  }

  .month-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #d1d5db, transparent);
  }

  /* ===== EVENT CARDS ===== */
  .events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
  }

  .event-card {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(26,26,46,0.12);
    border-color: rgba(99,102,241,0.3);
  }

  /* Top accent line on hover */
  .event-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--purple));
    opacity: 0;
    transition: opacity 0.35s ease;
  }

  .event-card:hover::before {
    opacity: 1;
  }

  /* Image */
  .event-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #e5e7eb;
  }

  .event-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .event-card:hover .event-img-wrap img {
    transform: scale(1.06);
  }

  /* Category badge */
  .event-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }

  /* Date chip */
  .event-date-chip {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(26,26,46,0.85);
    backdrop-filter: blur(6px);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .event-date-chip i {
    color: var(--gold);
    font-size: 0.7rem;
  }

  /* Card body */
  .event-body {
    padding: 22px 22px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .event-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .event-desc {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Meta info */
  .event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
  }

  .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--muted);
  }

  .meta-item i {
    color: var(--purple);
    font-size: 0.75rem;
    width: 14px;
    text-align: center;
  }

  /* Card footer */
  .event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
  }

  .event-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
  }

  .event-price span {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--muted);
    margin-bottom: 1px;
  }

  .btn-event {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--dark);
    color: var(--white);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 10px;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
  }

  .btn-event:hover {
    background: var(--purple);
    color: var(--white);
    transform: translateX(2px);
  }

  .btn-event i {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
  }

  .btn-event:hover i {
    transform: translateX(3px);
  }

  /* ===== FEATURED CARD (first event of month) ===== */
  .event-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
    max-height: 260px;
  }

  .event-card.featured .event-img-wrap {
    width: 340px;
    height: auto;
    min-height: 260px;
    flex-shrink: 0;
  }

  .event-card.featured .event-body {
    padding: 28px 30px;
  }

  .event-card.featured .event-title {
    font-size: 1.55rem;
  }

  .featured-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99,102,241,0.1);
    color: var(--purple);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
    border: 1px solid rgba(99,102,241,0.2);
  }

  /* ===== EMPTY STATE ===== */
  .empty-month {
    text-align: center;
    padding: 40px;
    color: var(--muted);
    font-size: 0.9rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px dashed var(--card-border);
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    .seminar-section { padding: 60px 0 80px; }
    .section-header { margin-bottom: 44px; }

    .event-card.featured {
      flex-direction: column;
      max-height: none;
    }
    .event-card.featured .event-img-wrap {
      width: 100%;
      min-height: 200px;
    }

    .events-grid {
      grid-template-columns: 1fr;
    }
  }

  /* ===== DEMO placeholder images ===== */
  .img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
  }

  .placeholder-1 { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
  .placeholder-2 { background: linear-gradient(135deg, #fef9c3, #fde68a); }
  .placeholder-3 { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
  .placeholder-4 { background: linear-gradient(135deg, #ffe4e6, #fecdd3); }
  .placeholder-5 { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }

  /* Entrance animation */
  .month-group {
    animation: fadeUp 0.6s ease both;
  }
  .month-group:nth-child(2) { animation-delay: 0.15s; }
  .month-group:nth-child(3) { animation-delay: 0.3s; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
</style>