/**
 * Ektifa Events — event landing page.
 * Modern DARK theme: deep black backgrounds with luxury gold accents.
 * Gold (#d4af37 / #c9a227) on near-black surfaces, subtle gold borders,
 * glowing accents, card-based sections. Raleway-style headings, Cairo body.
 */

:root {
  /* Surfaces (dark). --ee-white and --ee-bg-alt keep their names but now map
     to dark surfaces so every rule that referenced them flips automatically. */
  --ee-white: #12100b;        /* primary "card"/panel surface (near-black warm) */
  --ee-bg-alt: #0a0a0a;       /* alternate section background (deep black) */
  --ee-page: #0d0c08;         /* base page background */
  --ee-surface-2: #1c1a12;    /* raised surface / inputs */

  /* Text */
  --ee-ink: #f5efe0;          /* primary heading text (warm off-white) */
  --ee-body: #b9b2a0;         /* body text (muted warm grey) */

  /* Gold accents */
  --ee-gold: #d4af37;
  --ee-gold-soft: #e6c66a;
  --ee-gold-btn: #d4af37;
  --ee-gold-btn-2: #b8901f;

  /* Navy is repurposed as a dark band color to stay consistent everywhere. */
  --ee-navy: #14120c;

  --ee-border: rgba(212, 175, 55, 0.18);   /* subtle gold hairline borders */
  --ee-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
  --ee-glow: 0 0 0 1px rgba(212, 175, 55, 0.14), 0 18px 44px rgba(0, 0, 0, 0.6);
  --ee-radius: 10px;
  --ee-max: 1170px;
  --ee-head: "Cairo", "Tajawal", "Raleway", "Segoe UI", Arial, sans-serif;
  --ee-body-font: "Tajawal", "Cairo", "Open Sans", Arial, sans-serif;
}

/* Hide active-theme chrome as a fallback if the page template is bypassed. */
body.ektifa-event-page .header,
body.ektifa-event-page .mobile-header-container,
body.ektifa-event-page #page-title,
body.ektifa-event-page .breadcrumb,
body.ektifa-event-page #footer,
body.ektifa-event-page .preloader {
  display: none !important;
}

html[dir="rtl"] body.ektifa-event-page,
body.ektifa-event-page {
  margin: 0;
  background: var(--ee-page);
  color: var(--ee-body);
  font-family: var(--ee-body-font);
}

.ee,
.ee * {
  box-sizing: border-box;
}

.ee {
  overflow-x: clip;
  background: var(--ee-page);
  color: var(--ee-body);
  font-family: var(--ee-body-font);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

.ee--rtl {
  direction: rtl;
  text-align: right;
}

.ee--ltr {
  direction: ltr;
  text-align: left;
}

.ee img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.ee-container {
  width: 100%;
  max-width: var(--ee-max);
  margin: 0 auto;
  padding: 0 20px;
}

.ee-section {
  padding: 72px 0;
}

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

/* Section header: small gold label + big dark heading */
.ee-section-head {
  text-align: center;
  margin-bottom: 46px;
}

.ee-section-head__label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--ee-gold);
  font-family: var(--ee-head);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
}

.ee-section-head__title {
  margin: 0;
  color: var(--ee-ink);
  font-family: var(--ee-head);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.35;
}

/* Buttons — match site "Read More" pill */
.ee-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 40px;
  border: 2px solid var(--ee-gold-btn);
  border-radius: 45px;
  background: linear-gradient(135deg, var(--ee-gold-soft) 0%, var(--ee-gold-btn) 55%, var(--ee-gold-btn-2) 100%);
  color: #fff;
  font-family: var(--ee-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.28);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ee-btn:hover,
.ee-btn:focus-visible {
  background: transparent;
  color: var(--ee-gold-btn-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.22);
}

.ee-btn--navy {
  border-color: var(--ee-navy);
  background: var(--ee-navy);
}

.ee-btn--navy:hover {
  color: var(--ee-navy);
}

/* Primary hero CTA — solid gold pill with a soft glow on the dark hero. */
.ee .ee-btn--white,
.ee a.ee-btn--white {
  border: 2px solid var(--ee-gold);
  background: linear-gradient(135deg, var(--ee-gold-soft) 0%, var(--ee-gold) 55%, var(--ee-gold-btn-2) 100%);
  color: #14120c;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
}

