/* ==========================================================================
   EndoBridge Modern Visual & Kinetic Design System
   Preserves exact brand palette (#1151a2, #0f306f, #E8AA35) & all content.
   ========================================================================== */

:root {
  --eb-navy: #0f306f;
  --eb-blue: #1151a2;
  --eb-blue-mid: #24519d;
  --eb-blue-light: #35589c;
  --eb-gold: #e8aa35;
  --eb-gold-bright: #f5ba31;
  --eb-crimson: #b52830;
  --eb-surface: rgba(255, 255, 255, 0.96);
  --eb-glass: rgba(255, 255, 255, 0.78);
  --eb-border: rgba(17, 81, 162, 0.13);
  --eb-shadow-sm: 0 6px 20px rgba(15, 48, 111, 0.08);
  --eb-shadow-md: 0 14px 36px rgba(15, 48, 111, 0.12);
  --eb-shadow-lg: 0 22px 52px rgba(15, 48, 111, 0.18);
  --eb-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --eb-ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
}

/* --- Ambient Particle Backdrop in Top Header --- */
.eb-header-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 14px;
  padding-bottom: 10px;
}

#eb-header-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

.eb-header-wrapper > .container {
  position: relative;
  z-index: 2;
}

/* --- Top Header Grid: Centered Logo Stage + Right Date/Venue Card --- */
.eb-header-row {
  display: grid;
  grid-template-columns: minmax(60px, 0.7fr) minmax(340px, 470px) minmax(320px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 6px 0 10px;
}

.eb-header-spacer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.eb-header-logo-col {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.eb-header-date-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  width: 100%;
}

@media (max-width: 1199px) {
  .eb-header-row {
    grid-template-columns: minmax(280px, 440px) minmax(260px, 1fr);
  }
  .eb-header-spacer {
    display: none;
  }
}

@media (max-width: 991px) {
  .eb-header-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    text-align: center;
  }
  .eb-header-date-col {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .eb-logo-stage {
    max-width: 310px;
  }
  .eb-header-card {
    width: 100%;
    max-width: 360px;
    padding: 14px 16px;
  }
  .eb-header-date-line {
    font-size: 20px !important;
  }
  .eb-header-venue-line {
    font-size: 15px !important;
  }
}

/* --- Animated endo-bridge-logo.png Multi-Layer Stage --- */
.eb-logo-stage {
  position: relative;
  width: 100%;
  max-width: 470px;
  aspect-ratio: 1973 / 1275;
  cursor: pointer;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--eb-rx, 0deg)) rotateY(var(--eb-ry, 0deg));
  transition: transform 0.25s ease-out, filter 0.35s ease;
  filter: drop-shadow(0 12px 24px rgba(17, 81, 162, 0.14));
  user-select: none;
}

.eb-logo-stage:hover {
  filter: drop-shadow(0 18px 34px rgba(17, 81, 162, 0.22));
}

.eb-logo-halo {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 82%;
  height: 76%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 170, 53, 0.24) 0%,
    rgba(17, 81, 162, 0.12) 48%,
    rgba(255, 255, 255, 0) 75%
  );
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
  animation: ebHaloPulse 8.0s ease-in-out infinite;
}

.eb-logo-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

/* Exact pixel-verified clip polygons for endo-bridge-logo.png (1973x1275) */
.eb-logo-bridge-left {
  clip-path: polygon(0% 0%, 50.15% 0%, 50.15% 44%, 0% 44%);
  z-index: 2;
}

.eb-logo-bridge-right {
  clip-path: polygon(49.85% 0%, 100% 0%, 100% 44%, 49.85% 44%);
  z-index: 2;
}

.eb-logo-bridge-merged {
  clip-path: polygon(0% 0%, 100% 0%, 100% 44%, 0% 44%);
  z-index: 3;
  opacity: 0;
}

.eb-logo-endo {
  clip-path: polygon(0% 44%, 45% 44%, 45% 64.6%, 39.6% 64.6%, 39.6% 71.8%, 0% 71.8%);
  z-index: 4;
}

.eb-logo-bridge-word {
  clip-path: polygon(45% 44%, 100% 44%, 100% 71.8%, 49.3% 71.8%, 49.3% 64.6%, 45% 64.6%);
  z-index: 4;
}

.eb-logo-gold-year {
  clip-path: polygon(39.6% 64.6%, 49.3% 64.6%, 49.3% 71.8%, 100% 71.8%, 100% 89.2%, 0% 89.2%, 0% 71.8%, 39.6% 71.8%);
  z-index: 5;
}

.eb-logo-tagline {
  clip-path: polygon(0% 89.2%, 100% 89.2%, 100% 100%, 0% 100%);
  z-index: 4;
}

