/* ============================================
   SPACE 2026 — Custom Styles on Pico CSS
   ============================================ */

/* === Page background === */

body {
  background: #f0f2f5;
}

/* === Hero banner with venue photo === */

.hero {
  background:
    linear-gradient(180deg, rgba(13, 27, 42, 0.82) 0%, rgba(30, 60, 114, 0.78) 60%, rgba(0, 51, 102, 0.92) 100%),
    url('/images/bangalore_pexels.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 0;
}

.hero-content {
  padding: 2.5rem 1rem 1.5rem;
}

.hero h1 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
  color: #d0e0f0;
  font-size: 1.05rem;
  margin-bottom: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-logo {
  width: 80px;
  height: auto;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* === Navigation (inside hero) === */

.hero-nav {
  background: rgba(0, 30, 60, 0.6);
  backdrop-filter: blur(4px);
  padding: 0.4rem 1rem;
  margin-bottom: 0;
}

.hero-nav a {
  color: #fff;
  font-size: 0.9rem;
}

.hero-nav a:hover {
  color: #aad4ff;
}

.hero-nav li.active a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  font-weight: 600;
}

.hero-nav ul {
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.hero-nav ul li {
  margin-right: 0;
}

/* Nav needs flex from Pico — ensure it works inside hero */
.hero-nav nav {
  justify-content: center;
}

/* === Cards (main content sections) === */

.card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Accent variants for key sections */
.card.accent-blue {
  border-left: 5px solid #1e3c72;
  background: linear-gradient(135deg, #f0f4ff, #e3ecff);
}

.card.accent-amber {
  border-left: 5px solid #d4920a;
  background: linear-gradient(135deg, #fffbf0, #fff3d6);
}

.card.accent-green {
  border-left: 5px solid #28a745;
  background: linear-gradient(135deg, #f0fff4, #d4f5e0);
}

.card.accent-red {
  border-left: 5px solid #d90429;
  background: linear-gradient(135deg, #fff7f7, #ffe8e8);
}

/* Inner page article (from single.html) */
main > article {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* === Headings === */

main h2 {
  color: #1e3c72;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

main h3 {
  color: #2a5298;
}

/* === Banner strip (proceedings etc) === */

.banner-strip {
  background: #1e3c72;
  color: #fff;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.banner-strip a {
  color: #fff;
  text-decoration: none;
}

.banner-strip a:hover {
  color: #aad4ff;
}

/* === Conference details callout (important dates) === */

.conf-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  border-left: 5px solid #1e3c72;
  background: linear-gradient(135deg, #f0f4ff, #e3ecff);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.conf-detail {
  display: flex;
  flex-direction: column;
}

.conf-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a5298;
}

.conf-detail-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e3c72;
}

/* === Sponsors === */

.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0;
}

.sponsors-grid img {
  height: auto;
}

/* === Topics grid === */

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* === Chairs grid === */

.chairs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.chair-group {
  background: #f8f9fb;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #e0e4ea;
}

.chair-group h4 {
  color: #0e7490;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.chair-group p {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

/* === Tables === */

table {
  border-collapse: collapse;
  width: 100%;
}

table th, table td {
  border: 1px solid #c0c8d0;
  padding: 0.6rem 0.8rem;
}

table thead th {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  font-weight: 700;
  border-color: #fff;
}

table tbody tr:nth-child(even) {
  background-color: #f0f4ff;
}

table tbody tr:hover {
  background-color: #e3ecff;
}

/* Schedule: time column */
table th:first-child,
table td:first-child {
  white-space: nowrap;
  width: 22%;
}

/* === Awards === */

article.award-gold {
  border-left: 6px solid #d4af37;
}

article.award-silver {
  border-left: 6px solid #9e9e9e;
}

article.award-bronze {
  border-left: 6px solid #cd7f32;
}

/* === Footer === */

footer {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 2rem;
  padding-bottom: 1rem;
}

footer ul.archive-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

footer ul.archive-links li {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul.archive-links li::before {
  content: none;
}

/* === PDF embed === */

object[type="application/pdf"] {
  width: 100%;
  min-height: 800px;
  border: 1px solid #c0c8d0;
  border-radius: 8px;
}

/* === Button links === */

a.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  background: #1e3c72;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(13, 27, 42, 0.18);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.btn:hover {
  background: #2f63c0;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(47, 99, 192, 0.35);
}

a.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(13, 27, 42, 0.22);
}

a.btn:focus-visible {
  outline: 2px solid #2a5298;
  outline-offset: 2px;
}

/* === Registration fee table responsive === */

@media (max-width: 767px) {
  .fee-table thead {
    display: none;
  }
  .fee-table td {
    display: block;
    text-align: left;
    padding: 0.5rem;
  }
  .fee-table td::before {
    content: attr(data-label) ": ";
    font-weight: bold;
    color: #1e3c72;
  }
  .fee-table tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #c0c8d0;
    border-radius: 8px;
    padding: 0.5rem;
  }
}

/* === Spacing: hero to content === */

.hero + main {
  margin-top: 1.5rem;
}

/* === Mobile === */

@media (max-width: 767px) {
  .hero-content {
    padding: 1.5rem 1rem 1rem;
  }
  .hero h1 {
    font-size: 1.1rem;
  }
  .hero-subtitle {
    font-size: 0.8rem;
  }
  .card {
    padding: 1rem;
  }
  .chairs-grid {
    grid-template-columns: 1fr;
  }
}
