/* ==========================================================================
   ESMC 2027 · Abstract Submission & Registration · Design Option 2
   The live site's own tones (red, orange, teal and its light grey), softened,
   with an arch motif. No black anywhere.
   Every class starts with "e2-" and every rule sits under .e2, so this file
   cannot clash with the live site's own styles.
   ========================================================================== */

.e2 {
  /* Taken from esmc.ae */
  --red: #CF1F27;        /* site red: buttons and the brand mark */
  --red-2: #AE1820;
  --ember: #FF6700;      /* site orange: arch lines and small marks */
  --teal: #198892;       /* site teal: accent words in headings */
  --teal-2: #137079;     /* the same teal, deeper, for small text and links */
  --green: #0F8A45;      /* logo green: the brand mark only */
  --sand: #F2F1ED;       /* site light grey: panels, tier heads, icon badges */
  /* Soft tints of those colours */
  --blush: #FCEEEA;      /* red and orange, softened: the hero arch */
  --teal-tint: #E4F2F3;  /* teal, softened: Topics, feature cards, closing note */
  --pearl: #FBFAF7;      /* page ground */
  --dune: #E4E1DA;
  --line: #E9E6E0;
  --night: #17444A;      /* headings: a deep teal, never black */
  --txt: #45494C;
  --mut: #62676A;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(16px, 4vw, 40px);

  display: block;
  padding: clamp(8px, 1.4vw, 20px);
  overflow-x: clip;
  background: var(--pearl);
  color: var(--txt);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Resets carry no weight (:where), so every component rule below wins over them */
:where(.e2) *, :where(.e2) *::before, :where(.e2) *::after { box-sizing: border-box; }
:where(.e2) :where(h1, h2, h3, p, ul) { margin: 0; }
:where(.e2) :where(ul) { list-style: none; padding: 0; }
:where(.e2) :where(a) { color: inherit; text-decoration: none; }
:where(.e2) :where(svg) { display: block; }
.e2 sup { font-size: .62em; line-height: 0; vertical-align: .5em; margin-left: 1px; }
.e2 :focus-visible { outline: 2px solid var(--teal-2); outline-offset: 4px; border-radius: 6px; }

.e2-wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gut); }

/* Brand mark: two short lines, the only red and green on the page */
.e2-mark { display: flex; justify-content: center; gap: 5px; }
.e2-mark i { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--red); }
.e2-mark i + i { background: var(--green); }

/* Headings */
.e2-kicker { display: block; font-size: clamp(12px, 1.05vw, 14px); font-weight: 600; line-height: 1.4; letter-spacing: .32em; text-transform: uppercase; color: var(--teal-2); }
.e2-h1 { color: var(--night); font-weight: 600; font-size: clamp(40px, 6vw, 88px); line-height: 1.02; letter-spacing: -.045em; }
.e2-h1 .e2-kicker { margin-bottom: clamp(14px, 1.6vw, 22px); letter-spacing: .32em; }
.e2-h2 { color: var(--night); font-weight: 600; font-size: clamp(32px, 4vw, 56px); line-height: 1.06; letter-spacing: -.04em; }
.e2-ac { color: var(--teal); }
.e2-head { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-bottom: clamp(40px, 5vw, 64px); text-align: center; }

/* Button */
.e2-btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 58px; padding: 8px 8px 8px 30px; border-radius: 999px;
  background: var(--red); color: #fff;
  font-size: 15.5px; font-weight: 600; letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 18px 36px -18px rgba(207, 31, 39, .55);
  transition: background .4s, transform .6s var(--ease), box-shadow .6s var(--ease);
}
.e2-btn:hover { background: var(--red-2); color: #fff; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 24px 44px -18px rgba(207, 31, 39, .65); }
.e2-btn__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--red); transition: transform .6s var(--ease); }
.e2-btn:hover .e2-btn__ic { transform: translateX(3px); }

/* Arch-shaped icon badge */
.e2-badge { flex: none; display: grid; place-items: center; width: 52px; height: 60px; border-radius: 26px 26px 12px 12px; background: var(--sand); color: var(--teal-2); transition: background .45s, color .45s; }

/* --------------------------------------------------------------------------
   Hero: a soft red-orange arch with fine orange doorway lines
   -------------------------------------------------------------------------- */
