/* ============================================================
   ADDITIONS — paste these at the bottom of assets/css/styles.css
   ============================================================ */


/* ------------------------------------------------------------
   SPONSOR LOGO CONTAINERS
   Uniform fixed-size cells so logos of varying dimensions
   all sit at the same visual weight.
   ------------------------------------------------------------ */

/* Replace the existing .sponsors__row contents with <a> tags
   that use this class, each containing an <img>. */
.sponsors__logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 60px;
  opacity: 0.72;
  transition: opacity 0.26s ease;
}

.sponsors__logo-cell:hover {
  opacity: 1;
}

.sponsors__logo-cell img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}


/* ------------------------------------------------------------
   INSTRUCTOR MODAL
   ------------------------------------------------------------ */

/* Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.is-open {
  display: flex;
}

/* Dialog box */
.modal {
  background: #ffffff;
  border-radius: 8px;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.28);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Header bar */
.modal__header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1;
}

.modal__name {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: #252525;
  margin-bottom: 2px;
}

.modal__topic {
  font-size: 0.8rem;
  font-weight: 700;
  color: #C52E2E;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.modal__course-title {
  font-size: 0.95rem;
  font-style: italic;
  color: #444;
  line-height: 1.4;
}

.modal__duration-badge {
  display: inline-block;
  margin-top: 8px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #555;
  padding: 3px 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Close button */
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #888;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.modal__close:hover {
  color: #C52E2E;
  background: #f5f5f5;
}

/* Body */
.modal__body {
  padding: 20px 24px 28px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

.modal__section-label {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #252525;
  margin: 20px 0 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid #C52E2E;
  display: inline-block;
}

.modal__description {
  margin-bottom: 4px;
}

.modal__objectives {
  padding-left: 20px;
  margin-top: 4px;
}

.modal__objectives li {
  margin-bottom: 5px;
}

/* Course outline table */
.modal__outline-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
  font-size: 0.85rem;
}

.modal__outline-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}

.modal__outline-table tr:last-child td {
  border-bottom: none;
}

.modal__outline-table td:first-child {
  white-space: nowrap;
  font-weight: 700;
  color: #252525;
  width: 90px;
}

/* Course link */
.modal__course-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  background: #C52E2E;
  color: #ffffff;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.26s ease, transform 0.26s ease;
}

.modal__course-link:hover {
  background: #a02020;
  transform: translateY(-1px);
}

/* Instructor card "View Details" button */
.instructor-card__details-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: none;
  border: 1px solid #C52E2E;
  color: #C52E2E;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.26s ease, color 0.26s ease;
}

.instructor-card__details-btn:hover {
  background: #C52E2E;
  color: #ffffff;
}

/* Instructor card photo */
.instructor-card__photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.instructor-card__photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #e0e0e0;
  display: block;
}

/* Prevent body scroll when modal is open */
body.modal-is-open {
  overflow: hidden;
}

/* Responsive — full-screen modal on mobile */
@media (max-width: 640px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    border-radius: 12px 12px 0 0;
    max-height: 92vh;
  }
}

/* ============================================================
   EARLY BIRD BANNER
   ============================================================ */
.early-bird-banner {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 14px 24px;
  text-align: center;
}

.early-bird-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.92rem;
}

.early-bird-banner__inner i {
  font-size: 1rem;
  flex-shrink: 0;
}

.early-bird-banner__inner p {
  margin: 0;
  line-height: 1.4;
}

.early-bird-banner__cta {
  display: inline-flex;
  align-items: center;
  background: var(--color-white);
  color: var(--color-primary);
  font-family: var(--font-cta);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.early-bird-banner__cta:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

@media (max-width: 640px) {
  .early-bird-banner__inner {
    flex-direction: column;
    gap: 8px;
  }
}