﻿/* =========================================================
   المؤتمر العلمي الدولي «الترجمة كجسر نحو التنمية المستدامة
   في عصر الذكاء الاصطناعي: تواصل لغوي لخدمة الإنسانية»
   قسم الترجمة – كلية الآداب – الجامعة المستنصرية
   ---------------------------------------------------------
   Editorial, institutional layout: one navy, a restrained gold
   accent, hairline rules instead of floating cards.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
    --navy: #14223f;
    --navy-2: #1f3358;
    --navy-rgb: 20, 34, 63;
    --ink: #1d222b;
    --muted: #59606c;
    --gold: #8a6420;
    --gold-light: #d6b878;
    --paper: #f5f3ee;
    --white: #ffffff;
    --rule: #e3ded4;
    --rule-strong: #c9c1b1;
    --link: #1e4b8f;

    --radius: 3px;
    --container: 1240px;
    --gutter: 32px;
    --nav-h: 76px;

    --font-body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
    --font-display: 'Amiri', 'Times New Roman', serif;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.85;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
    font-size: 16px;
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

ul,
ol {
    list-style: none;
}

button,
input {
    font: inherit;
    color: inherit;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.4;
    color: var(--navy);
}

:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    top: -100px;
    inset-inline-start: 16px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--navy);
    color: #fff;
}

.skip-link:focus {
    top: 12px;
}

.noscript-note {
    padding: 12px;
    background: #fff4d6;
    color: #5c4300;
    text-align: center;
}

/* ---------- 3. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.btn-primary:hover {
    background: var(--navy-2);
    border-color: var(--navy-2);
}

.btn-outline {
    background: transparent;
    border-color: var(--rule-strong);
    color: var(--navy);
}

.btn-outline:hover {
    border-color: var(--navy);
}

.btn-light {
    background: #fff;
    border-color: #fff;
    color: var(--navy);
}

.btn-light:hover {
    background: var(--paper);
    border-color: var(--paper);
}

.btn-full {
    width: 100%;
}

/* ---------- 4. Institutional strip & header ---------- */
.topstrip {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.topstrip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 36px;
}

.topstrip a {
    color: rgba(255, 255, 255, 0.8);
}

.topstrip a:hover {
    color: #fff;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--rule);
}

.navbar.scrolled {
    box-shadow: 0 4px 14px rgba(var(--navy-rgb), 0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: inherit;
}

.brand:hover {
    text-decoration: none;
}

.brand img {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.arts-logo {
    border-radius: 50%;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-inline-start: 4px;
    padding-inline-start: 14px;
    border-inline-start: 1px solid var(--rule);
}

.brand-college {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--muted);
}

.brand-conf {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--navy);
}

html[lang="en"] .brand-conf {
    max-width: 300px;
    font-size: 14px;
}

.nav-wrap {
    margin-inline-start: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-link {
    position: relative;
    display: block;
    padding: 8px 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
}

/* Underline that grows from the start of the link */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline: 10px;
    height: 2px;
    background: var(--navy);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.3s;
}

html[dir="rtl"] .nav-link::after {
    transform-origin: right;
}

html[dir="ltr"] .nav-link::after {
    transform-origin: left;
}

.nav-link:hover {
    text-decoration: none;
    color: var(--navy);
}

.nav-link:hover::after {
    background: var(--rule-strong);
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--navy);
}

.nav-link.active::after {
    background: var(--navy);
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.lang-switcher {
    padding: 6px 2px;
    background: none;
    border: 0;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--link);
    cursor: pointer;
}

.lang-switcher:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn-nav {
    min-height: 40px;
    padding: 8px 18px;
    font-size: 14.5px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: #fff;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--navy);
}

/* ---------- 5. Hero ---------- */
.hero {
    --hero-rule: rgba(255, 255, 255, 0.12);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(180deg, #10203a 0%, #0a1422 100%);
    color: rgba(255, 255, 255, 0.85);
}

/* Two soft light sources (teal and gold) that drift slowly behind the content. */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    top: -38%;
    right: -14%;
    width: min(1100px, 90vw);
    background: radial-gradient(closest-side, rgba(11, 110, 138, 0.42), rgba(11, 110, 138, 0.14) 55%, transparent);
    animation: heroDrift 20s ease-in-out infinite alternate;
}

