/* ═══════════════════════════════════════════════════════
   Erasmus Section — Editorial Intelligence
   ═══════════════════════════════════════════════════════ */

/* ── Visibility ─────────────────────────────────────── */
.erasmus-section { display: none !important; }
body.nav-erasmus .erasmus-section { display: block !important; }

body.nav-erasmus .erasmus-section {
    animation: er-section-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes er-section-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Section wrapper ─────────────────────────────────── */
.erasmus-section {
    width: 100%;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    position: relative;
    padding-bottom: 0;
}

/* ── Top fade from page bg ──────────────────────────── */
.erasmus-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
    z-index: 3;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.er-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 40px 0;
}

.er-hero-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    opacity: 0.45;
    margin-bottom: 20px;
    display: block;
    color: var(--text-primary);
}

.er-hero-title {
    font-size: clamp(96px, 14vw, 200px);
    font-weight: 900;
    letter-spacing: -6px;
    color: var(--text-primary);
    margin: 0 0 28px;
    line-height: 1.0;
}

.er-hero-sub {
    font-size: clamp(14px, 1.4vw, 17px);
    line-height: 1.7;
    color: var(--text-primary);
    opacity: 0.6;
    max-width: 520px;
    margin: 0 0 36px;
}

.er-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────── */
.er-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
}
.er-btn-primary:hover { transform: scale(1.04); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

.er-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.er-btn-ghost:hover { background: rgba(128,128,128,0.1); transform: scale(1.02); }

/* ══════════════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════════════ */
.er-stats {
    display: flex;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 60px;
}
.er-stat-item {
    flex: 1;
    padding: 28px 24px;
    text-align: center;
    border-right: 1px solid var(--border-color);
    transition: background 0.2s;
    cursor: default;
}
.er-stat-item:last-child { border-right: none; }
.er-stat-item:hover { background: rgba(128,128,128,0.05); }

.er-stat-num {
    display: block;
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 900;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 6px;
}
.er-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0.45;
    letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════════
   SHARED LABELS & TITLES
══════════════════════════════════════════════════════ */
.er-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    opacity: 0.45;
    display: block;
    margin-bottom: 14px;
    color: var(--text-primary);
}
.er-section-title {
    font-size: clamp(36px, 4.5vw, 64px);
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--text-primary);
    margin: 0 0 20px;
    line-height: 1.0;
}
.er-section-sub {
    font-size: clamp(14px, 1.4vw, 17px);
    line-height: 1.7;
    color: var(--text-primary);
    opacity: 0.6;
    max-width: 520px;
    margin: 0;
}

/* ══════════════════════════════════════════════════════
   ARCHITECTURE — editorial numbered rows
══════════════════════════════════════════════════════ */
.er-arch {
    margin-top: 12px;
}

.er-arch-header {
    padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 64px) 48px;
    max-width: 1280px;
    margin: 0 auto;
}

.er-pillar-row {
    display: flex;
    align-items: stretch;
    border-top: 1px solid var(--border-color);
    transition: background 0.2s;
    cursor: default;
}
.er-pillar-row:last-child { border-bottom: 1px solid var(--border-color); }
.er-pillar-row:hover { background: rgba(128,128,128,0.04); }

.er-pillar-index {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 900;
    letter-spacing: -3px;
    color: var(--text-primary);
    opacity: 0.1;
    padding: clamp(28px, 4vw, 44px) clamp(24px, 5vw, 64px);
    flex-shrink: 0;
    width: clamp(110px, 14vw, 180px);
    display: flex;
    align-items: center;
    line-height: 1;
    border-right: 1px solid var(--border-color);
}

.er-pillar-content {
    padding: clamp(28px, 4vw, 44px) clamp(24px, 5vw, 64px);
    flex: 1;
    display: flex;
    align-items: center;
    gap: clamp(24px, 4vw, 60px);
}