.eb-logo-fallback {
  z-index: 1;
  opacity: 0;
}

/* Masked luminous gleam sweeping strictly across logo opaque pixels */
.eb-logo-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  overflow: hidden;
}

.eb-logo-sheen::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -45%;
  width: 36%;
  height: 140%;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.72) 48%,
    rgba(255, 226, 145, 0.55) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-22deg);
  animation: ebLogoSheen 8.5s ease-in-out 2.9s infinite;
}

/* Active choreography when .is-animating is applied */
.eb-logo-stage.is-animating .eb-logo-bridge-left {
  animation:
    ebBridgeLeftIn 1.45s var(--eb-ease-out) both,
    ebHideSeam 0.08s linear 1.45s forwards;
}

.eb-logo-stage.is-animating .eb-logo-bridge-right {
  animation:
    ebBridgeRightIn 1.45s var(--eb-ease-out) both,
    ebHideSeam 0.08s linear 1.45s forwards;
}

.eb-logo-stage.is-animating .eb-logo-bridge-merged {
  animation:
    ebShowMerged 0.1s linear 1.4s forwards,
    ebBridgeFloat 8.5s ease-in-out 2.6s infinite;
}

.eb-logo-stage.is-animating .eb-logo-endo {
  animation:
    ebWordDrop 1.1s var(--eb-ease-spring) 0.75s both,
    ebWordSubtleBreath 9.0s ease-in-out 2.8s infinite;
}

.eb-logo-stage.is-animating .eb-logo-bridge-word {
  animation:
    ebWordDrop 1.1s var(--eb-ease-spring) 1.0s both,
    ebWordSubtleBreath 9.0s ease-in-out 3.1s infinite;
}

.eb-logo-stage.is-animating .eb-logo-gold-year {
  animation:
    ebGoldPop 1.15s var(--eb-ease-spring) 1.3s both,
    ebGoldPulse 6.8s ease-in-out 3.0s infinite;
}

.eb-logo-stage.is-animating .eb-logo-tagline {
  animation: ebTaglineRise 1.1s var(--eb-ease-out) 1.65s both;
}

@keyframes ebBridgeLeftIn {
  0% { opacity: 0; transform: translateX(-82px) scale(0.95); }
  70% { opacity: 1; transform: translateX(3px) scale(1.005); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes ebBridgeRightIn {
  0% { opacity: 0; transform: translateX(82px) scale(0.95); }
  70% { opacity: 1; transform: translateX(-3px) scale(1.005); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes ebHideSeam {
  to { opacity: 0; }
}

@keyframes ebShowMerged {
  to { opacity: 1; }
}

@keyframes ebBridgeFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

@keyframes ebWordDrop {
  0% { opacity: 0; transform: translateY(-26px) scaleY(0.86); }
  65% { opacity: 1; transform: translateY(2px) scaleY(1.03); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); }
}

@keyframes ebWordSubtleBreath {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-1.5px); }
}

@keyframes ebGoldPop {
  0% { opacity: 0; transform: translateY(22px) scale(0.84); filter: drop-shadow(0 0 0 rgba(232, 170, 53, 0)); }
  65% { opacity: 1; transform: translateY(-2px) scale(1.06); filter: drop-shadow(0 0 16px rgba(232, 170, 53, 0.55)); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: drop-shadow(0 0 6px rgba(232, 170, 53, 0.22)); }
}

@keyframes ebGoldPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(232, 170, 53, 0.18));
  }
  50% {
    transform: scale(1.025);
    filter: drop-shadow(0 0 14px rgba(245, 186, 49, 0.52));
  }
}

@keyframes ebTaglineRise {
  0% { opacity: 0; transform: translateY(18px); letter-spacing: 0.03em; }
  100% { opacity: 1; transform: translateY(0); letter-spacing: 0; }
}

@keyframes ebHaloPulse {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(0.96); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes ebLogoSheen {
  0%, 58% { left: -45%; opacity: 0; }
  65% { opacity: 1; }
  88% { left: 120%; opacity: 0.9; }
  100% { left: 125%; opacity: 0; }
}

/* --- Right Header Date & Venue Glass Card --- */
.eb-header-card {
  position: relative;
  background: var(--eb-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-top: 3px solid var(--eb-gold);
  border-radius: 18px;
  padding: 20px 26px;
  box-shadow: 0 14px 36px rgba(17, 81, 162, 0.12);
  text-align: center;
  animation: ebHeaderCardIn 1.4s var(--eb-ease-out) 0.4s both;
  transition: transform 0.32s var(--eb-ease-out), box-shadow 0.32s ease;
}

.eb-header-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(17, 81, 162, 0.18);
}

.eb-header-card h1.headerDateBig {
  padding-top: 0 !important;
  margin: 0 !important;
  border-bottom: 0 !important;
  color: #12498a;
  line-height: 1.45;
}

.eb-header-date-line {
  display: inline-block;
  font-family: 'Bauhaus Md BT', 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 25px;
  color: #1151a2;
  margin-bottom: 6px;
  position: relative;
}

.eb-header-date-line::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin: 7px auto 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--eb-blue), var(--eb-gold));
  animation: ebLineExpand 1.3s var(--eb-ease-out) 1.2s both;
}

