/* ===========================================================
   Merlien – Webinars
   Kártyaalapú, reszponzív lista. A régi .webinar-rowb* stílusok
   helyett használandó. Színséma változatlan (kék / zöld / sárga).
   =========================================================== */

.webinars {
  /* --- színek --- */
  --w-blue:        #2f8ccc;
  --w-blue-dark:   #026ab9;
  --w-blue-deep:   #0e4f86;
  --w-green:       #6ab165;
  --w-green-soft:  #81bd7d;
  --w-yellow:      #f8b133;

  --w-ink:         #31414d;
  --w-body:        #3d4a56;
  --w-muted:       #667581;
  --w-line:        #e3e7eb;
  --w-card:        #ffffff;
  --w-soft:        #f5f8fa;

  /* --- forma --- */
  --w-radius:      14px;
  --w-shadow:      0 2px 10px rgba(20, 35, 50, 0.06);
  --w-shadow-lift: 0 12px 30px rgba(20, 35, 50, 0.13);

  color: var(--w-ink);
  font-family: "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

.webinars *,
.webinars *::before,
.webinars *::after {
  box-sizing: border-box;
}

/* ---------- szekció ---------- */

.webinars__section + .webinars__section {
  margin-top: 56px;
}

.webinars__section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  padding: 0;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--w-ink);
  text-align: left;
}

.webinars__section-title::after {
  content: "";
  flex: 1 1 auto;
  min-width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--w-green-soft), rgba(129, 189, 125, 0));
}

/* ---------- rács ---------- */

.webinars__grid {
  display: grid;
  gap: 22px;
  /* a min() megakadályozza, hogy keskeny konténerben kilógjon */
  grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
  align-items: stretch;
}

.webinars__grid--wide {
  grid-template-columns: 1fr;
}

/* ---------- kártya ---------- */

.webinar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 28px 24px 30px;
  background: var(--w-card);
  border: 1px solid var(--w-line);
  border-radius: var(--w-radius);
  box-shadow: var(--w-shadow);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.webinar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--w-green-soft), var(--w-green));
}

.webinar:hover {
  transform: translateY(-3px);
  box-shadow: var(--w-shadow-lift);
  border-color: rgba(47, 140, 204, 0.3);
}

/* kiemelt (következő) webinár */
.webinar--featured {
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(47, 140, 204, 0.08), rgba(47, 140, 204, 0) 55%),
    var(--w-card);
  border-color: rgba(47, 140, 204, 0.3);
}

.webinar--featured::before {
  background: linear-gradient(180deg, var(--w-blue), var(--w-blue-deep));
}

/* ---------- fejléc: címke + dátum ---------- */

.webinar__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.webinar__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
}

.webinar__tag--live {
  color: var(--w-blue-deep);
  background: rgba(47, 140, 204, 0.13);
}

.webinar__tag--live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--w-green);
  box-shadow: 0 0 0 0 rgba(106, 177, 101, 0.65);
  animation: w-pulse 2.2s infinite;
}

@keyframes w-pulse {
  70%  { box-shadow: 0 0 0 9px rgba(106, 177, 101, 0); }
  100% { box-shadow: 0 0 0 0 rgba(106, 177, 101, 0); }
}

.webinar__tag--past {
  color: #3f6b3c;
  background: rgba(106, 177, 101, 0.17);
}

.webinar__when {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--w-blue-dark);
  background: rgba(47, 140, 204, 0.08);
  border: 1px solid rgba(47, 140, 204, 0.2);
}

.webinar__when::before {
  content: "";
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: var(--w-icon-calendar) center / contain no-repeat;
          mask: var(--w-icon-calendar) center / contain no-repeat;
}

.webinar--past .webinar__when {
  color: #55636f;
  background: var(--w-soft);
  border-color: var(--w-line);
}

/* ---------- cím ---------- */

