/* Scientific Program Single Post Template Styles */
.scientific-program-single .entry-header {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  border-radius: 0;
}
.scientific-program-single .entry-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 59, 59, 0.68) 0%,
    rgba(11, 59, 59, 0.52) 50%,
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: 1;
}
.scientific-program-single .entry-header__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 4rem 2rem;
}
.scientific-program-single .entry-title {
  font-family: "Cinzel", serif;
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.5rem 0;
  line-height: 1.15;
  letter-spacing: -0.8px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.scientific-program-single .entry-header__excerpt {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.98);
  line-height: 1.8;
  margin: 0;
  opacity: 1;
  font-weight: 400;
}
.scientific-program-single .entry-header__meta {
  margin-top: 2rem;
}
.scientific-program-single .entry-header__back-link {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  
  color: #FFF;
  background: var(--brand-primary-800);
  text-decoration: none;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all var(--transition-smooth);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.scientific-program-single .entry-header__back-link:hover {
  background: var(--brand-primary-900);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Two-Column Layout */
.scientific-program-single .entry-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: -60px auto 3rem;
  position: relative;
  z-index: 3;
  padding: 0;
}

.scientific-program-single .entry-layout__left {
  min-width: 0;
}

.scientific-program-single .entry-layout__right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.scientific-program-single .entry-layout__gallery,
.scientific-program-single .entry-layout__info {
  width: 100%;
}

/* Gallery on the right side */
.scientific-program-single .sp-gallery-sidebar {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.scientific-program-single .sp-gallery-sidebar .sp-gallery__viewport {
  position: relative;
  overflow: hidden;
  background: #000;
}

  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  font-size: 22px;
  z-index: 15;
}

.scientific-program-single .sp-gallery-sidebar .sp-gallery__nav--prev {
  left: 12px;
}

.scientific-program-single .sp-gallery-sidebar .sp-gallery__nav--next {
  right: 12px;
}

.scientific-program-single .sp-gallery-sidebar .sp-gallery__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  gap: 10px;
  padding: 8px 12px;
  z-index: 15;
}

.scientific-program-single .sp-gallery-sidebar .sp-gallery__dot {
  width: 10px;
  height: 10px;
}

.scientific-program-single .sp-gallery-sidebar .sp-gallery__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.scientific-program-single .sp-gallery-sidebar .sp-gallery__slide {
  flex: 0 0 100%;
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: #000;
}

.scientific-program-single .sp-gallery-sidebar .sp-gallery__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 400px;
}

/* Additional Info Section */
.scientific-program-single .entry-additional-info {
  background: linear-gradient(135deg, var(--brand-secondry-100) 0%, rgba(233, 223, 214, 0.95) 100%);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.scientific-program-single .entry-additional-info__title {
  font-family: "Cinzel", serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-primary-main);
  margin: 0 0 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--brand-secondry-main);
}

.scientific-program-single .entry-additional-info__content {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--neutral-700);
}

.scientific-program-single .entry-additional-info__content p {
  margin-bottom: 1rem;
}

.scientific-program-single .entry-additional-info__content p:last-child {
  margin-bottom: 0;
}

/* Hide the old gallery that was at the top */
.scientific-program-single .sp-gallery:not(.sp-gallery-sidebar) {
  display: none;
}

