/**
 * ECS Homepage Premium — v2
 * Namespace: .ecs-hp  /  .ecs-hp-*
 * All rules are scoped so they cannot bleed into or be overridden by theme CSS.
 */

/* ─── Custom properties (scoped to wrapper) ─── */
.ecs-hp {
  --hp-navy:    #0a1628;
  --hp-primary: #3b82f6;
  --hp-primary-lt: #60a5fa;
  --hp-accent:  #f97316;
  --hp-success: #059669;
  --hp-text:    #1e293b;
  --hp-muted:   #64748b;
  --hp-light:   #f8fafc;
  --hp-white:   #ffffff;
  --hp-border:  #e2e8f0;
  --hp-radius:  12px;
  --hp-shadow:  0 4px 24px rgba(0,0,0,.08);
  --hp-shadow-lg: 0 12px 40px rgba(0,0,0,.14);
  --hp-trans:   all .25s ease;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--hp-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Box-sizing reset within scope ─── */
.ecs-hp *,
.ecs-hp *::before,
.ecs-hp *::after {
  box-sizing: border-box;
}

.ecs-hp img { max-width: 100%; height: auto; display: block; }
.ecs-hp a   { text-decoration: none; }
.ecs-hp ul  { list-style: none; margin: 0; padding: 0; }
.ecs-hp p   { margin-top: 0; }
.ecs-hp h1, .ecs-hp h2, .ecs-hp h3, .ecs-hp h4 { margin-top: 0; line-height: 1.25; }
.ecs-hp button { font-family: inherit; }

/* ─── Layout container ─── */
.ecs-hp-container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

/* ═══════════════════════════════════
   BUTTONS
═══════════════════════════════════ */
.ecs-hp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: var(--hp-trans);
  text-decoration: none !important;
}

.ecs-hp-btn--primary {
  background: var(--hp-primary);
  color: #fff !important;
  border-color: var(--hp-primary);
}
.ecs-hp-btn--primary:hover {
  background: #1e3a8a;
  border-color: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30,64,175,.35);
}

.ecs-hp-btn--accent {
  background: var(--hp-accent);
  color: #1a1a1a !important;
  border-color: var(--hp-accent);
}
.ecs-hp-btn--accent:hover {
  background: #d97706;
  border-color: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245,158,11,.35);
}

.ecs-hp-btn--ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,.55);
}
.ecs-hp-btn--ghost:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}

.ecs-hp-btn--outline {
  background: transparent;
  color: var(--hp-primary) !important;
  border-color: var(--hp-primary);
}
.ecs-hp-btn--outline:hover {
  background: var(--hp-primary);
  color: #fff !important;
}

.ecs-hp-btn--sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.ecs-hp-hero {
  position: relative;
  width: 100%;
  min-height: 92vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ecs-hp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    rgba(10,22,40,.93) 0%,
    rgba(10,22,40,.78) 45%,
    rgba(10,22,40,.32) 100%
  );
  z-index: 1;
}

/* Subtle animated grain texture */
.ecs-hp-hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .4;
  pointer-events: none;
}

.ecs-hp-hero__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
}

.ecs-hp-hero__content {
  padding: clamp(48px, 10vh, 120px) clamp(20px, 5vw, 80px) clamp(24px, 5vh, 60px);
  max-width: 760px;
  color: #fff;
}

/* ── Status badge ── */
.ecs-hp-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 22px;
}
.ecs-hp-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.ecs-hp-status--active {
  background: rgba(5,150,105,.18);
  color: #6ee7b7;
  border: 1px solid rgba(5,150,105,.35);
}
.ecs-hp-status--active::before {
  animation: ecs-hp-pulse 1.8s infinite;
}
.ecs-hp-status--upcoming {
  background: rgba(245,158,11,.18);
  color: #fcd34d;
  border: 1px solid rgba(245,158,11,.35);
}
.ecs-hp-status--past {
  background: rgba(100,116,139,.18);
  color: #94a3b8;
  border: 1px solid rgba(100,116,139,.35);
}

@keyframes ecs-hp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.85); }
}

