/* ============================================================
   ICBLL-2026 — Soothing Academic Eye-Comfort Design System
   Designed for Maximum Visual Comfort, Zero Eye-Strain, & Warm Elegance
   
   Color Palette (Soft Soothing Academic Tokens):
   ─────────────────────────────────────────────────────────────
   PRIMARY_GREEN    #0d6e53       (Soothing Deep Emerald Green — Soft on eyes)
   HOVER_GREEN      #095641       (Calm Deep Forest Green)
   LIGHT_TINT       #f0fdf4       (Soft Sage Mint Tint for Badges & Highlights)
   TEXT_PRIMARY     #1e293b       (Deep Soft Slate for Headings)
   TEXT_BODY        #334155       (Comfortable Soothing Slate for Body Copy)
   TEXT_MUTED       #64748b       (Gentle Secondary Slate)
   BACKGROUND_CANVAS#ffffff       (Clean Crisp White)
   BACKGROUND_SMOKE #f8fafc       (Soft Soothing Off-White Canvas)
   ACCENT_GOLD      #d97706       (Warm Amber Accent)
   BORDER_SOFT      #e2e8f0       (Feather-light Subtle Border)
   ─────────────────────────────────────────────────────────────
============================================================ */

:root {
  --forest:        #095641;
  --forest-dark:   #064e3b;
  --forest-bright: #0d6e53;     /* Soothing Softer Deep Emerald */
  --forest-light:  #f0fdf4;     /* Soft Soothing Mint Tint */
  --navy:          #1e293b;
  --navy-dark:     #0f172a;
  --gold:          #d97706;     /* Warm Amber Accent */
  --gold-lt:       #fffbeb;
  --paper:         #ffffff;
  --smoke:         #f8fafc;
  --ink:           #1e293b;
  --ink-light:     #334155;     /* Smooth, comfortable body text */
  --ink-muted:     #64748b;
  --line:          #e2e8f0;     /* Feather-light soft border */
  --white:         #ffffff;
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.05);
  --shadow-md: 0 4px 16px rgba(15,23,42,0.06);
  --shadow-lg: 0 10px 30px rgba(15,23,42,0.08);
  --shadow-xl: 0 20px 40px rgba(15,23,42,0.10);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
}

/* ── Base Reset & Gentle Eye-Comfort Typography ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Bilingual i18n Toggle System ── */
/* Base State (Bengali Active by default) */
.lang-en { display: none !important; }

/* Active State (English Active) */
body.lang-en-active .lang-bn { display: none !important; }
body.lang-en-active .lang-en { display: inline-block !important; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Inter", "Noto Sans Bengali", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink-light);
  line-height: 1.72;
  font-weight: 450;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Display / Serif Font ── */
.font-display {
  font-family: "Merriweather", "Noto Serif Bengali", Georgia, serif;
}

/* ── Section Typography Pattern ── */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-bright);
}

.section-heading {
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--navy);
  font-weight: 700;
}

.section-rule {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--forest-bright);
  border-radius: 2px;
  margin-top: 0.75rem;
}

.section-rule.centered {
  margin-left: auto;
  margin-right: auto;
}

/* ── Accessibility ── */
.skip-link {
  position: absolute;
  top: -120px;
  left: 1.5rem;
  z-index: 200;
  background: var(--forest-bright);
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: 0.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ── Navigation Shell — Pure White & Soothing Soft Blur ── */
.nav-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}

.nav-shell.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

/* Nav links on White Header */
.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 0.2rem;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--forest-bright);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover { color: var(--forest-bright); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--forest-bright); font-weight: 700; }
.nav-link.active::after { transform: scaleX(1); }

