:root {
  --primary-color: #0d3b45;
  --secondary-color: #0a2c34;
  --accent-color: #c5a14b;
  --accent-hover: #b08c38;
  --bg-color: #f4f7f6;
  --bg-color-2: #e7e8e7;
  --text-color: #2c3e50;
  --light-text: #ecf0f1;
  --white: #ffffff;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --error-color: #e74c3c;
  --success-color: #27ae60;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5;
}
#page-submissions p {
  text-align: justify;
  margin-bottom: 20px;
}
html {
  font-size: clamp(15px, 1.2vw, 18px);
}
/* --- Header --- */
header {
  background-color: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 2px 0 0px 0px;
  transition: padding 0.3s ease;
}
body.subpage header {
  padding: 0;
}
body.subpage .top-bar {
  padding: 0px 5%;
  font-size: 0.75rem;
}
body.subpage nav {
  padding: 0px 5%;
}
body.subpage .logo {
  font-size: 1.2rem;
}
body.subpage .nav-item > a {
  font-size: 0.85rem;
  padding: 8px 10px;
}

.top-bar {
  background-color: var(--primary-color);
  color: var(--light-text);
  text-align: right;
  padding: 4px 5%;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.3s ease;
}
.top-bar .location-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
}
.top-bar .location-info a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}
.top-bar .location-info a:hover {
  color: var(--accent-color);
}

.lang-switch button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--light-text);
  padding: 1px 8px;
  cursor: pointer;
  margin-left: 5px;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.75rem;
}
.lang-switch button:hover,
.lang-switch button.active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--primary-color);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 5%;
  position: relative;
  transition: padding 0.3s ease;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-color);
  background-color: transparent;
  cursor: pointer;
  letter-spacing: 1px;
  user-select: none;
  z-index: 1001;
  transition: font-size 0.3s ease;
}
.logo span {
  color: var(--accent-color);
}

/* Menu */
.nav-links {
  display: flex;
  align-items: center;
}
.nav-item {
  position: relative;
  margin-left: 20px;
}
.nav-item > a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.nav-item > a:hover {
  background-color: rgba(13, 59, 69, 0.08);
  color: var(--primary-color);
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 8px 8px;
  min-width: 220px;
  padding: 10px 0;
  z-index: 998;
  border-top: 3px solid var(--accent-color);
  margin-top: 0;
  cursor: pointer;
}
.nav-item:hover .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.dropdown-menu a:hover {
  background-color: var(--bg-color);
  color: var(--primary-color);
}
.arrow-down {
  border: solid var(--text-color);
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  margin-bottom: 2px;
  margin-left: 5px;
}

/* Menu Mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -85%;
    width: 45%;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    padding-left: 20px;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  .nav-links.active {
    right: 0;
  }
  .nav-item {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid #eee;
  }
  .nav-item > a {
    padding: 15px 10px;
    font-size: 1rem;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background-color: #f9f9f9;
    display: none;
  }
  .nav-item:hover .dropdown-menu {
    display: block;
    background-color: #f4f7f6;
  }
  .top-bar {
    justify-content: flex-end;
    padding: 4px 5%;
  }
  .location-info {
    display: none;
  }
  body.subpage header {
    padding: 2px 0;
  }
  .arrow-down {
    display: none;
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  color: var(--white);
  padding: 120px 10px 40px;
  text-align: center;
  overflow: hidden;
  background-color: var(--primary-color);
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
  animation: subtleZoom 30s infinite alternate;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(13, 59, 69, 0.92) 0%,
    rgba(10, 44, 52, 0.85) 50%,
    rgba(244, 247, 246, 0) 100%
  );
  z-index: 1;
}
@keyframes subtleZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero h2 {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 15px;
  opacity: 0.95;
}
.hero-theme {
  font-size: 1.8rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.hero-details {
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 30px;
  border-radius: 50px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  align-items: center;
}
.hero-details .date-line {
  display: flex;
  align-items: center;
  gap: 15x;
}
.hero-details svg {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  fill: var(--accent-color);
}
.hero-details strong {
  color: var(--accent-color);
  font-size: 1rem;
}
.hero-details .location {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 400;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 12px 35px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background-color: var(--accent-color);
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(197, 161, 75, 0.4);
}
.btn-primary:hover {
  background-color: var(--white);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-1px);
}
/* --- Sections General --- ba*/
a {
  text-decoration: none;
  color: var(--accent-color);
}
a:hover {
  color: var(--accent-hover);
}
.section-wrapper {
  position: relative;
  width: 100%;
  background-color: var(--white);
  padding: 30px 0 60px;
  overflow: hidden;
}
.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2%;
}
.section-title {
  text-align: center;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  display: block;
}
.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 5px auto 5px;
}

