/* ============================================================
   CMS dynamic content styles
   Scoped styling for content rendered from the admin CMS
   (members, sponsors, agenda, registration). Matches the
   existing Gastro brand tokens defined in styles.css.
   Loaded only on the converted .php pages.
   ============================================================ */

/* ---------- Members section intro (eyebrow + title) ---------- */
.members-section { background: var(--brand-ice, #EDF7FB); }
.members-intro { margin-bottom: clamp(2rem, 4vw, 3rem); }
.members-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-eyebrow, #0099CC);
  margin-bottom: .5rem;
}
.members-eyebrow .line {
  width: 30px;
  height: 2px;
  background: var(--brand-cyan, #189AD6);
  display: inline-block;
}
.members-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--brand-navy, #16478A);
  margin: 0;
}

/* ---------- Member grid (Speakers / Moderators / Committees) ---------- */
.team-grid { margin-top: .5rem; }
.team-grid .team-card {
  width: 100%;
  padding: 2rem 1.25rem 1.75rem;
  background: #fff !important;
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(22, 71, 138, .09);
  border: 1px solid rgba(203, 231, 245, .7);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* wrapper reset — legacy .team-member adds font-size/color/margin */
.team-grid .team-card .team-member {
  font-size: inherit;
  color: inherit;
  margin-bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* subtle top accent bar that reveals on hover */
.team-grid .team-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--brand-cyan, #189AD6), var(--brand-navy, #16478A));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.team-grid .team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(22, 71, 138, .18);
  border-color: transparent;
}
.team-grid .team-card:hover::before { transform: scaleX(1); }

/* photo with gradient ring — high specificity to override legacy .team-card img */
.team-grid .team-card .team-photo-ring {
  width: 160px;
  height: 160px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--brand-cyan, #189AD6), var(--brand-navy, #16478A));
  box-sizing: border-box;
  flex: 0 0 auto;
  transition: transform .3s ease;
}
.team-grid .team-card:hover .team-photo-ring { transform: scale(1.04); }
.team-grid .team-card .team-photo-ring img.team-photo {
  width: 152px !important;
  height: 152px !important;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  display: block;
  box-sizing: border-box;
  margin: 0 !important;
}
.team-grid .team-name {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--brand-navy, #16478A);
  margin-top: 0;
  margin-bottom: .3rem;
  line-height: 1.3;
}
.team-grid .team-title {
  font-family: "Poppins", sans-serif;
  font-size: .9rem;
  color: var(--light-gray, #5A6B7B);
  margin-bottom: .15rem;
  line-height: 1.45;
}
.team-grid .team-affiliation {
  color: var(--brand-cyan-dark, #127BAE);
  font-weight: 500;
}

/* ---------- Sponsors / Partners ---------- */
.sponsor-group { margin-bottom: 3rem; }
.sponsor-group-title {
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-navy, #16478A);
  margin-bottom: 1.75rem;
  position: relative;
}
.sponsor-group-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: .6rem auto 0;
  background: linear-gradient(135deg, var(--brand-cyan, #189AD6), var(--brand-navy, #16478A));
  border-radius: 3px;
}
.sponsor-logo {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(22, 71, 138, .08);
  border: 1px solid rgba(203, 231, 245, .6);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.sponsor-logo:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(22, 71, 138, .16);
  border-color: var(--brand-cyan-light, #4CAEDE);
}
.sponsor-logo img {
  max-width: 100%;
  max-height: 95px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .78;
  transition: filter .3s ease, opacity .3s ease;
}
.sponsor-logo:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Agenda (tabs + timeline cards) ---------- */
/* Tablet-frame wrapper — rounded white "device" card holding the agenda */
.tablet-device {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 48px;
  border: 3px solid rgba(24, 154, 214, .18);
  box-shadow:
    0 0 0 1px rgba(24, 154, 214, .10),
    0 40px 80px -20px rgba(0, 0, 0, .18),
    0 8px 24px rgba(24, 154, 214, .10);
  padding: 36px 40px 48px;
  position: relative;
  overflow: hidden;
}
.tablet-device::before {
  /* subtle top notch line, like a device speaker */
  content: "";
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 5px;
  border-radius: 999px;
  background: var(--brand-cyan-light, #4CAEDE);
  opacity: .5;
}
.tablet-device .agenda-tabs { margin-top: 1.5rem; }
@media (max-width: 640px) {
  .tablet-device { border-radius: 28px; padding: 28px 16px 32px; }
}

.agenda-day-tba { color: #5a6b7b; font-style: italic; padding-left: 1.5rem; }

/* Day tabs — two-line pill (DAY N / weekday date) */
.agenda-tabs {
  border: none;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.agenda-tab-btn {
  font-family: "Poppins", sans-serif;
  color: var(--brand-navy, #16478A);
  background: #fff;
  border: 1.5px solid var(--brand-ice-2, #CBE7F5);
  border-radius: 18px;
  padding: .85rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 6px 18px rgba(22, 71, 138, .06);
  min-width: 175px;
}
.agenda-tab-day {
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .7;
}
.agenda-tab-date { font-weight: 700; font-size: 1.02rem; }
.agenda-tab-btn:hover {
  border-color: var(--brand-cyan, #189AD6);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(22, 71, 138, .12);
}
.agenda-tab-btn.active {
  background: linear-gradient(135deg, var(--brand-navy-dark, #0E2F5C), var(--brand-navy, #16478A));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(14, 47, 92, .32);
}
.agenda-tab-btn.active .agenda-tab-day { opacity: .65; }

.agenda-tab-content .tab-pane.show { animation: agendaFade .45s ease; }
@keyframes agendaFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Timeline list */
.agenda-list { display: flex; flex-direction: column; gap: 1rem; }
.agenda-item {
  display: flex;
  gap: 1.1rem;
  align-items: stretch;
}
/* Left time badge */
.agenda-item-time {
  flex: 0 0 118px;
  background: linear-gradient(135deg, var(--brand-navy-dark, #0E2F5C), var(--brand-navy, #16478A));
  color: #fff;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .5rem;
  font-family: "Poppins", sans-serif;
  text-align: center;
}
.agenda-item-start { font-weight: 700; font-size: .92rem; line-height: 1.25; }
.agenda-item-end   { font-weight: 500; font-size: .78rem; opacity: .7; line-height: 1.25; }
.agenda-item-end::before { content: "– "; }

/* Right session card */
.agenda-item-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--brand-navy-dark, #0E2F5C), #123a70);
  color: #fff;
  border-radius: 14px;
  padding: 1rem 1.35rem;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 8px 24px rgba(14, 47, 92, .14);
}
.agenda-item-card:hover { transform: translateX(4px); box-shadow: 0 14px 32px rgba(14, 47, 92, .22); }
.agenda-item-icon {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  color: var(--brand-cyan-light, #4CAEDE);
  font-size: 1rem;
}
.agenda-item-body { flex: 1; min-width: 0; }
.agenda-item-title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  margin: 0;
  line-height: 1.4;
}
.agenda-item-sub { margin: .2rem 0 0; font-size: .88rem; color: rgba(255,255,255,.72); }
.agenda-item-summary { margin: .35rem 0 0; font-size: .84rem; color: rgba(255,255,255,.65); line-height: 1.55; }
.agenda-item-speakers {
  margin: .4rem 0 0;
  font-size: .88rem;
  color: var(--brand-cyan-light, #4CAEDE);
  font-weight: 500;
}
.agenda-item-speakers i { margin-right: .35rem; opacity: .8; }

/* Session-group header rows — lighter, gradient accent band */
.agenda-item--session .agenda-item-card {
  background: linear-gradient(135deg, var(--brand-cyan, #189AD6), var(--brand-navy, #16478A));
}
.agenda-item--session .agenda-item-title { font-weight: 700; letter-spacing: .3px; }
.agenda-item--session .agenda-item-icon { background: rgba(255,255,255,.2); color: #fff; }
/* Breaks — soft ice card instead of dark */
.agenda-item--break .agenda-item-card {
  background: var(--brand-ice, #EDF7FB);
  color: var(--brand-navy, #16478A);
  box-shadow: none;
  border: 1px dashed var(--brand-ice-2, #CBE7F5);
}
.agenda-item--break .agenda-item-icon { background: #fff; color: var(--brand-cyan, #189AD6); }
.agenda-item--break .agenda-item-time {
  background: var(--brand-ice, #EDF7FB);
  color: var(--brand-navy, #16478A);
}

@media (max-width: 640px) {
  .agenda-item { flex-direction: column; gap: .5rem; }
  .agenda-item-time {
    flex-direction: row;
    gap: .5rem;
    padding: .5rem 1rem;
    justify-content: flex-start;
  }
  .agenda-tab-btn { min-width: 140px; padding: .7rem 1.5rem; }
}

/* ---------- Grouped sessions (Session N + its talks) ---------- */
.agenda-group {
  margin-bottom: 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(14, 47, 92, .10);
}
.agenda-group-head {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: linear-gradient(135deg, var(--brand-cyan, #189AD6), var(--brand-navy, #16478A));
  color: #fff;
}
.agenda-group-time {
  flex: 0 0 118px;
  border-radius: 0;
  background: rgba(0,0,0,.16);
}
.agenda-group-title-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.35rem;
}
.agenda-group-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 1rem;
  flex: 0 0 auto;
}
.agenda-group-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .4px;
  flex: 1;
}
.agenda-group-count {
  font-family: "Poppins", sans-serif;
  font-size: .78rem;
  font-weight: 600;
  background: rgba(255,255,255,.2);
  padding: .3rem .85rem;
  border-radius: 999px;
  white-space: nowrap;
}
/* nested talks under a session */
.agenda-group-body {
  background: var(--brand-ice, #EDF7FB);
  padding: 1rem 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  border-left: 3px solid var(--brand-cyan, #189AD6);
}
.agenda-group-body .agenda-item-card {
  background: #fff;
  color: var(--dark-text, #10233D);
  box-shadow: 0 4px 16px rgba(22, 71, 138, .07);
}
.agenda-group-body .agenda-item-icon {
  background: var(--brand-ice, #EDF7FB);
  color: var(--brand-cyan, #189AD6);
}
.agenda-group-body .agenda-item-title { color: var(--dark-text, #10233D); font-weight: 600; }
.agenda-group-body .agenda-item-sub { color: #5a6b7b; }
.agenda-group-body .agenda-item-summary { color: #6b7a89; }
.agenda-group-body .agenda-item-speakers { color: var(--brand-cyan-dark, #127BAE); }
.agenda-group-body .agenda-item-time {
  background: linear-gradient(135deg, var(--brand-cyan-dark, #127BAE), var(--brand-navy, #16478A));
}

/* ---------- Registration ---------- */
.registration-intro { text-align: center; max-width: 760px; margin: 0 auto 2.5rem; }
.registration-heading { font-family: "Poppins", sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--brand-navy, #16478A); margin-bottom: .75rem; }
.registration-intro-text { color: #5a6b7b; }
.registration-subheading { color: var(--brand-cyan-dark, #127BAE); font-weight: 600; margin-top: .75rem; }
.fee-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  box-shadow: 0 10px 30px rgba(22, 71, 138, .08);
  border-top: 4px solid var(--brand-cyan, #189AD6);
  transition: transform .25s ease, box-shadow .25s ease;
}
.fee-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(22, 71, 138, .16); }
.fee-card--student { border-top-color: var(--brand-navy, #16478A); }
.fee-title { font-family: "Poppins", sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--brand-navy, #16478A); margin-bottom: .5rem; }
.fee-amount { font-family: "Poppins", sans-serif; font-size: 2rem; font-weight: 800; color: var(--brand-cyan, #189AD6); margin-bottom: .75rem; }
.fee-desc { color: #5a6b7b; font-size: .92rem; margin-bottom: 1.25rem; }
.fee-btn {
  display: inline-block;
  background: var(--brand-cyan, #189AD6);
  color: #fff;
  font-weight: 600;
  padding: .6rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s ease;
}
.fee-btn:hover { background: var(--brand-cyan-dark, #127BAE); color: #fff; }
.registration-footnote { text-align: center; color: #7a8896; font-size: .88rem; margin-top: 2rem; }

/* ---------- Sponsor / venue helpers ---------- */
.venue-affiliation { color: var(--brand-cyan-dark, #127BAE); }

/* ---------- Contact form server status ---------- */
.form-status--server { padding: .75rem 1rem; border-radius: 10px; font-weight: 500; margin-bottom: 1rem; }
.form-status--server.is-success { background: #e6f7ec; color: #1b7a3d; }
.form-status--server.is-error   { background: #fdeaea; color: #b02a2a; }

/* ---------- Member "View Bio" button + modal ---------- */
.team-bio-btn {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--brand-ice, #EDF7FB);
  border: 1.5px solid transparent;
  color: var(--brand-cyan-dark, #127BAE);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: .84rem;
  padding: .45rem 1.35rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .2s ease;
}
.team-bio-btn::before {
  content: "\f007"; /* Font Awesome user icon */
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
  font-weight: 900;
  font-size: .78rem;
}
.team-bio-btn:hover {
  background: linear-gradient(135deg, var(--brand-cyan, #189AD6), var(--brand-navy, #16478A));
  color: #fff;
  box-shadow: 0 8px 20px rgba(24, 154, 214, .3);
  transform: translateY(-2px);
}
.bio-modal .modal-content {
  border: none;
  border-radius: 18px;
  overflow: hidden;
}
.bio-modal .modal-header {
  background: linear-gradient(135deg, var(--brand-navy, #16478A), var(--brand-cyan, #189AD6));
  color: #fff;
  border-bottom: none;
}
.bio-modal .modal-header .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.bio-modal .modal-title { font-weight: 700; color: #fff !important; font-family: "Poppins", sans-serif; }
.bio-name {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand-navy, #16478A);
  margin: 1rem 0 .25rem;
  line-height: 1.3;
}
.bio-position { font-weight: 600; color: var(--brand-cyan-dark, #127BAE); margin: 0 0 .1rem; font-family: "Poppins", sans-serif; }
.bio-affiliation { color: var(--light-gray, #5A6B7B); font-size: .9rem; font-family: "Poppins", sans-serif; }
.bio-modal .modal-body { padding: 1.75rem; }
.bio-photo-wrapper {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(22, 71, 138, .12);
}
.bio-photo-wrapper img { width: 100%; height: auto; display: block; }
.bio-content { color: #4a5867; line-height: 1.7; font-family: "Poppins", sans-serif; }

/* ---------- Nested dropdown submenus (DB-driven nav) ---------- */
.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-toggle::after {
  /* point the caret to the right instead of down */
  transform: rotate(-90deg);
  margin-left: .4rem;
  vertical-align: middle;
  transition: transform .2s ease;
}
.dropdown-menu-nested {
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: -.5rem;
  margin-left: .1rem;
  border-radius: 12px;
  display: none;
  min-width: 210px;
  z-index: 1050;
}
/* open on hover (desktop) or when JS adds .show (click) */
.dropdown-submenu:hover > .dropdown-menu-nested,
.dropdown-submenu > .dropdown-menu-nested.show {
  display: block;
}
/* If it would overflow the right edge, flip to the left side */
.dropdown-menu-nested.drop-left {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: .1rem;
}

/* On small screens, stack nested items inline instead of flying out */
@media (max-width: 991.98px) {
  .dropdown-menu-nested {
    position: static !important;
    left: auto;
    display: none;
    margin: .25rem 0 .25rem .75rem;
    border: none;
    box-shadow: none;
    padding-left: .5rem;
    border-left: 2px solid var(--brand-ice-2, #CBE7F5);
    min-width: 0;
  }
  /* on touch/mobile only open via click (.show), not hover */
  .dropdown-submenu:hover > .dropdown-menu-nested { display: none; }
  .dropdown-submenu > .dropdown-menu-nested.show { display: block; }
  .dropdown-submenu > .dropdown-toggle::after { transform: rotate(0deg); }
  .dropdown-submenu > .dropdown-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
}