.hero::after {
    bottom: -48%;
    left: -16%;
    width: min(900px, 80vw);
    background: radial-gradient(closest-side, rgba(184, 137, 58, 0.18), transparent);
    animation: heroDrift 26s ease-in-out infinite alternate-reverse;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: 64px;
    align-items: center;
    padding-block: 72px 56px;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-light);
}

.hero-kicker::before {
    content: '';
    flex-shrink: 0;
    width: 32px;
    height: 1px;
    background: var(--gold-light);
    animation: lineGrow 0.9s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-title {
    margin-bottom: 10px;
    font-family: var(--font-display);
    font-size: clamp(32px, 3.8vw, 50px);
    line-height: 1.35;
    color: #fff;
    text-wrap: balance;
}

html[lang="en"] .hero-title {
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.2;
}

.hero-subtitle {
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    line-height: 1.5;
    color: var(--gold-light);
}

.hero-alt-title {
    max-width: 640px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--hero-rule);
    font-size: 14.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

/* The secondary title carries its own dir, so align it with the page rather than with itself. */
html[dir="rtl"] .hero-alt-title {
    text-align: right;
}

html[dir="ltr"] .hero-alt-title {
    text-align: left;
}

html[lang="en"] .hero-alt-title {
    font-family: var(--font-display);
    font-size: 18px;
}

.hero-organizer {
    margin-bottom: 6px;
    font-weight: 600;
    color: #fff;
}

.hero-lead {
    max-width: 640px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.72);
}

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

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: #fff;
}

/* Photo in a thin matte frame; the image settles from a slight zoom on load. */
.hero-photo {
    overflow: hidden;
    box-shadow:
        0 0 0 6px rgba(255, 255, 255, 0.06),
        0 0 0 7px rgba(255, 255, 255, 0.22),
        0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero-photo img {
    width: 100%;
    aspect-ratio: 515 / 388;
    object-fit: cover;
    animation: slowZoom 16s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-figure figcaption {
    margin-top: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-facts > div {
    padding: 18px 24px 24px;
    border-inline-start: 1px solid var(--hero-rule);
}

.hero-facts > div:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
}

.hero-facts dt {
    margin-bottom: 2px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.hero-facts dd {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    color: #fff;
}

.hero-countdown dd {
    font-size: 20px;
    font-variant-numeric: tabular-nums;
    color: var(--gold-light);
}

/* Languages band at the foot of the hero */
.lang-ticker {
    overflow: hidden;
    padding: 14px 0;
    border-top: 1px solid var(--hero-rule);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.lang-ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 70s linear infinite;
}

.lang-ticker-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
}

.lang-ticker span {
    position: relative;
    padding-inline: 24px;
    font-family: var(--font-display), 'Segoe UI', sans-serif;
    font-size: 21px;
    line-height: 1.5;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.4);
}

.lang-ticker span::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold-light);
    opacity: 0.7;
    transform: translateY(-50%);
}

/* ---------- 6. Sections ---------- */
.section {
    padding: 88px 0;
}

.themes,
.participation,
.contact {
    background: var(--paper);
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rule-strong);
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.35;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    inset-inline-start: 0;
    width: 56px;
    height: 3px;
    background: var(--gold);
}

.section-head {
    margin-bottom: 40px;
}

.section-head .section-title {
    margin-bottom: 16px;
}

.section-lead {
    max-width: 780px;
    color: var(--muted);
}

.block-title {
    margin: 64px 0 8px;
    font-family: var(--font-display);
    font-size: 25px;
}