.eb-header-venue-line {
  display: block;
  font-size: 19px;
  font-weight: 600;
  font-family: 'Quicksand', Roboto, Geneva, sans-serif;
  color: #274a7a;
}

@keyframes ebHeaderCardIn {
  0% { opacity: 0; transform: translateX(30px) scale(0.96); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes ebLineExpand {
  from { width: 0; opacity: 0; }
  to { width: 58px; opacity: 1; }
}

/* --- Sticky Navigation Bar Polish & Progress Line --- */
.main-menu.is-scrolled {
  box-shadow: 0 12px 32px rgba(12, 34, 78, 0.3);
  background: linear-gradient(135deg, rgba(22, 54, 114, 0.96) 0%, rgba(33, 74, 148, 0.96) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#eb-scroll-progress {
  position: absolute;
  bottom: -3px;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #ffcf5c, #fff3c4, #e8aa35);
  box-shadow: 0 0 10px rgba(245, 186, 49, 0.7);
  transition: width 0.08s linear;
  pointer-events: none;
}

.navbar-default .navbar-nav > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: #ffd166;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--eb-ease-out);
}

.navbar-default .navbar-nav > li > a:hover::after,
.navbar-default .navbar-nav > li.eb-nav-active > a::after {
  transform: scaleX(1);
}

.navbar-nav > li > .dropdown-menu {
  border: 1px solid rgba(17, 81, 162, 0.14);
  border-top: 3px solid var(--eb-gold);
  border-radius: 0 0 12px 12px;
  padding: 8px 0;
  box-shadow: 0 16px 38px rgba(15, 48, 111, 0.2);
  margin-top: 0;
  animation: ebDropdownIn 0.22s var(--eb-ease-out) both;
}

.dropdown-menu > li > a {
  padding: 9px 20px;
  color: #183264;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li.eb-sub-active > a {
  background: linear-gradient(90deg, rgba(17, 81, 162, 0.08), rgba(232, 170, 53, 0.14));
  color: #1151a2;
  padding-left: 25px;
}

@keyframes ebDropdownIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
  .navbar-nav > li.dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* --- Hero Carousel with Ken Burns & Sleek Controls --- */
.eb-carousel-box {
  padding: 10px;
}

#myCarousel {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

#myCarousel .carousel-inner > .item > img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center 30%;
  transform-origin: center center;
}

#myCarousel .carousel-inner > .item.active > img {
  animation: ebKenBurns 7.5s ease-in-out infinite alternate;
}

@keyframes ebKenBurns {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.045) translateY(-4px); }
}

#myCarousel .carousel-control {
  background: none !important;
  opacity: 0;
  width: 68px;
  transition: opacity 0.28s ease;
}

#myCarousel:hover .carousel-control {
  opacity: 1;
}

#myCarousel .carousel-control .glyphicon {
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 50%;
  background: rgba(15, 48, 111, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #ffffff;
  transition: background 0.25s ease, transform 0.25s ease;
}

#myCarousel .carousel-control:hover .glyphicon {
  background: #e8aa35;
  color: #0f306f;
  transform: scale(1.08);
}

#myCarousel .carousel-indicators {
  bottom: 12px;
}

#myCarousel .carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.58);
  margin: 0 4px;
  transition: width 0.32s var(--eb-ease-out), background 0.3s ease;
}

#myCarousel .carousel-indicators li.active {
  width: 28px;
  height: 10px;
  background: var(--eb-gold-bright);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* --- Bento Tiles & Countdown & Social Row --- */
.eb-countdown-card {
  width: 100%;
  height: 86px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(17, 81, 162, 0.12);
  background: linear-gradient(145deg, #f3f5f8 0%, #e5e8ee 100%);
  box-shadow: 0 6px 18px rgba(15, 48, 111, 0.06);
  transition: transform 0.32s var(--eb-ease-out), box-shadow 0.32s ease, border-color 0.3s ease;
}

.eb-countdown-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 48, 111, 0.14);
  border-color: rgba(232, 170, 53, 0.65);
}

