@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;900&display=swap');

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  background: #f5f5f5;
  color: #111;
  line-height: 1.7;
}

/* HEADER */
.site-header {
  background: linear-gradient(135deg, #B01C33, #438696);
  color: white;
  min-height: 30vh;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.site-header h1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.75rem;
  font-weight: 400;
  opacity: 0.95;
}

.subtitle-small {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
}

/* INTRO */
.intro {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: -3.3rem auto 3rem;
  text-align: center;
}

.intro p {
  font-size: 1.15rem;
  color: #222;
}

.intro a {
  font-weight: 600;
  color: #B01C33;
  text-decoration: none;
}

.intro a:hover {
  text-decoration: underline;
}

/* SECTION TITLE */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 200px;
  height: 3px;
  background: linear-gradient(135deg, #B01C33, #438696);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* GET INVOLVED */
.involved-buttons {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
  gap: 1rem;
  justify-content: center;
}

.involved-btn {
  background-color: #f7edf1;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.involved-btn:hover {
  background-color: #fdd8e5;
}

/* SCHEDULE */
.schedule {
  margin-bottom: 4rem;
  text-align: center;
}

/* SCHEDULE TABLE CONTAINER */
.schedule-table-container {
  background: white;
  margin: 0 auto 5rem;
  max-width: 1250px;
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
  overflow-x: auto;
}

/* SCHEDULE TABLE */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 1.1rem;
  border-radius: 12px;
  table-layout: fixed;
}

/* Column widths */
.schedule-table th:nth-child(1),
.schedule-table td:nth-child(1) {
  width: 16%;
}

.schedule-table th:nth-child(2),
.schedule-table td:nth-child(2) {
  width: 48%;
}

.schedule-table th:nth-child(3),
.schedule-table td:nth-child(3) {
  width: 36%;
  overflow-wrap: break-word;
}

/* Table header */
.schedule-table thead th {
  background: #F2F4F8;
  color: #111;
  padding: 1.2rem;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  border-bottom: 2px solid #eee;
}

/* Table body */
.schedule-table tbody td {
  padding: 1.2rem;
  border-top: 1px solid #f0f0f0;
  color: #333;
}

.schedule-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.schedule-table tbody tr:hover {
  background: #F2F4F8;
  transition: background 0.3s ease;
}

/* Speaker formatting */
.schedule-table .speaker-link {
  display: inline-block;
  color: #2b4c7e;
  text-decoration: none;
}

.schedule-table .speaker-link:hover {
  color: #1d3557;
  text-decoration: underline;
}

.schedule-table .speaker-name {
  display: block;
  font-weight: 600;
  line-height: 1.35;
}

.schedule-table .speaker-role {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.92em;
  color: #6b7280;
}

/* Multiple speakers */
.schedule-table .speaker-item + .speaker-item {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #e5e7eb;
}

/* Topic links */
.schedule-table td:nth-child(3) a {
  color: #2b4c7e;
  text-decoration: none;
}

.schedule-table td:nth-child(3) a:hover {
  color: #1d3557;
  text-decoration: underline;
}

/* TBA pill */
.schedule-table .tba {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 600;
  font-size: 0.85em;
}

/* --- Mid-size view --- */
@media (max-width: 800px) {
  .schedule-table {
    table-layout: auto;
  }

  .schedule-table th,
  .schedule-table td {
    width: auto !important;
  }
}

/* --- Mobile view --- */
@media (max-width: 700px) {
  .schedule-table thead {
    display: none;
  }

  .schedule-table,
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table td {
    display: block;
    width: 100%;
  }

  .schedule-table tr {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    background: #fff;
    padding: 1rem;
    text-align: left;
  }

  .schedule-table td {
    border-top: none !important;
    margin-bottom: 1rem;
    background: transparent;
    box-shadow: none;
    padding-left: 0;
  }

  .schedule-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    color: #2a2a2a;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }
}

/* FOOTER */
.site-footer {
  background: #f1f1f1;
  color: #444;
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid #ddd;
}

.site-footer a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}

:root {
  --accent-color: #B01C33;
}

/* ===== Schedule Tabs (added, non-invasive) ===== */

.schedule-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: #f7edf1;
}

.tab-btn.active {
  background: #B01C33;
  color: white;
  border-color: #B01C33;
}

.schedule-panel {
  display: none;
}

.schedule-panel.active {
  display: block;
}
