html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #e6e6e6;
  color: #013468;
  line-height: 1.6;
}

.main-logo {
  width: 140px;
  padding-top: 2rem;
}

header {
  background-color: #004080;
  color: white;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  padding-top: 2rem;
}

header p {
  margin-top: 0.5rem;
  font-size: 1.25rem;
}

.banner {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background-color: #004aad;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
}

main {
  max-width: 1000px;
  margin: 1rem auto;
  padding: 0 1rem;
}

section {
  margin-bottom: 1rem;
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

section h2 {
  color: #004080;
  margin-top: 0;
}

ul {
  padding-left: 1.25rem;
}

ul li {
  margin-bottom: 0.75rem;
}

/* PHOTOS COLLAGE CARD */
.photos-card {
    position: relative;
    display: inline-block;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
	text-align: center;
}

.photos-collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2px;
    /*width: 100%;*/
    height: 100%;
	text-align: center;
}

.photos-collage img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* Overlay */
.photos-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    font-size: 1.1rem;
    padding: 10px;
}

.photos-card:hover .photos-overlay {
    opacity: 1;
}

.photos-overlay i {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: white;
}

.photos-overlay i {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: white;
}

.workshop-booklet iframe{
	height:600px;
}

/* Intro text expand/collapse */
.intro p {
  max-height: 6rem;
  overflow: hidden;
  transition: max-height 0.4s ease;
  position: relative;
}

.intro.expanded p {
  max-height: 2000px;
}

.read-more-btn {
  margin-top: 15px;
  background: #0054a9;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.3s ease;
}

.read-more-btn:hover {
  background: #004080;
}

/* Speakers */
.speakers {
  padding: 2rem;
  max-width: 1100px;
}

.speaker-card {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  gap: 30px;
}

.speaker-card.reverse {
  flex-direction: row-reverse;
}

.speaker-img img {
  width: 300px;
  height: auto;
  border-radius: 8px;
  display: block;
}

.speaker-text {
  flex: 1;
}

.speaker-text h3 {
  margin-top: 0;
  font-size: 1.4em;
}

.speaker-text p {
  font-size: 0.95em;
  text-align: justify;
  line-height: 1.6;
}

table {
  border: none;
  font-size: 14px;
  width: 100%;
}

.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-container table {
  min-width: 600px;
  border-collapse: collapse;
}

.table-container th,
.table-container td {
  padding: 6px 8px;
  text-align: left;
  white-space: nowrap;
}

.hidden {
  display: none;
}

.toggle-btn {
  background-color: #004080;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 10px;
  width: 100%;
  text-align: left;
}

.toggle-btn:hover {
  background-color: #0059b3;
}

tbody tr:nth-child(even) {
  background-color: #cfcfcf;
}

tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.workshop-program, th, td{
	border: none;
}

.workshop-program th {
	border-radius: 0.5rem 0.5rem 0 0;
	font-size: 1.4rem;
}
.workshop-program tbody tr:nth-child(odd) {
	background-color: #f7fbff;
}
.workshop-program tbody tr:nth-child(even) {
	background-color: #c0d9f1;
}

.workshop-program td:first-child {
    text-align: center;
}


footer {
  text-align: center;
  padding: 1rem;
  background-color: #eee;
  font-size: 0.9rem;
  color: #555;
}

/* Sponsors */
.sponsors {
  text-align: center;
  align-items: center;
  display: flex;
}

.sponsors h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.sponsor-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.sponsor-background {
  background-color: white;
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  transition: transform 0.3s ease;
  flex-wrap: wrap;
  gap: 1.8rem;
}

.sponsor-card {
  width: 96%;
  padding: 1.4rem;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.2s ease;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.sponsor-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.sponsor-card.gold {
  background: linear-gradient(90deg, #b8860b, #fff7d0, #d3ae2a, #fff2b3, #d4af37, #aa7f28);
}

.sponsor-card.silver {
  background: linear-gradient(90deg, #c0c0c0, #a9a9a9, #e0e0e0, #c0c0c0, #a9a9a9);
}

.sponsor-card.bronze {
  background: linear-gradient(90deg, #804a00, #d2a679, #b87333, #804a00);
}

.sponsor-card.gold img { height: 120px; }
.sponsor-card.silver img { height: 100px; }
.sponsor-card.bronze img { height: 80px; }

.sponsor-card img {
  max-width: 70%;
  height: 100px;
  object-fit: contain;
}

.cta p {
  font-weight: 500;
}

.address {
  margin: auto;
}

.language-selector {
  text-align: right;
  position: absolute;
  right: 0;
  top: 0;
}

.language-selector button {
  color: white;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 0.5rem;
}

.language-selector button.hidden {
  display: none;
}

/* Footer */
.site-footer {
  background: #0a3c7a;
  color: #fff;
  padding: 2rem 6rem 1rem;
  text-align: center;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  width: 200px;
  height: auto;
  display: block;
}

.header-nav ul {
  list-style: none;
  padding: 1rem 0 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  width: 100%;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.header-nav a {
  color: #e6f0ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.header-nav a:hover,
.header-nav a:focus {
  text-decoration: underline;
}

/* ---------- NAVIGATION ---------- */
.header-nav {
  position: relative;
  background-color: #004080;
}

.header-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.header-nav a:hover {
  text-decoration: underline;
}

/* ---------- HAMBURGER BUTTON ---------- */
.nav-toggle {
  display: none; /* hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  z-index: 1001;
}

.nav-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* transform to 'X' when active */
.nav-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translateY(12px);
}
.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-12px);
}

/* ---------- MOBILE MENU ---------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .header-nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #004080;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    display: none; /* hidden by default */
    z-index: 1000;
  }

  .header-nav ul.open {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}


.sponsor-list img {
  width: 150px;
  height: auto;
  display: block;
}

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Back to top button */
#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #004080;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
  z-index: 1000;
}

#backToTop:hover {
  background: #0059b3;
  transform: translateY(-2px);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

section.submission {
    padding: 2rem;
    display: flex;
    align-items: center;
    width: 60%;
    margin: auto;
    flex-direction: column;
}

/* ====== MEDIA QUERIES (merged) ====== */
@media (max-width: 768px) {
  .speaker-card,
  .speaker-card.reverse {
    flex-direction: column;
    text-align: center;
	margin-bottom:50px;
  }
.workshop-booklet iframe{
	height:200px;
	}
  .speaker-img img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .speaker-text {
    text-align: left;
  }

  .sponsor-card {
    width: 90%;
  }

  .sponsor-row {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  main {
    padding: 0 0.5rem;
  }

  .photos-collage {
	grid-template-columns: repeat(2, 1fr);
  }
  .photos-collage img {
    width: 100%;
    height: 160px;
}
}

@media (min-width: 900px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    text-align: left;
  }

  .header-nav ul {
    align-items: flex-start;
    flex-direction: row;
  }

  .sponsor-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem 1rem;
    align-items: center;
    justify-items: start;
    width: 240px;
  }

  .sponsor-list li {
    display: flex;
  }

  .sponsor-list img {
    width: 110px;
  }
}