/* Language Toggle on White Header */
.lang-switch { display: flex; border-radius: 999px; border: 1px solid var(--line); background: var(--smoke); padding: 0.2rem; gap: 0.1rem; }
.lang-btn { border-radius: 999px; padding: 0.3rem 0.875rem; font-size: 0.75rem; font-weight: 700; color: #475569; transition: all 0.2s ease; border: none; cursor: pointer; background: transparent; }
.lang-btn.is-active { background: var(--forest-bright); color: #ffffff; font-weight: 700; box-shadow: 0 2px 8px rgba(13,110,83,0.25); }

/* Primary CTA Button — Soothing Deep Emerald (#0d6e53) */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--forest-bright); color: #ffffff;
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  font-size: 0.8125rem; font-weight: 600;
  transition: all 0.2s ease;
  border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(13,110,83,0.22);
}
.btn-primary:hover { background: var(--forest); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(13,110,83,0.30); }

/* ── Notice/Announcement Bar — Soft Deep Slate ── */
.notice-bar {
  background: #0f172a;
  border-bottom: 2px solid var(--gold);
}

.notice-bar span, .notice-bar div {
  color: #f8fafc;
  font-weight: 600;
}

/* ── HERO — Soft Canvas & Soothing Ambient Glow ── */
.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg-texture {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(13, 110, 83, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 10% 80%, rgba(217, 119, 6, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Hero Stat Cards */
.hero-stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hero-stat-num {
  font-family: "Playfair Display", serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--forest-bright);
  line-height: 1;
}
.hero-stat-lbl {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #475569;
  margin-top: 0.35rem;
}

/* Countdown cells */
.cd-cell {
  background: var(--smoke);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  text-align: center;
}
.cd-cell.green { background: var(--forest-light); border-color: rgba(13,110,83,0.25); }
.cd-num { font-size: 1.625rem; font-weight: 800; color: var(--forest-bright); line-height: 1; display: block; }
.cd-lbl { font-size: 0.625rem; font-weight: 600; color: #64748b; display: block; margin-top: 0.2rem; }

/* Hero Info Chips */
.info-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.8125rem; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* ── Panel & Track Cards ── */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.track-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  min-height: 200px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.track-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--forest-bright);
}
.track-card:nth-child(3n+2)::before { background: var(--gold); }
.track-card:nth-child(3n+3)::before { background: #3b82f6; }
.track-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ── Speaker Card ── */
.speaker-card {
  text-align: center;
  cursor: pointer;
}
.speaker-avatar {
  width: 90px; height: 90px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, var(--forest-light), #f0fdf4);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  overflow: hidden;
  color: var(--forest-bright);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.speaker-card:hover .speaker-avatar {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}

/* ── Date Cards ── */
.date-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--forest-bright);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}
.date-card:nth-child(even) { border-top-color: var(--gold); }
.date-card:hover { box-shadow: var(--shadow-md); }

/* ── Schedule Event Row ── */
.schedule-row {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.125rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}
.schedule-row:hover { box-shadow: var(--shadow-md); }
.schedule-time { 
  flex-shrink: 0;
  font-size: 0.75rem; font-weight: 700;
  color: var(--forest-bright);
  background: var(--forest-light);
  border: 1px solid rgba(13,110,83,0.20);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
}

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: 0.25rem; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-keynote { background: #f0fdf4; color: #0d6e53; border: 1px solid #bbf7d0; }
.badge-paper   { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.badge-cultural{ background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-break   { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }
.badge-plenary { background: #f0fdf4; color: #0d6e53; border: 1px solid #bbf7d0; }

/* Committee Rows */
.committee-member {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.committee-member:last-child { border-bottom: none; }

/* Trust Strip — Soothing Dark Slate (#0f172a) */
.trust-strip {
  background: #0f172a;
  color: #f8fafc;
}

.trust-strip h2 {
  color: #ffffff;
  font-weight: 700;
}

.trust-strip p {
  color: #cbd5e1;
  font-weight: 500;
}

/* Contact & Download Cards */
.resource-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}
.resource-card:hover { box-shadow: var(--shadow-md); }

.resource-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* CTA Buttons — Soothing High Legibility Colors */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-lg { padding: 0.875rem 2rem; font-size: 0.9375rem; }
.btn-md { padding: 0.625rem 1.5rem; font-size: 0.8125rem; }
.btn-sm { padding: 0.375rem 1rem; font-size: 0.75rem; }

.btn-green {
  background: var(--forest-bright) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(13,110,83,0.22);
}
.btn-green:hover {
  background: var(--forest) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13,110,83,0.30);
}

.btn-navy {
  background: var(--navy) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(30,41,59,0.20);
}
.btn-navy:hover {
  background: var(--navy-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(30,41,59,0.30);
}

.btn-gold {
  background: var(--gold) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(217,119,6,0.22);
}
.btn-gold:hover {
  background: #b45309 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217,119,6,0.30);
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { background: var(--smoke); border-color: #cbd5e1; }

/* Day Switcher Tabs */
.sched-tab {
  border-radius: 999px;
  padding: 0.6rem 1.75rem;
  font-size: 0.8125rem; font-weight: 600;
  border: 1px solid var(--line);
  background: var(--white);
  color: #334155;
  transition: all 0.2s ease;
  cursor: pointer;
}
.sched-tab.active {
  background: var(--forest-bright) !important;
  color: #ffffff !important;
  border-color: var(--forest-bright);
  box-shadow: 0 4px 14px rgba(13,110,83,0.25);
}
.sched-tab:hover:not(.active) { border-color: var(--forest-bright); color: var(--forest-bright); }

/* Section spacing */
.section-py { padding-top: 4.5rem; padding-bottom: 4.5rem; }
@media (max-width: 640px) { .section-py { padding-top: 3rem; padding-bottom: 3rem; } }

/* Subtle decorative grid */
.subtle-grid {
  background-image:
    linear-gradient(rgba(15,23,42,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Quote block */
.pull-quote {
  border-left: 3.5px solid var(--forest-bright);
  background: var(--smoke);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Modal styles */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(15,23,42,0.50);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%; max-width: 38rem;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* Scroll Reveal */
.reveal {
  opacity: 1;
  transform: none;
}

/* Hero Rise Animations */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.h-rise { animation: hero-rise 0.65s cubic-bezier(0.16,1,0.3,1) both; }
.h-rise.d1 { animation-delay: 0.06s; }
.h-rise.d2 { animation-delay: 0.14s; }
.h-rise.d3 { animation-delay: 0.22s; }
.h-rise.d4 { animation-delay: 0.32s; }
.h-rise.d5 { animation-delay: 0.42s; }

/* Sticky Deadline Bar — Soft Deep Slate */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 40;
  background: #0f172a;
  border-top: 3px solid var(--forest-bright);
  color: #f8fafc;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar span, .sticky-bar strong { color: #f8fafc; font-weight: 600; }


/* Focus visible */
:focus-visible {
  outline: 2px solid var(--forest-bright);
  outline-offset: 3px;
}

/* Ticker Scroll Animation */
.ticker-wrap {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-track {
  display: inline-flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 38s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

/* ── Live Visual Inline Editor Styles ── */
[contenteditable="true"] {
  outline: none;
  cursor: text;
  transition: all 0.2s ease;
  border-radius: 4px;
}
[contenteditable="true"]:hover {
  box-shadow: 0 0 0 2px rgba(13,110,83,0.3);
  background-color: rgba(13,110,83,0.05);
}
[contenteditable="true"]:focus {
  box-shadow: 0 0 0 2px var(--forest-bright);
  background-color: rgba(255,255,255,0.9);
}

#live-save-btn {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  background: var(--forest-bright);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(13,110,83,0.4);
  border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#live-save-btn.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
#live-save-btn:hover {
  background: var(--forest-dark);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 12px 30px rgba(13,110,83,0.5);
}
#live-save-btn .lucide-loader-2 {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