/* ---------- 7. About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 64px;
    align-items: start;
}

.about-intro {
    font-size: 18px;
    line-height: 2.05;
}

html[lang="en"] .about-intro {
    font-size: 17.5px;
    line-height: 1.8;
}

.facts {
    padding: 18px 24px 6px;
    background: var(--paper);
    border-top: 3px solid var(--navy);
}

.facts-title {
    margin-bottom: 6px;
    font-size: 16px;
}

.facts-list > div {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--rule);
}

.facts-list dt {
    font-size: 13.5px;
    color: var(--muted);
}

.facts-list dd {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.65;
    color: var(--navy);
}

.goals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 40px;
}

.goal {
    padding: 22px 0 28px;
    border-top: 1px solid var(--rule-strong);
}

.goal-num {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: var(--gold);
}

.goal-title {
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.6;
}

.goal-points li {
    position: relative;
    padding-inline-start: 16px;
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--muted);
}

.goal-points li::before {
    content: '';
    position: absolute;
    top: 0.95em;
    inset-inline-start: 0;
    width: 7px;
    height: 1px;
    background: var(--muted);
}

/* ---------- 8. Themes ---------- */
.axis {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 32px;
    padding: 40px 0;
    border-top: 1px solid var(--rule-strong);
}

.axis:first-child {
    padding-top: 8px;
    border-top: 0;
}

.axis-num {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 700;
    line-height: 0.95;
    color: var(--gold);
}

.axis-label {
    display: block;
    margin-bottom: 4px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gold);
}

.axis-title {
    max-width: 920px;
    margin-bottom: 24px;
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1.55;
}

html[lang="en"] .axis-title {
    font-size: 24px;
    line-height: 1.4;
}

.sdg-heading {
    margin-bottom: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
}

.sdg-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--rule);
}

.sdg-item {
    padding: 18px 24px 4px;
    border-inline-start: 1px solid var(--rule);
}

.sdg-item:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
}