.scientific-program-single .entry-content {
  background: linear-gradient(135deg, var(--brand-secondry-100) 0%, rgba(233, 223, 214, 0.95) 100%);
  padding: 3.5rem 3rem;
  color: var(--neutral-800);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.scientific-program-single .entry-content p {
  margin-bottom: 1.85rem;
}
.scientific-program-single .entry-content p:first-child {
  font-size: 18px;
  margin-bottom: 2.5rem;
  color: var(--brand-primary-main);
  font-weight: 600;
  line-height: 1.9;
}
.scientific-program-single .entry-content p:last-child {
  margin-bottom: 0;
}
.scientific-program-single .entry-content h2 {
  font-family: "Cinzel", serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--brand-primary-main);
  margin: 3.5rem 0 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 1rem;
}
.scientific-program-single .entry-content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary-main), transparent);
  border-radius: 2px;
}
.scientific-program-single .entry-content h3 {
  font-family: "Cinzel", serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-primary-main);
  margin: 2.75rem 0 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.3px;
}
.scientific-program-single .entry-content h4 {
  font-family: "Cinzel", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-primary-main);
  margin: 2.25rem 0 0.9rem;
}
.scientific-program-single .entry-content ul,
.scientific-program-single .entry-content ol {
  margin: 2rem 0;
  padding-left: 2.75rem;
}
.scientific-program-single .entry-content li {
  margin-bottom: 1rem;
  line-height: 1.85;
  color: var(--neutral-700);
}
.scientific-program-single .entry-content ul li::marker {
  color: var(--brand-primary-main);
  font-weight: 700;
}
.scientific-program-single .entry-content strong {
  font-weight: 700;
  color: var(--brand-primary-main);
}
.scientific-program-single .entry-content em {
  font-style: italic;
  color: var(--brand-primary-main);
  font-weight: 500;
}
.scientific-program-single .entry-content blockquote {
  margin: 2.75rem 0;
  padding: 2rem;
  padding-left: 2rem;
  border-left: 5px solid var(--brand-primary-main);
  background: linear-gradient(90deg, rgba(11, 59, 59, 0.08), rgba(11, 59, 59, 0.02));
  font-size: 17px;
  font-style: italic;
  color: var(--brand-primary-main);
  line-height: 1.85;
  border-radius: 4px;
  font-weight: 500;
}
.scientific-program-single .entry-content img {
  max-width: 100%;
  height: auto;
  margin: 2.75rem 0;
  border-radius: 14px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(11, 59, 59, 0.1);
}

/* Gallery Styles - Carousel */
.scientific-program-single .sp-gallery {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  border: none;
  border-radius: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.scientific-program-single .sp-gallery__viewport {
  position: relative;
  overflow: hidden;
  background: #000;
}

.scientific-program-single .sp-gallery__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.scientific-program-single .sp-gallery__slide {
  flex: 0 0 100%;
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  background: #000;
}

.scientific-program-single .sp-gallery__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 560px;
}

.scientific-program-single .sp-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
  font-size: 26px;
  font-weight: 300;
  z-index: 10;
}

.scientific-program-single .sp-gallery__nav:hover {
  background: rgba(11, 59, 59, 0.8);
  border-color: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.scientific-program-single .sp-gallery__nav--prev {
  left: 24px;
}

.scientific-program-single .sp-gallery__nav--next {
  right: 24px;
}

.scientific-program-single .sp-gallery__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  z-index: 10;
}

.scientific-program-single .sp-gallery__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.scientific-program-single .sp-gallery__dot:hover {
  border-color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.6);
}

.scientific-program-single .sp-gallery__dot.is-active {
  background: var(--brand-primary-main);
  border-color: var(--brand-primary-main);
  transform: scale(1.25);
}