.ee .ee-btn--white:hover,
.ee a.ee-btn--white:hover,
.ee .ee-btn--white:focus-visible {
  background: transparent;
  color: var(--ee-gold-soft);
  border-color: var(--ee-gold-soft);
}

/* Header */
.ee-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 9, 6, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--ee-border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

/* Slightly more opaque once the page is scrolled for legibility. */
.ee.ee-is-scrolled .ee-header {
  background: rgba(8, 7, 5, 0.94);
}

/* On mobile the fullscreen nav panel is a child of the header. A
   backdrop-filter on the header would create a containing block that traps
   the panel's position:fixed to the header's height, so disable it there and
   use a solid opaque header background instead. */
@media (max-width: 860px) {
  .ee-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #0a0906;
  }
  .ee.ee-is-scrolled .ee-header {
    background: #080705;
  }
}

.ee-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}

.ee-logo img {
  max-height: 56px;
  object-fit: contain;
}

.ee-logo__text {
  color: var(--ee-gold-soft);
  font-family: var(--ee-head);
  font-size: 24px;
  font-weight: 900;
}

.ee-nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ee-nav__list a {
  color: var(--ee-ink);
  font-family: var(--ee-head);
  font-size: 15px;
  font-weight: 700;
}

.ee-nav__list a:hover,
.ee-nav__list a:focus-visible {
  color: var(--ee-gold);
}

/* Language switcher */
.ee-langswitch {
  display: inline-flex;
  border: 1px solid var(--ee-gold);
  border-radius: 30px;
  overflow: hidden;
}

.ee-langswitch__btn {
  padding: 7px 16px;
  color: var(--ee-gold-soft);
  font-family: var(--ee-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, color 0.2s ease;
}

.ee-langswitch__btn.is-active {
  background: var(--ee-gold);
  color: #12100b;
}

.ee-langswitch__btn:not(.is-active):hover {
  background: rgba(201, 162, 39, 0.12);
}

.ee-nav__toggle,
.ee-nav__close {
  display: none;
}

.ee-nav__toggle {
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 1px solid var(--ee-border);
  border-radius: 8px;
  background: var(--ee-surface-2);
  cursor: pointer;
}

.ee-nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ee-gold-soft);
}

/* Hero */
.ee-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ee-navy) center / cover no-repeat;
}

.ee-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Deep black wash so the gold accents and title read cleanly, with a
     subtle warm gold vignette from the bottom. */
  background:
    radial-gradient(120% 90% at 50% 120%, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0) 55%),
    linear-gradient(180deg, rgba(6, 6, 6, 0.72) 0%, rgba(6, 6, 6, 0.6) 45%, rgba(4, 4, 4, 0.9) 100%);
}

/* Hero photo slider (used when an event has multiple hero photos, e.g. the
   Tunisia country slideshow). Slides cross-fade; only the .is-active slide
   is opaque. */
.ee-hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ee-hero__slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.9s ease;
  will-change: opacity, transform;
}

.ee-hero__slide.is-active {
  opacity: 1;
  /* Continuous Ken-Burns zoom while the slide is showing. */
  animation: ee-hero-kenburns 4.5s ease-in-out forwards;
}

.ee-hero__slide.is-active.ee-hero__slide--zoom-out {
  animation-name: ee-hero-kenburns-out;
}

@keyframes ee-hero-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

@keyframes ee-hero-kenburns-out {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

.ee-hero__dots {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.ee-hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.25);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ee-hero__dot.is-active {
  background: var(--ee-gold-soft);
  border-color: var(--ee-gold-soft);
  transform: scale(1.2);
}

.ee-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px;
}

.ee-hero__title {
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--ee-head);
  font-size: clamp(32px, 5.4vw, 60px);
  font-weight: 900;
  line-height: 1.3;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7), 0 0 40px rgba(212, 175, 55, 0.15);
}

.ee-hero__subtitle {
  margin: 0 auto 28px;
  max-width: 760px;
  color: #ece4d0;
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* Event info bar — dark cards over a black strip */
.ee-info {
  background: var(--ee-bg-alt);
  border-bottom: 1px solid var(--ee-border);
}

.ee-info__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px 0 20px;
}