.eb-countdown-card iframe {
  display: block;
  width: 100%;
  height: 86px;
  border: 0;
}

.eb-social-card {
  background: linear-gradient(145deg, #f3f5f8 0%, #e5e8ee 100%);
  height: 86px;
  border-radius: 14px;
  border: 1px solid rgba(17, 81, 162, 0.1);
  box-shadow: 0 6px 18px rgba(15, 48, 111, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 14px;
  transition: transform 0.32s var(--eb-ease-out), box-shadow 0.32s ease;
}

.eb-social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 48, 111, 0.13);
}

/* --- Equal-Height Flex Rows on Desktop --- */
@media (min-width: 992px) {
  .eb-equal-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .eb-equal-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
  }
  .eb-equal-row > [class*="col-"] > .homeBox {
    flex: 1 1 auto;
    height: auto !important;
  }
}

/* --- Invitation Card & CTA Button --- */
.eb-invitation-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 22px !important;
}

.eb-invitation-box p {
  font-size: 15.5px;
  line-height: 1.72;
  color: #2f4156;
  margin-top: 14px;
}

.eb-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #214a96 0%, #35589c 100%);
  color: #ffffff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(33, 74, 150, 0.25);
  transition: transform 0.25s var(--eb-ease-out), box-shadow 0.25s ease, background 0.25s ease;
}

.eb-cta-btn::after {
  content: "\f061";
  font-family: "FontAwesome";
  font-size: 12px;
  transition: transform 0.25s var(--eb-ease-out);
}

.eb-cta-btn:hover {
  background: linear-gradient(135deg, #173a7a 0%, #24519d 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(33, 74, 150, 0.34);
}

.eb-cta-btn:hover::after {
  transform: translateX(4px);
}

/* --- Video & Logo Cards on Home --- */
.eb-video-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px !important;
}

.eb-video-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 260px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 48, 111, 0.14);
}

.eb-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.eb-logo-card {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 24px !important;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f5f8fc 100%) !important;
}

.eb-logo-card img {
  max-width: 300px;
  width: 100%;
  height: auto;
  transition: transform 0.45s var(--eb-ease-out), filter 0.35s ease;
  animation: ebCardLogoFloat 6s ease-in-out infinite;
}

.eb-logo-card:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 22px rgba(17, 81, 162, 0.2));
}

@keyframes ebCardLogoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.eb-right-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.eb-x-box {
  min-height: auto !important;
  height: auto !important;
  flex: 0 0 auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px !important;
}

.eb-x-box iframe {
  width: 100%;
  max-width: 280px;
  height: 62px;
  display: block;
}

.eb-mini-logo-box {
  min-height: 240px !important;
  flex: 1 1 auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px !important;
}

.eb-mini-logo-box img {
  max-width: 240px;
  width: 100%;
  height: auto;
  animation: ebCardLogoFloat 6.5s ease-in-out 0.8s infinite;
  transition: transform 0.35s var(--eb-ease-out);
}

.eb-mini-logo-box:hover img {
  transform: scale(1.06);
}

/* --- Inner Page Headings & Prose --- */
.homeBox1 h1 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  padding-bottom: 12px;
  margin-bottom: 22px;
  color: #11438c;
  border-bottom: 2px solid rgba(17, 81, 162, 0.12);
}

.homeBox1 h1::before {
  content: "";
  width: 6px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--eb-blue), var(--eb-gold));
  flex-shrink: 0;
}

.homeBox1 h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 96px;
  height: 2px;
  background: var(--eb-gold);
  animation: ebAccentSlide 0.8s var(--eb-ease-out) both;
}

@keyframes ebAccentSlide {
  from { width: 0; }
  to { width: 96px; }
}

.homeBox1 p,
.homeBox1 li {
  font-size: 15.5px;
  line-height: 1.75;
  color: #2f4156;
}

/* --- Tables: Committee & Programme & General Info --- */
.homeBox1 table.table {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(17, 81, 162, 0.14);
  box-shadow: 0 6px 22px rgba(15, 48, 111, 0.05);
}