.er-pillar-title {
    font-size: clamp(18px, 2.2vw, 28px);
    font-weight: 900;
    letter-spacing: -0.6px;
    color: var(--text-primary);
    margin: 0;
    min-width: clamp(140px, 16vw, 220px);
    flex-shrink: 0;
}

.er-pillar-desc {
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.65;
    color: var(--text-primary);
    opacity: 0.55;
    margin: 0;
}

/* ══════════════════════════════════════════════════════
   DESIGN PHILOSOPHY — 2-col: text + comparison table
══════════════════════════════════════════════════════ */
.er-philosophy {
    padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 64px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: start;
    border-top: 1px solid var(--border-color);
    max-width: 1280px;
    margin: 0 auto;
}

.er-feat-list {
    display: flex;
    flex-direction: column;
    margin-top: 36px;
}
.er-feat-row {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}
.er-feat-row:first-child { border-top: 1px solid var(--border-color); }

.er-feat-mark {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-primary);
    opacity: 0.35;
    flex-shrink: 0;
    width: 16px;
}
.er-feat-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    opacity: 0.65;
}
.er-feat-text strong {
    color: var(--text-primary);
    opacity: 1;
    font-weight: 700;
}

/* Right panel — comparison table */
.er-compare-panel {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    position: sticky;
    top: 80px;
}
.er-compare-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
}
.er-compare-col {
    padding: 16px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    opacity: 0.4;
}
.er-compare-col:not(:last-child) { border-right: 1px solid var(--border-color); }
.er-compare-col--accent { opacity: 1; }

.er-compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}
.er-compare-row:last-child { border-bottom: none; }
.er-compare-row:hover { background: rgba(128,128,128,0.04); }

.er-compare-cell {
    padding: 16px 20px;
    font-size: 13px;
    color: var(--text-primary);
    opacity: 0.55;
    line-height: 1.4;
}
.er-compare-cell:not(:last-child) { border-right: 1px solid var(--border-color); }
.er-compare-cell--label { font-weight: 600; opacity: 0.75; }
.er-compare-cell--old   { text-decoration: line-through; opacity: 0.28; }
.er-compare-cell--new   { font-weight: 700; opacity: 1; }

/* ══════════════════════════════════════════════════════
   FEDERATED LEARNING — inverted full-bleed section
══════════════════════════════════════════════════════ */
.er-federated {
    background: var(--text-primary);
    padding: clamp(56px, 7vw, 100px) clamp(24px, 5vw, 64px);
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}

.er-federated .er-section-label  { color: var(--bg-primary); opacity: 0.4; }
.er-federated .er-section-title  { color: var(--bg-primary); }
.er-federated .er-section-sub    { color: var(--bg-primary); opacity: 0.6; }
.er-federated .er-feat-text      { color: var(--bg-primary); opacity: 0.6; }
.er-federated .er-feat-text strong { color: var(--bg-primary); opacity: 1; }
.er-federated .er-feat-mark      { color: var(--bg-primary); opacity: 0.35; }
.er-federated .er-feat-row       { border-color: rgba(128,128,128,0.25); }
.er-federated .er-feat-row:first-child { border-color: rgba(128,128,128,0.25); }

.er-fed-visual {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.er-fed-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(128,128,128,0.2);
}
.er-fed-row:first-child { border-top: 1px solid rgba(128,128,128,0.2); }