.ee-info__item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
  padding: 20px 24px;
  background: linear-gradient(160deg, var(--ee-surface-2), var(--ee-white));
  border: 1px solid var(--ee-border);
  border-radius: var(--ee-radius);
  box-shadow: var(--ee-shadow);
}

.ee-info__item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.16);
  color: var(--ee-gold-soft);
  font-size: 22px;
}

.ee-info__label {
  color: var(--ee-body);
  font-size: 13px;
}

.ee-info__value {
  color: var(--ee-ink);
  font-family: var(--ee-head);
  font-size: 18px;
  font-weight: 700;
}

.ee-sponsor-line {
  text-align: center;
  padding: 8px 0 34px;
  color: var(--ee-body);
  font-size: 18px;
}

.ee-sponsor-line strong {
  color: var(--ee-gold-soft);
  font-weight: 800;
}

/* Video */
.ee-video__frame {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--ee-radius);
  overflow: hidden;
  box-shadow: var(--ee-shadow);
}

.ee-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Rich text */
.ee-rich {
  max-width: 900px;
  margin: 0 auto;
  color: var(--ee-body);
  font-size: 18px;
  line-height: 2.1;
  text-align: center;
}

.ee-rich p {
  margin: 0 0 16px;
}

/* ===== Speakers — modern portrait cards, equal size in a tidy grid ===== */
.ee-speakers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .ee-speakers__grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 760px;
  }
}

@media (max-width: 640px) {
  .ee-speakers__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* The card itself: a portrait photo with a gradient scrim and a name band. */
.ee-speaker {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--ee-navy);
  border: 1px solid var(--ee-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ee-speaker:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 175, 55, 0.25);
}

/* Thin gold accent line at the top of every card. */
.ee-speaker::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ee-gold-soft), var(--ee-gold), var(--ee-gold-btn-2));
  z-index: 3;
}

.ee-speaker__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  /* White so the full studio-white portraits blend cleanly. */
  background: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  /* Breathing room between the head and the top edge of the card, applied
     uniformly to every speaker so the framing is consistent. */
  padding-top: 8%;
}

.ee-speaker__photo img {
  /* Match every portrait by HEIGHT so all speakers appear the same size,
     regardless of the source photo's aspect ratio. The image keeps its own
     width (no squashing); any extra width is just studio-white background,
     so no part of the person is cropped. */
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
  transition: transform 0.4s ease;
}

.ee-speaker:hover .ee-speaker__photo img {
  transform: scale(1.03);
}

/* Empty (no-photo) state keeps the same frame with a subtle icon. */
.ee-speaker__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 64px;
  background: linear-gradient(160deg, #34455a, #2c3e50);
}

/* Solid name band below the photo (not overlaying it, so the full portrait
   is always visible and the name always readable). */
.ee-speaker__name {
  padding: 16px 12px;
  color: #fff;
  font-family: var(--ee-head);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  background: var(--ee-navy);
}

.ee-speaker__role {
  padding: 0 12px 14px;
  color: var(--ee-gold-soft);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  background: var(--ee-navy);
}

/* Sponsor band — deep black with a faint gold top hairline. */
.ee-sponsor {
  text-align: center;
  background: var(--ee-bg-alt);
  border-top: 1px solid var(--ee-border);
  border-bottom: 1px solid var(--ee-border);
}

.ee-sponsor__label {
  color: var(--ee-gold-soft);
  font-family: var(--ee-head);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.ee-sponsor__logo img {
  max-height: 120px;
  margin: 0 auto;
}

.ee-sponsor__name {
  color: #fff;
  font-family: var(--ee-head);
  font-size: 32px;
  font-weight: 900;
}

/* Past events cards */
.ee-past__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
}

