/* Conference description */
.conference-header {
  display: none;
}

/* New full-width backdrop */
.conference-backdrop img {
  width: 100%;
  height: auto;
  display: block;
}

/* Title and theme styling */
.conference-title-theme h2,
.conference-title-theme h5 {
  color: black;
  margin-bottom: 0.5rem;
}

.conference-title-theme h2 {
  font-size: 3rem;
}

.conference-title-theme h5 {
  font-size: 1.6rem;
}

.conference-description h3 {
  border-bottom: 3px solid var(--black);
  display: inline-block;
  padding-bottom: 8px;
  margin-right: 2rem;
}

.event-details-box {
    background-color: var(--primary-blue);
    color: white;
    text-align: left;
}

.event-details-box img {
    vertical-align: middle;
    margin-right: 8px;
}

/* Horizontal timeline */
.timeline-wrapper {
  position: relative;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  flex-wrap: wrap;
  padding-top: 40px;
}

.timeline-line {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 6px;
  background-color: var(--dark-gray);
  z-index: 1;
}

/* Each timeline item */
.timeline-container {
  position: relative;
  flex: 0 1 220px;
  min-width: 140px;
  margin-bottom: 40px;
  text-align: center;
}

/* Dots on the line */
.timeline-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid #ff9f55;
  background-color: var(--white);
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* Color based on status */
.timeline-dot.upcoming {
  background-color: #f0f0f0;
  border-color: #0d6efd;
}
.timeline-dot.ongoing {
  background-color: red;
  border-color: red;
}
.timeline-dot.closed {
  background-color: #999;
  border-color: #999;
}

/* Card styling */
.timeline-content {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  border: 2px solid var(--dark-gray);
  position: relative;
  z-index: 0;
}

/* Optional color borders */
.timeline-content.upcoming {
  border-color: #0d6efd;
}
.timeline-content.ongoing {
  border-color: red;
  font-weight: bold;
}
.timeline-content.closed {
  border-color: #999;
  color: #777;
}

@media (max-width: 768px) {
  .timeline-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .timeline-container {
    width: 90%;
  }

  .timeline-line {
    top: 30px;
    left: 5%;
    right: 5%;
  }

  .timeline-dot {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Guests of Honour */
.guests-hero {
  background-image: url('../images/guests_of_honour_background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.guests-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 50% black */
    z-index: 0;
}

.guests-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.guests-hero .container {
  position: relative;
  z-index: 2;
}

.guests-section {
  background-color: var(--rose);
}

/* Welcome speakers */
.welcome-hero {
  background-image: url('../images/welcome_speakers_background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.welcome-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 50% black */
    z-index: 0;
}

.welcome-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.welcome-hero .container {
  position: relative;
  z-index: 2;
}

.welcome-section {
  background-color: var(--beige);
}

/* Keynote speakers */
.keynote-section {
  background-color: var(--primary-blue);
  color: var(--white);
}

.keynote-hero {
  background-image: url('../images/keynote_speakers_background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.keynote-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 50% black */
    z-index: 0;
}

.keynote-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* dark overlay */
  z-index: 1;
}

.keynote-hero .container {
  position: relative;
  z-index: 2;
}

/* Event Summary Section */
.summary-hero {
  background-image: url('../images/summary_background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.summary-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 50% black */
  z-index: 0;
}

.summary-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* dark overlay */
  z-index: 1;
}

.summary-hero .container {
  position: relative;
  z-index: 2;
}

.summary-section {
  background-color: var(--beige);
}

/* Gallery Hero Section */
.gallery-hero {
  background-image: url('../images/gallery_background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gallery-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 50% black */
  z-index: 0;
}

.gallery-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* dark overlay */
  z-index: 1;
}

.gallery-hero .container {
  position: relative;
  z-index: 2;
}

/* Gallery (carousel — matches home page behavior) */
.gallery-section { 
  background-color: var(--white); 
}

/* Outer wrapper with letterboxing for mixed image ratios */
.gallery-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--black);        /* REQUIRED: black background */
}

/* Horizontal track the slides sit on */
.gallery-track {
  display: flex;
  transition: transform 300ms ease;
  will-change: transform;
}

/* One full-width slide per view */
.gallery-slide {
  flex: 0 0 100%;
  max-width: 100%;
  height: 420px;
  display: flex;                   /* use flexbox instead of grid */
  align-items: center;             /* vertical centering */
  justify-content: center;         /* horizontal centering */
  background: var(--black);        /* REQUIRED: black background */
  -webkit-user-drag: none;
  user-select: none;
}

/* Images fill but preserve aspect, no drag-ghost on mobile */
.gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;             /* scale without cropping */
  display: block;
  margin: auto;                    /* ensure centering */
  -webkit-user-drag: none;
  user-select: none;
  touch-action: pan-y;             /* vertical page scroll allowed */
}

/* ensure horizontal swipes are ours, vertical scroll still works */
.gallery-track,
.gallery-slide {
  touch-action: pan-y;
}

/* Arrows: make sure they’re always tappable above everything */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #000;
  font-size: 22px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  z-index: 10;                     /* higher than track/images */
  pointer-events: auto;            /* explicit for mobile */
  -webkit-tap-highlight-color: transparent;
}
.gallery-nav:hover { background: #fff; }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }

.gallery-arrow i,
.gallery-nav i { pointer-events: none; }

/* Dots under the carousel */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.gallery-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: #cfcfcf;
  cursor: pointer;
  padding: 0;
}
.gallery-dots .dot.active {
  background: var(--primary-blue-dark);
  transform: scale(1.1);
}