.er-fed-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--bg-primary);
    opacity: 0.5;
    flex-shrink: 0;
}
.er-fed-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--bg-primary);
    opacity: 0.8;
    min-width: 130px;
    letter-spacing: 0.3px;
}
.er-fed-bar-wrap {
    flex: 1;
    height: 2px;
    background: rgba(128,128,128,0.2);
    border-radius: 2px;
    overflow: hidden;
}
.er-fed-bar-fill {
    height: 100%;
    background: var(--bg-primary);
    opacity: 0.55;
    border-radius: 2px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.er-fed-bar-fill.er-bar-in { width: var(--w, 60%); }

/* ══════════════════════════════════════════════════════
   PRIVACY — 3 frosted glass tiles
══════════════════════════════════════════════════════ */
.er-privacy {
    padding: clamp(56px, 7vw, 100px) clamp(24px, 5vw, 64px);
    background: var(--bg-primary);
}
.er-privacy-header {
    max-width: 580px;
    margin: 0 0 56px;
}
.er-privacy-tiles {
    display: flex;
    gap: 12px;
}
.er-privacy-tile {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 28px;
    background: rgba(128,128,128,0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background 0.2s, border-color 0.2s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    cursor: default;
}
.er-privacy-tile:hover {
    background: rgba(128,128,128,0.09);
    border-color: rgba(128,128,128,0.3);
    transform: translateY(-5px);
}
.er-privacy-tile-num {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    opacity: 0.25;
    margin-bottom: 20px;
    display: block;
}
.er-privacy-tile-title {
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 900;
    letter-spacing: -0.4px;
    color: var(--text-primary);
    margin: 0 0 12px;
}
.er-privacy-tile-desc {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-primary);
    opacity: 0.5;
    margin: 0;
}

/* ══════════════════════════════════════════════════════
   CTA — 2 full-width stacked cards
══════════════════════════════════════════════════════ */
.er-cta-section {
    padding: 12px clamp(24px, 5vw, 40px) clamp(40px, 5vw, 80px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.er-fc {
    border-radius: 28px;
    padding: clamp(52px, 7vw, 96px) clamp(32px, 6vw, 80px);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    overflow: hidden;
}
.er-fc:hover { transform: scale(1.01); }

.er-fc--dark {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
}
.er-fc--glass {
    background: rgba(128,128,128,0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.er-fc-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.45;
    margin-bottom: 20px;
    display: block;
}
.er-fc-h {
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    margin: 0 auto 20px;
    max-width: 840px;
}
.er-fc-p {
    font-size: clamp(14px, 1.4vw, 17px);
    line-height: 1.7;
    opacity: 0.6;
    max-width: 520px;
    margin: 0 auto 36px;
}
.er-fc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
}
.er-fc-btn:hover { transform: scale(1.04); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.er-fc--dark  .er-fc-btn { background: var(--bg-primary);   color: var(--text-primary); }
.er-fc--glass .er-fc-btn { background: var(--text-primary); color: var(--bg-primary);   }

/* ══════════════════════════════════════════════════════
   SCROLL REVEAL — always visible (no FOUC)
══════════════════════════════════════════════════════ */
.er-reveal, .er-reveal.er-visible { opacity: 1; transform: none; }
.er-reveal-delay-1, .er-reveal-delay-2,
.er-reveal-delay-3, .er-reveal-delay-4 { animation-delay: 0s; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .er-philosophy { grid-template-columns: 1fr; }
    .er-federated  { grid-template-columns: 1fr; }
    .er-privacy-tiles { flex-direction: column; }
    .er-pillar-content { flex-direction: column; align-items: flex-start; gap: 12px; }
    .er-pillar-title { min-width: unset; }
    .er-compare-panel { display: none; }
}
@media (max-width: 600px) {
    .er-hero { padding: 56px 16px 0; }
    .er-hero-title { letter-spacing: -3px; }
    .er-stats { flex-direction: column; }
    .er-stat-item { border-right: none; border-bottom: 1px solid var(--border-color); }
    .er-stat-item:last-child { border-bottom: none; }
    .er-pillar-index { font-size: 36px; width: 70px; padding: 20px 14px; }
    .er-pillar-content { padding: 20px 16px; }
    .er-philosophy, .er-federated, .er-privacy { padding-left: 16px; padding-right: 16px; }
    .er-cta-section { padding-left: 16px; padding-right: 16px; }
    .er-fc { padding: 44px 24px; }
    .er-fc-h { font-size: 28px; letter-spacing: -1px; }
}