.webinar__title {
  margin: 0;
  padding: 0;
  font-size: clamp(1.12rem, 1rem + 0.5vw, 1.42rem);
  font-weight: 700;
  line-height: 1.32;
  color: var(--w-ink);
  text-align: left;
}

.webinar__title a {
  color: inherit;
  text-decoration: none;
}

.webinar__title a:hover {
  color: var(--w-blue-dark);
}

/* ---------- előadók (fotó + név egymás mellett) ---------- */

.webinar__speakers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.webinar__speaker {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 250px;
  min-width: 0;
  margin: 0;
  padding: 12px 16px 12px 12px;
  background: var(--w-soft);
  border: 1px solid var(--w-line);
  border-radius: 12px;
}

.webinar__avatar {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  background: #dfe6ec;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--w-green-soft), 0 2px 6px rgba(20, 35, 50, 0.12);
}

.webinar--featured .webinar__avatar {
  box-shadow: 0 0 0 2px var(--w-blue), 0 2px 6px rgba(20, 35, 50, 0.12);
}

.webinar__who {
  min-width: 0;
}

.webinar__name {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--w-ink);
}

.webinar__role {
  margin: 3px 0 0;
  padding: 0;
  font-size: 0.82rem;
  line-height: 1.38;
  color: var(--w-muted);
}

.webinar__org {
  display: block;
  margin-top: 2px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--w-blue);
}

/* ---------- szöveg ---------- */

.webinar__text {
  font-size: 0.97rem;
  line-height: 1.68;
  color: var(--w-body);
}

.webinar__text > *:first-child { margin-top: 0; }
.webinar__text > *:last-child  { margin-bottom: 0; }

.webinar__text p  { margin: 0 0 0.85em; }
.webinar__text ul { margin: 0 0 0.85em; padding-left: 1.15em; }
.webinar__text li { margin-bottom: 0.35em; }

.webinar__text a {
  color: var(--w-blue-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- lábléc / gomb ---------- */

.webinar__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 2px;
}

.webinar__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(180deg, #7cc077, var(--w-green));
  box-shadow: 0 3px 10px rgba(106, 177, 101, 0.35);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.webinar__cta::after {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--w-icon-arrow) center / contain no-repeat;
          mask: var(--w-icon-arrow) center / contain no-repeat;
}

.webinar__cta:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(106, 177, 101, 0.45);
}

.webinar__cta--replay {
  background: linear-gradient(180deg, #4ea3dd, var(--w-blue-dark));
  box-shadow: 0 3px 10px rgba(47, 140, 204, 0.32);
}

.webinar__cta--replay::after {
  -webkit-mask: var(--w-icon-play) center / contain no-repeat;
          mask: var(--w-icon-play) center / contain no-repeat;
}

.webinar__cta--replay:hover {
  box-shadow: 0 7px 18px rgba(47, 140, 204, 0.42);
}

.webinars a:focus-visible {
  outline: 3px solid rgba(47, 140, 204, 0.5);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- ikonok (data URI, nincs külön kérés) ---------- */

.webinars {
  --w-icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
  --w-icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12 5l7 7-7 7'/%3E%3C/svg%3E");
  --w-icon-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5.2v13.6L19 12z'/%3E%3C/svg%3E");
}

/* ---------- reszponzív ---------- */

@media (max-width: 900px) {
  .webinars__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .webinar {
    gap: 16px;
    padding: 20px 18px 20px 23px;
  }

  .webinar__speaker {
    flex-basis: 100%;
    gap: 12px;
    padding: 10px 12px;
  }

  .webinar__avatar {
    width: 54px;
    height: 54px;
  }

  .webinar__footer {
    justify-content: stretch;
  }

  .webinar__cta {
    flex: 1 1 auto;
    justify-content: center;
  }

  .webinars__section-title::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .webinars *,
  .webinars *::before {
    animation: none !important;
    transition: none !important;
  }

  .webinar:hover,
  .webinar__cta:hover {
    transform: none;
  }
}