.homeBox1 table.table td {
  padding: 12px 16px;
  border-color: rgba(17, 81, 162, 0.1) !important;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.homeBox1 table.table tr:hover td {
  background-color: rgba(17, 81, 162, 0.045);
}

/* Programme table enhancements */
.eb-programme-table {
  width: 100% !important;
  max-width: 1040px;
  margin: 0 auto;
  background: #ffffff;
}

.eb-programme-table tr.baslik td {
  background: linear-gradient(135deg, #0f4c8f 0%, #1d5ca8 100%) !important;
  color: #ffffff !important;
  font-size: 16.5px;
  letter-spacing: 0.03em;
  padding: 14px 18px !important;
  border-bottom: 3px solid var(--eb-gold) !important;
}

.eb-programme-table tr.kahve td,
.eb-programme-table tr.lunch td {
  background: linear-gradient(90deg, rgba(232, 170, 53, 0.12), rgba(232, 170, 53, 0.05)) !important;
  color: #6f4c08;
}

/* Committee 2-column modern grid on desktop */
@media (min-width: 768px) {
  .eb-committee-table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    background: #f8fafd;
  }
  .eb-committee-table tr {
    display: block;
    background: #ffffff !important;
    border-radius: 10px;
    border: 1px solid rgba(17, 81, 162, 0.12);
    box-shadow: 0 3px 10px rgba(15, 48, 111, 0.04);
    transition: transform 0.25s var(--eb-ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
  }
  .eb-committee-table tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(17, 81, 162, 0.11);
    border-color: rgba(232, 170, 53, 0.65);
  }
  .eb-committee-table td {
    display: block;
    width: 100%;
    border: 0 !important;
    font-weight: 600;
    color: #183264;
    padding: 13px 16px !important;
  }
  .eb-committee-table td::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--eb-blue), var(--eb-gold));
    margin-right: 10px;
    vertical-align: middle;
  }
}

/* --- Welcome Founder Card & Contact Cards --- */
.eb-founder-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 26px;
  border-radius: 14px;
  background: linear-gradient(145deg, #f8fbff, #eef4fb);
  border: 1px solid rgba(17, 81, 162, 0.14);
  box-shadow: var(--eb-shadow-sm);
  margin-top: 16px;
}

.eb-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.eb-contact-card {
  background: linear-gradient(160deg, #ffffff 0%, #f6f9fd 100%);
  border: 1px solid rgba(17, 81, 162, 0.13);
  border-top: 3px solid var(--eb-blue);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--eb-shadow-sm);
  transition: transform 0.3s var(--eb-ease-out), box-shadow 0.3s ease, border-top-color 0.3s ease;
}

.eb-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--eb-shadow-md);
  border-top-color: var(--eb-gold);
}

.eb-contact-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

/* --- To Be Announced / Under Construction Animated Box --- */
.eb-tba-panel {
  margin: 28px auto;
  max-width: 520px;
  padding: 36px 28px;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(155deg, #f7faff 0%, #edf3fb 100%);
  border: 1px dashed rgba(17, 81, 162, 0.28);
  box-shadow: var(--eb-shadow-sm);
}

.eb-tba-pulse {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: rgba(17, 81, 162, 0.1);
  color: var(--eb-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  animation: ebTbaPulse 2.4s ease-in-out infinite;
}

@keyframes ebTbaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(17, 81, 162, 0.25); transform: scale(1); }
  50% { box-shadow: 0 0 0 14px rgba(17, 81, 162, 0); transform: scale(1.06); }
}

/* --- News & Media Enhancements --- */
.eb-news-grid .gallery-item img {
  height: 140px !important;
  object-fit: contain !important;
  background: #ffffff;
  padding: 10px;
}

/* --- Footer Polish --- */
.eb-footer {
  padding-top: 8px;
  padding-bottom: 26px;
}

.eb-footer-copy {
  padding: 14px 10px 6px;
  color: #243b55;
  font-size: 13.5px;
  font-weight: 500;
}

.eb-footer-copy a {
  font-weight: 700;
  color: #243b55 !important;
}

.eb-footer-copy a:hover {
  color: #1151a2 !important;
}

/* --- Scroll-Reveal Motion Engine --- */
.eb-reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition:
    opacity 0.65s var(--eb-ease-out),
    transform 0.65s var(--eb-ease-out);
  transition-delay: var(--eb-delay, 0ms);
}

.eb-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- Floating Back-to-Top Button --- */
#eb-back-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(135deg, #1b3f82 0%, #24519d 100%);
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(15, 48, 111, 0.3);
  z-index: 9990;
  opacity: 0;
  transform: translateY(16px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--eb-ease-spring), background 0.25s ease;
}

#eb-back-top.is-shown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#eb-back-top:hover {
  background: var(--eb-gold);
  color: #0f306f;
  transform: translateY(-4px) scale(1.06);
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .eb-logo-bridge-left,
  .eb-logo-bridge-right,
  .eb-logo-endo,
  .eb-logo-bridge-word,
  .eb-logo-gold-year,
  .eb-logo-tagline {
    display: none !important;
  }
  .eb-logo-fallback {
    opacity: 1 !important;
  }
  .eb-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
