 
/* CSS for hover effect and visual indication */
.card-title, .card-description .card-biography {
  position: relative;
}

.card-title:hover, .card-description .card-biography:hover {
  border: 1px dashed #ccc;
  cursor: text;
  background-color: #f9f9f9;
}

.edit-icon {
  position: absolute;
  right: 10px;
  top: 5px;
  font-size: 18px;
  color: #888;
  visibility: hidden;
}

.card-title:hover .edit-icon, .card-description .card-biography:hover .edit-icon {
  visibility: visible;
}


.flag-image {
  height: 100%;
  width: 100px;
  display: inline-block;
  vertical-align: middle;
  /* Ensure it aligns well with text */
  margin-left: 0px;
  /* Optional: add some spacing */
  
}
 

/* Add to the existing CSS */


#comparison-content {
  display: flex;
  flex-wrap: wrap;
}

.comparison-column {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  /* Optional: add a border to separate columns */
}

.comparison-column .filter-card {
  margin-bottom: 10px;
}

/* Responsive Design for Small Screens */
@media (max-width: 768px) {
  #comparison-content {
    flex-direction: column;
  }

  .comparison-column {
    flex: none;
    width: 100%;
    border: none;
    /* Optional: remove border on small screens */
  }
}

.icon.fa-link {
  display: none;
}

/* Prevent page break inside cards */
.filter-card {
  page-break-inside: avoid;
  break-inside: avoid;
}

/* Prevent page break inside meta-content */
.meta-content {
  page-break-inside: avoid;
  break-inside: avoid;
}

/* Prevent page break inside flag images */
.flag-image {
  page-break-inside: avoid;
  break-inside: avoid;
}

/* Ensure that large elements, such as headers or cards, do not split across pages */
.header-container,
.cards-container {
  page-break-inside: avoid;
  break-inside: avoid;
}
 

/* General Styles */
#container {
  display: grid;
  grid-template-columns: 300px auto;
  /*max-width: 1200px;*/
  margin: 0 auto;
  gap: 20px;
  background-color: #FAFAFA;
  padding: 30px;
}

#sidebar {
  background-color: #ffffff00;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0px;
  position: sticky;
  top: 100px;
  /* Sticks to the top of the viewport */
  height: 100vh;
  /* Full viewport height */
  overflow-y: auto;
  /* Scrollable content if it exceeds the viewport height */

  position: sticky;
  top: 75px; /* Sticks with a small offset from the top */
  align-self: start;
  background-color: #f4f4f4;
  padding: 20px;
  height: fit-content; /* Adjusts height to its content */
  border: 1px solid #ddd; /* Optional: Add some border for aesthetics */
  width: 100%; /* Ensure full width on smaller screens */

}

#main-content {
  width: 100%;
}

.burger-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #3498db;
  font-size: 1.5rem;
  margin-left: 10px;
  margin-right: 10px;
}

/* Collapsible Styles */
.collapsible-container {
  margin-bottom: 0px;
  width: 100%;
}

.collapsible {
  background-color: #446e80;
  color: white;
  cursor: pointer;
  padding: 12px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 16px;
  margin-bottom: 10px;
  transition: background-color 0.2s;
}

.collapsible:hover {
  background-color: #2980b9;
}

.collapsible-content {
  display: none;
  overflow: hidden;
  background-color: #ecf0f1;
  padding: 12px;
  border-radius: 0 0 8px 8px;
}

/* Checkbox Styles */
.collapsible-content label {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
}

.collapsible-content input {
  margin-right: 8px;
  cursor: pointer;
}

/* Filters Section Styles */
#filters-container {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  display: flex;
  position: sticky;
  top: o;
  align-items: center;
  padding: 20px;
  background-color: #ffffff;
  color: #333;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

#filters-container .filter-btn {
  margin-left: auto;
}

/* Filter Button Styles */
.filter-btn {
  background-color: #446e80;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.filter-btn:hover {
  background-color: #2980b9;
}




#filters-container .export-btn {
  margin-left: auto;
}

/* Filter Button Styles */
.export-btn {
  background-color: #a02221;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  margin-left: 20px;
}

.export-btn:hover {
  background-color: #e8b034;
  color: #000;
}

/* Cards Container Styles */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
 
  margin: auto;
  margin-top: 0px;
      background-color: #f4f4f4;
    padding: 20px;
    height: fit-content; /* Adjusts height to its content */
    border: 1px solid #ddd; /* Optional: Add some border for aesthetics */
    width: 100%; /* Ensure full width on smaller screens */
}

