:root {
  --sbqs-green: #4aa82e;
  --sbqs-green-dark: #318d28;
  --sbqs-border: #d8d8d8;
  --sbqs-bg: #f7f8f6;
  --sbqs-text: #222;
}

* { box-sizing: border-box; }

.event-schedule {
  width: 100%;
}

.programacao {
  width: 100%;
}

.dias {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.dias button {
  border: 1px solid var(--sbqs-green);
  background: white;
  color: #2d7028;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.dias button:hover,
.dias button.active {
  background: var(--sbqs-green);
  color: white;
}

.tabela-programacao {
  width: 100%;
  border-collapse: collapse;
  background: white;
  margin-bottom: 20px;
  table-layout: fixed;
}

.tabela-programacao th,
.tabela-programacao td {
  border: 1px solid var(--sbqs-border);
  padding: 10px 8px;
  text-align: center;
  vertical-align: middle;
}

.tabela-programacao thead th {
  background: var(--sbqs-green);
  color: white;
  font-weight: 700;
}

.tabela-programacao th:first-child,
.tabela-programacao td:first-child {
  width: 150px;
}

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

.tabela-programacao a {
  color: #1d6f1b;
  font-weight: 700;
  text-decoration: none;
}

.tabela-programacao a:hover {
  text-decoration: underline;
}

.search-bar {
  margin: 20px 0;
}

.search-bar input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--sbqs-border);
  border-radius: 6px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,.65);
  padding: 30px 16px;
  overflow: auto;
}

.modal-content-custom {
  position: relative;
  max-width: 760px;
  margin: 30px auto;
  background: white;
  border-radius: 10px;
  padding: 28px;
}

.modal-content-custom img {
  display: block;
  max-width: 220px;
  max-height: 260px;
  margin: 0 auto 20px;
  border-radius: 8px;
  object-fit: cover;
}

.close {
  position: absolute;
  top: 8px;
  right: 16px;
  font-size: 30px;
  cursor: pointer;
}

/* Modal de keynote: reaproveita o card .sbqs-speaker */
.modal-content-custom.modal-keynote {
  max-width: 1000px;
  padding: 0;
  background: transparent;
  border-radius: 16px;
}

.modal-keynote .close {
  z-index: 1;
  color: #444;
  line-height: 1;
}

.modal-keynote .sbqs-speaker-header img {
  max-width: none;
  max-height: none;
  margin: 0;
}

@media (max-width: 760px) {
  .modal {
    padding: 16px;
  }

  .modal-content-custom.modal-keynote {
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .pagina-default { padding: 15px 8px 35px; }

  .tabela-programacao {
    font-size: 13px;
  }

  .tabela-programacao th,
  .tabela-programacao td {
    padding: 8px 4px;
  }

  .tabela-programacao th:first-child,
  .tabela-programacao td:first-child {
    width: 105px;
  }

  .dias {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .dias button {
    white-space: nowrap;
  }
}


/* =========================================================
   PROGRAMAÇÃO DETALHADA — KEYNOTES
   ========================================================= */

.keynotes-section {
  margin: 0 0 34px;
}

.keynotes-header {
  margin-bottom: 22px;
  text-align: center;
}

.keynotes-label {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--sbqs-green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.keynotes-header h2 {
  margin: 0;
  color: #252525;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
}

.keynotes-header p {
  max-width: 680px;
  margin: 10px auto 0;
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}

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

.keynote-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border: 1px solid #e2e5df;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.keynote-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--sbqs-green);
}

.keynote-card:hover {
  transform: translateY(-3px);
  border-color: #cddfc8;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .1);
}

.keynote-card__content {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 30px 28px 25px;
}

.keynote-card__tag {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef7eb;
  color: var(--sbqs-green-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.keynote-card__date {
  color: #777;
  font-size: 13px;
  font-weight: 600;
}

.keynote-card h3 {
  margin: 12px 0 5px;
  color: #242424;
  font-size: clamp(23px, 3vw, 29px);
  line-height: 1.2;
}

.keynote-card__role {
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.5;
}

.keynote-card__location {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 22px;
  color: #555;
  font-size: 14px;
  font-weight: 600;
}

.keynote-card__icon {
  color: var(--sbqs-green-dark);
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 760px) {
  .keynotes-grid {
    grid-template-columns: 1fr;
  }

  .keynote-card,
  .keynote-card__content {
    min-height: 220px;
  }

  .keynote-card__content {
    padding: 27px 22px 22px;
  }
}