/* Official UN SDG colours — used only on the small goal-number squares. */
.sdg-item { --sdg: var(--navy); }
.sdg-item[data-goal="1"] { --sdg: #e5243b; }
.sdg-item[data-goal="2"] { --sdg: #dda63a; }
.sdg-item[data-goal="3"] { --sdg: #4c9f38; }
.sdg-item[data-goal="4"] { --sdg: #c5192d; }
.sdg-item[data-goal="5"] { --sdg: #ff3a21; }
.sdg-item[data-goal="6"] { --sdg: #26bde2; }
.sdg-item[data-goal="7"] { --sdg: #fcc30b; }
.sdg-item[data-goal="8"] { --sdg: #a21942; }
.sdg-item[data-goal="9"] { --sdg: #fd6925; }
.sdg-item[data-goal="10"] { --sdg: #dd1367; }
.sdg-item[data-goal="11"] { --sdg: #fd9d24; }
.sdg-item[data-goal="12"] { --sdg: #bf8b2e; }
.sdg-item[data-goal="13"] { --sdg: #3f7e44; }
.sdg-item[data-goal="14"] { --sdg: #0a97d9; }
.sdg-item[data-goal="15"] { --sdg: #56c02b; }
.sdg-item[data-goal="16"] { --sdg: #00689d; }
.sdg-item[data-goal="17"] { --sdg: #19486a; }

.sdg-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 15.5px;
    line-height: 1.55;
}

.sdg-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 2px;
    background: var(--sdg);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.sdg-note {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.sdg-item p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--muted);
}

/* ---------- 9. Committees ---------- */
.committee-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.committee-tabs {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--rule-strong);
}

.tab-btn {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 13px 16px;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--rule);
    border-inline-start: 3px solid transparent;
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.5;
    text-align: start;
    color: var(--ink);
    cursor: pointer;
}

.tab-btn:hover {
    background: var(--paper);
}

.tab-btn[aria-selected="true"] {
    background: var(--paper);
    border-inline-start-color: var(--navy);
    font-weight: 700;
    color: var(--navy);
}

.tab-count {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.panel-title {
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-size: 25px;
}

.committee-chair {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 16px;
    margin-bottom: 24px;
    padding: 14px 0;
    border-top: 1px solid var(--rule-strong);
    border-bottom: 1px solid var(--rule-strong);
}

.committee-chair .role {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gold);
}

.committee-chair strong {
    font-size: 18px;
    color: var(--navy);
}

.members-heading {
    margin-bottom: 4px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
}

/* Columns (not a grid) so the numbering runs down the first column, then the second — like a printed list. */
.committee-members {
    columns: 2;
    column-gap: 40px;
}

.committee-members li {
    break-inside: avoid;
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 15.5px;
}

.committee-members .n {
    flex-shrink: 0;
    min-width: 22px;
    font-size: 14px;
    color: var(--muted);
}

/* ---------- 10. Participation ---------- */
.participation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
}

.col-title {
    margin-bottom: 10px;
    font-size: 19px;
}

.num-list {
    counter-reset: item;
    border-top: 1px solid var(--rule-strong);
}

.num-list li {
    position: relative;
    padding: 11px 0;
    padding-inline-start: 34px;
    border-bottom: 1px solid var(--rule);
    counter-increment: item;
}

.num-list li::before {
    content: counter(item);
    position: absolute;
    top: 11px;
    inset-inline-start: 0;
    font-weight: 700;
    color: var(--gold);
}

html[lang="ar"] .num-list li::before {
    content: counter(item, arabic-indic);
}

.dash-list {
    border-top: 1px solid var(--rule-strong);
}

.dash-list li {
    position: relative;
    padding: 11px 0;
    padding-inline-start: 24px;
    border-bottom: 1px solid var(--rule);
}

.dash-list li::before {
    content: '';
    position: absolute;
    top: calc(11px + 0.92em);
    inset-inline-start: 0;
    width: 11px;
    height: 1px;
    background: var(--gold);
}

.fees {
    max-width: 760px;
    margin-top: 64px;
}

.fees-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--rule-strong);
}

.fees-table th,
.fees-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--rule);
    text-align: start;
    vertical-align: middle;
}

.fees-table thead th {
    background: var(--navy);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.fees-table tbody th {
    font-weight: 500;
    color: var(--ink);
}

.fees-table td {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--navy);
    white-space: nowrap;
}

.fees-note {
    margin-top: 10px;
    font-size: 14.5px;
    color: var(--muted);
}

/* ---------- 11. Dates ---------- */
.dates-list {
    margin-top: -20px; /* the section title already draws the top rule */
}

.date-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    padding: 20px 0;
    border-bottom: 1px solid var(--rule);
}

.date-when {
    font-weight: 700;
    color: var(--navy);
}

.date-row h3 {
    margin-bottom: 2px;
    font-size: 17px;
}

.date-row p {
    font-size: 15.5px;
    color: var(--muted);
}

/* Negative margin keeps the text aligned with the other rows while the band extends past them. */
.date-row.highlighted {
    margin-inline: -16px;
    padding-inline: 13px 16px;
    background: var(--paper);
    border-inline-start: 3px solid var(--gold);
}

.date-row.highlighted .date-when {
    color: var(--gold);
}

/* ---------- 12. Registration ---------- */
.registration {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.82);
}

.registration .section-title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.registration .section-title::after {
    background: var(--gold-light);
}

.registration-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 580px);
    gap: 72px;
    align-items: start;
}

.reg-block {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.reg-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.reg-block h3 {
    margin-bottom: 8px;
    font-size: 20px;
    color: #fff;
}

.reg-block p {
    color: rgba(255, 255, 255, 0.78);
}

.reg-email {
    margin: 16px 0 20px;
}

.reg-email dt {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.reg-email a {
    font-weight: 600;
    color: var(--gold-light);
    overflow-wrap: anywhere;
}

.registration-form-wrapper {
    padding: 32px;
    background: #fff;
    border-radius: var(--radius);
    color: var(--ink);
}

.form-title {
    margin-bottom: 2px;
    font-size: 19px;
}

.form-hint {
    margin-bottom: 20px;
    font-size: 13.5px;
    color: var(--muted);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group > label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.form-group input:not([type="checkbox"]) {
    width: 100%;
    height: 44px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--rule-strong);
    border-radius: 2px;
    font-size: 15px;
}

.form-group input:not([type="checkbox"]):focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 2px rgba(var(--navy-rgb), 0.15);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    cursor: pointer;
}

.checkbox-label input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--navy);
}

/* Honeypot for bots: visually hidden without an off-screen offset (which would widen RTL pages). */
.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------- 13. Venue ---------- */
.venue-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.photo img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: var(--paper);
}

.photo figcaption {
    margin-top: 8px;
    font-size: 13.5px;
    color: var(--muted);
}

.venue-address {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 20px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
}

.venue-address span {
    font-weight: 600;
    color: var(--navy);
}

.venue .block-title {
    margin-bottom: 20px;
}

.landmarks-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* ---------- 14. Contact ---------- */
.contact-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--rule-strong);
}