.ee-past-card {
  display: flex;
  flex-direction: column;
  background: var(--ee-white);
  border: 1px solid var(--ee-border);
  border-radius: var(--ee-radius);
  overflow: hidden;
  box-shadow: var(--ee-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ee-past-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.ee-past-card__media {
  aspect-ratio: 16 / 10;
  background: var(--ee-surface-2);
  overflow: hidden;
}

.ee-past-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ee-past-card:hover .ee-past-card__media img {
  transform: scale(1.05);
}

.ee-past-card__body {
  padding: 22px;
}

.ee-past-card__title {
  color: var(--ee-ink);
  font-family: var(--ee-head);
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
}

.ee-past-card__meta {
  color: var(--ee-gold);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ee-past-card__text {
  color: var(--ee-body);
  font-size: 15px;
  line-height: 1.9;
}

/* Gallery — masonry columns so images keep their aspect ratio with no gaps */
.ee-gallery__grid {
  column-count: 4;
  column-gap: 12px;
  max-width: 1170px;
  margin: 0 auto;
}

.ee-gallery__item {
  display: block;
  margin: 0 0 12px;
  break-inside: avoid;
  border-radius: var(--ee-radius);
  overflow: hidden;
  border: 1px solid var(--ee-border);
  background: var(--ee-bg-alt);
  box-shadow: var(--ee-shadow);
  cursor: pointer;
}

.ee-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease, filter 0.2s ease;
}

.ee-gallery__item:hover img {
  transform: scale(1.04);
  filter: brightness(1.05);
}

@media (max-width: 1024px) {
  .ee-gallery__grid { column-count: 3; }
}

@media (max-width: 680px) {
  .ee-gallery__grid { column-count: 2; }
}

/* Registration / webform */
.ee-register {
  background: var(--ee-bg-alt);
}

.ee-register__box {
  max-width: 760px;
  margin: 0 auto;
  padding: 38px;
  background: linear-gradient(180deg, var(--ee-white), var(--ee-page));
  border: 1px solid var(--ee-border);
  border-top: 4px solid var(--ee-gold);
  border-radius: var(--ee-radius);
  box-shadow: var(--ee-glow);
}

.ee-register .form-item {
  margin-bottom: 18px;
}

/* Hide the Trading Level field on event registration forms (client request). */
.ee-register .form-item-trading-level,
.ee-register .js-form-item-trading-level {
  display: none !important;
}

.ee-register label {
  display: block;
  margin-bottom: 8px;
  color: var(--ee-ink);
  font-family: var(--ee-head);
  font-weight: 700;
  text-align: start;
}

/* Gold asterisk marking required fields. Drupal/Webform adds either a
   .form-required class on the <label> or a .form-item--required wrapper and,
   in some builds, a <span class="required-mark"> / <abbr>. Cover them all. */
.ee-register label.form-required::after,
.ee-register .js-form-required.form-required::after,
.ee-register .form-item--required > label::after {
  content: " *";
  color: var(--ee-gold-soft);
  font-weight: 900;
}

/* If the theme ships its own required marker element, gild it and hide any
   default red star so we don't get a double asterisk. */
.ee-register .form-required-mark,
.ee-register abbr.required,
.ee-register .required-mark {
  color: var(--ee-gold-soft);
  border: 0;
  text-decoration: none;
}

.ee-register input,
.ee-register textarea,
.ee-register select,
.ee-register input.form-control,
.ee-register input.form-text,
.ee-register select.form-control,
.ee-register select.form-select,
.ee-register textarea.form-control {
  width: 100%;
  padding: 13px 16px;
  background: var(--ee-surface-2);
  border: 1px solid var(--ee-border);
  border-radius: 6px;
  color: var(--ee-ink);
  font-family: var(--ee-body-font);
  font-size: 16px;
  text-align: start;
}

.ee-register input::placeholder,
.ee-register textarea::placeholder {
  color: rgba(185, 178, 160, 0.6);
}

/* Disabled fields (e.g. the auto-filled Country field) keep the dark styling
   instead of the browser's default washed-out light appearance. */
.ee-register input:disabled,
.ee-register input[disabled],
.ee-register input.form-control:disabled,
.ee-register input.form-text:disabled,
.ee-register select:disabled,
.ee-register textarea:disabled {
  background: var(--ee-surface-2) !important;
  color: var(--ee-ink) !important;
  -webkit-text-fill-color: var(--ee-ink);
  border-color: var(--ee-border) !important;
  opacity: 1;
  -webkit-opacity: 1;
}

/* Dark-friendly select dropdown options. */
.ee-register select option {
  background: var(--ee-surface-2);
  color: var(--ee-ink);
}

.ee-register input:focus,
.ee-register textarea:focus,
.ee-register select:focus {
  outline: none;
  border-color: var(--ee-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* ---- International phone widget (intl-tel-input) ---- */
/* Make the widget span the field and match the other inputs. */
.ee-register .iti {
  display: block;
  width: 100%;
  /* Contain the widget strictly to its own box so nothing about the phone
     field can overlap or intercept taps on the fields above/below it on
     touch devices. */
  position: relative;
  isolation: isolate;
}

/* The flag/dial-code container must never extend past the phone field's own
   height — otherwise its touch area could cover neighbouring fields on mobile
   and hijack focus to the phone input. */
.ee-register .iti__country-container {
  max-height: 100%;
  touch-action: manipulation;
}

/* A CLOSED country dropdown must never occupy space or catch taps. The
   library normally hides it via .iti__hide from its CDN stylesheet — enforce
   it locally too, so a blocked/failed CDN CSS can't leave an invisible
   overlay hanging over the fields above the phone input (the cause of taps
   "locking onto" the phone field on mobile). */
.ee-register .iti .iti__hide,
.iti--container .iti__hide {
  display: none !important;
  pointer-events: none !important;
}

/* When the dropdown IS open, keep it anchored to the phone field and above
   the form, never stretched over other fields. */
.ee-register .iti--inline-dropdown .iti__dropdown-content {
  position: absolute;
  z-index: 10;
  max-height: 260px;
  overflow-y: auto;
}

.ee-register .iti input,
.ee-register .iti input[type="tel"] {
  width: 100%;
  /* Match the exact box model of the other fields so the height is identical. */
  padding: 13px 16px;
  background: var(--ee-surface-2);
  border: 1px solid var(--ee-border);
  border-radius: 6px;
  color: var(--ee-ink);
  font-family: var(--ee-body-font);
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;
}

/* Vertically center the flag + dial-code with the input text. */
.ee-register .iti__country-container {
  top: 0;
  bottom: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.ee-register .iti__selected-country {
  height: 100%;
  display: flex;
  align-items: center;
}

/* Center the flag/dial row and give the arrow breathing room from the flag. */
.ee-register .iti__selected-country-primary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ee-register .iti__arrow {
  margin: 0 4px;
}

.ee-register .iti__selected-dial-code {
  line-height: 1;
}

/* Match the phone number's baseline to the flag by normalising line-height. */
.ee-register .iti input,
.ee-register .iti input[type="tel"] {
  line-height: 1.4;
}

/* The dial-code + flag sit at the LOGICAL start of the field (the side the
   text begins on): right in RTL, left in LTR. intl-tel-input positions its
   country container with physical left/right, so we flip per direction. */

/* --- LTR: flag on the left --- */
.ee--ltr .ee-register .iti--separate-dial-code .iti__country-container,
.ee--ltr .ee-register .iti__country-container {
  left: 0;
  right: auto;
}
.ee--ltr .ee-register .iti--separate-dial-code input {
  padding-left: 92px;
  padding-right: 16px;
  text-align: left;
  direction: ltr;
}

/* --- RTL: flag on the right --- */
.ee--rtl .ee-register .iti__country-container {
  left: auto;
  right: 0;
}
.ee--rtl .ee-register .iti--separate-dial-code input {
  padding-right: 92px;
  padding-left: 16px;
  /* Phone numbers are always read left-to-right even inside an RTL form. */
  text-align: right;
  direction: ltr;
}

/* Dropdown list readability (its internal text stays LTR). Dark surface. */
.ee-register .iti__dropdown-content {
  direction: ltr;
  text-align: left;
  border-radius: 8px;
  background: var(--ee-surface-2);
  border: 1px solid var(--ee-border);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
}
.ee-register .iti__search-input {
  padding: 10px 12px;
  background: var(--ee-page);
  border: 0;
  border-bottom: 1px solid var(--ee-border);
  color: var(--ee-ink);
}
.ee-register .iti__country {
  padding: 8px 12px;
}
/* Highlighted / hovered country row. */
.ee-register .iti__country.iti__highlight,
.ee-register .iti__country:hover {
  background: rgba(212, 175, 55, 0.14);
}
.ee-register .iti__dial-code {
  color: var(--ee-body);
}
.ee-register .iti * {
  color: var(--ee-ink);
}

/* Keep the selected-country button vertically centered and clickable. */
.ee-register .iti__selected-country {
  border-radius: 6px 0 0 6px;
}
.ee--rtl .ee-register .iti__selected-country {
  border-radius: 0 6px 6px 0;
}

/* Center the submit action row */
.ee-register .form-actions,
.ee-register .webform-actions {
  text-align: center;
  margin-top: 10px;
}

.ee-register .webform-button--submit,
.ee-register input[type="submit"],
.ee-register button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 220px;
  padding: 15px 42px;
  margin-top: 8px;
  border: 2px solid var(--ee-gold-btn);
  border-radius: 45px;
  background: linear-gradient(135deg, var(--ee-gold-soft) 0%, var(--ee-gold-btn) 55%, var(--ee-gold-btn-2) 100%);
  color: #fff;
  font-family: var(--ee-head);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.28);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ee-register .webform-button--submit:hover,
.ee-register input[type="submit"]:hover,
.ee-register button[type="submit"]:hover {
  background: transparent;
  color: var(--ee-gold-btn-2);
}

/* Footer — deep black with a gold hairline and warm text. */
.ee-footer {
  padding: 54px 0 34px;
  background: #060504;
  border-top: 1px solid var(--ee-border);
  color: var(--ee-body);
  text-align: center;
}

/* Brand + rotating gold coin sit side by side (mirrors ektifa.uk). */
.ee-footer__brandrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 54px);
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ee-footer__brandtext {
  text-align: center;
}

.ee-footer__coin {
  flex: 0 0 auto;
  width: clamp(140px, 20vw, 220px);
  line-height: 0;
  /* Warm glow behind the coin so it feels lit on the black footer. */
  filter: drop-shadow(0 12px 30px rgba(212, 175, 55, 0.28));
}

.ee-footer__coin video {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  /* The source clip is on a near-black background; `screen` maps black to
     fully transparent, so only the lit gold coin shows — no visible box. */
  mix-blend-mode: screen;
  /* Circular mask fades the square frame's corners out entirely, so any
     residual dark grey in the clip corners can never read as a box. */
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 60%, rgba(0, 0, 0, 0) 71%);
  mask-image: radial-gradient(circle at 50% 50%, #000 60%, rgba(0, 0, 0, 0) 71%);
}

/* Hide native playback UI so the coin reads as decoration, not a player. */
.ee-footer__coin video::-webkit-media-controls,
.ee-footer__coin video::-webkit-media-controls-enclosure,
.ee-footer__coin video::-webkit-media-controls-start-playback-button,
.ee-footer__coin video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
}

.ee-footer__brand {
  color: var(--ee-gold-soft);
  font-family: var(--ee-head);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 900;
  margin-bottom: 10px;
}

.ee-footer__meta {
  color: var(--ee-body);
  font-size: 15px;
  line-height: 2;
}

.ee-footer__credit {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  color: rgba(185, 178, 160, 0.6);
  font-size: 13px;
}

/* Lightbox */
.ee-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(15, 20, 28, 0.94);
}

.ee-lightbox.is-open {
  display: flex;
}

.ee-lightbox__figure {
  margin: 0;
  max-width: 90vw;
  max-height: 86vh;
  /* Only the image lays out here — the counter is positioned separately —
     so the image stays perfectly centred and the side arrows line up with
     its vertical middle. */
  display: flex;
  align-items: center;
  justify-content: center;
}

.ee-lightbox__img {
  max-width: 90vw;
  max-height: 84vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.ee-lightbox__counter {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  color: #e7e7e7;
  font-family: var(--ee-head);
  font-size: 15px;
  letter-spacing: 1px;
}

.ee-lightbox__close {
  position: absolute;
  top: 24px;
  left: 28px;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ee-lightbox__close:hover {
  background: var(--ee-gold-btn);
}

.ee-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 2;
}

.ee-lightbox__nav:hover {
  background: var(--ee-gold-btn);
}

/* Chevron drawn with borders so it always points cleanly and can be rotated
   per reading direction (no glyph ambiguity across fonts/RTL). */
.ee-lightbox__chev {
  display: block;
  width: 16px;
  height: 16px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

/* LTR: prev points left (on the left edge), next points right (right edge). */
.ee-lightbox--ltr .ee-lightbox__prev { left: 28px; right: auto; }
.ee-lightbox--ltr .ee-lightbox__next { right: 28px; left: auto; }
.ee-lightbox--ltr .ee-lightbox__prev .ee-lightbox__chev { transform: rotate(-135deg); margin-left: 5px; }
.ee-lightbox--ltr .ee-lightbox__next .ee-lightbox__chev { transform: rotate(45deg); margin-right: 5px; }

/* RTL: prev points right (on the right edge), next points left (left edge). */
.ee-lightbox--rtl .ee-lightbox__prev { right: 28px; left: auto; }
.ee-lightbox--rtl .ee-lightbox__next { left: 28px; right: auto; }
.ee-lightbox--rtl .ee-lightbox__prev .ee-lightbox__chev { transform: rotate(45deg); margin-right: 5px; }
.ee-lightbox--rtl .ee-lightbox__next .ee-lightbox__chev { transform: rotate(-135deg); margin-left: 5px; }

/* Responsive */
@media (max-width: 860px) {
  .ee-lightbox {
    padding: 16px;
  }
  .ee-lightbox__nav {
    width: 46px;
    height: 46px;
  }
  /* Keep the arrows pinned to their direction-correct edges on mobile. */
  .ee-lightbox--ltr .ee-lightbox__prev { left: 12px; right: auto; }
  .ee-lightbox--ltr .ee-lightbox__next { right: 12px; left: auto; }
  .ee-lightbox--rtl .ee-lightbox__prev { right: 12px; left: auto; }
  .ee-lightbox--rtl .ee-lightbox__next { left: 12px; right: auto; }
  .ee-lightbox__close {
    top: 14px;
    left: 14px;
  }

  .ee-nav__toggle {
    display: block;
    order: 3;
  }

  /* Full-screen dimmed backdrop (the nav element itself). */
  .ee-nav {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(15, 20, 28, 0);
    visibility: hidden;
    transition: background 0.3s ease, visibility 0s linear 0.3s;
  }
  .ee-nav.is-open {
    background: rgba(15, 20, 28, 0.55);
    visibility: visible;
    transition: background 0.3s ease, visibility 0s;
  }

  /* The solid dark sliding panel lives inside the backdrop. */
  .ee-nav__list {
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(82vw, 340px);
    margin: 0;
    padding: 74px 0 26px;
    background: #0c0b07;
    border-inline-start: 1px solid var(--ee-border);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
  }
  /* RTL: panel on the left. LTR: panel on the right. */
  .ee--rtl .ee-nav__list {
    left: 0;
    right: auto;
    transform: translateX(-105%);
  }
  .ee--ltr .ee-nav__list {
    right: 0;
    left: auto;
    transform: translateX(105%);
  }
  .ee-nav.is-open .ee-nav__list {
    transform: translateX(0);
  }

  .ee-nav__list li {
    border-bottom: 1px solid var(--ee-border);
  }
  .ee-nav__list a {
    display: block;
    padding: 16px 22px;
    font-size: 17px;
    color: var(--ee-ink);
  }
  .ee-nav__list a:hover {
    background: rgba(212, 175, 55, 0.12);
    color: var(--ee-gold-soft);
  }

  /* Close (×) button pinned to the top of the sliding panel. */
  .ee-nav__close {
    display: block;
    position: absolute;
    top: 16px;
    width: 42px;
    height: 42px;
    z-index: 3;
    border: 1px solid var(--ee-border);
    border-radius: 50%;
    background: var(--ee-surface-2);
    color: var(--ee-gold-soft);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
  }
  /* RTL panel sits on the left → close button near its right (inner) edge. */
  .ee--rtl .ee-nav__close {
    left: 18px;
    right: auto;
    transform: translateX(-500px);
  }
  /* LTR panel sits on the right → close button near its left (inner) edge. */
  .ee--ltr .ee-nav__close {
    right: 18px;
    left: auto;
    transform: translateX(500px);
  }
  .ee-nav.is-open .ee-nav__close {
    transform: translateX(0);
  }
  .ee-nav__close:hover {
    background: var(--ee-gold);
    color: #fff;
    border-color: var(--ee-gold);
  }

  .ee-section {
    padding: 52px 0;
  }
  .ee-info__item {
    min-width: 100%;
  }
}
