/* =========================================================================
   Endourology Summit Istanbul 2027 – single stylesheet
   1. Tokens          5. Components (header, nav, page band, buttons, cards, footer)
   2. Reset / base    6. Page sections (home, persons, hotels, program table)
   3. Typography      7. Utilities  (Tailwind-like: flex, grid, gap-4, mt-6, md:grid-cols-3 ...)
   4. Layout          Breakpoints: md = 768px, lg = 1000px, desktop menu = 1200px
   ========================================================================= */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --c-navy: #091b6f;         /* page title band, buttons */
  --c-navy-2: #072565;       /* active menu item */
  --c-text: #3a4f66;
  --c-heading: #192a3d;
  --c-light: #e1e8ed;        /* borders, title on navy */
  --c-band: #f2f5f7;         /* post title band */
  --c-bg: #fafbfc;
  --c-white: #fff;
  --c-footer: #0b1049;
  --c-box: #bcd4e0;          /* home quick link boxes */
  --c-hover: #61c8e1;

  --f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

  --container: 1290px;
  --container-boxed: 1140px;
  --container-narrow: 750px;
  --gutter: 5vw;
  --radius: 3px;
  --ease: .2s ease;
}

/* 2. Reset / base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16px/1.65 var(--f-body);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; vertical-align: middle; }
iframe { border: 0; }
a { color: var(--c-navy); transition: color var(--ease); }
a:hover { color: var(--c-heading); }
button { font: inherit; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
figure { margin: 0 0 1.5em; }
hr { height: 0; margin: 1.5em 0; border: 0; border-top: 1px solid var(--c-light); }
::selection { color: #fff; background: var(--c-navy); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: 8px 16px; background: #fff; }

/* 3. Typography ------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 { margin: 0 0 .75em; color: var(--c-heading); font-weight: 700; line-height: 1.5; }
h1 { font-size: 40px; }
h2 { font-size: 35px; }
h3 { font-size: 30px; }
h4 { font-size: 25px; }
h5 { font-size: 20px; }
h6 { font-size: 16px; }
p { margin: 0 0 1.5em; }
ul, ol { margin: 0 0 1.5em; padding-left: 2.5em; }
strong, b { font-weight: 700; }

/* .prose: plain HTML content (p, h2, ul, table, img ...) needs no classes */
.prose { overflow-wrap: break-word; }
.prose > :last-child { margin-bottom: 0; }
.prose :is(h1, h2, h3, h4, h5, h6) { margin-top: 1.2em; margin-bottom: .6em; }
.prose > :is(h1, h2, h3, h4, h5, h6):first-child { margin-top: 0; }
.prose table { margin-bottom: 1.5em; }
.prose :is(td, th) { padding: .5em; border: 1px solid var(--c-light); }
.prose th { font-weight: 600; }
.prose figure img { display: block; }
.table-scroll { overflow-x: auto; margin-bottom: 1.5em; }
.table-scroll > table { margin: 0; }
.table-fixed { table-layout: fixed; }
.table-fixed th { text-align: center; }

/* 4. Layout ----------------------------------------------------------------- */
.container { width: calc(100% - var(--gutter) * 2); max-width: var(--container); margin-inline: auto; }
.container-boxed { width: 100%; max-width: var(--container-boxed); margin-inline: auto; padding-inline: 10px; }
.container-narrow { width: calc(100% - var(--gutter) * 2); max-width: var(--container-narrow); margin-inline: auto; }
.section { padding-block: 60px; }

/* 5. Components ------------------------------------------------------------- */

