/* ============================================================
   Hero Connection Enhancement
   Goal: dissolve the visible boundary between the left text and
   right symbol so they read as ONE composition, not two panels.
   ============================================================ */

/* The new transparent ribbon image carries the visual weight.
   We remove the original drop-shadow box, soften edges via mask,
   and add a colour bridge that ties text and ribbon together.   */

.hero {
  /* allow children to overflow side bleed without breaking layout */
  overflow: hidden;
}

/* ---- Colour bridge: a soft rainbow glow that lives BETWEEN
        the text column and the ribbon, visually stitching them. ---- */
.hero-bridge {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--bridge-opacity, 1);
}
.hero-bridge::before,
.hero-bridge::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.hero-bridge::before {
  /* warm glow nearer the text column */
  top: 30%;
  left: 25%;
  width: 55vw;
  height: 55vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle,
    rgba(255, 78, 142, 0.18) 0%,
    rgba(255, 140, 66, 0.10) 35%,
    transparent 65%);
}
.hero-bridge::after {
  /* cool glow nearer the ribbon */
  top: 35%;
  right: 5%;
  width: 60vw;
  height: 60vw;
  max-width: 1000px; max-height: 1000px;
  background: radial-gradient(circle,
    rgba(77, 150, 255, 0.20) 0%,
    rgba(157, 78, 221, 0.12) 40%,
    transparent 70%);
}

/* ---- Symbol container: override the original positioning ---- */
.hero-symbol {
  position: absolute;
  inset: 0;
  width: auto;            /* override original 65% */
  max-width: none;
  top: 0; right: 0;
  transform: none;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}
.hero-symbol img {
  position: absolute;
  display: block;
  filter: none;           /* drop the old drop-shadow */
  width: auto;
  height: auto;
  transition: opacity .4s var(--easing);
}

/* ===== MODE: EMBRACE (default) =================================
   Clean transparent-PNG ribbon — no CSS mask, no algorithmic edge
   processing. Shows the whole symbol intact. */
.hero[data-hero-style="embrace"] .hero-symbol img,
.hero:not([data-hero-style]) .hero-symbol img {
  top: 50%;
  right: 2%;
  width: 54%;
  max-width: 880px;
  transform: translateY(-50%);
  -webkit-mask-image: none;
          mask-image: none;
  filter: saturate(1.05) drop-shadow(0 30px 80px rgba(120, 80, 200, 0.28));
  opacity: 1;
}
@media (max-width: 1024px) {
  .hero[data-hero-style="embrace"] .hero-symbol img,
  .hero:not([data-hero-style]) .hero-symbol img {
    width: 60%; right: 0%;
  }
}
@media (max-width: 720px) {
  .hero[data-hero-style="embrace"] .hero-symbol img,
  .hero:not([data-hero-style]) .hero-symbol img {
    width: 85%; right: 50%; transform: translate(50%, -50%); top: auto; bottom: -15%;
    opacity: 0.5;
  }
}

/* ===== MODE: SWEEP ============================================
   Ribbon is tilted, larger, flowing diagonally. Its lower-left
   curve sweeps under the title — a single gesture across the hero. */