/* Slightly shorter slides on small screens */
@media (max-width: 576px) {
  .gallery-slide { height: 320px; }
}

/* Video Hero Section */
.video-hero {
  background-image: url("../images/video_background.jpg");
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.video-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* dark overlay */
    z-index: 0;
}

.video-hero .container {
    position: relative;
    z-index: 1;
}

/* Video Section Background */
.video-section {
    background-color: var(--light-gray-1);
}

/* Video Caption Styling */
.video-caption {
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Best papers' and publications' */
.paper-publication-section {
  background-color: var(--primary-blue);
}

.paper-title,
.publication-title {
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.paper-authors,
.paper-year,
.publication-authors,
.publication-publishers-year {
  font-size: 0.9rem;
}

/* Read more button */
.read-more-btn {
  display: inline-block;
  padding: 10px 30px;
  background-color: var(--primary-blue-dark);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  transition: background-color 0.3s ease;
  letter-spacing: 0.5px;
}

.read-more-btn:hover {
  background-color: var(--primary-blue);
}

/* Media coverages */
.media-coverage-section {
  background-color: var(--beige);
}

/* Media card styling */
.media-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 1px solid #ddd;
  background-color: var(--light-gray-0);
  height: 100%; /* Ensure full height */
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  max-width: 100%;
  box-sizing: border-box;
}

/* Hover effect */
.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Card content layout */
.media-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 200px;
  padding: 1.25rem;
}

/* Headline + date */
.media-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
  min-width: 0;
}

.media-main .headline {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: left;
  word-break: break-word;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}

.media-main .date {
  font-size: 0.85rem;
  color: #666;
  white-space: normal;
  flex-shrink: 0;
}

/* Media source at bottom */
.media-source {
  font-size: 0.85rem;
  color: #555;
  text-align: left;
  margin-top: auto;
}

/* Conference Chair and Organizer */
.conference-organizer-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  background: url('../images/organizer_background.jpg') center center/cover no-repeat;
}

.conference-organizer-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* black transparent overlay */
  z-index: 1;
}

.content-wrapper {
  position: relative;
  z-index: 2;
}

.organizer-logo {
  max-height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.organizer-name {
  font-weight: bold;
  font-size: 1rem;
  color: white;
}

.organizer-link {
  text-decoration: none;
  display: inline-block;
}

.organizer-link:hover .organizer-logo {
  transform: scale(1.05);
}

.organizer-link:hover .organizer-name {
  text-decoration: underline;
}