/* ── Hero text ── */
.ecs-hp-hero__edition {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--hp-accent);
  margin-bottom: 12px;
}

.ecs-hp-hero__title {
  font-size: clamp(28px, 5.5vw, 58px) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  margin-bottom: 16px !important;
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.ecs-hp-hero__dates {
  font-size: 15px;
  color: rgba(255,255,255,.78);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ecs-hp-hero__dates i { color: var(--hp-accent); }

/* ── Countdown ── */
.ecs-hp-countdown {
  display: flex;
  gap: clamp(8px, 2vw, 14px);
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.ecs-hp-countdown__item {
  background: rgba(255,255,255,.11);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: clamp(12px,2vh,18px) clamp(14px,2.5vw,22px);
  min-width: 78px;
  text-align: center;
}
.ecs-hp-countdown__num {
  display: block;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ecs-hp-countdown__lbl {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.55);
  margin-top: 5px;
}

/* ── Hero action buttons ── */
.ecs-hp-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Scroll cue ── */
.ecs-hp-hero__scroll {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.5);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 20px;
  transition: color .2s;
  cursor: pointer;
  text-decoration: none !important;
  width: fit-content;
  margin-inline: auto;
}
.ecs-hp-hero__scroll:hover { color: rgba(255,255,255,.85); }
.ecs-hp-hero__scroll i {
  font-size: 18px;
  animation: ecs-hp-bounce 2.2s ease-in-out infinite;
}
@keyframes ecs-hp-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ═══════════════════════════════════
   STICKY QUICK-NAV BAR
═══════════════════════════════════ */
.ecs-hp-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--hp-navy);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 2px 16px rgba(0,0,0,.22);
}
.ecs-hp-nav__inner {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.ecs-hp-nav__inner::-webkit-scrollbar { display: none; }

.ecs-hp-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 17px 22px;
  color: rgba(255,255,255,.58) !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: var(--hp-trans);
  text-decoration: none !important;
}
.ecs-hp-nav__link:hover {
  color: #fff !important;
  border-bottom-color: rgba(245,158,11,.5);
}
.ecs-hp-nav__link--active,
.ecs-hp-nav__link.is-active {
  color: #fff !important;
  border-bottom-color: var(--hp-accent);
}
.ecs-hp-nav__link i { font-size: 13px; }

/* ═══════════════════════════════════
   SECTION LAYOUT
═══════════════════════════════════ */
.ecs-hp-section {
  padding-block: clamp(52px, 9vh, 96px);
  background: var(--hp-white);
}
.ecs-hp-section--alt {
  background: var(--hp-light);
}

.ecs-hp-section-hd {
  text-align: center;
  margin-bottom: 44px;
}
.ecs-hp-section-title {
  font-size: clamp(22px, 3vw, 34px) !important;
  font-weight: 800 !important;
  color: var(--hp-text) !important;
  margin: 0 0 8px !important;
}
.ecs-hp-section-title i { margin-right: 10px; color: var(--hp-primary); }
.ecs-hp-section-sub {
  color: var(--hp-muted);
  font-size: 16px;
  margin: 0;
}

/* Utility heading underline */
.ecs-hp-underline-heading {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--hp-text) !important;
  margin: 0 0 24px !important;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--hp-primary);
  display: inline-block;
}

/* ═══════════════════════════════════
   TAB NAVIGATION (Current competition)
═══════════════════════════════════ */
.ecs-hp-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--hp-border);
  padding-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.ecs-hp-tabs::-webkit-scrollbar { display: none; }

.ecs-hp-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  border-bottom: none;
  background: transparent;
  color: var(--hp-muted);
  transition: var(--hp-trans);
  white-space: nowrap;
  font-family: inherit;
  margin-bottom: -2px;
  position: relative;
}
.ecs-hp-tab:hover {
  color: var(--hp-primary);
  background: rgba(30,64,175,.05);
}
.ecs-hp-tab--active,
.ecs-hp-tab.ecs-hp-tab--active {
  color: var(--hp-primary) !important;
  background: var(--hp-white);
  border-color: var(--hp-border) var(--hp-border) transparent;
  box-shadow: 0 -2px 0 0 var(--hp-primary);
}

