/* theme.css — shared override stylesheet for non-home pages.
   White bg, blue typography, red accents.
   Inspired by https://consciousness.arizona.edu/ */
:root {
  --tsc-blue: #0C234B;
  --tsc-blue-2: #1a4079;
  --tsc-red: #AB0520;
  --tsc-red-2: #c4173a;
  --tsc-grey: #4a5260;
  --tsc-line: #e2e6ec;
}
body {
  background: #fff !important;
  color: var(--tsc-grey) !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}
a { color: var(--tsc-blue-2); }
a:hover { color: var(--tsc-red); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { color: var(--tsc-blue) !important; }

.topnav {
  background: var(--tsc-red) !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid rgba(0,0,0,.15) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.18) !important;
}
.topnav .nav-brand,
.topnav .nav-brand span { color: #fff !important; }
.topnav ul li > a {
  color: #fff !important;
  font-weight: 600;
}
.topnav ul li > a:hover,
.topnav ul li > a.active { color: #fff !important; }
.topnav ul li > a.active { border-bottom: 2px solid #fff; }
.topnav .hamburger span { background: #fff !important; }
.topnav .dropdown-menu {
  background: var(--tsc-red) !important;
  border: 1px solid rgba(0,0,0,.15) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.25) !important;
}
.topnav .dropdown-menu a { color: #fff !important; }
.topnav .dropdown-menu a:hover {
  background: var(--tsc-red-2) !important;
  color: #fff !important;
}
@media (max-width: 768px) {
  .topnav ul { background: var(--tsc-red) !important; border-top: 1px solid rgba(0,0,0,.15) !important; }
  .topnav .dropdown-menu { background: transparent !important; border: none; box-shadow: none !important; }
}

.page-header {
  position: relative !important;
  background: #0C234B !important;
  color: #fff !important;
  border-bottom: 4px solid var(--tsc-red);
  padding: 8rem 2rem 3rem !important;
  text-align: center;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: url('img/paradise-point-aerial_2.png') center center / cover no-repeat;
  z-index: 0;
}
.page-header::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,36,64,.82) 0%, rgba(13,56,104,.7) 40%, rgba(20,98,138,.6) 70%, rgba(26,150,184,.5) 100%);
  z-index: 1;
}
.page-header > * { position: relative; z-index: 2; }
.page-header h1 {
  color: #fff !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.55) !important;
  font-weight: 800;
  letter-spacing: -.01em;
}
.page-header .subtitle {
  color: #d0d6e0 !important;
  opacity: 1 !important;
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
}

.content h2 {
  color: var(--tsc-blue) !important;
  border-bottom: 2px solid var(--tsc-red) !important;
}
.content h3 { color: var(--tsc-blue-2) !important; }
.content strong { color: var(--tsc-blue) !important; }

.conf-table th {
  color: var(--tsc-blue) !important;
  border-bottom: 2px solid var(--tsc-red) !important;
}
.conf-table tr:hover { background: #faf5f6 !important; }
.committee-list .name { color: var(--tsc-blue) !important; }

.cta, .btn, .btn-primary, button.cta, a.cta, .hero-cta, .reg-btn {
  background: var(--tsc-red) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s;
}
.cta:hover, .btn:hover, .btn-primary:hover, .hero-cta:hover, .reg-btn:hover {
  background: var(--tsc-red-2) !important;
  text-decoration: none !important;
  color: #fff !important;
}

footer {
  background: #f4f6f9 !important;
  color: var(--tsc-grey) !important;
  border-top: 4px solid var(--tsc-red);
}
footer a { color: var(--tsc-blue-2) !important; }
footer a:hover { color: var(--tsc-red) !important; }
footer .foot-brand { color: var(--tsc-blue) !important; }

.speakers-section {
  max-width: 1180px;
  margin: 2.5rem auto 1rem;
  padding: 0 1.5rem;
}
.speakers-section .section-title {
  color: var(--tsc-blue);
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: .3rem;
}
.speakers-section .section-lead {
  text-align: center;
  color: var(--tsc-grey);
  margin-bottom: 1.5rem;
}
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
  margin-top: 1.5rem;
}
@media (max-width: 1000px) { .speakers-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .speakers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .speakers-grid { grid-template-columns: 1fr; } }
.speaker-card {
  background: #fff;
  border: 1px solid var(--tsc-line);
  border-radius: 8px;
  padding: 1rem .8rem 1.1rem;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.speaker-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(12,35,75,.10);
  border-color: var(--tsc-red);
}
.speaker-avatar {
  width: 200px; height: 200px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto .9rem;
  border: 4px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  display: block;
}
@media (max-width: 720px) { .speaker-avatar { width: 160px; height: 160px; } }
.speaker-card h3 {
  font-size: 1.15rem !important;
  font-weight: 700;
  color: var(--tsc-blue) !important;
  margin: .3rem 0 .3rem !important;
  border: none !important;
  padding: 0 !important;
}
.speaker-card .affiliation { font-size: .9rem !important; }
.speaker-card h3 a { color: var(--tsc-blue); }
.speaker-card h3 a:hover { color: var(--tsc-red); }
.speaker-card .affiliation {
  font-size: .82rem;
  color: #666;
  line-height: 1.35;
}
.speaker-card .tag {
  display: inline-block;
  margin-top: .45rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .15rem .55rem;
  border-radius: 3px;
  background: var(--tsc-red);
  color: #fff;
}
.speaker-card .tag-remote { background: var(--tsc-blue-2); }
.speaker-missing { color: var(--tsc-red); }

.plenary-list-section { max-width: 820px; }
.plenary-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}
.plenary-list li {
  padding: .55rem 0;
  border-bottom: 1px solid var(--tsc-line);
  color: var(--tsc-blue);
  font-size: 1rem;
  line-height: 1.4;
}
.plenary-list li:last-child { border-bottom: none; }
.plenary-list .pl-id {
  display: inline-block;
  min-width: 3.4em;
  margin-right: .7rem;
  color: var(--tsc-red);
  font-weight: 800;
  letter-spacing: .04em;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.theme-card,
.org-card {
  background: #fff !important;
  border: 1px solid var(--tsc-line) !important;
  border-left: 4px solid var(--tsc-red) !important;
  color: var(--tsc-blue) !important;
  padding: .9rem 1rem;
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.35;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.theme-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.08) !important;
  border-color: var(--tsc-red) !important;
}

::selection { background: var(--tsc-red); color: #fff; }
