:root{
  --bg:#203255;
  --card:#14203a;
  --text:#e6e9f2;
  --muted:#aab3c5;
  --brand:#4cc3ff;
  --brand2:#7c5cff;
  --border:rgba(255,255,255,.08);
  --shadow:0 18px 60px rgba(0,0,0,.45);
  --radius:16px;
  --max:1120px;
}

/* =========================
   Base
   ========================= */
*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(76,195,255,.22), transparent 55%),
    radial-gradient(900px 700px at 90% 10%, rgba(124,92,255,.22), transparent 60%),
    var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{color:inherit;text-decoration:none}
a:hover{color:var(--brand)}

.container{max-width:var(--max);margin:0 auto;padding:0 18px}
.section{padding:28px 0}

h2{
  font-size:25px;
  line-height:1.08;
  margin:0 0 12px;
  letter-spacing:-.6px;
}

h2.section-title,
h3.section-title{
  margin:0 0 14px;
  font-size:22px;
  line-height:1.18;
  letter-spacing:-.02em;
  color:#fff;
}

.lead{
  color:var(--muted);
  font-size:16px;
  margin:0 0 20px;
}

.kicker{color:var(--muted);font-size:14px;margin:0 0 10px}
small.note{display:block;margin-top:10px;color:var(--muted)}

.section p a,
.section li a,
.section h1 a,
.section h2 a,
.section h3 a,
.section h4 a,
.section dd a,
.section td a,
.section .lead a{
  color:var(--brand);
  text-decoration:underline;
  text-decoration-thickness:1.5px;
  text-underline-offset:3px;
  text-decoration-color:rgba(76,195,255,.75);
  transition:color .2s ease, text-decoration-color .2s ease, opacity .2s ease;
}

.section p a:hover,
.section li a:hover,
.section h1 a:hover,
.section h2 a:hover,
.section h3 a:hover,
.section h4 a:hover,
.section dd a:hover,
.section td a:hover,
.section .lead a:hover{
  color:#8fdcff;
  text-decoration-color:#8fdcff;
}

.section p a:focus-visible,
.section li a:focus-visible,
.section dd a:focus-visible,
.section td a:focus-visible,
.section .lead a:focus-visible{
  outline:2px solid rgba(76,195,255,.45);
  outline-offset:2px;
  border-radius:4px;
}

/* =========================
   Generic layout
   ========================= */
.hero{padding:54px 0 22px}
.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;align-items:start}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:12px}
.hr{height:1px;background:var(--border);margin:18px 0}

.badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.badge{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:12px;
}

.pill{
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  color:var(--muted);
  font-size:12px;
}

/* =========================
   Cards and content blocks
   ========================= */
.card{
  background:rgba(42 69 132 / 62%);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
  position:relative;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card h3{margin:0 0 10px;font-size:18px}
.card p{margin:0;color:var(--muted)}

.card h3 a{
  text-decoration:none;
  color:var(--text);
}

.card h3 a:hover{color:var(--brand)}

.content-card,
.card.content-card,
.card.card-content,
.detail-card,
.text-card{
  background:rgba(42 69 132 / 42%);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:0 10px 32px rgba(0,0,0,.22);
}

.content-card > :first-child,
.detail-card > :first-child,
.text-card > :first-child{margin-top:0}

.content-card > :last-child,
.detail-card > :last-child,
.text-card > :last-child{margin-bottom:0}

.section .container > p,
.section .card > p,
.section .card li,
.section .card dd,
.section .card dt,
.section .card td,
.section .card th{
  line-height:1.65;
}

.section .card p + p,
.section .card p + ul,
.section .card p + ol,
.section .card ul + p,
.section .card ol + p{
  margin-top:12px;
}

.card.card-accent h3{color:#fff}

.card.card-accent:hover::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:radial-gradient(600px 200px at 50% 0%, rgba(124,92,255,.15), transparent 70%);
  pointer-events:none;
}

a.card.card-link{
  display:block;
  color:inherit;
  text-decoration:none;
  cursor:pointer;
}

a.card.card-link h3{color:#fff}
a.card.card-link p{color:var(--muted)}

a.card.card-link:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 80px rgba(0,0,0,.55);
  border-color:rgba(76,195,255,.35);
}

a.card.card-link:hover::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:radial-gradient(600px 200px at 50% 0%, rgba(76,195,255,.14), transparent 70%);
  pointer-events:none;
}

a.card.card-link:hover h3{color:var(--brand)}

.related-grid .card,
.grid-related .card{
  background:rgba(42 69 132 / 55%);
}

/* =========================
   Lists, facts, tables, notes
   ========================= */
ul{margin:8px 0 0 18px;color:var(--muted)}
li{margin:6px 0}