/* Tab panels */
.ecs-hp-panel {
  display: none;
  animation: ecs-hp-fadein .3s ease;
}
.ecs-hp-panel--active,
.ecs-hp-panel.ecs-hp-panel--active {
  display: block;
}
@keyframes ecs-hp-fadein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════
   OVERVIEW PANEL
═══════════════════════════════════ */
.ecs-hp-overview-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}
@media (max-width: 860px) {
  .ecs-hp-overview-grid { grid-template-columns: 1fr; }
}

.ecs-hp-overview-desc {
  font-size: 16px;
  line-height: 1.82;
  color: var(--hp-text);
}
.ecs-hp-overview-desc p { margin-bottom: 16px; }

/* Info cards (aside) */
.ecs-hp-infocard {
  background: var(--hp-light);
  border-radius: var(--hp-radius);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--hp-border);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ecs-hp-infocard__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--hp-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.ecs-hp-infocard__body h3 {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--hp-muted) !important;
  margin: 0 0 10px !important;
}
.ecs-hp-infocard__body dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 14px;
  margin: 0;
}
.ecs-hp-infocard__body dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-muted);
}
.ecs-hp-infocard__body dd {
  font-size: 13px;
  font-weight: 700;
  color: var(--hp-text);
  margin: 0;
}
.ecs-hp-infocard__body p {
  font-size: 13px;
  margin: 4px 0 0;
  color: var(--hp-text);
}

/* ═══════════════════════════════════
   ELIGIBILITY PANEL
═══════════════════════════════════ */
.ecs-hp-eligibility {
  font-size: 16px;
  line-height: 1.8;
  color: var(--hp-text);
}
.ecs-hp-eligibility p  { margin-bottom: 14px; }
.ecs-hp-eligibility ul { list-style: disc; padding-left: 24px; margin-bottom: 14px; }
.ecs-hp-eligibility li { margin-bottom: 6px; }

.ecs-hp-notice {
  background: #eff6ff;
  border-left: 4px solid var(--hp-primary);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  color: #1e40af;
  font-size: 15px;
  margin-bottom: 24px;
}

.ecs-hp-age-heading {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--hp-text) !important;
  margin: 24px 0 14px !important;
}
.ecs-hp-age-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ecs-hp-age-chip {
  background: var(--hp-primary);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
}
.ecs-hp-age-chip small {
  font-size: 11px;
  opacity: .75;
  font-weight: 400;
}