/* --- About --- */
.about-flex {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.about-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}
.about-text .section-title {
  text-align: center;
  margin-bottom: 10px;
}
.about-text p {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 15px;
  line-height: 1.7;
  margin-top: 15px;
}
.about-image {
  flex: 0 0 35%;
  position: relative;
}
.about-image img {
  width: 90%;
  height: auto;
  min-width: 300px;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease;
}
.about-image:hover img {
  transform: scale(1.02);
}
@media (max-width: 600px) {
  .about-flex {
    justify-content: center;
  }
  .about-text {
    text-align: center;
  }
}

/* --- Dates --- */
.dates-bar {
  background-color: var(--bg-color);
  padding: 25px 20px 0px 20px;
  text-align: center;
  position: relative;
  z-index: 3;
  margin-top: -30px;
}
.dates-bar h3 {
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 700;
}
.dates-container {
  display: flex;
  justify-content: center;
  column-gap: 20px;
  row-gap: 10px;
  flex-wrap: wrap;
}
.date-item {
  border-radius: 8px;
  padding: 0px;
  position: relative;
}

.background {
  background: rgba(197, 161, 75, 0.1);
  transform: translateY(-25px);
  padding: 10px 10px;
}

.date-item strong {
  display: block;
  color: var(--accent-color);
  font-size: 0.95rem;
  margin-bottom: 5px;
  font-weight: 600;
}
.date-item span {
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.95rem;
}
.date-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  width: 1px;
  background-color: #ccc;
}
.date-item.background:not(:last-child)::after {
  transform: translateY(25%);
}
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
  width: 80%;
  margin: 0 auto;
  opacity: 0.2;
}

/* ========================================= */
/* --- SECÇÃO INDEXED --- */
/* ========================================= */
.indexed-section {
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--primary-color) 100%
  );
  padding: 20px 20px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.indexed-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}
.indexed-content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}
.indexed-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0px;
  opacity: 0.9;
  font-weight: 600;
}
.indexed-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  min-height: 100px;
  justify-content: center;
  padding: 0;
}
.logo-box img {
  max-height: 100px;
  width: auto;
  transition: all 0.3s ease;
  display: block;
}
.logo-box .scopus-img {
  opacity: 1;
  margin-right: 0;
  margin-left: 10px;
}
.logo-box .ais-img {
  filter: brightness(0) invert(1);
  max-height: 80px;
  margin-left: 0;
  margin-right: 10px;
}
.indexed-text {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Speakers --- */
.main-content section {
  padding: 30px 5%;
  max-width: 1600px;
  margin: 0 auto;
}
.speakers-grid {
  padding: 10px 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 0px;
  column-gap: 60px;
}
.speaker-card {
  text-align: center;
  padding: 0px;
}
.speaker-photo {
  max-width: 170px;
  width: 100%;
  border-radius: 10%;
  object-fit: cover;
  margin-bottom: 10px;
  /* filter: grayscale(100%);*/
  transition: all 0.4s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.speaker-card:hover .speaker-photo {
  filter: grayscale(0%);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.speaker-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}
.speaker-role {
  font-size: 0.95rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.speaker-topic {
  font-style: italic;
  color: #666;
  font-size: 1.05rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}
.speaker-topic::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
  opacity: 0.5;
}
.speaker-bio {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  /* max-width: 500px;*/
}

/* ========================================= */
/* --- PARTNERS  --- */
/* ========================================= */
.sponsors-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 25px;
  margin-bottom: -25px;
}
.partner-logo-img {
  height: 35px;
  width: auto;
  filter: none;
  opacity: 1;
  transition: all 0.3s ease;
  object-fit: contain;
}
.partner-logo-img:hover {
  filter: grayscale(100%);
  opacity: 0.7;
  transform: scale(1.05);
}

/* --- Internal Page General --- */
.internal-page {
  display: none;
  padding: 110px 5% 50px;
  min-height: 100vh;
}
.internal-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* ========================================= */
/* --- HEADER LAYOUT --- */
/* ========================================= */
.page-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  position: relative;
}
.back-btn {
  position: absolute;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 6px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
}
.back-btn:hover {
  background-color: var(--primary-color);
  color: white;
}
@media (max-width: 768px) {
  .back-btn {
    display: none;
  }
}
.page-title-adjust {
}
.page-title-adjust .section-title {
  margin-bottom: 0;
}
.page-title-adjust .section-title::after {
  margin-top: 5px;
}