/* Card Styles */
.filter-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive columns */
  gap: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
  color: #333;
  text-decoration: none;
  width:100%;
  padding: 20px;
 
  margin: 0px auto;
}

.filter-card:hover {
  background-color: #f2f2f2;
}

.title-description {
  padding: 20px;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.card-description .card-biography  {
  margin-bottom: 10px;
}

.right-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #446e80;
}

.meta-content {
  display: flex;
  flex-direction: column;
}

.card-category,
.card-country {
  margin-bottom: 10px;
  font-style: italic;
}

.link {
  text-decoration: none;
  color: #3498db;
  font-weight: bold;
  transition: color 0.2s ease-in-out;
}

.link:hover {
  color: #2980b9;
}

/* Responsive Styles */
@media screen and (max-width: 1000px) {
  #container {
    grid-template-columns: 1fr;
  }

  .cards-container {
    width: 100%;
  }

  .filter-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .filter-card {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .right-content {
    flex-direction: row;
  }
}

input#searchField {
  padding: 8px;
  width: calc(100% - 150px);
  font-size: 16px;
  border: 1px solid black;
  border-radius: 4px;
  margin-right: 10px;
}

.highlight {
  background-color: yellow;
  font-weight: bold;
}





/* Card container for layout and responsiveness */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Min size is 300px, flexible max size */
  gap: 20px;
  padding: 0px;
  width: 100%;
}

/* Card layout and styling */
.filter-card {
  display: grid;
  grid-template-columns: 1fr;  /* Single column layout */
  gap: 15px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  overflow: hidden; /* Prevents overflow of text */
  height: fit-content;
}

/* Hover effect for cards */
.filter-card:hover {
  transform: translateY(-10px);
}

/* Category Styling */
.category {
  background-color: #007bff;
  color: white;
  padding: 5px;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  word-wrap: break-word; /* Prevents text overflow */
}

/* Speaker Image */
.speaker-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto; /* Center the image */
}

/* Name Styling */
.name {
  font-size: 1rem!important;
  color: #333;
  font-weight: bold;
  margin-top: 10px;
  word-wrap: break-word; /* Prevents name from overflowing */
}

/* Email Styling */
.email {
  font-size: 0.8rem;
  color: #007bff;
  text-decoration: underline;
  word-wrap: break-word; /* Prevent long email from overflowing */
  overflow-wrap: break-word; /* Ensure proper breaking of long emails */
  margin-bottom: 10px; /* Adds space between email and biography */
  display: block; /* Ensure email is on a new line */
}

/* Biography Styling */
.biography {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
  margin-top: 10px;
  word-wrap: break-word; /* Prevents text overflow */
  padding: 0 10px; /* Adds padding to the biography for better readability */
  max-height: 200px; /* Ensures the text doesn't overflow the card */
  overflow: auto; /* Adds scrolling if text is too long */
}
.biography {
  
  overflow-y: auto;  /* Allow vertical scrolling */
  padding: 10px;
}

/* Country and Flag Section */
.country-flag {
  display: flex;
  flex-direction: column; /* Stack flag and country name vertically */
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}

.flag-image {
  max-width: 150px;
  height: auto;
  object-fit: cover;
  border-radius: 3px;
}

.country-name {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
}

/* Event Text Styling */
.event-text {
  font-size: 0.9rem;
  color: #555;
  margin-top: 10px;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 600px) {
  .filter-card {
      max-width: 100%;
      padding: 15px;
  }
}


.pdf-button {
  background-color: #ffffff;
  color: #000;
  padding: 10px;
 margin: auto;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
  border: 1px solid #000;
  max-width: 190px;
}

.pdf-button:hover {
  background-color: #365364;
}











/* Card fade-in and slide-up animation */
@keyframes fadeSlideIn {
  0% {
      opacity: 0;
      transform: translateY(30px); /* Start slightly lower */
  }
  100% {
      opacity: 1;
      transform: translateY(0); /* End in the correct position */
  }
}

/* Card hide animation (for filtering out cards) */
@keyframes fadeSlideOut {
  0% {
      opacity: 1;
      transform: translateY(0);
  }
  100% {
      opacity: 0;
      transform: translateY(30px);
  }
}

/* Apply animation to the cards when they are displayed */
.filter-card {
  opacity: 0; /* Initially hidden */
  animation: fadeSlideIn 0.5s ease forwards; /* Animate when displayed */
}

/* Class to apply when filtering out a card */
.card-hidden {
  animation: fadeSlideOut 0.5s ease forwards; /* Animate hiding */
  pointer-events: none; /* Disable interaction while hidden */
}


