button {
  border: none;
  outline: 0;
  display: inline-block;
  padding: 8px;
  color: white;
  background-color: #0e4385;
  text-align: center;
  width: 85%;
  font-size: 18px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#keynote a {
  text-decoration: none;
  font-size: 20px;
  color: rgb(255, 255, 255);
}

button:hover,
a:hover {
  opacity: 0.7;
}

.card-keynote {
  display: flex;
  justify-content: center;
  gap: 1.5vw;
  align-items: flex-start;
}

.img-keynote {
  width: 25vw;
}

/* Base styles for keynote cards */
.keynote-card {
  background-color: white;
  border: 1px solid #e9e9e9;
  border-radius: 20px;
  padding: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(161, 169, 171, 0.3), 0 4px 6px -4px rgba(209, 219, 221, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 25vw;
  margin: 0 2vw;
  height: auto;
}

.keynote-two {
  background-color: white;
  border: 1px solid #e9e9e9;
  border-radius: 20px;
  padding: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(161, 169, 171, 0.3), 0 4px 6px -4px rgba(209, 219, 221, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 385px;
  margin: 0 2vw;
}

/* Hover animation */
.keynote-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 20px -3px rgba(161, 169, 171, 0.4), 0 8px 12px -4px rgba(209, 219, 221, 0.4);
}

.keynote-two:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 20px -3px rgba(161, 169, 171, 0.4), 0 8px 12px -4px rgba(209, 219, 221, 0.4);
}

.img-keynote {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  transition: filter 0.3s ease;
}

.keynote-card:hover .img-keynote {
  filter: brightness(1.05);
}

.keynote-two:hover .img-keynote {
  filter: brightness(1.05);
}

.keynote-content {
  padding: 1rem;
  text-align: center;
  margin-top: 0.5rem;
  animation: fadeIn 0.5s ease-in;
}

.keynote-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #11274f;
  margin-bottom: 0.5rem;
}

.keynote-description {
  font-size: 0.875rem;
  color: #11274f;
  line-height: 1.4;
  margin-bottom: 1rem;
}

/* Abstract Section Styles */
.abstract-section {
  margin-top: 1rem;
  width: 100%;
}

.abstract-toggle {
  width: 100%;
  padding: 10px 15px;
  background-color: #0e4385;
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.abstract-toggle:hover {
  background-color: #0a3366;
  transform: translateY(-2px);
}

.toggle-icon {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.abstract-content {
  max-height: 0;
  display: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease, margin 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
  background-color: #f8f9fa;
  border-radius: 10px;
  margin-top: 0;
  padding: 0 1rem;
}

.abstract-content.active {
  max-height: 500px;
  display: block;
  opacity: 1;
  visibility: visible;
  padding: 1rem;
  margin-top: 0.75rem;
  border: 1px solid #e0e0e0;
}

.abstract-content p {
  font-size: .7rem;
  color: #333;
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

/* Animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media queries for responsive design */
@media screen and (max-width: 1200px) {
  .keynote-card {
    max-width: 336px;
  }

  .keynote-two {
    max-width: 336px;
  }
}

@media screen and (max-width: 992px) {
  .keynote-card {
    max-width: 333px;
  }

  .keynote-two {
    max-width: 333px;
  }

  .abstract-toggle {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}

@media screen and (max-width: 768px) {
  .keynote-card {
    max-width: 90%;
  }

  .keynote-two {
    max-width: 67%;
  }

  .keynote-title {
    font-size: 1rem;
  }

  .keynote-description {
    font-size: 0.8rem;
  }

  .abstract-content p {
    font-size: 0.8rem;
  }

  .img-keynote {
    width: 70%;
  }
}

@media screen and (max-width: 480px) {
  .keynote-card {
    border-radius: 15px;
    padding: 0.4rem;
  }

  .keynote-two {
    border-radius: 15px;
    padding: 0.4rem;
    max-width: 90%;
  }

  .keynote-content {
    padding: 0.8rem;
  }

  .abstract-toggle {
    font-size: 0.8rem;
    padding: 8px 10px;
  }

  .abstract-content p {
    font-size: 0.75rem;
  }
}