/* ═══════════════════════════════════
   PRIZES PANEL
═══════════════════════════════════ */
.ecs-hp-prizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.ecs-hp-prize {
  background: var(--hp-light);
  border-radius: var(--hp-radius);
  padding: 30px 24px 24px;
  border: 2px solid var(--hp-border);
  text-align: center;
  transition: var(--hp-trans);
  position: relative;
  overflow: hidden;
}
.ecs-hp-prize:hover {
  transform: translateY(-5px);
  box-shadow: var(--hp-shadow-lg);
}
.ecs-hp-prize--1st { border-top: 5px solid #f59e0b; }
.ecs-hp-prize--2nd { border-top: 5px solid #94a3b8; }
.ecs-hp-prize--3rd { border-top: 5px solid #c97430; }
.ecs-hp-prize--other { border-top: 5px solid var(--hp-primary); }

.ecs-hp-prize__trophy {
  font-size: 42px;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}
.ecs-hp-prize--1st .ecs-hp-prize__trophy { color: #f59e0b; }
.ecs-hp-prize--2nd .ecs-hp-prize__trophy { color: #94a3b8; }
.ecs-hp-prize--3rd .ecs-hp-prize__trophy { color: #c97430; }
.ecs-hp-prize--other .ecs-hp-prize__trophy { color: var(--hp-primary); }

.ecs-hp-prize__title {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--hp-text) !important;
  margin: 0 0 10px !important;
}
.ecs-hp-prize__desc {
  font-size: 14px;
  color: var(--hp-muted);
  margin: 0;
  line-height: 1.55;
}

/* Placeholder podium */
.ecs-hp-prizes-placeholder {
  text-align: center;
  padding: 48px 24px;
}
.ecs-hp-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 28px;
  height: 120px;
}
.ecs-hp-podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.ecs-hp-podium-block {
  width: 80px;
  border-radius: 8px 8px 0 0;
  background: var(--hp-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ecs-hp-podium-place--1st .ecs-hp-podium-block { height: 90px; background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.ecs-hp-podium-place--2nd .ecs-hp-podium-block { height: 65px; background: linear-gradient(135deg, #94a3b8, #cbd5e1); }
.ecs-hp-podium-place--3rd .ecs-hp-podium-block { height: 50px; background: linear-gradient(135deg, #c97430, #d97706); }
.ecs-hp-podium-block i   { font-size: 24px; color: rgba(255,255,255,.85); }
.ecs-hp-podium-lbl       { font-size: 12px; font-weight: 700; color: var(--hp-muted); margin-top: 6px; }

/* ═══════════════════════════════════
   JUDGING PANEL
═══════════════════════════════════ */
.ecs-hp-criteria {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}
.ecs-hp-criterion {
  background: var(--hp-light);
  border-radius: var(--hp-radius);
  padding: 18px 22px;
  border: 1px solid var(--hp-border);
}
.ecs-hp-criterion__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}
.ecs-hp-criterion__name {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--hp-text) !important;
  margin: 0 !important;
}
.ecs-hp-criterion__weight {
  background: var(--hp-primary);
  color: #fff !important;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.ecs-hp-criterion__desc {
  font-size: 13px;
  color: var(--hp-muted);
  margin: 0 0 11px;
  line-height: 1.5;
}
.ecs-hp-criterion__bar {
  height: 5px;
  background: var(--hp-border);
  border-radius: 3px;
  overflow: hidden;
}
.ecs-hp-criterion__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hp-primary) 0%, var(--hp-primary-lt) 100%);
  border-radius: 3px;
  transition: width 1.2s ease;
}

.ecs-hp-judges-wrap {
  padding-top: 28px;
  border-top: 2px solid var(--hp-border);
}
.ecs-hp-judges-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--hp-text) !important;
  margin: 0 0 18px !important;
}

/* ═══════════════════════════════════
   PAST COMPETITIONS — Stats row
═══════════════════════════════════ */
.ecs-hp-stats {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 72px);
  margin-bottom: 44px;
  flex-wrap: wrap;
  padding: 28px;
  background: var(--hp-white);
  border-radius: var(--hp-radius);
  box-shadow: var(--hp-shadow);
}
.ecs-hp-stat {
  text-align: center;
}
.ecs-hp-stat__num {
  display: block;
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  color: var(--hp-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ecs-hp-stat__lbl {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--hp-muted);
  margin-top: 7px;
}

/* Year filter */
.ecs-hp-year-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  align-items: center;
}
.ecs-hp-year-filter-lbl {
  font-size: 13px;
  font-weight: 700;
  color: var(--hp-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-right: 4px;
}
.ecs-hp-year-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--hp-border);
  background: var(--hp-white);
  color: var(--hp-muted);
  transition: var(--hp-trans);
  font-family: inherit;
}
.ecs-hp-year-btn:hover {
  border-color: var(--hp-primary);
  color: var(--hp-primary);
}
.ecs-hp-year-btn--active,
.ecs-hp-year-btn.ecs-hp-year-btn--active {
  background: var(--hp-primary);
  border-color: var(--hp-primary);
  color: #fff;
}

/* ─── Competition cards grid ─── */
.ecs-hp-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.ecs-hp-compcard {
  background: var(--hp-white);
  border-radius: var(--hp-radius);
  overflow: hidden;
  box-shadow: var(--hp-shadow);
  border: 1px solid var(--hp-border);
  transition: var(--hp-trans);
  display: flex;
  flex-direction: column;
}
.ecs-hp-compcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--hp-shadow-lg);
}
.ecs-hp-compcard[data-hidden="true"] {
  display: none;
}
.ecs-hp-compcard__img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: var(--hp-light);
}
.ecs-hp-compcard__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 60%);
}
.ecs-hp-compcard__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,.55);
  color: #fff !important;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  backdrop-filter: blur(4px);
}
.ecs-hp-compcard__year {
  position: absolute;
  bottom: 12px;
  left: 14px;
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 700;
}
.ecs-hp-compcard__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ecs-hp-compcard__title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--hp-text) !important;
  margin: 0 0 8px !important;
  line-height: 1.35;
}
.ecs-hp-compcard__meta {
  font-size: 12px;
  color: var(--hp-muted);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ecs-hp-compcard__meta i { color: var(--hp-primary); }
.ecs-hp-compcard__excerpt {
  font-size: 13px;
  color: var(--hp-muted);
  margin: 0 0 16px;
  line-height: 1.55;
  flex: 1;
}
.ecs-hp-compcard__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--hp-border);
  margin-top: auto;
}
.ecs-hp-compcard__entries {
  font-size: 12px;
  color: var(--hp-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ecs-hp-compcard__entries i { color: var(--hp-primary); }
.ecs-hp-compcard__pending {
  font-size: 12px;
  color: var(--hp-muted);
  font-style: italic;
}

/* Empty state */
.ecs-hp-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--hp-muted);
  font-size: 15px;
}
.ecs-hp-empty i {
  font-size: 40px;
  opacity: .3;
  display: block;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════
   RESOURCES SECTION
═══════════════════════════════════ */
.ecs-hp-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.ecs-hp-rescard,
a.ecs-hp-rescard {
  background: var(--hp-white);
  border-radius: var(--hp-radius);
  padding: 28px 24px;
  border: 1px solid var(--hp-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--hp-trans);
  text-decoration: none !important;
  box-shadow: var(--hp-shadow);
  color: var(--hp-text) !important;
}
a.ecs-hp-rescard:hover {
  border-color: var(--hp-primary);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,.11);
}