/* Program Tabs */
.program-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
  flex-wrap: wrap;
}
.tab-btn {
  background: var(--white);
  border: 1px solid #ddd;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tab-btn.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(13, 59, 69, 0.2);
}
.tab-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.tab-btn.active:hover {
  background: var(--secondary-color);
  color: var(--white);
}
.tab-btn.map-btn {
  background: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}
.tab-btn.map-btn:hover,
.tab-btn.map-btn.active {
  background: var(--accent-color);
  color: var(--white);
}
.print-btn-icon {
  background: var(--white);
  border: 1px solid #ddd;
  color: #666;
  padding: 8px 12px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.print-btn-icon:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.print-btn-icon svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.schedule-day {
  display: none;
  animation: fadeIn 0.4s ease;
}
.schedule-day.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline {
  position: relative;
  padding: 10px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 29px;
  width: 2px;
  background: #e0e0e0;
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0;
  position: relative;
  padding-left: 80px;
  cursor: pointer;
}
.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: all 0.3s ease;
}
.timeline-marker svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary-color);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.timeline-item.active .timeline-marker {
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 5px rgba(197, 161, 75, 0.15);
}
.timeline-item.active .timeline-marker svg {
  stroke: var(--white);
}
.timeline-content {
  background: var(--white);
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f0;
  width: 100%;
  transition: all 0.2s;
  margin-bottom: 25px;
}
.timeline-item:hover .timeline-content {
  border-color: #e0e0e0;
}
.event-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.event-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.event-expand-icon {
  font-size: 0.8rem;
  color: #999;
  transition: transform 0.3s;
}

/* Session Details Panel */
.session-details-panel {
  display: block;
  margin-left: 80px;
  margin-top: -25px;
  margin-bottom: 25px;
  border: 1px solid #eee;
  padding-top: 0px;
  background: #fdfdfd;
  border-radius: 0 0 8px 8px;
}
.session-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  table-layout: fixed;
}
.session-table th {
  background: #f8f9fa;
  padding: 4px 10px;
  text-align: left;
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
  font-weight: 600;
}
.session-table td {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}
.session-table tr:last-child td {
  border-bottom: none;
}
.session-table .chair-name {
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
}
.session-table .location-tag {
  background: #eef6f8;
  color: var(--primary-color);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Keynote Detail */
.keynote-detail {
  display: flex;
  gap: 15px;
  align-items: center;
}
.keynote-speaker-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-color);
  flex-shrink: 0;
}
.keynote-info h5 {
  font-size: 0.95rem;
  color: var(--primary-color);
  margin-bottom: 2px;
}
.keynote-info p {
  font-size: 0.8rem;
  color: #555;
  margin: 0;
}

.papers-list {
  margin-top: 8px;
  padding-left: 0;
  list-style: none;
}
.papers-list li {
  font-size: 0.85rem;
  margin-bottom: 6px;
  padding-left: 15px;
  position: relative;
  line-height: 1.4;
}
.papers-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}
.paper-title {
  color: var(--text-color);
  font-weight: 500;
  display: block;
}
.paper-authors {
  color: #777;
  font-size: 0.8rem;
  display: block;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    padding-left: 65px;
    margin-bottom: 0;
  }
  .timeline-marker {
    width: 40px;
    height: 40px;
    left: 0;
  }
  .timeline-marker svg {
    width: 20px;
    height: 20px;
  }
  .timeline-content {
    margin-bottom: 20px;
  }
  .session-details-panel {
    margin-left: 0;
    margin-top: -10px;
  }
  .program-tabs {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .tab-btn {
    width: 100%;
    text-align: center;
    padding: 10px;
    justify-content: center;
  }
  .page-header {
    justify-content: center;
  }
  .session-table th:nth-child(3),
  .session-table td:nth-child(3) {
    display: none;
  }
}

