/* ============================================
   AYLF — PROGRAMS PAGE
   Theme: Gold
   ============================================ */
body[data-theme="program"] { background: #fdf9ee; }
body[data-theme="program"] .hero-image {
  background-image: url("../images/gallery/11.jpg");
  background-position: center 30%;
  background-size: cover;
  background-repeat: no-repeat;
}
body[data-theme="program"] .section-white { background: #ffffff; }
body[data-theme="program"] .section-cream { background: #fefbf3; }

body[data-theme="program"] .filter-section {
  padding: 60px 0 30px;
  background: rgba(253, 249, 238, .97);
  border-bottom: 1px solid rgba(212, 175, 55, .18);
  position: sticky; top: 82px; z-index: 15;
  backdrop-filter: blur(12px);
}
body[data-theme="program"] .filter-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; max-width: 1000px; margin: 0 auto;
}
body[data-theme="program"] .filter-btn {
  padding: 11px 22px; background: transparent;
  border: 1px solid rgba(212, 175, 55, .3); border-radius: 3px;
  font-family: var(--font-body); font-size: 12px;
  font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #7d6214;
  cursor: pointer; transition: all .25s ease; white-space: nowrap;
}
body[data-theme="program"] .filter-btn:hover {
  border-color: #d4af37; background: rgba(212, 175, 55, .08); transform: translateY(-2px);
}
body[data-theme="program"] .filter-btn.active {
  background: #d4af37; color: #7d6214;
  border-color: #d4af37; box-shadow: 0 8px 20px rgba(212, 175, 55, .35);
}

body[data-theme="program"] .programmes-section { padding: 60px 0 100px; background: #fdf9ee; min-height: 60vh; }
body[data-theme="program"] .programmes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
body[data-theme="program"] .programme-card {
  border-radius: 8px; overflow: hidden;
  background: #fff;
  border: 1px solid rgba(212, 175, 55, .18);
  box-shadow: 0 4px 18px rgba(125, 98, 20, .08);
  transition: transform .35s, box-shadow .35s, border-color .35s;
  display: flex; flex-direction: column; cursor: pointer; position: relative;
}
body[data-theme="program"] .programme-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(212, 175, 55, .25);
  border-color: #d4af37;
}
body[data-theme="program"] .programme-card.hidden { display: none; }
body[data-theme="program"] .programme-card-image { position: relative; height: 240px; overflow: hidden; background: #fdf9ee; }
body[data-theme="program"] .programme-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s; filter: saturate(.95);
}
body[data-theme="program"] .programme-card:hover .programme-card-image img { transform: scale(1.06); filter: saturate(1); }
body[data-theme="program"] .programme-card-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(125, 98, 20, .82) 100%);
}
body[data-theme="program"] .programme-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: #e8c968; color: #7d6214;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 3px;
}
body[data-theme="program"] .programme-card-body { padding: 26px 24px 24px; flex: 1; display: flex; flex-direction: column; }
body[data-theme="program"] .programme-card-body h3 {
  font-family: var(--font-display); font-size: 19px;
  font-weight: 700; letter-spacing: -.04em;
  color: #7d6214; line-height: 1.3; margin: 0 0 12px;
}
body[data-theme="program"] .programme-card-body p {
  font-size: 14px; color: #6b6250; line-height: 1.7;
  margin: 0 0 20px; flex: 1;
}
body[data-theme="program"] .programme-card-cta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; border-top: 1px solid rgba(212, 175, 55, .18);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: #7d6214;
}
body[data-theme="program"] .programme-card-cta .arrow { font-size: 16px; color: #d4af37; transition: transform .3s; }
body[data-theme="program"] .programme-card:hover .programme-card-cta .arrow { transform: translateX(5px); }

body[data-theme="program"] .no-results {
  grid-column: 1 / -1; text-align: center;
  padding: 80px 20px; color: #6b6250;
  font-size: 14px; display: none;
}
body[data-theme="program"] .no-results.show { display: block; }

/* Popup modal */
body[data-theme="program"] .aylf-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(92, 74, 14, .92);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999; opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
  padding: 24px; overflow-y: auto;
}
body[data-theme="program"] .aylf-modal-overlay.active { opacity: 1; visibility: visible; }
body[data-theme="program"] .aylf-modal-container {
  background: #fff; border-radius: 12px;
  max-width: 900px; width: 100%; max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: translateY(30px) scale(.97);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
  border-top: 4px solid #d4af37;
}
body[data-theme="program"] .aylf-modal-overlay.active .aylf-modal-container { transform: translateY(0) scale(1); }
body[data-theme="program"] .aylf-modal-close {
  position: sticky; top: 12px; float: right;
  margin-right: 12px; width: 42px; height: 42px;
  border-radius: 50%; border: none;
  background: #7d6214; color: #e8c968;
  font-size: 26px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .25s, transform .25s, color .25s;
  z-index: 10;
}
body[data-theme="program"] .aylf-modal-close:hover { background: #d4af37; color: #7d6214; transform: rotate(90deg); }
body[data-theme="program"] .aylf-modal-content { display: none; }
body[data-theme="program"] .aylf-modal-content.loaded { display: block; }
body[data-theme="program"] .aylf-profile-header {
  padding: 40px 50px 30px;
  background: linear-gradient(135deg, #fdf9ee 0%, #fff 100%);
  border-bottom: 1px solid rgba(212, 175, 55, .18);
  display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap;
}
body[data-theme="program"] .aylf-profile-image {
  width: 170px; min-height: 170px;
  max-width: 170px;
  border-radius: 8px;
  overflow: hidden; flex-shrink: 0;
  border: 3px solid #d4af37;
  background: #fdf9ee;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 8px 24px rgba(125, 98, 20, .14);
}
body[data-theme="program"] .aylf-profile-image img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
body[data-theme="program"] .aylf-profile-titles {
  flex: 1; min-width: 260px;
}
body[data-theme="program"] .aylf-profile-titles h2 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  letter-spacing: -.03em; color: #7d6214;
  margin: 0 0 10px; line-height: 1.25;
}
body[data-theme="program"] .aylf-profile-titles h3 {
  font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: #a8871f; margin: 0 0 12px;
}
body[data-theme="program"] .aylf-profile-body {
  padding: 36px 50px 24px;
  font-size: 15px; line-height: 1.85; color: #4a4433;
}
body[data-theme="program"] .aylf-profile-body h3,
body[data-theme="program"] .aylf-profile-body h4,
body[data-theme="program"] .aylf-profile-body h5,
body[data-theme="program"] .aylf-profile-body h6 {
  font-family: var(--font-display);
  color: #7d6214;
  margin: 26px 0 12px;
  font-weight: 700;
  line-height: 1.3;
}
body[data-theme="program"] .aylf-profile-body h3 { font-size: 22px; }
body[data-theme="program"] .aylf-profile-body h4 { font-size: 18px; color: #7d6214; }
body[data-theme="program"] .aylf-profile-body h5 { font-size: 16px; color: #5c4a0e; }
body[data-theme="program"] .aylf-profile-body h6 { font-size: 13.5px; text-transform: uppercase; letter-spacing: .06em; color: #a8871f; }
body[data-theme="program"] .aylf-profile-body p { margin: 0 0 16px; line-height: 1.8; color: #4a4433; }
body[data-theme="program"] .aylf-profile-body ul,
body[data-theme="program"] .aylf-profile-body ol {
  margin: 0 0 20px 24px; padding: 0; color: #4a4433;
}
body[data-theme="program"] .aylf-profile-body li { margin-bottom: 8px; line-height: 1.7; }
body[data-theme="program"] .aylf-profile-body a { color: #7d6214; text-decoration: underline; font-weight: 600; }
body[data-theme="program"] .aylf-profile-body a:hover { color: #d4af37; }
body[data-theme="program"] .aylf-profile-body table {
  width: 100%; border-collapse: collapse; margin: 22px 0 28px;
  background: #ffffff; border: 1px solid rgba(212, 175, 55, .25);
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(125, 98, 20, .06);
}
body[data-theme="program"] .aylf-profile-body th,
body[data-theme="program"] .aylf-profile-body td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid rgba(212, 175, 55, .15); font-size: 14px;
}
body[data-theme="program"] .aylf-profile-body th {
  background: #fdf6df; color: #7d6214; font-weight: 700;
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em;
}
body[data-theme="program"] .aylf-profile-body tr:last-child td { border-bottom: none; }

/* In-modal Speakers Directory (no broken popup-within-popup) */
body[data-theme="program"] .programme-speakers-section {
  margin-top: 36px; padding-top: 28px;
  border-top: 2px solid rgba(212, 175, 55, .22);
}
body[data-theme="program"] .programme-speakers-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: #7d6214; margin: 0 0 20px; display: flex; align-items: center; gap: 10px;
}
body[data-theme="program"] .programme-speakers-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
body[data-theme="program"] .speaker-card {
  background: #fdfbf7; border: 1px solid rgba(212, 175, 55, .22);
  border-radius: 8px; overflow: hidden; transition: all .25s ease;
  display: flex; flex-direction: column;
}
body[data-theme="program"] .speaker-card:hover {
  border-color: #d4af37; box-shadow: 0 8px 22px rgba(125, 98, 20, .12);
  transform: translateY(-2px);
}
body[data-theme="program"] .speaker-card-top {
  display: flex; gap: 14px; padding: 14px; align-items: center;
}
body[data-theme="program"] .speaker-avatar {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; border: 2px solid #d4af37; background: #fff;
}
body[data-theme="program"] .speaker-info { flex: 1; min-width: 0; }
body[data-theme="program"] .speaker-name {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  color: #7d6214; margin: 0 0 4px; line-height: 1.25;
}
body[data-theme="program"] .speaker-role {
  font-size: 12px; color: #a8871f; margin: 0; line-height: 1.35;
}
body[data-theme="program"] .speaker-bio-toggle {
  background: #fbf7ee; border: none;
  border-top: 1px solid rgba(212, 175, 55, .18);
  padding: 9px 14px; font-size: 11.5px; font-weight: 700;
  color: #7d6214; cursor: pointer; display: flex;
  align-items: center; justify-content: space-between;
  text-transform: uppercase; letter-spacing: .05em;
  transition: background .2s; width: 100%;
}
body[data-theme="program"] .speaker-bio-toggle:hover { background: #f5eed4; }
body[data-theme="program"] .speaker-bio-toggle i { transition: transform .25s ease; }
body[data-theme="program"] .speaker-bio-toggle.active i { transform: rotate(180deg); }
body[data-theme="program"] .speaker-bio-drawer {
  display: none; padding: 14px; font-size: 13px;
  line-height: 1.7; color: #4a4433; background: #fff;
  border-top: 1px dashed rgba(212, 175, 55, .25);
}
body[data-theme="program"] .speaker-bio-drawer.open { display: block; }
body[data-theme="program"] .speaker-bio-drawer p { margin: 0 0 10px; font-size: 13px; line-height: 1.7; }
body[data-theme="program"] .speaker-bio-drawer p:last-child { margin-bottom: 0; }
body[data-theme="program"] .aylf-profile-footer {
  padding: 24px 50px 32px;
  border-top: 1px solid rgba(212, 175, 55, .18);
  display: flex; gap: 14px; flex-wrap: wrap;
  background: #fefbf3;
}
body[data-theme="program"] .aylf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 12px 24px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: 3px; border: none; cursor: pointer;
  transition: background .25s, transform .25s, color .25s;
  text-decoration: none;
}
body[data-theme="program"] .aylf-btn-primary { background: #d4af37; color: #7d6214; }
body[data-theme="program"] .aylf-btn-primary:hover { background: #e8c968; transform: translateY(-2px); }
body[data-theme="program"] .aylf-btn-outline {
  background: transparent; color: #7d6214;
  border: 1px solid rgba(212, 175, 55, .3);
}
body[data-theme="program"] .aylf-btn-outline:hover { background: #7d6214; color: #e8c968; transform: translateY(-2px); }

body[data-theme="program"] .cta-section {
  background: linear-gradient(135deg, #d4af37 0%, #a8871f 100%);
  color: #7d6214;
}



body[data-theme="program"] .cta-section h2 { color: #fff; }
body[data-theme="program"] .cta-section h2 em { color: #fff; opacity: .85; }
body[data-theme="program"] .cta-section .cta-right p { color: #fff; }
body[data-theme="program"] .cta-section .eyebrow.light { color: #fff; }
body[data-theme="program"] .cta-section .eyebrow.light > span { background: #7d6214; }
body[data-theme="program"] .cta-section .btn-lime { background: #7d6214; color: #fff; }
body[data-theme="program"] .cta-section .cta-decoration { color: rgba(92, 74, 14, .08); }

body[data-theme="program"] .stats-grid-modern .stat-card {
  background: #fff; border-color: rgba(212, 175, 55, .18);
}
body[data-theme="program"] .stats-grid-modern .stat-card .stat-number { color: #a8871f; }
body[data-theme="program"] .stats-grid-modern .stat-card .stat-label { color: #7d6214; }
body[data-theme="program"] .stats-grid-modern .stat-card p { color: #6b6250; }

@media (max-width: 820px) {
  body[data-theme="program"] .filter-section { top: 72px; padding: 40px 0 20px; position: static; }
  body[data-theme="program"] .programmes-grid { grid-template-columns: 1fr; gap: 18px; }
  body[data-theme="program"] .programme-card-image { height: 210px; }
  body[data-theme="program"] .aylf-modal-overlay { padding: 0; align-items: flex-start; }
  body[data-theme="program"] .aylf-modal-container { border-radius: 0; max-height: 100vh; min-height: 100vh; }
  body[data-theme="program"] .aylf-profile-header { padding: 28px 24px 22px; flex-direction: column; align-items: center; text-align: center; }
  body[data-theme="program"] .aylf-profile-titles { min-width: 0; padding-top: 0; }
  body[data-theme="program"] .aylf-profile-titles h2 { font-size: 24px; }
  body[data-theme="program"] .aylf-profile-body { padding: 28px 24px 16px; font-size: 14px; }
  body[data-theme="program"] .aylf-profile-footer { padding: 20px 24px 28px; }
}