.hero[data-hero-style="sweep"] .hero-symbol img {
  top: 56%;
  right: 0%;
  width: 82%;
  max-width: 1300px;
  transform: translateY(-50%) rotate(-6deg);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 62% 50%,
    #000 38%, rgba(0,0,0,0.7) 62%, transparent 90%);
          mask-image: radial-gradient(ellipse 90% 75% at 62% 50%,
    #000 38%, rgba(0,0,0,0.7) 62%, transparent 90%);
  filter: saturate(1.08) drop-shadow(0 30px 80px rgba(77, 150, 255, 0.25));
  opacity: 0.95;
}
.hero[data-hero-style="sweep"] .hero-bridge::before {
  top: 50%;
  left: 15%;
  width: 60vw;
  background: radial-gradient(circle,
    rgba(255, 217, 61, 0.14) 0%,
    rgba(255, 78, 142, 0.10) 40%,
    transparent 70%);
}

/* ===== MODE: ANCHOR ==========================================
   Closer to the original two-column feel but with the boundary
   dissolved — ribbon stays right, bridge does the stitching. */
.hero[data-hero-style="anchor"] .hero-symbol img {
  top: 50%;
  right: 2%;
  width: 52%;
  max-width: 820px;
  transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(95deg,
    transparent 0%,
    rgba(0,0,0,0.45) 14%,
    #000 30%);
          mask-image: linear-gradient(95deg,
    transparent 0%,
    rgba(0,0,0,0.45) 14%,
    #000 30%);
  filter: saturate(1.1) drop-shadow(0 20px 60px rgba(77, 150, 255, 0.30));
}
.hero[data-hero-style="anchor"] .hero-bridge::before {
  left: 35%;
}

/* ---- Text-side scrim: removed since the new symbol has true alpha and
        no longer crosses into the text column. */
.hero::before {
  display: none;
}

/* Make sure hero-inner content sits above everything */
.hero-inner { z-index: 3; position: relative; }

/* ---- Hero brand title: “World FoodTech / ConfEx” as the centrepiece ---- */
.hero-title.hero-title-brand {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  max-width: 52%;
}
.hero-title-brand .line {
  display: block;
  white-space: nowrap;
  color: #fff;
}
.hero-title-brand .accent-yellow {
  color: #FFD93D;
  background: none;
  -webkit-text-fill-color: #FFD93D;
}
@media (max-width: 1024px) {
  .hero-title.hero-title-brand { max-width: 70%; }
}
@media (max-width: 720px) {
  .hero-title.hero-title-brand {
    font-size: clamp(40px, 11vw, 72px);
    max-width: 100%;
  }
}

/* Ensure hero-title is always visible — the entrance animation can get stuck
   in capture/sandboxed contexts, so we make the static state the visible one. */
.hero-title .line {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
.hero-countdown {
  opacity: 1 !important;
  animation: none !important;
}

/* Disable the old conflicting media-query overrides for hero-symbol
   sizing — we redefine responsive behaviour below. */
@media (max-width: 1200px) {
  .hero[data-hero-style="embrace"] .hero-symbol img,
  .hero:not([data-hero-style]) .hero-symbol img {
    right: -20%; width: 100%;
  }
  .hero[data-hero-style="anchor"] .hero-symbol img {
    right: -14%; width: 70%; opacity: 0.85;
  }
}
@media (max-width: 1024px) {
  .hero-symbol img { opacity: 0.55 !important; }
  .hero::before { opacity: 0.95; }
}
@media (max-width: 768px) {
  .hero[data-hero-style="embrace"] .hero-symbol img,
  .hero:not([data-hero-style]) .hero-symbol img,
  .hero[data-hero-style="sweep"] .hero-symbol img,
  .hero[data-hero-style="anchor"] .hero-symbol img {
    top: auto;
    bottom: -10%;
    right: -20%;
    width: 140%;
    transform: none;
    opacity: 0.30 !important;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%);
  }
  .hero-bridge { opacity: 0.6; }
}

/* ============================================================
   Organizer logos — flexible logo bar.
   Logos auto-shrink to fit a fixed-height row regardless of count.
   Add/remove logos via data/site-config.json "hosts" array.
   ============================================================ */
.section-organizer {
  padding: clamp(48px, 7vw, 80px) 0;
}
.section-organizer .section-head {
  margin-bottom: 32px;
}
/* 메인 페이지도 ABOUT 페이지와 동일한 카드형 레이아웃 사용
   (기존 row-only 오버라이드 제거 — style.css의 기본 .organizer-grid/.org-card 스타일 적용) */
.section-organizer .org-card:hover .org-mark-logo img {
  filter: brightness(1.1) drop-shadow(0 8px 24px rgba(125, 211, 216, 0.35));
}

/* ============================================================
   Sponsors 세션 — 구글 시트의 sponsors 탭에서 자동 렌더링.
   데이터가 없으면 JS가 섬션 자체를 숨깁.
   ============================================================ */
.section-sponsors {
  padding: clamp(40px, 6vw, 72px) 0;
  background: var(--navy-base);
  border-top: 1px solid rgba(125, 211, 216, 0.08);
}
.section-sponsors .section-head { margin-bottom: 28px; text-align: center; }
.section-sponsors .section-head::before { display: none; }
.section-sponsors .section-title { font-size: clamp(22px, 2.6vw, 32px); }
.section-sponsors .sponsors-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 32px) clamp(16px, 3vw, 48px);
  padding: 0 16px;
}
.sponsor-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
  transition: transform .25s var(--easing), opacity .25s var(--easing);
  opacity: 0.85;
}
.sponsor-card:hover { transform: translateY(-2px); opacity: 1; }
.sponsor-mark { height: 100%; display: flex; align-items: center; }
.sponsor-mark img {
  max-height: 100%;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.7);    /* unify mixed-colour logos to mono white */
  transition: filter .25s var(--easing);
}
.sponsor-card:hover .sponsor-mark img { filter: brightness(0) invert(1) opacity(1); }
.sponsor-mark[data-tier="gold"] img { max-width: 220px; }
.sponsor-mark[data-tier="silver"] img { max-width: 180px; }
.sponsor-mark[data-tier="bronze"] img { max-width: 140px; }
@media (max-width: 720px) {
  .sponsor-card { height: 44px; }
  .sponsor-mark img { max-width: 120px; }
}