.map-container {
  display: none;
  margin-top: 30px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: var(--white);
}
.map-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Registration --- */
.registration-grid {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .registration-grid {
    grid-template-columns: 1fr;
  }
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  font-size: 0.9rem;
}
.price-table th,
.price-table td {
  padding: 5px 10px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.price-table th {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  text-align: center;
}
.price-table th:first-child {
  text-align: left;
}
.price-table tr:last-child td {
  border-bottom: none;
}
.price-value {
  font-weight: 700;
  color: var(--primary-color);
}
.price-note {
  margin-top: 20px;
  background: #f3ebd2;
  border-left: 5px solid var(--accent-color);
  padding: 15px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #664d03;
}
.price-note p {
  margin-bottom: 10px;
}
.price-note p:last-child {
  margin-bottom: 0;
}

/* DYNAMIC FORM STYLES */
.reg-form {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}
.form-group {
  margin-bottom: 10px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.9rem;
}
.conditional-box label {
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.95rem;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
}
.form-group input[type="file"] {
  padding: 5px 10px;
}

input[type="file"]::file-selector-button {
  border: none;
  padding: 7px 7px;
  background: #eac265;
  border-radius: 5px;
  cursor: pointer;
}

input[type="number"] {
  padding: 7px 7px;
  border-radius: 5px;
}

input[type="file"]::file-selector-button:hover {
  background: var(--accent-color);
}

.form-row {
  display: flex;
  gap: 15px;
}
.form-row .form-group {
  flex: 1;
}

.form-step {
  display: none;
  animation: fadeIn 0.3s ease;
}
.form-step.active {
  display: block;
}

.btn-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkbox-group input {
  width: auto;
}
.conditional-box {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin-top: 10px;
  border: 1px solid #efece9;
}
#price_summary_box {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
  margin-bottom: 20px;
}
#price_summary_box p {
  margin: 5px 0;
}
#price_summary_box .total-line {
  font-weight: bold;
  font-size: 1.1rem;
  border-top: 1px solid #ccc;
  margin-top: 10px;
  padding-top: 5px;
}
/* Estilos para o Botão PayPal */
.paypal-btn-container {
  margin-top: 15px;
  text-align: center;
}
.btn-paypal {
  background-color: var(--accent-color);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  font-size: 1rem;
  transition: background 0.3s;
}

.btn-paypal:hover {
  background-color: var(--accent-hover);
}

/* Estilos para a Página de Resumo */
.summary-container {
  text-align: center;
}
.success-icon {
  font-size: 2.3rem;
  color: var(--success-color);
}
.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  text-align: right;
}
.summary-table th,
.summary-table td {
  padding: 5px;
  font-size: 0.95rem;
  border-bottom: 1px solid #eee;
}
.summary-table th {
  width: 40%;
  color: #666;
  font-weight: 600;
}
.summary-total-box {
  background-color: var(--text-color);
  padding: 5px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--light-text);
  /*  border-bottom: 1px solid #eee; */
}
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .btn-nav {
    flex-direction: column;
    gap: 10px;
  }
  .btn-nav button {
    width: 100%;
  }
}

/* --- Info Box --- */
.info-box {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 12px 35px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 6px 20px rgba(197, 161, 75, 0.4);
  transition: all 0.3s ease;
  border: 2px solid var(--accent-color);
}
.btn-cta:hover {
  background-color: transparent;
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* ========================================= */
/* --- SUBMISSIONS SPECIFIC --- */
/* ========================================= */
.submission-print-corner {
  text-align: right;
  margin-bottom: 15px;
}
.submission-print-corner a {
  font-size: 0.85rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.submission-topics-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 5px;
  margin-top: 15px;
  margin-bottom: 30px;
}
.submission-topics-list li {
  background-color: #f8f9fa;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-color);
  border-left: 3px solid var(--accent-color);
}
.submission-indexed-highlight {
  margin-top: 0px;
  margin-bottom: 0px;
  padding: 10px;
  background-color: #eef6f8;
  border-radius: 8px;
  border-left: 5px solid var(--primary-color);
  border-right: 5px solid var(--primary-color);
  text-align: center;
  width: 50%;
  margin: 0 auto;
}
.submission-indexed-highlight p {
  color: var(--primary-color);
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
  margin-bottom: 0 !important;
}
.submission-indexed-highlight strong {
  color: var(--accent-color);
}
.submission-templates {
  text-align: center;
  margin-top: 5px;
}
.submission-templates a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

/* ========================================= */
/* --- COMISSÕES --- */
/* ========================================= */
.committee-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.committee-section-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
  text-align: left;
}
.committee-grid {
  /* display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  justify-content: left;
 */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  gap: 40px;
  align-items: left;
}
.person-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  align-items: center;
  text-align: center;
  width: 240px;
  border: 3px solid #eee;
}
.person-card:hover {
  /* Opcional: Escurece suavemente a sombra para um efeito de profundidade */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.person-photo {
  width: 100%;
  height: 240px;

  object-fit: cover;
}
.person-name {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1rem;
}
.person-affiliation {
  font-size: 0.75rem;
  color: #666;
  margin: 5px;
}

/* ========================================= */
/* --- VISITE COIMBRA --- */
/* ========================================= */
.coimbra-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  color: #555;
}
.coimbra-section-title {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin: 30px 0 20px;
  border-left: 4px solid var(--accent-color);
  padding-left: 15px;
}