.contact-list > div {
    padding: 20px 24px;
    border-inline-start: 1px solid var(--rule);
}

.contact-list > div:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
}

.contact-list dt {
    margin-bottom: 4px;
    font-size: 13.5px;
    color: var(--muted);
}

.contact-list dd {
    font-weight: 600;
    color: var(--navy);
}

.contact-list a {
    overflow-wrap: anywhere;
}

/* ---------- 15. Footer ---------- */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    padding-block: 56px 40px;
}

.footer-logos {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logos img {
    width: 52px;
    height: 52px;
    padding: 3px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
}

.footer-title {
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    color: #fff;
}

.footer-sub {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer a {
    color: rgba(255, 255, 255, 0.85);
}

.footer a:hover {
    color: #fff;
}

.footer .footer-link {
    font-weight: 600;
    color: var(--gold-light);
}

.footer-heading {
    margin-bottom: 12px;
    font-size: 14px;
    color: #fff;
}

.footer-col li {
    padding: 4px 0;
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- 16. Back to top ---------- */
.back-to-top {
    position: fixed;
    bottom: 20px;
    inset-inline-end: 20px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--navy);
    border: 0;
    border-radius: var(--radius);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 18px;
    height: 18px;
}

/* ---------- 17. Motion ---------- */
@keyframes heroDrift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-7%, 9%, 0) scale(1.15); }
}

