/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin-bottom: 80px;
  background: #006769;
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  box-shadow: 0 6px 15px rgba(26, 35, 50, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 12px;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
}

.hamburger {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 8px 16px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 8px 12.8px;
  font-size: 13.6px;
  font-weight: 550;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

/* Underline */
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

/* Hover effect */
.nav-link:hover::after {
  width: 85%;
}

.nav-p {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 8px 12.8px;
  font-size: 13.6px;
  font-weight: 550;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background-color: #006769;
  list-style: none;
  padding: 8px 0;
  border-radius: 10px;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  color: #f5f5f5;
  text-decoration: none;
  padding: 8px 16px;
  font-size: 13.6px;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-center-image {
  display: none;
}

.nav-center-image {
  align-items: center;
  gap: 8px;
}

.nav-center-image img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.nav-center-image .mobile-logo-resem {
  width: 52px;
  height: auto;
}

.nav-logo-resem,
.mobile-logo-resem {
  border-radius: 8px;
}

@media (max-width: 992px) {
  .navbar {
    border-radius: 0 0 20px 20px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-link:hover{
    background: #fff;
    color: #006769;
  }

  .nav-link:hover::after{
    width: 0%;
  }

  .nav-container{
    justify-content: flex-start;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 86px;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: #006769;
    width: 100%;
    gap: 0;
    padding: 20px;
    transform: translateX(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.2s ease, visibility 0s linear 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: calc(100vh - 86px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .nav-item {
    margin: 8px 0;
  }

  .nav-center-image {
    display: flex;
    position: absolute;
    right: 10%;
    top: 16px;
    z-index: 1100;
    pointer-events: none;
  }

  .nav-menu > .nav-item:first-child img,
  .nav-menu > .nav-item:nth-child(2) img {
    display: none;
  }
}


.keynote-section {
    margin-top: 80px;
    padding: 70px 20px;
    background: #f8f9fc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: #0b2c5f;
    font-size: 2.4rem;
    margin-bottom: 50px;
    font-weight: 700;
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.speaker-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s ease;
}

.speaker-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.speaker-card h2 {
    color: #0b2c5f;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.speaker-image {
    width: 100%;
    height: 320px;      /* Increase/decrease as needed */
    overflow: hidden;
    border-radius: 12px;
}

.speaker-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* Shows the full portrait without cropping */
    display: block;
    transition: 0.3s ease;
}

.speaker-card:hover .speaker-image img {
    transform: scale(1.02);
}

/* Tablet */

@media (max-width: 992px) {
    .speakers-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Mobile */

@media (max-width: 576px) {
    .keynote-section {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 35px;
    }

    .speaker-card {
        padding: 18px;
    }

    .speaker-card h2 {
        font-size: 1.3rem;
    }

    .speaker-image{
        height: 220px;
    }
}