.transport-grid,
.hotels-list,
.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.transport-item,
.hotel-item,
.place-item {
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  text-align: center;
  display: flex;

  flex-direction: column;
}
.transport-item {
  padding: 5px 20px 0px 20px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-color-2);
}
.transport-icon {
  font-size: 2rem;
  margin: 0px;
  display: block;
}
.hotel-item,
.place-item {
  text-align: left;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border: 2px solid var(--bg-color-2);
}
.transport-item:hover,
.hotel-item:hover,
.place-item:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}
.place-item img,
.hotel-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.5s;
}
.hotel-content,
.place-content {
  padding: 0 15px;
  display: flex;
  flex-direction: column; /* Alinha os itens em coluna */
  justify-content: flex-start; /* Empurra tudo para baixo */
  align-items: flex-end; /* Alinha tudo à direita */
}
.transport-item,
.place-content h4,
.hotel-info h4 {
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 5px;
}
.transport-item p,
.place-info p,
.hotel-info p {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
  text-align: justify;
}
.transport-item p {
  text-align: center;
  margin-bottom: 0px;
}
.transport-item a {
  margin: 0px;
}
.hotel-link,
.place-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 600;
  padding: 5px;
  margin-top: 5px;
  text-decoration: none;
}
.place-link:hover,
.hotel-link:hover {
  background-color: var(--bg-color);
  border-radius: 5px;
}

.coimbra-map-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-top: 20px;
}
.coimbra-map-card iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}
.coimbra-map-footer {
  padding: 15px;
  text-align: center;
  background: var(--bg-color);
  border-top: 1px solid #eee;
}
.coimbra-map-footer a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}
/* ========================================= */
/* --- BEST PAPER AWARD --- */
/* ========================================= */
.award-list {
  list-style: none;
  counter-reset: award-counter;
}
.award-list li {
  counter-increment: award-counter;
  background: #fdfdfd;
  border: 1px solid #eee;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 6px;
  position: relative;
  padding-left: 60px;
}
.award-list li::before {
  content: counter(award-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.award-title {
  font-weight: 600;
  color: var(--primary-color);
  display: block;
  margin-bottom: 5px;
}
.award-authors {
  font-size: 0.9rem;
  color: #555;
}

/* ========================================= */
/* --- PROCEEDINGS (ATAS) --- */
/* ========================================= */
.proceedings-box {
  text-align: center;
  padding: 40px;
  background: #f9f9f9;
  border-radius: 8px;
}
.proceedings-logo {
  max-width: 150px;
  margin-bottom: 20px;
}
.proceedings-text {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

/* --- Footer --- */
footer {
  background-color: var(--secondary-color);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 5% 20px;
  font-size: 0.9rem;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.footer-col {
  flex: 1;
  min-width: 250px;
}
.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 15px;
  display: block;
  background-color: transparent;
}
.footer-logo span {
  color: var(--accent-color);
}
.footer-col h4 {
  color: var(--accent-color);
  margin-bottom: 15px;
  font-size: 1.1rem;
}
.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  transition: color 0.3s;
  font-size: 0.9rem;
  line-height: 1.4;
}
.footer-col a:hover {
  color: var(--white);
}
.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 600px) {
  .footer-content {
    justify-content: center;
    text-align: center;
  }
  .footer-col {
    text-align: center;
  }
}

.video-container {
  margin: 30px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: #000;
  position: relative;
}
.video-container video {
  width: 100%;
  display: block;
}

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 10;
  backdrop-filter: blur(5px);
}
.video-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.video-btn:hover {
  transform: scale(1.2);
}
.video-btn svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.progress-container {
  flex-grow: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  cursor: pointer;
  position: relative;
}
#progress-container {
  cursor: pointer;
  position: relative;
  /* Adiciona uma altura mínima para ser fácil de acertar com o rato */
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  flex-grow: 1; /* Se estiveres a usar flexbox nos controlos */
  margin: 0 10px;
  display: flex;
  align-items: center;
}
#progress-bar {
  height: 100%;
  background: var(--accent-color);
  border-radius: 5px;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

