:root {
  --bs-primary: #7c1f21;
  --bs-primary-rgb: 124, 31, 33;
  --bs-secondary: #c88f1e;
  --bs-secondary-rgb: 200, 143, 30;
  --bs-link-color: #7c1f21;
  --bs-link-hover-color: #63191b;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1f1f1f;
}

.font-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.section-padding {
  padding: 4.5rem 0;
}

.section-muted {
  background: #f8f5f1;
}

.section-divider,
.banner-divider {
  width: 4rem;
  height: 0.25rem;
  border-radius: 999px;
  background: var(--bs-secondary);
}

.section-description {
  max-width: 48rem;
}

.section-label {
  letter-spacing: 0.08em;
}

.page-banner {
  background: linear-gradient(120deg, #7c1f21 0%, #92292b 60%, #7c1f21 100%);
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-navbar .navbar-brand {
  margin-right: 0.5rem;
  padding-top: 0;
  padding-bottom: 0;
}

.brand-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.03rem;
  line-height: 1.1;
  color: var(--bs-primary);
  letter-spacing: 0.01em;
}

.brand-subtitle {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.15;
}

.site-navbar {
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
}

.site-navbar .nav-link {
  font-size: 0.96rem;
  white-space: nowrap;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

.site-navbar .navbar-nav {
  column-gap: 0.15rem;
  align-items: center;
}

@media (max-width: 1399.98px) {
  .brand-title {
    font-size: 1.06rem;
  }

  .brand-subtitle {
    font-size: 0.9rem;
  }

  .site-navbar .nav-link {
    font-size: 0.94rem;
  }
}

@media (max-width: 1199.98px) {
  .site-navbar .navbar-collapse {
    margin-top: 0.6rem;
    border-top: 1px solid #ececec;
    padding-top: 0.6rem;
  }

  .site-navbar .nav-link {
    font-size: 0.93rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }

  .brand-subtitle {
    font-size: 0.95rem;
  }
}

@media (max-width: 575.98px) {
  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .brand-title {
    font-size: 0.98rem;
  }

  .brand-subtitle {
    font-size: 0.76rem;
  }
}

.footer-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.footer-link:hover {
  color: var(--bs-secondary);
}

.table-theme thead th {
  background: var(--bs-primary);
  color: #fff;
}

.badge-soft-primary {
  background: rgba(124, 31, 33, 0.12);
  color: var(--bs-primary);
}

.badge-soft-secondary {
  background: rgba(200, 143, 30, 0.16);
  color: #9b6b0b;
}

.card-soft {
  background: #fbfaf8;
  border: 1px solid #ede4dc;
}

.past-card-image-wrap {
  background: #fff;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  border-bottom: 1px solid #ececec;
}

.past-card-image {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(124, 31, 33, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.text-justify {
  text-align: justify;
}

.h-3 { height: 0.75rem; }
.w-3 { width: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.w-3\.5 { width: 0.875rem; }
.h-4 { height: 1rem; }
.w-4 { width: 1rem; }
.h-5 { height: 1.25rem; }
.w-5 { width: 1.25rem; }
.h-6 { height: 1.5rem; }
.w-6 { width: 1.5rem; }
.h-10 { height: 2.5rem; }
.w-10 { width: 2.5rem; }

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content-custom {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 0;
  font-size: 30px;
  line-height: 1;
  color: #666;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75) !important;
}

html {
  scroll-behavior: smooth;
}

@media print {
  header,
  footer,
  .no-print {
    display: none !important;
  }
}

/* ===== Programme Page ===== */
.prog-wrapper { background: #f2f4f8; }

.prog-heading { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; color: #0f1e45; }
.prog-subtext { color: #5a6477; max-width: 600px; }

.prog-legend-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px; font-size: 0.82rem;
  font-weight: 500; border: 1.5px solid transparent; cursor: default;
}
.prog-legend-badge .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.badge-keynote    { background: #fffbea; border-color: #d4a017; color: #7a5800; }
.badge-keynote .dot    { background: #c88f1e; }
.badge-symposium  { background: #eff1f8; border-color: #9aa3c8; color: #2c3670; }
.badge-symposium .dot  { background: #4a5599; }
.badge-invited    { background: #eef6ff; border-color: #90bde8; color: #1a4f80; }
.badge-invited .dot    { background: #2d7ac8; }
.badge-ceremony   { background: #fffbea; border-color: #d4a017; color: #7a5800; }
.badge-ceremony .dot   { background: #c88f1e; }
.badge-break      { background: #f8f8f8; border-color: #d0d0d0; color: #555; }
.badge-break .dot      { background: #aaa; }
.badge-update     { background: #f0faf4; border-color: #7dc89a; color: #1a6635; }
.badge-update .dot     { background: #2e9e56; }

.prog-day-header { display: flex; align-items: center; gap: 14px; margin-bottom: 1.25rem; }
.prog-day-badge {
  background: #0f1e45; color: #fff;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 6px 18px; border-radius: 8px; white-space: nowrap;
}
.prog-day-title { font-size: 1.2rem; font-weight: 700; color: #0f1e45; margin: 0; }

.prog-item {
  background: #fff;
  border: 1px solid #e3e6ed;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.15s;
}
.prog-item:hover { box-shadow: 0 4px 18px rgba(15,30,69,0.09); }

.prog-item.type-keynote   { background: #fffbea; border-color: #e8c97a; }
.prog-item.type-symposium { background: #f0f2f8; border-color: #c5cde8; }
.prog-item.type-invited   { background: #eef6ff; border-color: #b0d4f4; }
.prog-item.type-ceremony  { background: #fffbea; border-color: #e8c97a; }
.prog-item.type-break     { background: #fafafa; border-color: #e3e3e3; }
.prog-item.type-update    { background: #f0faf4; border-color: #a8ddb8; }
.prog-item.type-end       { background: #f4f4f6; border-color: #ddd; }

.prog-time-block { min-width: 110px; text-align: right; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.prog-time-clock { display: flex; align-items: center; }
.prog-time-clock svg { opacity: 0.45; }
.prog-time-text { font-size: 0.82rem; font-weight: 600; color: #4a5577; font-variant-numeric: tabular-nums; }

.prog-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
  background: rgba(15,30,69,0.07);
}
.prog-item.type-keynote   .prog-icon { background: rgba(200,143,30,0.15); }
.prog-item.type-symposium .prog-icon { background: rgba(74,85,153,0.12); }
.prog-item.type-invited   .prog-icon { background: rgba(45,122,200,0.12); }
.prog-item.type-ceremony  .prog-icon { background: rgba(200,143,30,0.15); }
.prog-item.type-update    .prog-icon { background: rgba(46,158,86,0.12); }

.prog-content { flex: 1; }
.prog-title { font-size: 0.93rem; font-weight: 600; margin: 0 0 2px; line-height: 1.4; }
.prog-item.type-keynote   .prog-title { color: #c88f1e; }
.prog-item.type-symposium .prog-title { color: #0f1e45; }
.prog-item.type-invited   .prog-title { color: #1a5fa0; }
.prog-item.type-ceremony  .prog-title { color: #c88f1e; }
.prog-item.type-update    .prog-title { color: #1a6635; }
.prog-item.type-break     .prog-title { color: #444; font-weight: 500; }
.prog-item.type-end       .prog-title { color: #555; font-weight: 500; font-style: italic; }
.prog-subtitle { font-size: 0.8rem; color: #7a8099; margin: 0; }

.prog-disclaimer {
  background: #fdf8ec;
  border: 1px solid #e8c97a;
  border-radius: 12px;
  padding: 1.4rem 1.8rem;
  color: #5a4200;
}
.prog-disclaimer ul { margin: 0; padding-left: 1.2rem; }
.prog-disclaimer li { font-size: 0.88rem; margin-bottom: 4px; }
.prog-disclaimer li:last-child { margin-bottom: 0; }

@media (max-width: 767.98px) {
  .prog-time-block { min-width: 82px; }
  .prog-day-title { font-size: 1rem; }
}