.key-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:0;
}

.key-list li{
  margin:0;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.key-list li:last-child{border-bottom:none}

.definition-list{
  display:grid;
  grid-template-columns:minmax(180px,260px) 1fr;
  gap:10px 18px;
  margin:0;
}

.definition-list dt{
  color:#fff;
  font-weight:600;
}

.definition-list dd{
  margin:0;
  color:var(--muted);
}

.note-box,
.callout,
.info-box,
.warning-box{
  padding:14px 16px;
  border-radius:14px;
  border:1px solid rgba(76,195,255,.18);
  background:linear-gradient(135deg, rgba(76,195,255,.10), rgba(124,92,255,.06));
}

.note-box > :last-child,
.callout > :last-child,
.info-box > :last-child,
.warning-box > :last-child{
  margin-bottom:0;
}

.table-wrap{
  overflow-x:auto;
  border:1px solid var(--border);
  border-radius:14px;
}

table.data-table,
.table-wrap table,
.section table{
  width:100%;
  border-collapse:collapse;
  border-spacing:0;
  min-width:640px;
  background:rgba(255,255,255,.03);
}

.section table{
  min-width:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:14px;
}

table.data-table th,
.table-wrap th,
.section th,
table.data-table td,
.table-wrap td,
.section td{
  padding:12px 14px;
  text-align:left;
  border-bottom:1px solid rgba(255,255,255,.08);
}

table.data-table th,
.table-wrap th,
.section th{
  color:#fff;
  font-size:13px;
  font-weight:600;
  letter-spacing:.02em;
  text-transform:uppercase;
}

table.data-table td,
.table-wrap td,
.section td{
  color:var(--muted);
}

table.data-table tr:last-child td,
.table-wrap tr:last-child td,
.section tr:last-child td{
  border-bottom:none;
}

/* =========================
   Structured content helpers
   ========================= */
.facts-grid,
.grid-facts,
.key-facts{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:14px;
}

.fact,
.fact-card,
.key-fact{
  background:rgba(255,255,255,.05);
  border:1px solid var(--border);
  border-radius:14px;
  padding:16px;
  box-shadow:0 8px 24px rgba(0,0,0,.16);
}

.fact-label,
.fact-card strong,
.key-fact strong{
  display:block;
  margin:0 0 8px;
  color:#fff;
  font-size:13px;
  font-weight:700;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.fact-value,
.key-fact .value,
.fact-card .value{
  display:block;
  color:var(--text);
  font-size:18px;
  font-weight:700;
  line-height:1.25;
}

.fact-note,
.key-fact small,
.fact-card small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:16px;
  line-height:1.45;
}

.details-grid,
.grid-details,
.split-details,
.two-col-details{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:14px;
}

.details-grid > .card,
.grid-details > .card,
.split-details > .card,
.two-col-details > .card{
  height:100%;
}

.timeline,
.steps,
.procedure-timeline{
  position:relative;
  display:grid;
  gap:14px;
  list-style:none;
  margin:0;
  padding:0 0 0 18px;
}

.timeline::before,
.steps::before,
.procedure-timeline::before{
  content:"";
  position:absolute;
  left:11px;
  top:6px;
  bottom:6px;
  width:2px;
  background:linear-gradient(180deg, rgba(76,195,255,.45), rgba(124,92,255,.22));
}

.timeline li,
.procedure-timeline li,
.steps li,
.timeline-item,
.step,
.procedure-step{
  position:relative;
  margin:0 0 16px;
  padding:0 0 0 18px;
  color:var(--muted);
}

.timeline li:last-child,
.procedure-timeline li:last-child,
.steps li:last-child{margin-bottom:0}

.timeline li::before,
.procedure-timeline li::before,
.steps li::before,
.timeline-item::before,
.step::before,
.procedure-step::before{
  content:"";
  position:absolute;
  left:-6px;
  top:.45em;
  width:10px;
  height:10px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow:0 0 0 4px rgba(76,195,255,.10);
}

.timeline-item > strong,
.step > strong,
.procedure-step > strong,
.timeline-item > h3,
.step > h3,
.procedure-step > h3{
  display:block;
  margin:0 0 6px;
  color:#fff;
  font-size:16px;
}

.timeline-item > p,
.step > p,
.procedure-step > p{margin:0;color:var(--muted)}

.facts-with-visual{
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:24px;
  align-items:start;
}

.facts-col{min-width:0}

.facts-strip{
  display:grid;
  gap:14px;
}

.visual-col{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding-top:4px;
}

.visual-col img{
  display:block;
  max-width:320px;
  width:100%;
  height:auto;
  margin:0 auto;
}

.caption{
  font-size:13px;
  color:var(--muted);
  margin-top:10px;
  text-align:center;
}

/* =========================
   Header and navigation
   ========================= */
.nav{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(25 43 77 / 72%);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.logo{
  width:96px;
  height:96px;
  display:inline-block;
  background-image:url("../img/eapan-icon-white.png");
  background-repeat:no-repeat;
  background-size:contain;
  background-position:center;
  flex:0 0 auto;
}

.brand h1{font-size:14px;margin:0;letter-spacing:.4px}
.brand small{display:block;color:var(--muted);font-size:12px}

.menu{
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.menu a{
  padding:8px 10px;
  border-radius:12px;
  color:var(--muted);
}

.menu a.active{
  background:rgba(255,255,255,.08);
  color:#fff;
  border:1px solid var(--border);
  font-weight:600;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(76,195,255,.18), rgba(124,92,255,.18));
  border:1px solid var(--border);
  color:var(--text);
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.btn:hover{filter:brightness(1.1)}

.dropdown{
  position:relative;
  display:inline-flex;
  align-items:center;
}

.dropdown::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:10px;
}

.dropdown > a{
  padding:8px 10px;
  border-radius:12px;
  color:var(--muted);
  transition:color .2s ease, background .2s ease;
}

.dropdown > a:hover{
  color:var(--text);
  background:rgba(255,255,255,.04);
}

.dropdown-content{
  display:none;
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  min-width:260px;
  padding:18px 20px;
  background:rgba(20, 32, 58, .98);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow);
  z-index:999;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content{
  display:block;
}

.dropdown-content a{
  display:block;
  padding:8px 10px;
  margin:0 -10px;
  color:var(--text);
  white-space:normal;
  line-height:1.4;
  border-radius:10px;
  transition:background .2s ease, color .2s ease, transform .2s ease;
}

.dropdown-content a:hover{
  background:rgba(255,255,255,.07);
  color:var(--brand);
  transform:translateX(2px);
}

.dropdown-content a.active,
.mobile-submenu a.active,
.mobile-subgroup-links a.active{
  color:var(--brand);
  font-weight:600;
}

.dropdown-group{
  margin:0;
  padding:0 0 0 18px;
  align-self:start;
  border-left:1px solid rgba(255,255,255,.10);
  display:grid;
  grid-template-rows:auto 1fr;
}

.dropdown-group:first-child{
  padding-left:0;
  border-left:none;
}

.dropdown-group strong{
  display:flex;
  align-items:flex-end;
  margin:0 0 12px;
  min-height:44px;
  color:#fff;
  font-size:15px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:.01em;
  padding-bottom:8px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.dropdown-group a{
  display:block;
  padding:8px 10px;
  margin:0 -10px;
  color:var(--text);
  white-space:normal;
  line-height:1.4;
  border-radius:10px;
  transition:background .2s ease, color .2s ease, transform .2s ease;
}

.dropdown-content:not(.mega-menu) .dropdown-group + .dropdown-group{margin-top:18px}

.mega-menu{
  min-width:920px;
  max-width:1180px;
  gap:28px;
  align-items:start;
}

.mega-menu.two-cols{
  min-width:640px;
  max-width:760px;
  gap:22px;
}

.dropdown:hover .mega-menu,
.dropdown:focus-within .mega-menu{
  display:grid;
}

.two-cols{grid-template-columns:repeat(2, minmax(0,1fr))}
.three-cols{grid-template-columns:repeat(3, minmax(0,1fr))}
.four-cols{grid-template-columns:repeat(4, minmax(0,1fr))}
.five-cols{grid-template-columns:repeat(5, minmax(0,1fr))}

.lang-dropdown{margin-left:6px}

.lang-current{
  padding:8px 10px;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  color:var(--text);
  font-weight:600;
  font-size:14px;
}

.lang-dropdown .dropdown-content{min-width:160px}
.lang-dropdown .dropdown-content a.active{color:var(--brand);font-weight:600}

.menu-toggle{
  display:none;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(255,255,255,.04);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
}

.menu-toggle span{
  display:block;
  width:18px;
  height:2px;
  background:var(--text);
  border-radius:2px;
}

.mobile-menu{display:none}

.mobile-section.active-path > .mobile-section-toggle,
.mobile-subgroup.active-path > .mobile-subgroup-toggle{
  color:var(--brand);
  font-weight:600;
}

.mobile-root-link{
  display:block;
  padding:10px 0;
  margin-bottom:8px;
  font-weight:600;
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.mobile-root-link::after{
  content:" →";
  opacity:.6;
}

/* =========================
   Responsive
   ========================= */
@media (max-width:980px){
  .facts-grid,
  .grid-facts,
  .key-facts{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }

  .details-grid,
  .grid-details,
  .split-details,
  .two-col-details{
    grid-template-columns:1fr;
  }
}

@media (max-width:940px){
  .hero-grid{grid-template-columns:1fr}
}

@media (max-width:900px){
  .grid-3{grid-template-columns:1fr}
  .facts-with-visual{grid-template-columns:1fr}
  .visual-col{padding-top:8px}
}

@media (max-width:860px){
  .columns{grid-template-columns:1fr}
}

@media (max-width:768px){
  .container{padding:0 14px}
  .nav-inner{flex-wrap:wrap;align-items:center;gap:10px}
  .brand{flex:1 1 auto;min-width:200px}
  .brand small{font-size:11px}
  .logo{width:56px;height:56px}
  .btn{width:100%;justify-content:center;padding:14px 16px}
  .hero{padding:34px 0 18px}
  h2{font-size:32px}
  .lead{font-size:16px}
  .badges{gap:8px}
  .card{padding:16px}

  .menu{display:none !important}
  .menu-toggle{display:flex !important;margin-left:auto;flex:0 0 auto}

  .dropdown,
  .dropdown-content,
  .mega-menu{
    display:none !important;
    position:static;
    min-width:100%;
    max-width:none;
  }

  .mobile-menu{
    display:none;
    width:100%;
    margin-top:12px;
    order:3;
  }

  .mobile-menu.open{display:block !important}

  .mobile-menu-inner{
    background:rgba(20, 32, 58, .98);
    border:1px solid var(--border);
    border-radius:16px;
    box-shadow:var(--shadow);
    padding:12px 14px;
  }

  .mobile-section{
    border-bottom:1px solid rgba(255,255,255,.08);
  }

  .mobile-section:last-of-type{border-bottom:none}

  .mobile-section-toggle{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 0;
    background:none;
    border:none;
    color:var(--text);
    font-size:15px;
    font-weight:600;
    text-align:left;
    cursor:pointer;
  }

  .mobile-section-toggle::after{
    content:'+';
    color:var(--muted);
    font-size:18px;
    line-height:1;
  }

  .mobile-section.open > .mobile-section-toggle::after{content:'−'}

  .mobile-submenu{
    display:none;
    padding:0 0 10px;
  }

  .mobile-section.open > .mobile-submenu{display:block}

  .mobile-subgroup{
    margin:8px 0;
    padding-left:10px;
    border-left:2px solid rgba(255,255,255,.08);
  }

  .mobile-subgroup-toggle{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 0;
    background:none;
    border:none;
    color:#fff;
    font-size:14px;
    font-weight:600;
    text-align:left;
    cursor:pointer;
  }

  .mobile-subgroup-toggle::after{
    content:'+';
    color:var(--muted);
    font-size:16px;
  }

  .mobile-subgroup.open > .mobile-subgroup-toggle::after{content:'−'}

  .mobile-subgroup-links{
    display:none;
    padding:0 0 6px;
  }

  .mobile-subgroup.open > .mobile-subgroup-links{display:block}

  .mobile-submenu a,
  .mobile-subgroup-links a,
  .mobile-link{
    display:block;
    padding:8px 0;
    color:var(--text);
    line-height:1.4;
  }

  .mobile-submenu a:hover,
  .mobile-subgroup-links a:hover,
  .mobile-link:hover{color:var(--brand)}

  .mobile-link{
    padding:14px 0;
    border-bottom:1px solid rgba(255,255,255,.08);
  }

  .mobile-btn{
    display:block;
    margin-top:14px;
    padding:12px 14px;
    text-align:center;
    border-radius:12px;
    background:linear-gradient(135deg, rgba(76,195,255,.18), rgba(124,92,255,.18));
    border:1px solid var(--border);
    color:var(--text);
    font-weight:600;
  }

  h2.section-title,
  h3.section-title{
    font-size:20px;
    margin-bottom:12px;
  }
}

@media (max-width:640px){
  .facts-grid,
  .grid-facts,
  .key-facts{
    grid-template-columns:1fr;
  }

  .content-card,
  .detail-card,
  .text-card,
  .fact,
  .fact-card,
  .key-fact,
  .note-box,
  .callout,
  .info-box,
  .warning-box{
    padding:16px;
  }

  .timeline-item,
  .step,
  .procedure-step{
    padding-left:32px;
  }
}

@media (max-width:520px){
  .facts-grid,
  .key-facts{grid-template-columns:1fr}
  h2{font-size:32px}
}

@media (max-width:420px){
  .brand small{display:none}
  h2{font-size:28px}
  .menu{gap:6px}
  .menu a{padding:10px 10px;font-size:14px}
}
