/* Event Detail — Version A Classic split */

.ed-page {
  background: #fff;
}

/* ── Hero ─────────────────────────────────────────────── */
.ed-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #e1eaf0;
}

.ed-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
}

.ed-hero-left {
  padding: 56px 2rem 56px 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.ed-h1 {
  font-size: 38px;
  font-weight: 300;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #162f56;
}

.ed-hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.ed-cta {
  background: #162f56;
  color: #fff;
  border: none;
  padding: 13px 36px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0;
  font-family: inherit;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-block;
  line-height: 1;
}

.ed-cta:hover {
  background: #1e4278;
  color: #fff;
  text-decoration: none;
}

.ed-cta-secondary {
  background: #fff;
  color: #162f56;
  border: 1.5px solid #162f56;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  line-height: 1;
}

.ed-cta-secondary:hover {
  background: #e1eaf0;
  color: #162f56;
  text-decoration: none;
}

.ed-cta-disabled {
  background: #9ab0c8;
  color: #fff;
  border: none;
  padding: 13px 36px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 0;
  font-family: inherit;
  cursor: not-allowed;
  display: inline-block;
  line-height: 1;
}

.ed-cta-success {
  background: #d1fae5;
  color: #065f46;
  border: 1.5px solid #6ee7b7;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 0;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.ed-cta-waitlist {
  background: #fef3c7;
  color: #92400e;
  border: 1.5px solid #fcd34d;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 0;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.ed-deadline-note {
  font-size: 12px;
  color: #6b7280;
}

.ed-hero-right {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.ed-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Favourite button ─────────────────────────────────────── */
.ed-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ccc;
  transition: color 0.2s ease;
  z-index: 2;
}
.ed-fav-btn:hover { color: #000000; }
.ed-fav-btn.active { color: #f0c040; }
.ed-fav-btn .fav-icon {
  pointer-events: none;
  font-size: 1.4rem;
  color: inherit;
  vertical-align: middle;
  transition: color 0.2s ease, font-variation-settings 0.2s ease;
}
.ed-fav-btn .fav-icon.active {
  color: #f0c040;
  font-variation-settings: 'FILL' 1;
}

.ed-logo img {
  width: 78%;
  height: 78%;
}

/* ── Content area ─────────────────────────────────────── */
.ed-content {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 96px;
  padding: 52px 0 80px 2rem;
}

.ed-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ── Meta grid ────────────────────────────────────────── */
.ed-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem 2rem;
  margin-bottom: 2rem;
}

.ed-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ed-meta-label {
  font-size: 0.95rem;
  font-weight: bold;
  color: #000000;
}

.ed-meta-val {
  font-size: 0.9rem;
  font-weight: normal;
  color: #000000;
  line-height: 1.65;
}

.ed-cap-bar {
  height: 4px;
  background: #eef0f3;
  margin-top: 7px;
  width: 160px;
  border-radius: 2px;
}

.ed-cap-fill {
  height: 100%;
  background: #7AB42A;
  border-radius: 2px;
  transition: width 0.3s;
}

/* ── Description ──────────────────────────────────────── */
.ed-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #162f56;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e1eaf0;
}

.ed-body p {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.8;
  margin: 0 0 14px;
}

/* ── Right sidebar ────────────────────────────────────── */
.ed-right {
  display: flex;
  flex-direction: column;
}

/* Contact card (dark navy) — matches .jd-contact-card */
.ed-contact-card {
  background: #162f56;
  color: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.ed-contact-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: underline;
  margin-bottom: 0.85rem;
  color: #fff;
}

.ed-contact-block {
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.ed-contact-block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.ed-contact-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #fff;
}

.ed-contact-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #a9c8d0;
  margin-bottom: 0.35rem;
}

.ed-contact-icon {
  font-size: 0.9rem;
  display: inline-flex;
  flex-shrink: 0;
}

.ed-contact-link {
  color: #a9c8d0;
  text-decoration: none;
  word-break: break-all;
}

.ed-contact-link:hover {
  text-decoration: underline;
  color: #e1eaf0;
}

/* About company card — nested inside navy card, matches .jd-about-card */
.ed-about-card {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1.25rem;
}

.ed-about-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #162f56;
}

.ed-about-text {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 0.75rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  line-clamp: 10;
}

.ed-about-footer {
  text-align: center;
}

.ed-learn-more {
  display: inline-block;
  border: 1px solid #162f56;
  color: #162f56;
  padding: 0.4rem 1.1rem;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.ed-learn-more:hover {
  background: #162f56;
  color: #fff;
  text-decoration: none;
}

/* ── Waitlist info ────────────────────────────────────── */
.ed-waitlist-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 12px 16px;
  font-size: 13px;
  color: #1e40af;
  margin-top: 4px;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 991px) {
  .ed-hero {
    background: #e1eaf0;
  }

  .ed-hero-inner {
    grid-template-columns: 1fr;
  }

  .ed-hero-right {
    order: -1;
    min-height: 220px;
  }

  .ed-content {
    grid-template-columns: 1fr;
    padding: 36px 1.5rem 56px;
  }

  .ed-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ed-h1 {
    font-size: 28px;
  }
}

@media (max-width: 700px) {
  .ed-hero-left {
    padding: 36px 1.25rem;
  }

  .ed-hero-right {
    min-height: 180px;
  }

  .ed-h1 {
    font-size: 22px;
  }

  .ed-content {
    padding: 28px 1rem 48px;
    gap: 32px;
  }
}