/* Header & footer brand wordmark sit on transparent header / dark footer —
   the now-transparent PNG just needs no extra background. */
.brand-mark-img img,
.footer-logo-img img {
  background: transparent;
}

/* ============================================================
   Program section — restructured to two venue-grouped blocks.
   Hall 7-8 (ceremony + awards) vs 3F-4F (conference tracks).
   ============================================================ */
.section-program .section-sub {
  margin-top: 16px;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.program-grid-venues {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 880px) {
  .program-grid-venues { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .prog-venue-tag {
    flex-wrap: wrap;
    white-space: normal;
    border-radius: 14px;
  }
  .prog-venue-tag em {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    flex-basis: 100%;
  }
}

.prog-venue {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 36px 32px;
  overflow: hidden;
  isolation: isolate;
}
.prog-venue::before {
  content: '';
  position: absolute;
  top: -40%; right: -30%;
  width: 70%; height: 140%;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  z-index: -1;
  transition: opacity .35s var(--easing), transform .35s var(--easing);
}
.prog-venue:hover::before { opacity: 0.55; transform: scale(1.05); }

/* Hall 7-8 — warm/award energy */
.prog-venue-stage::before {
  background: radial-gradient(circle, #FF4E8E 0%, #FFD93D 50%, transparent 75%);
}
/* 3F-4F — cool/scholarly energy */
.prog-venue-conf::before {
  background: radial-gradient(circle, #4D96FF 0%, #9D4EDD 55%, transparent 78%);
}

.prog-venue-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(125, 211, 216, 0.08);
  border: 1px solid rgba(125, 211, 216, 0.18);
  border-radius: 100px;
  font-size: 12px;
  color: var(--cyan-soft);
  margin-bottom: 24px;
  align-self: flex-start;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  max-width: 100%;
}
.prog-venue-tag svg { flex-shrink: 0; opacity: 0.7; }
.prog-venue-tag span {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}
.prog-venue-tag em {
  font-style: normal;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding-left: 8px;
  border-left: 1px solid rgba(125, 211, 216, 0.25);
  margin-left: 2px;
}

.prog-venue .prog-title {
  font-size: 32px;
  margin-bottom: 8px;
}
.prog-venue .prog-en {
  font-size: 15px;
  color: rgba(255,255,255, 0.72);
  letter-spacing: -0.005em;
  margin-bottom: 28px;
}

.prog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.prog-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  line-height: 1.5;
}
.pl-date {
  flex-shrink: 0;
  width: 58px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 13px;
  color: var(--cyan-soft);
  letter-spacing: -0.005em;
}
.pl-name {
  flex: 1;
  color: rgba(255, 255, 255, 0.85);
}
.pl-name strong {
  color: #fff;
  font-weight: 700;
}
.pl-name em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-left: 4px;
}

/* Track badges */
.track-badge {
  flex-shrink: 0;
  display: inline-block;
  width: 80px;
  padding: 5px 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 6px;
  background: var(--track-bg);
  color: var(--track-fg);
  border: 1px solid var(--track-border);
}
.track-badge[data-t="keynote"] {
  --track-bg: rgba(155, 122, 201, 0.14);
  --track-fg: #C9B0E8;
  --track-border: rgba(155, 122, 201, 0.4);
}
.track-badge[data-t="world"] {
  --track-bg: rgba(58, 111, 181, 0.18);
  --track-fg: #8BB3E5;
  --track-border: rgba(58, 111, 181, 0.5);
}
.track-badge[data-t="special"] {
  --track-bg: rgba(77, 150, 255, 0.14);
  --track-fg: #93BEFF;
  --track-border: rgba(77, 150, 255, 0.4);
}
.track-badge[data-t="public"] {
  --track-bg: rgba(107, 203, 119, 0.14);
  --track-fg: #A0DDA9;
  --track-border: rgba(107, 203, 119, 0.4);
}

.prog-foot {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 28px;
  letter-spacing: -0.005em;
}

.prog-venue .prog-cta {
  align-self: flex-start;
  position: relative;
  padding-right: 28px;
}