.time-display {
  color: white;
  font-size: 0.8rem;
  font-family: monospace;
  min-width: 90px;
  text-align: center;
}

.scientific-list {
  background: var(--white);
  border-radius: 8px;
  padding: 25px;
  box-shadow: var(--card-shadow);
}
.scientific-list ul {
  column-count: 2;
  list-style: none;
}
.scientific-list li {
  margin-bottom: 12px;
  break-inside: avoid-column;
}
.scientific-list strong {
  color: var(--text-color);
}
.scientific-list span {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 2px;
}
@media (max-width: 768px) {
  .scientific-list ul {
    column-count: 1;
  }
}

input:focus:valid {
  border: 2px solid #2ecc7199;
  border-radius: 5px;
}

input:focus:invalid:not(:placeholder-shown) {
  border: 2px solid #e74c3c99;
  border-radius: 5px;
}

/* Tudo o que está aqui dentro só afeta a impressão/PDF */
@media print {
  /* NOVO: Controlar a margem física da página para evitar transbordos */
  @page {
    margin: 0cm; /* Podes reduzir para 0.5cm se precisares de mais espaço */
  }

  /* NOVO: Garantir que o html e body não têm alturas fixas (como 100vh) ou margens que forcem nova página */
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: auto !important;
  }

  /* 1. Esconder os elementos de navegação e botões */
  .submission-print-corner,
  .submission-templates,
  #sub,
  .btn-cta,
  header,
  footer,
  nav,
  .info-box h3 {
    display: none !important;
  }

  .section-title::before {
    content: " CAPSI 2026 - ";
    width: 150px !important;
    display: inline !important; /* Força o pseudo-elemento a comportar-se como texto em linha */
    white-space: nowrap !important; /* Proíbe o texto de quebrar para a linha de baixo */
    padding: 0px;
    margin: 0px;
  }
  .submission-indexed-highlight {
    width: 80%;
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .info-box {
    font-size: small;
    padding-top: 15px !important;
  }
  .info-box div.start {
    padding-top: 7px !important;
  }
  .info-box p {
    margin-bottom: 15px !important;
  }
  .submission-indexed-highlight p {
    padding: 0px !important;
    margin: 0px !important;
  }
  .submission-topics-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3px;
  }

  .submission-topics-list li {
    background-color: #f8f9fa;
    padding: 5px 5px 5px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-color);
    border-left: 3px solid var(--accent-color);
  }
  /* 2. Remover fundos, sombras e margens para poupar tinta e alinhar o texto */
  .internal-page {
    background: white;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    color: #000 !important;
    width: 100%;
    height: 100%;
  }

  .internal-page {
    padding-top: 35px !important;
    padding-bottom: 0px;
  }

  .sponsors-grid {
    margin: 0;
    padding: 0;
    gap: 0px;
    bottom: 50px;
    position: absolute !important;
  }

  .partner-logo-img {
    height: 21px;
    width: auto;
    margin: 0 10px;
    object-fit: contain;
  }

  .date-item {
    font-size: x-small;
    padding: 0px;
    margin: 0px;
  }
  .logo-impressao {
    /* 1. Tira os logotipos do fluxo normal para não forçarem nova página */
    background: transparent;
    position: absolute !important;
    box-sizing: border-box;
    text-align: center;
    display: block !important;
    width: 100%;
    z-index: 1000;
  }
  .text-print {
    display: inline !important;
    z-index: 1000;
  }
  .dates-container {
    flex-wrap: nowrap;
  }
  .dates-bar {
    background-color: white;
    font-size: x-small !important;
    bottom: 90px !important;
    padding-top: 10px;
    box-sizing: border-box;
    z-index: 1000;
    background-image: linear-gradient(var(--bg-color-2), #ffffff);
  }

  /**************************/

  #footer.logo-impressao {
    font-size: x-small !important;
    height: 25px;
    bottom: 0px;
    position: absolute !important; /* Change to 'fixed' if it should repeat on every printed page */
    padding: 2px 0;
    width: 100%;
    background-color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center; /* Better browser support */
  }
  .simposio {
    position: relative !important;
    text-align: justify;
    margin-top: -10px;
  }
  #footer2.logo-impressao {
    height: 25px;
    top: 0px;
    position: absolute !important;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    background-color: var(--secondary-color);
  }
  .page-title-adjust {
    padding-top: 10px;
  }
}

/* Esconder os logotipos de impressão no ecrã normal */
@media screen {
  .logo-impressao {
    display: none !important;
  }
  .text-print {
    display: none !important;
  }
}