.e2-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--blush); text-align: center;
  border-radius: 50% 50% 32px 32px / clamp(150px, 26vw, 380px) clamp(150px, 26vw, 380px) 32px 32px;
}
.e2-arches { position: absolute; left: 50%; bottom: 0; z-index: 0; width: min(1200px, 120%); height: auto; transform: translateX(-50%); color: var(--ember); pointer-events: none; }
.e2-arches path { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-dasharray: 1; stroke-dashoffset: 1; animation: e2Draw 2.8s var(--ease) forwards; }
.e2-arches path:nth-child(1) { stroke-opacity: .55; }
.e2-arches path:nth-child(2) { stroke-opacity: .48; animation-delay: .12s; }
.e2-arches path:nth-child(3) { stroke-opacity: .4; animation-delay: .24s; }
.e2-arches path:nth-child(4) { stroke-opacity: .32; animation-delay: .36s; }
.e2-arches path:nth-child(5) { stroke-opacity: .24; animation-delay: .48s; }
.e2-hero__in { position: relative; z-index: 1; max-width: 980px; margin-inline: auto; padding: clamp(118px, 15vw, 210px) var(--gut) clamp(150px, 15vw, 210px); }
.e2-hero .e2-mark { margin-bottom: clamp(24px, 2.6vw, 34px); }
.e2-lead { max-width: 780px; margin: clamp(22px, 2.4vw, 30px) auto 0; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.85; }
.e2-lead strong { font-weight: 600; color: var(--night); }
.e2-hero .e2-btn { margin-top: clamp(30px, 3.2vw, 42px); }

/* Hero entrance (CSS only, so nothing waits on JavaScript) */
.e2-in { animation: e2Rise 1.3s var(--ease) both; animation-delay: var(--d, 0s); }

/* --------------------------------------------------------------------------
   Key dates: three arch-topped cards lifted over the hero
   -------------------------------------------------------------------------- */
.e2-dates { position: relative; z-index: 2; margin-top: calc(-1 * clamp(104px, 10vw, 144px)); }
.e2-dates__t { margin-bottom: 22px; text-align: center; font-size: 12.5px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--teal-2); }
.e2-dates__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); max-width: 1100px; margin-inline: auto; }
.e2-date {
  position: relative; padding: clamp(56px, 5.6vw, 74px) 24px 36px; text-align: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: 50% 50% 24px 24px / 118px 118px 24px 24px;
  box-shadow: 0 1px 2px rgba(23, 68, 74, .04), 0 30px 60px -36px rgba(23, 68, 74, .28);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.e2-date:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(23, 68, 74, .04), 0 40px 70px -36px rgba(23, 68, 74, .34); }