.ecs-hp-rescard__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--hp-primary) 0%, var(--hp-primary-lt) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.ecs-hp-rescard__title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--hp-text) !important;
  margin: 0 !important;
}
.ecs-hp-rescard__desc {
  font-size: 13px;
  color: var(--hp-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.ecs-hp-rescard__arrow {
  color: var(--hp-primary);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* FAQ inside resource card */
.ecs-hp-faq { margin-top: 4px; }
.ecs-hp-faq-item {
  border-top: 1px solid var(--hp-border);
  padding: 10px 0 6px;
}
.ecs-hp-faq-q {
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.ecs-hp-faq-q::after {
  content: '+';
  font-size: 18px;
  color: var(--hp-primary);
  line-height: 1;
  flex-shrink: 0;
}
.ecs-hp-faq-item.ecs-hp-open .ecs-hp-faq-q::after { content: '−'; }
.ecs-hp-faq-a {
  font-size: 13px;
  color: var(--hp-muted);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding-top: 0;
  line-height: 1.5;
}
.ecs-hp-faq-item.ecs-hp-open .ecs-hp-faq-a {
  max-height: 200px;
  padding-top: 7px;
}

/* ═══════════════════════════════════
   SOCIAL SHARE
═══════════════════════════════════ */
.ecs-hp-share {
  background: var(--hp-navy);
  padding: 28px 0;
}
.ecs-hp-share .ecs-hp-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ecs-hp-share__text {
  color: rgba(255,255,255,.65);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.ecs-hp-share__btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ecs-hp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--hp-trans);
  text-decoration: none !important;
  line-height: 1;
}
.ecs-hp-share-btn--fb  { background: #1877f2; color: #fff !important; }
.ecs-hp-share-btn--fb:hover  { background: #1565c0; }
.ecs-hp-share-btn--tw  { background: #1da1f2; color: #fff !important; }
.ecs-hp-share-btn--tw:hover  { background: #0d8fd4; }
.ecs-hp-share-btn--em  { background: #ea4335; color: #fff !important; }
.ecs-hp-share-btn--em:hover  { background: #c62828; }

/* ═══════════════════════════════════
   UTILITY — info message
═══════════════════════════════════ */
.ecs-hp-info-msg {
  background: #eff6ff;
  border-left: 4px solid var(--hp-primary);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  color: #1e40af;
  font-size: 14px;
  line-height: 1.55;
}

/* Default criteria list (fallback) */
.ecs-hp-default-criteria {
  margin-top: 20px;
}
.ecs-hp-default-criteria h4 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--hp-text) !important;
  margin: 0 0 12px !important;
}
.ecs-hp-default-criteria ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ecs-hp-default-criteria li {
  padding: 9px 14px 9px 36px;
  background: var(--hp-light);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--hp-text);
  position: relative;
}
.ecs-hp-default-criteria li::before {
  content: '✓';
  position: absolute;
  left: 14px;
  color: var(--hp-primary);
  font-weight: 700;
}

/* ═══════════════════════════════════
   RESPONSIVE — mobile
═══════════════════════════════════ */
@media (max-width: 640px) {
  .ecs-hp-hero { min-height: 100svh; }
  .ecs-hp-hero__content { padding: 48px 20px 24px; }

  .ecs-hp-countdown { gap: 8px; }
  .ecs-hp-countdown__item { min-width: 62px; padding: 10px 12px; }
  .ecs-hp-countdown__num  { font-size: 24px; }

  .ecs-hp-hero__actions { flex-direction: column; gap: 10px; }
  .ecs-hp-hero__actions .ecs-hp-btn { justify-content: center; }

  .ecs-hp-tabs { gap: 6px; }
  .ecs-hp-tab  { padding: 10px 14px; font-size: 13px; }

  .ecs-hp-stats { gap: 20px; }

  .ecs-hp-cards-grid      { grid-template-columns: 1fr; }
  .ecs-hp-resources-grid  { grid-template-columns: 1fr; }
  .ecs-hp-prizes-grid     { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .ecs-hp-nav__link { padding: 14px 14px; font-size: 12px; }
}

/* ═══════════════════════════════════
   FLYER IMAGE THUMBNAIL (aside)
═══════════════════════════════════ */
.ecs-hp-flyer-wrap {
  position: relative;
  margin-bottom: 16px;
  border-radius: var(--hp-radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--hp-shadow);
  border: 2px solid var(--hp-border);
  transition: var(--hp-trans);
  display: block;
  outline: none;
}
.ecs-hp-flyer-wrap:hover,
.ecs-hp-flyer-wrap:focus {
  border-color: var(--hp-primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,.25), var(--hp-shadow-lg);
}
.ecs-hp-flyer-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .35s ease;
}
.ecs-hp-flyer-wrap:hover .ecs-hp-flyer-img,
.ecs-hp-flyer-wrap:focus .ecs-hp-flyer-img {
  transform: scale(1.04);
}
.ecs-hp-flyer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,22,40,.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  opacity: 0;
  transition: opacity .25s ease;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
}
.ecs-hp-flyer-overlay i { font-size: 26px; }
.ecs-hp-flyer-wrap:hover .ecs-hp-flyer-overlay,
.ecs-hp-flyer-wrap:focus .ecs-hp-flyer-overlay {
  opacity: 1;
}

/* ═══════════════════════════════════
   LIGHTBOX
═══════════════════════════════════ */
.ecs-hp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.ecs-hp-lightbox--open {
  pointer-events: all;
  opacity: 1;
}
.ecs-hp-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.9);
  cursor: zoom-out;
}
.ecs-hp-lightbox__inner {
  position: relative;
  z-index: 2;
  max-width: min(92vw, 920px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ecs-hp-lightbox__img {
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 32px 80px rgba(0,0,0,.7);
  object-fit: contain;
  transform: scale(.88);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  display: block;
}
.ecs-hp-lightbox--open .ecs-hp-lightbox__img {
  transform: scale(1);
}
.ecs-hp-lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  line-height: 1;
  padding: 0;
  font-family: inherit;
}
.ecs-hp-lightbox__close:hover {
  background: rgba(255,255,255,.28);
  transform: rotate(90deg);
}

/* Prevent body scroll when lightbox is open */
body.ecs-hp-noscroll {
  overflow: hidden !important;
}
