/* ════════════════════════════════════════════════════
   Template 2 — Academic Conference Portal
   Professional, clean, modern design
════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --t2-gutter: clamp(20px, 7vw, 88px);
  --t2-content-max: 1180px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #edf2f7;
  color: #1a202c;
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
  width: 100%;
}

a { color: #2b6cb0; text-decoration: none; }
a:hover { text-decoration: underline; color: #1a4f8a; }

/* ── Outer wrapper ── */
.t2-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ════ HEADER ════ */
.t2-header {
  background: linear-gradient(160deg, #0d1b35 0%, #1a3362 55%, #1e4d8c 100%);
  padding: 40px 0 34px;
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.t2-header::before {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.t2-header::after {
  content: '';
  position: absolute;
  bottom: -70px; left: 38%;
  width: 420px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  pointer-events: none;
}

.t2-header-inner {
  max-width: var(--t2-content-max);
  margin: 0;
  padding: 0 var(--t2-gutter);
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.t2-logo {
  height: 90px;
  width: auto;
  max-width: min(280px, 26vw);
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}

.t2-header-text { flex: 1; min-width: 0; }

.t2-conf-title {
  font-size: clamp(19px, 3.2vw, 32px);
  font-weight: 800;
  color: #fff;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.t2-conf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  font-size: 14px;
  color: rgba(255,255,255,.72);
  letter-spacing: 0.01em;
}

.t2-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.t2-meta-sep {
  color: rgba(255,255,255,.3);
  font-size: 16px;
}

/* ════ NAV ════ */
.t2-nav {
  background: #152a52;
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 2px 10px rgba(0,0,0,.22);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.t2-nav-inner {
  max-width: var(--t2-content-max);
  margin: 0;
  padding: 0 var(--t2-gutter);
  display: flex;
  align-items: stretch;
  white-space: nowrap;
}

.t2-nav-link {
  display: inline-block;
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,.68);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .14s, border-color .14s;
  line-height: 1;
}

.t2-nav-link:hover {
  color: rgba(255,255,255,.95);
  text-decoration: none;
  border-bottom-color: rgba(99,179,237,.5);
}

.t2-nav-link.t2-nav-active {
  color: #fff;
  border-bottom-color: #63b3ed;
  font-weight: 600;
}

/* ════ MAIN ════ */
.t2-main {
  flex: 1;
  padding: 44px 0 64px;
}

.t2-content {
  max-width: var(--t2-content-max);
  margin: 0;
  padding: 0 var(--t2-gutter);
}

.t2-page-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #cbd5e0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ── Content card ── */
.t2-body {
  background: #fff;
  border-radius: 10px;
  padding: 40px 48px;
  box-shadow: 0 1px 3px rgba(0,0,0,.07), 0 6px 24px rgba(0,0,0,.07);
  line-height: 1.82;
  font-size: 15.5px;
  color: #2d3748;
  min-height: 120px;
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* Typography inside content */
.t2-body h1, .t2-body h2, .t2-body h3, .t2-body h4, .t2-body h5 {
  color: #1a202c;
  line-height: 1.35;
  font-weight: 700;
  margin: 1.5em 0 .6em;
}

.t2-body h1:first-child,
.t2-body h2:first-child,
.t2-body h3:first-child { margin-top: 0; }

.t2-body h1 { font-size: 1.9em; }
.t2-body h2 {
  font-size: 1.4em;
  padding-bottom: .35em;
  border-bottom: 1px solid #e2e8f0;
}
.t2-body h3 { font-size: 1.15em; color: #2d3748; }
.t2-body h4 { font-size: 1.0em; text-transform: uppercase; letter-spacing: .06em; color: #718096; }

.t2-body p { margin-bottom: 1.1em; }
.t2-body p:last-child { margin-bottom: 0; }

.t2-body ul, .t2-body ol { margin: .8em 0 .8em 1.8em; }
.t2-body li { margin-bottom: .4em; }
.t2-body li > ul, .t2-body li > ol { margin-top: .3em; margin-bottom: .3em; }

.t2-body strong { font-weight: 700; color: #1a202c; }
.t2-body em { font-style: italic; }

.t2-body a { color: #2b6cb0; }
.t2-body a:hover { text-decoration: underline; }

.t2-body hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 1.5em 0;
}

.t2-body blockquote {
  border-left: 4px solid #63b3ed;
  background: #ebf8ff;
  padding: 14px 20px;
  margin: 1.2em 0;
  border-radius: 0 6px 6px 0;
  color: #2a4a7a;
  font-style: italic;
}

.t2-body code {
  font-family: 'SFMono-Regular', Menlo, Monaco, 'Courier New', monospace;
  font-size: 0.88em;
  background: #edf2f7;
  padding: 2px 5px;
  border-radius: 3px;
  color: #c53030;
}

.t2-body pre {
  background: #1a202c;
  color: #e2e8f0;
  padding: 16px 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  margin: 1em 0;
}

.t2-body pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.t2-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 1em auto;
}

/* Tables */
.t2-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 14px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #e2e8f0;
}

.t2-body th {
  background: #ebf8ff;
  color: #1a365d;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 11px 16px;
  text-align: left;
  border-bottom: 2px solid #bee3f8;
}

.t2-body td {
  padding: 10px 16px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
  color: #2d3748;
}

.t2-body tr:last-child td { border-bottom: none; }
.t2-body tr:nth-child(even) td { background: #f7fafc; }
.t2-body tr:hover td { background: #ebf8ff; transition: background .1s; }

/* Desc on homepage */
.t2-desc {
  font-size: 16px;
  line-height: 1.85;
  color: #2d3748;
}

/* ════ FOOTER ════ */
.t2-footer {
  background: #1a202c;
  color: rgba(255,255,255,.55);
  padding: 22px 0;
  font-size: 13px;
}

.t2-footer-inner {
  max-width: var(--t2-content-max);
  margin: 0;
  padding: 0 var(--t2-gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
}

.t2-footer a { color: rgba(255,255,255,.75); }
.t2-footer a:hover { color: #fff; text-decoration: none; }
.t2-footer-sep { color: rgba(255,255,255,.2); }

/* ════ RESPONSIVE ════ */
@media (max-width: 860px) {
  .t2-header-inner { padding: 0 22px; gap: 18px; }
  .t2-logo { height: 70px; width: auto; max-width: min(220px, 30vw); }
  .t2-conf-title { font-size: clamp(17px, 5vw, 24px); }

  .t2-nav-inner { padding: 0 10px; }
  .t2-nav-link { padding: 12px 13px; font-size: 13px; }

  .t2-content { padding: 0 18px; }
  .t2-page-title { font-size: 20px; }
  .t2-body { padding: 26px 24px; font-size: 14.5px; }
  .t2-footer-inner { padding: 0 22px; }
}

@media (max-width: 480px) {
  .t2-header { padding: 28px 0 22px; }
  .t2-logo { height: 54px; width: auto; max-width: min(180px, 44vw); }
  .t2-conf-title { font-size: 18px; }
  .t2-conf-meta { font-size: 12.5px; }
  .t2-main { padding: 28px 0 44px; }
  .t2-body { padding: 20px 16px; }
}

/* Bright header refresh */
.t2-header {
  background: linear-gradient(160deg, #ffffff 0%, #f3f8fb 56%, #e6f2f7 100%);
  border-bottom: 1px solid #d6e4ee;
}
.t2-header::before,
.t2-header::after {
  background: rgba(47, 125, 109, .08);
}
.t2-logo {
  filter: drop-shadow(0 6px 16px rgba(34, 63, 84, .16));
}
.t2-conf-title {
  color: #18324a;
}
.t2-conf-meta,
.t2-meta-sep {
  color: #566b7f;
}
.t2-nav {
  background: #ffffff;
  border-bottom: 1px solid #d6e4ee;
  box-shadow: 0 4px 18px rgba(34, 63, 84, .08);
}
.t2-nav-link {
  color: #496173;
}
.t2-nav-link:hover {
  color: #176b79;
  border-bottom-color: #8ec5d1;
}
.t2-nav-link.t2-nav-active {
  color: #18324a;
  border-bottom-color: #2d8fa3;
}

.t2-header,
.t2-nav,
.t2-main,
.t2-footer,
.t2-content,
.t2-body {
  max-width: 100vw;
}

.t2-body p,
.t2-body li,
.t2-body td,
.t2-body th {
  overflow-wrap: anywhere;
}

/* Responsive reference implementation */
@media (max-width: 760px) {
  .t2-header {
    padding: 22px 0 18px;
  }

  .t2-header-inner {
    padding: 0 18px;
    align-items: flex-start;
    gap: 14px;
  }

  .t2-logo {
    width: auto;
    height: 64px;
    max-width: min(210px, 62vw);
  }

  .t2-conf-title {
    font-size: 22px;
    line-height: 1.18;
    margin-bottom: 8px;
  }

  .t2-conf-meta {
    display: grid;
    gap: 3px;
    font-size: 13px;
  }

  .t2-meta-sep {
    display: none;
  }

  .t2-nav {
    position: static;
    overflow-x: visible;
  }

  .t2-nav-inner {
    padding: 8px 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    white-space: normal;
  }

  .t2-nav-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    border: 1px solid #d6e4ee;
    border-radius: 8px;
    background: #f7fbfd;
    color: #18324a;
    text-align: center;
    line-height: 1.2;
  }

  .t2-nav-link:hover,
  .t2-nav-link.t2-nav-active {
    background: #e8f4f7;
    border-color: #8ec5d1;
    color: #176b79;
  }

  .t2-main {
    padding: 26px 0 42px;
  }

  .t2-content {
    padding: 0 14px;
  }

  .t2-page-title {
    font-size: 21px;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .t2-body {
    border-radius: 8px;
    padding: 22px 18px;
    font-size: 15px;
    line-height: 1.72;
    box-shadow: 0 1px 2px rgba(34, 63, 84, .06), 0 8px 20px rgba(34, 63, 84, .07);
  }

  .t2-body h1 { font-size: 1.55em; }
  .t2-body h2 { font-size: 1.24em; }
  .t2-body h3 { font-size: 1.08em; }

  .t2-body ul,
  .t2-body ol {
    margin-left: 1.25em;
  }

  .t2-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .t2-body pre {
    max-width: 100%;
    overflow-x: auto;
  }

  .t2-footer-inner {
    padding: 0 18px;
    display: grid;
    gap: 5px;
  }

  .t2-footer-sep {
    display: none;
  }
}

@media (max-width: 640px) {
  .t2-wrap,
  .t2-header,
  .t2-nav,
  .t2-main,
  .t2-footer {
    width: min(100%, 390px);
    max-width: 100%;
  }

  .t2-header-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: min(100%, 390px);
    max-width: 100%;
    margin: 0;
    min-width: 0;
  }

  .t2-header-text {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .t2-logo {
    width: auto;
    height: 58px;
    max-width: min(190px, 62vw);
  }

  .t2-conf-title {
    font-size: 20px;
    width: 100%;
    max-width: none;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .t2-conf-meta {
    justify-items: start;
  }

  .t2-nav-inner {
    width: min(100%, 390px);
    max-width: 100%;
    margin: 0;
    grid-template-columns: 1fr;
    gap: 7px;
    min-width: 0;
  }

  .t2-nav-link {
    width: 100%;
  }

  .t2-body {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 18px 14px;
    min-width: 0;
  }

  .t2-body,
  .t2-body * {
    max-width: 100%;
  }

  .t2-body p,
  .t2-body li {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .t2-footer-inner {
    width: min(100%, 390px);
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .t2-header-inner {
    padding: 0 14px;
  }

  .t2-conf-title {
    font-size: 19px;
  }

  .t2-content {
    padding: 0 10px;
    width: min(100%, 390px);
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Template 5: full-width darker blue header variant */
body {
  background: #eef3f8;
  color: #182235;
}

a {
  color: #1e5f9e;
}

.t2-header {
  background:
    radial-gradient(circle at 82% 16%, rgba(74, 144, 226, 0.26), transparent 30%),
    radial-gradient(circle at 42% -20%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #12315a 0%, #1f5f96 58%, #2e78ad 100%);
  border-bottom: 0;
  color: #ffffff;
}

.t2-header::before,
.t2-header::after {
  background: rgba(255, 255, 255, .08);
}

.t2-logo {
  filter: drop-shadow(0 8px 18px rgba(4, 18, 38, .30));
}

.t2-conf-title {
  color: #ffffff;
}

.t2-conf-meta,
.t2-meta-sep {
  color: rgba(255, 255, 255, .82);
}

.t2-nav {
  background: #ffffff;
  border-bottom: 1px solid #d6e3ef;
  box-shadow: 0 5px 18px rgba(18, 49, 90, .12);
}

.t2-nav-link {
  color: #496275;
}

.t2-nav-link:hover {
  color: #1f5f96;
  border-bottom-color: #74acd5;
}

.t2-nav-link.t2-nav-active {
  color: #12315a;
  border-bottom-color: #1f78b8;
}

.t2-page-title {
  color: #182235;
  border-bottom-color: #c9d8e6;
}

.t2-body {
  border: 1px solid #dbe6f0;
  box-shadow: 0 1px 3px rgba(18, 49, 90, .08), 0 10px 28px rgba(18, 49, 90, .09);
}

.t2-body h1,
.t2-body h2,
.t2-body h3,
.t2-body h4,
.t2-body h5,
.t2-body strong {
  color: #182235;
}

.t2-body h2 {
  border-bottom-color: #d6e3ef;
}

.t2-body th {
  background: #eaf4fb;
  color: #12315a;
  border-bottom-color: #c7dff1;
}

.t2-body blockquote {
  border-left-color: #2e78ad;
  background: #edf6fd;
  color: #21496a;
}

.t2-footer {
  background: #12315a;
}

@media (max-width: 760px) {
  .t2-nav-link:hover,
  .t2-nav-link.t2-nav-active {
    background: #edf6fd;
    border-color: #9ec9e8;
    color: #1f5f96;
  }
}