.e2-date__dot { display: block; width: 11px; height: 11px; margin: 0 auto 18px; border-radius: 50%; border: 2px solid var(--dot, var(--ember)); }
.e2-date__l { display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); }
.e2-date__d { display: block; margin-top: 10px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; line-height: 1.15; letter-spacing: -.03em; color: var(--night); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.e2-sec { padding-block: clamp(84px, 10vw, 144px); }
.e2-panel { border-radius: 36px; background: var(--sand); padding-block: clamp(72px, 9vw, 128px); }

/* Submission guidelines: a bento grid */
.e2-guide { display: grid; grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.e2-gcard {
  position: relative; display: flex; flex-direction: column; gap: 22px;
  padding: clamp(24px, 2.4vw, 34px); background: #fff; border: 1px solid var(--line); border-radius: 26px;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease), border-color .45s;
}
.e2-gcard p { font-size: 17px; line-height: 1.65; }
.e2-gcard:hover { transform: translateY(-4px); border-color: var(--dune); box-shadow: 0 30px 60px -40px rgba(23, 68, 74, .35); }
.e2-gcard:hover .e2-badge, .e2-fcard:hover .e2-badge, .e2-tc:hover .e2-badge { background: var(--teal-2); color: #fff; }
.e2-gcard--feature { grid-row: span 2; justify-content: space-between; overflow: hidden; isolation: isolate; background: var(--teal-tint); border-color: transparent; }
.e2-gcard--feature p { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.e2-word__l { font-size: 12.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--teal-2); }
.e2-word__n { color: var(--night); font-size: clamp(72px, 8vw, 116px); font-weight: 600; line-height: .92; letter-spacing: -.06em; white-space: nowrap; }
.e2-word__n span { font-size: .26em; font-weight: 500; letter-spacing: -.01em; color: var(--teal-2); }
.e2-word__x { font-size: 16px; color: var(--txt); }
.e2-feature-arches { position: absolute; right: -60px; top: -40px; z-index: 0; width: 340px; color: #fff; pointer-events: none; }
.e2-feature-arches path { fill: none; stroke: currentColor; stroke-width: 1.4; }

/* Structured format: eight cards */
.e2-fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.e2-fcard {
  position: relative; display: flex; flex-direction: column; gap: 18px; overflow: hidden;
  padding: clamp(24px, 2.2vw, 30px); background: #fff; border: 1px solid rgba(228, 225, 218, .8); border-radius: 24px;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.e2-fcard:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(23, 68, 74, .32); }
.e2-fcard h3 { color: var(--night); font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.e2-fcard li { position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.6; }
.e2-fcard li + li { margin-top: 8px; }
.e2-fcard li::before { content: ''; position: absolute; left: 0; top: .78em; width: 9px; height: 1.5px; background: var(--ember); }
.e2-fcard__arches { margin-top: auto; width: 100%; max-width: 220px; align-self: flex-end; color: var(--dune); }
.e2-fcard__arches path { fill: none; stroke: currentColor; stroke-width: 1.4; }

/* Topics: an arch of soft teal with a cloud of pills */
.e2-topics {
  position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(8px, 1.4vw, 20px);
  padding: clamp(120px, 14vw, 200px) 0 clamp(72px, 9vw, 120px); text-align: center; background: var(--teal-tint);
  border-radius: 50% 50% 32px 32px / clamp(130px, 22vw, 320px) clamp(130px, 22vw, 320px) 32px 32px;
}
.e2-topics .e2-arches { color: #fff; }
.e2-topics .e2-arches path { animation: none; stroke-dashoffset: 0; stroke-width: 1.4; }
.e2-pills { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 1080px; margin-inline: auto; }
.e2-pill {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px 14px 20px;
  background: #fff; border: 1px solid rgba(25, 136, 146, .18); border-radius: 999px;
  color: var(--night); font-size: 16px; font-weight: 500; line-height: 1.4; text-align: left;
  transition: border-color .4s, box-shadow .6s var(--ease);
}
.e2-pill::before { content: ''; flex: none; width: 7px; height: 7px; background: var(--ember); transform: rotate(45deg); transition: transform .7s var(--ease), background .4s; }
.e2-pill:hover { border-color: rgba(25, 136, 146, .5); box-shadow: 0 14px 30px -22px rgba(23, 68, 74, .55); }
.e2-pill:hover::before { transform: rotate(225deg); background: var(--teal-2); }
.e2-topics .e2-head { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Registration: tier cards and terms
   -------------------------------------------------------------------------- */
.e2-hero--reg .e2-hero__in { padding-bottom: clamp(180px, 17vw, 240px); }
.e2-hero--reg .e2-h1 { font-size: clamp(44px, 7vw, 104px); }
.e2-hero--reg .e2-btn { margin-top: clamp(28px, 3vw, 40px); }

.e2-tiers { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); align-items: start; margin-top: calc(-1 * clamp(140px, 13vw, 180px)); }
.e2-tier {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 30px;
  box-shadow: 0 1px 2px rgba(23, 68, 74, .04), 0 36px 70px -44px rgba(23, 68, 74, .32);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.e2-tier:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(23, 68, 74, .04), 0 46px 80px -44px rgba(23, 68, 74, .4); }
.e2-tier__head { margin: 10px 10px 0; padding: clamp(50px, 4.6vw, 62px) 24px 28px; text-align: center; background: var(--sand); border-radius: 50% 50% 8px 8px / 92px 92px 8px 8px; }
.e2-tier__name { color: var(--night); font-size: clamp(22px, 2vw, 28px); font-weight: 600; line-height: 1.2; letter-spacing: -.03em; }
.e2-tier__per { margin-top: 8px; color: var(--mut); font-size: 14px; font-weight: 500; line-height: 1.45; }
.e2-tier__list { padding: 8px clamp(22px, 2.2vw, 30px) 16px; }
.e2-tier__list li { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); }
.e2-tier__list li:first-child { border-top: 0; }
.e2-tier__cat { color: var(--mut); font-size: 14px; font-weight: 500; line-height: 1.45; }
.e2-tier__price { color: var(--night); font-size: clamp(24px, 2.1vw, 30px); font-weight: 600; line-height: 1.1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.e2-tier__price small { margin-right: 4px; color: var(--mut); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; vertical-align: .45em; }
.e2-tier--feature { border-color: rgba(207, 31, 39, .26); box-shadow: 0 0 0 1px rgba(207, 31, 39, .07), 0 44px 80px -40px rgba(207, 31, 39, .3); }
.e2-tier--feature .e2-tier__head { background: var(--blush); }
.e2-tier--feature .e2-tier__name { color: var(--red); }

.e2-tcs { columns: 2 420px; column-gap: clamp(16px, 2vw, 24px); }
.e2-tc {
  display: flex; gap: 20px; break-inside: avoid; margin-bottom: clamp(16px, 2vw, 24px);
  padding: clamp(24px, 2.6vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: 26px;
  transition: border-color .45s, box-shadow .7s var(--ease);
}
.e2-tc:hover { border-color: var(--dune); box-shadow: 0 30px 60px -44px rgba(23, 68, 74, .35); }
.e2-tc__body { min-width: 0; }
.e2-tc h3 { margin: 6px 0 14px; color: var(--night); font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.e2-tc li { position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.7; }
.e2-tc li + li { margin-top: 10px; }
.e2-tc li::before { content: ''; position: absolute; left: 0; top: .82em; width: 9px; height: 1.5px; background: var(--ember); }
.e2-tc li ul { margin-top: 10px; }
.e2-tc li li::before { top: .6em; width: 7px; height: 7px; border-radius: 50%; background: transparent; border: 1.5px solid var(--ember); }
.e2-mail { color: var(--teal-2); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(25, 136, 146, .4); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color .3s, text-decoration-color .3s; overflow-wrap: anywhere; }
.e2-mail:hover { color: var(--night); text-decoration-color: var(--ember); }

.e2-close {
  max-width: 860px; margin: clamp(32px, 4vw, 56px) auto 0; padding: clamp(66px, 7vw, 92px) clamp(24px, 4vw, 56px) clamp(34px, 4vw, 46px);
  text-align: center; background: var(--teal-tint);
  border-radius: 50% 50% 28px 28px / 140px 140px 28px 28px;
}
.e2-close p { margin-top: 20px; color: var(--night); font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; line-height: 1.45; letter-spacing: -.02em; }

/* --------------------------------------------------------------------------
   Scroll reveal (only switched on by the script; the hero never waits on it)
   -------------------------------------------------------------------------- */
.e2-js .e2-rv { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s); }
.e2-js .e2-rv.is-in { opacity: 1; transform: none; }

@keyframes e2Draw { to { stroke-dashoffset: 0; } }
@keyframes e2Rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .e2-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .e2-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e2-gcard--feature { grid-column: 1 / -1; grid-row: auto; }
  .e2-tiers { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .e2-dates__grid { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
  .e2-date { border-radius: 50% 50% 22px 22px / 96px 96px 22px 22px; }
}
@media (max-width: 600px) {
  .e2-guide, .e2-fgrid { grid-template-columns: minmax(0, 1fr); }
  .e2-panel, .e2-topics { border-radius: 24px; }
  .e2-topics { border-radius: 50% 50% 24px 24px / 110px 110px 24px 24px; }
  .e2-hero { border-radius: 50% 50% 24px 24px / 130px 130px 24px 24px; }
  .e2-pill { padding: 12px 18px 12px 16px; font-size: 15px; }
  .e2-tc { flex-direction: column; gap: 14px; }
  .e2-close { border-radius: 50% 50% 22px 22px / 90px 90px 22px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .e2 *, .e2 *::before, .e2 *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .e2-arches path { stroke-dashoffset: 0; }
  .e2-js .e2-rv { opacity: 1; transform: none; }
}