/* Header: logo left, menu right on a light gradient */
.site-header { position: relative; z-index: 50; background: linear-gradient(to top, #dfe9f3 0%, #fff 100%); }
/* Header is wider than the page container so the whole menu fits on one line */
.container.header-row { width: calc(100% - 40px); max-width: 1400px; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 141px; }
.site-logo { display: inline-flex; flex: none; }
.site-logo img { display: block; width: auto; height: 105px; }

/* Desktop navigation (from 1200px) */
.nav { display: none; }
.nav ul { margin: 0; padding: 0; list-style: none; }
.nav > ul { display: flex; align-items: center; height: 50px; }
.nav li { position: relative; }
.nav > ul > li { display: flex; height: 100%; }
.nav > ul > li > a {
  display: flex; align-items: center; gap: 6px; padding: 0 9px; font: 500 12px/1.3 Arial, sans-serif; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; color: var(--c-text); border-radius: 10px; transition: color var(--ease), background var(--ease);
}
.nav > ul > li:hover > a, .nav > ul > li:focus-within > a, .nav > ul > li.is-active > a { color: #fff; background: var(--c-navy-2); }
.nav .chevron { flex: 0 0 auto; width: 9px; height: 9px; fill: currentColor; }
.nav .submenu {
  position: absolute; top: 100%; left: 0; z-index: 10; width: 200px; padding: 0; overflow: hidden; background: var(--c-text);
  border-radius: 15px; box-shadow: 0 10px 20px rgba(41, 51, 61, .1);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}
.nav li:hover > .submenu, .nav li:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.nav .submenu li + li { border-top: 1px dashed rgba(255, 255, 255, .1); }
.nav .submenu a { display: block; padding: 13px 19.5px; font-size: 12px; font-weight: 500; line-height: 1.5; color: #fff; text-decoration: none; }
.nav .submenu a:hover, .nav .submenu a:focus-visible, .nav .submenu a[aria-current] { color: var(--c-hover); outline: none; }

/* Mobile menu trigger + off-canvas panel */
.menu-toggle { display: flex; padding: 8px; color: var(--c-text); background: none; border: 0; }
.menu-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.offcanvas { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.offcanvas.is-open { visibility: visible; }
.offcanvas-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); opacity: 0; transition: opacity .3s; }
.offcanvas-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(90vw, 500px); padding: 20px 30px; overflow-y: auto;
  background: rgba(18, 21, 25, .98); box-shadow: 0 0 70px rgba(0, 0, 0, .35); transform: translateX(100%); transition: transform .3s;
}
.offcanvas.is-open .offcanvas-backdrop { opacity: 1; }
.offcanvas.is-open .offcanvas-panel { transform: none; }
.offcanvas-close { display: flex; margin-left: auto; padding: 8px; color: #fff; background: none; border: 0; }
.offcanvas-close svg { width: 14px; height: 14px; fill: currentColor; }
.mobile-nav ul { margin: 0; padding: 0; list-style: none; }
.mobile-nav > ul { margin-top: 24px; }
.mobile-nav li { border-bottom: 1px dashed rgba(255, 255, 255, .2); }
.mobile-nav a { display: block; padding: 12px 0; font-size: 18px; font-weight: 500; line-height: 1.4; color: #fff; text-decoration: none; }
.mobile-nav a:hover, .mobile-nav a[aria-current] { color: var(--c-hover); }
.mobile-nav-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mobile-nav-row a { flex: 1; }
.mobile-nav-row button { display: flex; padding: 10px 12px; color: #fff; background: none; border: 0; }
.mobile-nav-row svg { width: 10px; height: 10px; fill: currentColor; transition: transform var(--ease); }
.mobile-nav .submenu { display: none; padding-left: 16px; }
.mobile-nav .submenu a { font-size: 15px; }
.mobile-nav .submenu li:last-child { border-bottom: 0; }
.mobile-nav li.is-open > .submenu { display: block; }
.mobile-nav li.is-open > .mobile-nav-row svg { transform: rotate(180deg); }
body.no-scroll { overflow: hidden; }

/* Page title band (pages) */
.page-hero { display: flex; align-items: center; min-height: 132px; padding-block: 20px; text-align: center; background: var(--c-navy); }
.page-hero h1 { margin: 0; font-size: 30px; color: var(--c-light); }

/* Post title band (topics, courses) */
.post-hero { padding-block: 50px; text-align: center; background: var(--c-band); }
.post-hero h1 { margin: 0; font-size: 30px; }
.post-hero p { margin: 20px 0 0; }

/* Buttons: .btn ; .btn-pill (rounded, half width) ; .btn-grey */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 5px 20px;
  font: 500 15px/1.3 var(--f-body); text-align: center; text-decoration: none !important; color: #fff;
  background: var(--c-navy); border: 0; border-radius: var(--radius); transition: background var(--ease);
}
.btn:hover { color: #fff; background: var(--c-heading); }
.btn-pill { width: 50%; min-height: 0; padding: .67em 1.33em; font-size: 20px; border-radius: 43px; }
.btn-grey { padding: 12px 24px; font-size: 15px; font-weight: 400; background: #69727d; }
.btn-grey:hover { background: #4f5762; }

/* Speakers grid (pages/speakers.php) */
.speakers { display: grid; gap: 21px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .speakers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .speakers { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.speaker-card {
  display: flex; flex-direction: column; align-items: center; overflow: hidden; padding-bottom: 14px; text-align: center; text-decoration: none; color: inherit;
  background: #fff; border-radius: 10px; box-shadow: 0 0 10px 0 rgba(0, 0, 0, .15); transition: box-shadow var(--ease);
}
.speaker-card:hover { color: inherit; box-shadow: 0 0 30px 0 rgba(0, 0, 0, .15); }
.speaker-card-photo { display: block; width: 100%; overflow: hidden; }
.speaker-card-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s ease; }
.speaker-card:hover .speaker-card-photo img { transform: scale(1.04); }
.speaker-card-name { display: block; margin: 14px 10px 6px; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--c-navy); }
.speaker-card-org { display: block; padding-inline: 10px; font-size: 11px; line-height: 1.4; color: #777; }

/* Course poster cards (Hands-on Training Courses) */
.courses { display: grid; gap: 35px 30px; grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
@media (min-width: 768px) { .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .courses { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Course posters: 4 columns, whole poster visible */
@media (min-width: 1000px) { .courses-course { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 24px; } }
.course-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 3px; box-shadow: 0 0 10px 0 rgba(0, 0, 0, .15); transition: box-shadow var(--ease); }
.course-card:hover { box-shadow: 0 0 30px 0 rgba(0, 0, 0, .15); }
.course-card-photo { display: block; overflow: hidden; }
.course-card-photo img { display: block; width: 100%; aspect-ratio: 724 / 1024; object-fit: cover; object-position: top; }
.courses-surgery .course-card-photo img { aspect-ratio: 1921 / 1081; }
.course-card-body { padding: 20px 30px 26px; }
.course-card h3 { margin: 0 0 12px; font-size: 18px; line-height: 1.35; }
.courses-course .course-card-body { padding: 16px 18px 20px; }
.courses-course .course-card h3 { margin-bottom: 10px; font-size: 15px; }
.courses-course .course-card p { font-size: 13px; line-height: 1.5; }
.course-card h3 a { color: var(--c-heading); text-decoration: none; }
.course-card h3 a:hover { color: var(--c-navy); }
.course-card p { margin: 0; font-size: 14px; line-height: 1.6; color: #777; }

/* Galleries: gallery() helper */
.gallery { display: grid; gap: 10px; margin-bottom: 1.5em; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-venue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-venue a { aspect-ratio: 16 / 9; }
.gallery-istanbul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-istanbul a { aspect-ratio: 3 / 2; }
@media (min-width: 1000px) { .gallery-istanbul { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .gallery-venue, .gallery-istanbul { grid-template-columns: minmax(0, 1fr); } }

/* Lightbox: any link to an image (or <a data-lightbox="group">) opens it full screen */
.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; color: #fff; background: rgba(0, 0, 0, .92); border: 0; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: fade-in .25s ease; }
@keyframes fade-in { from { opacity: 0; } }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { display: block; max-width: min(90vw, 1400px); max-height: 82vh; margin: auto; }
.lightbox figcaption { min-height: 20px; margin-top: 12px; font-size: 13px; opacity: .8; }
.lightbox button { position: absolute; display: flex; padding: 12px; color: #fff; background: rgba(255, 255, 255, .1); border: 0; border-radius: 50%; transition: background var(--ease); }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox .i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { top: 50%; left: 16px; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 16px; transform: translateY(-50%); }
.lightbox-count { position: absolute; top: 24px; left: 24px; font-size: 13px; opacity: .8; }
.lightbox.is-single :is(.lightbox-prev, .lightbox-next, .lightbox-count) { display: none; }
a[data-lightbox] { display: block; overflow: hidden; cursor: zoom-in; }
a[data-lightbox] img { width: 100%; transition: transform .4s ease; }
a[data-lightbox]:hover img { transform: scale(1.04); }
body.modal-open { overflow: hidden; }

/* Footer */
.site-footer { color: #fff; background: var(--c-footer); }
.footer-middle { padding-block: 70px 50px; }
.footer-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-title { margin: 0 0 18px; font-size: 16px; line-height: 1.3; color: #fff; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 8px; }
.footer-links a, .footer-contact a, .footer-more { font-size: 14px; color: rgba(255, 255, 255, .75); text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current], .footer-contact a:hover, .footer-more:hover { color: var(--c-hover); }
.footer-contact { margin-bottom: 12px; font-size: 14px; font-style: normal; line-height: 1.7; color: rgba(255, 255, 255, .75); }
.footer-contact strong { color: #fff; }
.footer-social { padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-social ul { display: flex; flex-wrap: wrap; gap: 14px 0; max-width: 560px; margin: 0; padding: 0; list-style: none; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 6px; padding-right: 25px; font-size: 12px; font-weight: 700; line-height: 1.3;
  text-transform: uppercase; color: #fcfcfc; text-decoration: none;
}
.footer-social a:hover { color: var(--c-light); }
.footer-social svg { width: 13px; height: 13px; fill: currentColor; }
.footer-bottom { padding-block: 46px; border-top: 1px solid rgba(255, 255, 255, .05); }
.footer-bottom p { margin: 0; font-size: 12px; line-height: 1.3; }

.to-top {
  position: fixed; right: 25px; bottom: 25px; z-index: 40; display: flex; padding: 10px; color: #fff; background: var(--c-text); border-radius: 2px;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity var(--ease), transform var(--ease), visibility var(--ease), background var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
body.has-cookie-notice .to-top { bottom: 110px; }

/* Cookie notice (footer.php + site.js) */
.cookie-notice {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  max-width: 960px; margin-inline: auto; padding: 18px 24px; color: var(--c-text); background: #fff; border-radius: 10px; box-shadow: 0 10px 40px rgba(9, 27, 111, .25);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { flex: 1 1 320px; margin: 0; font-size: 14px; line-height: 1.5; }
.cookie-actions { display: flex; gap: 10px; }
.btn-outline { color: var(--c-navy); background: transparent; box-shadow: inset 0 0 0 1px var(--c-navy); }
.btn-outline:hover { color: #fff; background: var(--c-navy); }
.to-top:hover { color: #fff; background: var(--c-navy); }
.to-top svg { width: 14px; height: 14px; }

/* 6. Page sections ---------------------------------------------------------- */

/* Home: slider */
.slider { position: relative; height: 400px; overflow: hidden; background: #833ca3; }
.slide { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity .5s ease; }
.slide.is-active { opacity: 1; animation: ken-burns 7s ease-out forwards; }
@keyframes ken-burns { from { transform: scale(1); } to { transform: scale(1.1); } }
.slider-prev, .slider-next {
  position: absolute; top: 50%; z-index: 2; display: flex; padding: 6px; color: #fff; background: none; border: 0; transform: translateY(-50%);
  opacity: .8; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .4));
}
.slider-prev:hover, .slider-next:hover { opacity: 1; }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
.slider-prev svg, .slider-next svg { width: 32px; height: 32px; }
.slider-dots { position: absolute; bottom: 12px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 4px; }
.slider-dots button { width: 6px; height: 6px; padding: 0; background: #000; border: 0; border-radius: 50%; opacity: .2; }
.slider-dots button[aria-current] { opacity: 1; }

/* Home: invitation */
/* Home: venue line under the slider (links to About Venue) */
.home-venue { display: block; padding: 16px 20px; font-size: 17px; line-height: 1.4; text-align: center; text-decoration: none; color: #fff; background: var(--c-navy); transition: background var(--ease); }
.home-venue:hover, .home-venue:focus-visible { color: #fff; background: var(--c-navy-2); }
.home-venue strong { color: var(--c-hover); }

.home-invitation { padding: 50px; background: linear-gradient(180deg, #fff 0%, #d1d1d1 100%); }
.invitation { display: flex; gap: 20px; }
.invitation-logo { flex: 0 0 20%; text-align: center; }
.invitation-logo img { width: 204px; }
.invitation-text { flex: 1; min-width: 0; }
.invitation-text h2 { margin-bottom: 20px; font-size: 35px; line-height: 1; }
.signatures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; margin-top: 40px; }
.signature { text-align: center; }
.signature img { width: 140px; height: 140px; border-radius: 50px; object-fit: cover; }
.signature p { margin: 10px 0 0; line-height: 1.3; }
.signature p a { color: var(--c-navy); text-decoration: none; }
.signature .signature-role { margin-top: 6px; font-size: 14px; }
@media (min-width: 1000px) {
  /* 2 on top, 4 below; all the same width and centred under each other */
  .signatures { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .signature { grid-column: auto / span 2; }
  .signature:nth-child(1) { grid-column: 3 / span 2; }
  .signature:nth-child(3) { grid-column: 1 / span 2; }
}

/* Home: quick link boxes */
.home-boxes { padding: 60px 50px; background: url(../../wp-content/uploads/2026/06/101941.jpg) center / cover no-repeat; }
.boxes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.box { display: flex; flex-direction: column; align-items: center; gap: 20px; min-height: 230px; padding: 16px; text-align: center; background: var(--c-box); border-radius: 9px; }
.box img { width: 130px; }
.box h5 { margin: 0; font-size: 20px; line-height: 1; }
.box h5 a { color: var(--c-heading); text-decoration: none; }
.box h5 a:hover { color: var(--c-navy); }
.box-date { margin: -8px 0 0; font-size: 16px; font-weight: 600; color: var(--c-navy); }

/* Home: next world congresses */
.home-congresses { padding: 50px; background: #ebebeb; }
.congresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; font-size: 13px; line-height: 1.6; }
.congresses p { margin: 0 0 20px; color: #7a7a7a; }
.congresses strong { font-size: 14px; color: #42618c; }
.congresses .btn-grey { min-height: 0; padding: 12px 24px; font-size: 12px; }

/* Speaker pages (templates/speaker.php; chairs use the same template) */
.person-section { padding: 30px; }
.person { display: flex; gap: 30px; max-width: var(--container-boxed); margin-inline: auto; padding: 30px; background: var(--c-bg); box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5); }
.person-photo { flex: 0 0 30%; }
.person-photo img { display: block; width: 100%; }
.person-body { flex: 1; min-width: 0; }
.person h1 { margin: 0 0 15px; font-size: 30px; line-height: 1.3; }
.person-org { margin: 0; font-size: 14px; }
.person hr { margin: 15px 0; border-top: 1px solid var(--c-light); }
.person .prose { font-size: 14px; }
.person .prose h5 { font-size: 18px; }

/* Travel and Hotel */
.hotels { display: grid; gap: 30px; margin-bottom: 40px; }
.hotel { display: flex; gap: 20px; padding: 20px; background: #fff; box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5); }
.hotel-photos { display: flex; flex: 0 0 20%; flex-direction: column; gap: 10px; }
.hotel-photos img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hotel-text h4 { margin: 0 0 15px; font-size: 20px; }
.hotel-text p { margin: 0 0 15px; font-size: 14px; }

/* Program tables (pages/program.php) */
table.program { color: #333; border: 0; border-collapse: collapse; }
table.program th { padding: 15px; font-size: 22pt; text-align: center; color: #fff; background: #3359a6; border: 0; }
table.program td { padding: 8px; border: 1px solid #b1b1b1; }
table.program tr { border: 1px solid #ddd; }
.program th strong, .program .halla strong, .program .hallb strong { color: #fff !important; }
.program .session { background: #c7d3ed; font-size: 14pt; }
.program .session-alt { background: #eef2f9; }
.program .break { background: #e4e4e4; }
.program .opening { background: #f3c088; }
.program .opening-alt { background: #fbead7; }
.program .panel { background: #afd1cf; }
.program .panel-alt { background: #daeae9; }
.program .oral { background: #d4dfca; }
.program .surs { background: #76a439; }
.program .surs-alt { background: #bdda96; }
@media (max-width: 632px) {
  table.program, table.program :is(thead, tbody, th, td, tr) { display: block; }
  table.program tr { border: 1px solid #b1b1b1; }
  table.program td { position: relative; border: 0; }
}

/* Old canvas page (pages/endourological-society-2027-istanbul-summit.php) */
.canvas-page { max-width: 724px; margin: 40px auto; padding-inline: 16px; text-align: center; }
.canvas-page img { display: block; margin: 0 auto 30px; }

/* 7. Utilities -------------------------------------------------------------- */
.block { display: block; } .inline-block { display: inline-block; } .hidden { display: none; }
.flex { display: flex; } .inline-flex { display: inline-flex; } .grid { display: grid; }
.flex-col { flex-direction: column; } .flex-wrap { flex-wrap: wrap; } .flex-1 { flex: 1 1 0%; }
.items-start { align-items: flex-start; } .items-center { align-items: center; } .items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; } .justify-center { justify-content: center; } .justify-end { justify-content: flex-end; } .justify-between { justify-content: space-between; }
.mx-auto { margin-inline: auto; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); } .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-2 { gap: 8px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.m-0 { margin: 0; } .mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 16px; } .mt-8 { margin-top: 32px; } .mb-4 { margin-bottom: 16px; } .mb-8 { margin-bottom: 32px; }
.w-full { width: 100%; }
.text-left { text-align: left; } .text-center { text-align: center; } .text-right { text-align: right; }
.text-xs { font-size: 12px; } .text-sm { font-size: 14px; } .text-lg { font-size: 20px; }
.font-bold { font-weight: 700; } .italic { font-style: italic; } .uppercase { text-transform: uppercase; }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Desktop navigation breakpoint (same as the old theme) */
@media (min-width: 1200px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
}

/* Small screens */
@media (max-width: 1439.98px) {
  /* Smaller logo and tighter menu so the whole menu fits next to the logo from 1200px */
  .site-logo img { height: 80px; }
  .nav > ul > li > a { gap: 4px; padding-inline: 4.5px; font-size: 11px; }
}

@media (max-width: 999.98px) {
  .home-venue { padding: 12px 16px; font-size: 15px; }
  .header-row { min-height: 90px; }
  .site-logo img { height: 70px; }
  .boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person, .hotel { flex-direction: column; }
  .person-photo { flex-basis: auto; max-width: 360px; }
  .hotel-photos { flex-basis: auto; }
  .hotel-photos img { max-width: 420px; }
}
@media (max-width: 767.98px) {
  h1 { font-size: 30px; } h2 { font-size: 27px; } h3 { font-size: 24px; } h4 { font-size: 20px; } h5 { font-size: 18px; }
  .section { padding-block: 40px; }
  .slider { height: 128px; }
  .slider-prev svg, .slider-next svg { width: 22px; height: 22px; }
  .home-invitation, .home-boxes, .home-congresses { padding: 30px 10px; }
  .invitation { flex-direction: column; }
  .invitation-logo img { width: 160px; }
  .invitation-text h2 { font-size: 30px; }
  .signatures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .congresses { grid-template-columns: minmax(0, 1fr); }
  .person-section { padding: 16px 10px; }
  .person { padding: 20px; }
  .page-hero h1, .post-hero h1, .person h1 { font-size: 25px; }
  .post-hero { padding-block: 40px; }
  .btn-pill { width: 100%; font-size: 17px; }
  .footer-middle { padding-block: 40px; }
  .footer-columns { grid-template-columns: minmax(0, 1fr); gap: 30px; margin-bottom: 30px; }
  .cookie-notice { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
  .footer-bottom { padding-block: 30px; }
}
@media (max-width: 479.98px) {
  .boxes { grid-template-columns: minmax(0, 1fr); }
  .box { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Program at a glance (trial page /program-overview/) */
.glance-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 26px; border-bottom: 3px solid #091b6f; }
.glance-tabs button { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; font: inherit; color: #091b6f; text-align: center; cursor: pointer; background: #eef2f9; border: 0; border-radius: 6px 6px 0 0; }
.glance-tabs button strong { font-size: 18px; }
.glance-tabs button span { font-size: 13px; }
.glance-tabs button:hover { background: #dbe3f3; }
.glance-tabs button[aria-selected="true"] { color: #fff; background: #091b6f; }
.glance-date { margin: 0 0 18px; font-size: 24px; color: #091b6f; }
.glance-heading { margin: 30px 0 14px; padding-left: 12px; font-size: 19px; color: #091b6f; border-left: 5px solid #3359a6; }
.glance-heading-surgery { border-left-color: #76a439; }
.glance-heading-course { border-left-color: #f39200; }
.glance-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.glance-card { display: flex; gap: 14px; padding: 12px; color: #222; text-decoration: none; background: #fff; border-radius: 6px; box-shadow: 0 0 10px rgba(0, 0, 0, .1); transition: box-shadow var(--ease); }
.glance-card:hover { box-shadow: 0 0 22px rgba(0, 0, 0, .18); }
.glance-card img { flex: 0 0 72px; width: 72px; height: 102px; object-fit: cover; object-position: top; border-radius: 3px; }
.glance-surgery img { flex-basis: 150px; width: 150px; height: 84px; }
.glance-card-body { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #666; }
.glance-hours { align-self: flex-start; padding: 2px 8px; font-size: 12.5px; font-weight: 700; color: #091b6f; background: #eef2f9; border-radius: 10px; }
.glance-card-body strong { font-size: 14.5px; line-height: 1.35; color: #091b6f; }
.glance-program { display: flex; flex-direction: column; gap: 14px; }
.glance-time { font-size: 13px; font-weight: 700; color: #3359a6; white-space: nowrap; }
.glance-break { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; padding: 9px 18px; font-weight: 700; color: #555; background: repeating-linear-gradient(-45deg, #f1f1f1 0 10px, #e9e9e9 10px 20px); border-radius: 6px; }
.glance-break .glance-time { color: #666; }
.glance-session { overflow: hidden; background: #fff; border: 1px solid #e3e6ee; border-left: 6px solid #3359a6; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.glance-session-panel { border-left-color: #4f9a95; }
.glance-session-opening { border-left-color: #f39200; }
.glance-session header { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 18px; background: #eef2f9; }
.glance-session-panel header { background: #e3f0ef; }
.glance-session-opening header { background: #fdf0e1; }
.glance-session header .glance-time { padding-top: 3px; font-size: 14px; color: #091b6f; }
.glance-session h4 { margin: 0; font-size: 17px; line-height: 1.35; color: #091b6f; }
.glance-chairs { margin: 5px 0 0; font-size: 14px; color: #444; }
.glance-session ul { margin: 0; padding: 0; list-style: none; }
.glance-session li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 9px 18px; font-size: 15px; line-height: 1.45; border-top: 1px solid #eef0f4; }
.glance-session li:nth-child(even) { background: #fafbfd; }
.glance-session li .glance-time { font-weight: 600; color: #666; }
@media (max-width: 767px) {
  .glance-session header, .glance-session li, .glance-break { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .glance-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; }
  .glance-tabs button { border-radius: 6px; }
  .glance-cards { grid-template-columns: minmax(0, 1fr); }
}

/* Faculty world map (Speakers page hero, faculty_map()) */
.faculty-map { padding: 48px 0 56px; color: #fff; background: radial-gradient(circle at 70% 20%, #16308f 0, var(--c-navy) 45%, var(--c-footer) 100%); }
.fm-head { text-align: center; margin-bottom: 20px; }
.fm-kicker { margin: 0 0 4px; font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: var(--c-hover); }
.fm-head h2 { margin: 0; color: #fff; font-weight: 400; font-size: clamp(22px, 3vw, 32px); }
.fm-head h2 strong { color: var(--c-hover); font-weight: 700; }
.fm-body { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .fm-body { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); } }
.fm-svg { width: 100%; height: auto; display: block; }
.fm-svg path { fill: rgba(255, 255, 255, .13); stroke: rgba(9, 27, 111, .6); stroke-width: .4; }
.fm-svg path.on { fill: #3d8fd6; cursor: pointer; transition: fill var(--ease); }
.fm-svg path.on:hover, .fm-svg path.on.is-active { fill: var(--c-hover); }
.fm-svg .pin { fill: #fff; fill-opacity: .9; stroke: var(--c-hover); stroke-width: 2; cursor: pointer; transform-box: fill-box; transform-origin: center; animation: fm-pulse 2.4s ease-in-out infinite; }
.fm-svg .pin.is-active { fill: var(--c-hover); stroke: #fff; }
@keyframes fm-pulse { 50% { stroke-width: 6; stroke-opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .fm-svg .pin { animation: none; } }
.fm-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fm-side > * { flex: none; }
.fm-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 8px; }
.fm-list button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--c-light); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.fm-list button:hover, .fm-list button.is-active { background: rgba(255, 255, 255, .12); color: #fff; }
.fm-list b { margin-left: auto; color: var(--c-hover); }
.fm-code { flex: none; width: 26px; font-size: 11px; font-weight: 700; color: var(--c-hover); }
@media (max-width: 767px) { .faculty-map { padding: 28px 0 32px; } }
.section:has(> .prose:empty) { display: none; } /* empty page wrapper before the full-width map */

/* Person CV popup (program page, program_person_popups()) */
.person-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(9, 27, 111, .3); text-underline-offset: 3px; }
.person-link:hover { color: var(--c-navy); text-decoration-color: var(--c-hover); }
.person-popup, .prose > .person-popup { position: fixed; inset: 0; margin: auto; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 32px; border: 0; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); color: var(--c-text); }
.person-popup::backdrop { background: rgba(11, 16, 73, .6); }
.pp-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--c-band); color: var(--c-heading); font-size: 24px; line-height: 1; cursor: pointer; }
.pp-close:hover { background: var(--c-light); }
.pp-head { display: flex; align-items: center; gap: 20px; padding-right: 32px; }
.pp-head img { flex: none; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.pp-head h3 { margin: 0 0 4px; color: var(--c-heading); font-size: 22px; }
.pp-org { margin: 0; color: var(--c-text); }
.pp-bio { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--c-light); font-size: 15px; }
@media (max-width: 767px) { .person-popup { padding: 24px 20px; } .pp-head img { width: 80px; height: 80px; } }