@keyframes riseIn {
    from { opacity: 0; transform: translate3d(0, 18px, 0); }
    to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slowZoom {
    from { transform: scale(1.12); }
    to { transform: scale(1); }
}

@keyframes lineGrow {
    from { width: 0; }
    to { width: 32px; }
}

@keyframes ticker {
    to { transform: translate3d(-50%, 0, 0); }
}

@keyframes panelIn {
    from { opacity: 0; transform: translate3d(0, 8px, 0); }
    to { opacity: 1; transform: none; }
}

/* Hero: text rises line by line, then the photo and the facts row */
.hero-content > * {
    animation: riseIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-content > :nth-child(2) { animation-delay: 0.08s; }
.hero-content > :nth-child(3) { animation-delay: 0.16s; }
.hero-content > :nth-child(4) { animation-delay: 0.24s; }
.hero-content > :nth-child(5) { animation-delay: 0.32s; }
.hero-content > :nth-child(6) { animation-delay: 0.40s; }
.hero-content > :nth-child(7) { animation-delay: 0.48s; }

.hero-figure {
    animation: riseIn 1s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-facts > div {
    animation: riseIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-facts > div:nth-child(1) { animation-delay: 0.55s; }
.hero-facts > div:nth-child(2) { animation-delay: 0.65s; }
.hero-facts > div:nth-child(3) { animation-delay: 0.75s; }
.hero-facts > div:nth-child(4) { animation-delay: 0.85s; }

.lang-ticker {
    animation: fadeIn 1.2s 0.9s both;
}

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

/* Committee panel fades in each time another committee is selected */
.tab-panel:not([hidden]) {
    animation: panelIn 0.35s ease both;
}

/* Scroll reveal — the class is added by script.js only to elements that start below the fold */
.reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.section-title.reveal::after {
    width: 0;
    transition: width 0.8s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.section-title.reveal.is-visible::after {
    width: 56px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
    .mobile-toggle {
        display: flex;
    }

    /* The menu drops down from the header (a sticky, positioned box). */
    .nav-wrap {
        position: absolute;
        top: 100%;
        inset-inline: 0;
        margin: 0;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
        padding: 4px var(--gutter) 12px;
        background: #fff;
        border-bottom: 1px solid var(--rule);
        box-shadow: 0 10px 20px rgba(var(--navy-rgb), 0.08);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid var(--rule);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        border-bottom-color: var(--rule);
    }

    .nav-link.active {
        font-weight: 700;
    }

    .nav-menu li:last-child .nav-link {
        border-bottom: 0;
    }

    .nav-actions {
        margin-inline-start: auto;
    }
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-figure {
        max-width: 520px;
    }

    .hero-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-facts > div:nth-child(3) {
        padding-inline-start: 0;
        border-inline-start: 0;
    }

    .hero-facts > div:nth-child(n + 3) {
        border-top: 1px solid var(--hero-rule);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .goals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .axis {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 20px;
    }

    .axis-num {
        font-size: 56px;
    }

    .sdg-list {
        grid-template-columns: 1fr;
    }

    .sdg-item,
    .sdg-item:first-child {
        padding: 16px 0 12px;
        border-inline-start: 0;
        border-bottom: 1px solid var(--rule);
    }

    .sdg-item:last-child {
        border-bottom: 0;
    }

    .committee-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .registration-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --gutter: 18px;
    }

    .section {
        padding: 60px 0;
    }

    .topstrip {
        display: none;
    }

    .nav-container {
        gap: 12px;
        min-height: 66px;
    }

    .brand img {
        width: 40px;
        height: 40px;
    }

    .brand-text {
        margin-inline-start: 2px;
        padding-inline-start: 10px;
    }

    .brand-college {
        display: none;
    }

    .brand-conf,
    html[lang="en"] .brand-conf {
        font-size: 13.5px;
    }

    .btn-nav {
        display: none;
    }

    .hero-grid {
        padding-block: 40px 32px;
    }

    .hero-facts > div {
        padding: 14px 16px 18px;
    }

    .section-title {
        margin-bottom: 28px;
    }

    .block-title {
        margin-top: 48px;
    }

    .about-intro {
        font-size: 17px;
    }

    .goals {
        grid-template-columns: 1fr;
    }

    .axis {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 32px 0;
    }

    .axis-num {
        font-size: 44px;
    }

    .axis-title,
    html[lang="en"] .axis-title {
        font-size: 21px;
    }

    .committee-members {
        columns: 1;
    }

    .participation-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fees {
        margin-top: 48px;
    }

    .fees-table th,
    .fees-table td {
        padding: 12px 14px;
    }

    .date-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .registration-form-wrapper {
        padding: 24px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .venue-grid {
        grid-template-columns: 1fr;
    }

    .landmarks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .contact-list {
        grid-template-columns: 1fr;
    }

    .contact-list > div,
    .contact-list > div:first-child {
        padding: 16px 0;
        border-inline-start: 0;
        border-bottom: 1px solid var(--rule);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 440px) {
    .uni-logo {
        display: none;
    }

    .hero-facts {
        grid-template-columns: 1fr;
    }

    .hero-facts > div,
    .hero-facts > div:nth-child(3) {
        padding-inline: 0;
        border-inline-start: 0;
        border-top: 1px solid var(--hero-rule);
    }

    .lang-ticker span {
        padding-inline: 18px;
        font-size: 18px;
    }

    .hero-facts > div:first-child {
        border-top: 0;
    }

    .hero-cta .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media print {
    .topstrip,
    .navbar,
    .back-to-top,
    .registration-form-wrapper,
    .skip-link,
    .lang-ticker,
    .hero::before,
    .hero::after {
        display: none !important;
    }

    .hero,
    .registration,
    .footer {
        background: #fff;
        color: #000;
    }

    .hero-title,
    .hero-organizer,
    .hero-facts dd {
        color: #000;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .tab-panel[hidden] {
        display: block !important;
    }
}