@media (max-width: 780px) {
  .scientific-program-single .sp-gallery {
    margin: 0;
  }
  .scientific-program-single .sp-gallery__slide {
    min-height: 420px;
  }
  .scientific-program-single .sp-gallery__img {
    max-height: 420px;
  }
  .scientific-program-single .sp-gallery__nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .scientific-program-single .sp-gallery {
    margin: 0;
  }
  .scientific-program-single .sp-gallery__slide {
    min-height: 320px;
  }
  .scientific-program-single .sp-gallery__img {
    max-height: 320px;
  }
  .scientific-program-single .sp-gallery__nav {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .scientific-program-single .sp-gallery__dots {
    bottom: 12px;
    gap: 8px;
    padding: 8px 10px;
  }
  .scientific-program-single .sp-gallery__dot {
    width: 10px;
    height: 10px;
  }
}
@media (max-width: 1100px) {
  .scientific-program-single .entry-header {
    min-height: 460px;
    background-attachment: scroll;
  }
  .scientific-program-single .entry-title {
    font-size: 48px;
  }
  .scientific-program-single .entry-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: -40px auto 2rem;
    padding: 0 1.5rem;
  }
  .scientific-program-single .sp-gallery-sidebar .sp-gallery__slide {
    min-height: 320px;
  }
  .scientific-program-single .sp-gallery-sidebar .sp-gallery__img {
    max-height: 320px;
  }
}
@media (max-width: 780px) {
  .scientific-program-single .entry-header {
    min-height: 420px;
  }
  .scientific-program-single .entry-header__content {
    padding: 3.25rem 1.5rem;
  }
  .scientific-program-single .entry-title {
    font-size: 40px;
  }
  .scientific-program-single .entry-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: -40px auto 2rem;
    padding: 0 1.5rem;
  }
  .scientific-program-single .entry-layout__right {
    display: contents;
  }
  .scientific-program-single .entry-layout__gallery { order: 1; }
  .scientific-program-single .entry-layout__left { order: 2; }
  .scientific-program-single .entry-layout__info { order: 3; }
  .scientific-program-single .entry-content {
    padding: 2.75rem 2rem 3rem;
    font-size: 15px;
    border-radius: 14px;
  }
  .scientific-program-single .entry-content h2 {
    font-size: 32px;
    margin: 2.75rem 0 1.35rem;
  }
  .scientific-program-single .entry-content h3 {
    font-size: 26px;
    margin: 2.25rem 0 1rem;
  }
  .scientific-program-single .entry-content h4 {
    font-size: 20px;
  }
  .scientific-program-single .entry-additional-info {
    padding: 1.75rem;
  }
  .scientific-program-single .entry-additional-info__title {
    font-size: 22px;
  }
}
@media (max-width: 640px) {
  .scientific-program-single .entry-header {
    min-height: 340px;
  }
  .scientific-program-single .entry-title {
    font-size: 30px;
    padding: 2.5rem 1.2rem;
  }
  .scientific-program-single .entry-layout {
    gap: 1.25rem;
    margin: -30px auto 2rem;
    padding: 0 1rem;
  }
  .scientific-program-single .entry-content {
    padding: 2.25rem 1.35rem;
    font-size: 13px;
    line-height: 1.75;
  }
  .scientific-program-single .entry-content p {
    margin-bottom: 1.35rem;
  }
  .scientific-program-single .entry-content p:first-child {
    font-size: 15px;
  }
  .scientific-program-single .entry-content h2 {
    font-size: 26px;
    margin: 2.25rem 0 1rem;
    padding-bottom: 0.75rem;
  }
  .scientific-program-single .entry-content h3 {
    font-size: 21px;
    margin: 1.85rem 0 0.85rem;
  }
  .scientific-program-single .entry-content h4 {
    font-size: 18px;
    margin: 1.65rem 0 0.7rem;
  }
  .scientific-program-single .entry-content blockquote {
    padding: 1.5rem;
    font-size: 15px;
    margin: 2rem 0;
  }
  .scientific-program-single .entry-content img {
    margin: 2rem 0;
    border-radius: 12px;
  }
  .scientific-program-single .entry-content ul,
  .scientific-program-single .entry-content ol {
    padding-left: 2rem;
    margin: 1.5rem 0;
  }
  .scientific-program-single .entry-content li {
    margin-bottom: 0.85rem;
  }
  .scientific-program-single .sp-gallery-sidebar .sp-gallery__slide {
    min-height: 280px;
  }
  .scientific-program-single .sp-gallery-sidebar .sp-gallery__img {
    max-height: 280px;
  }
  .scientific-program-single .entry-additional-info {
    padding: 1.5rem;
  }
  .scientific-program-single .entry-additional-info__title {
    font-size: 20px;
    margin-bottom: 1rem;
  }
  .scientific-program-single .entry-additional-info__content {
    font-size: 14px;
  }
}
