/**
* Discovering EU Tabs Block
*/

.tabs__list {
  margin: 0 !important;
  padding-left: 0 !important;
}

.tabs {
  background-color: #d9dcee;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  width: fit-content;
}

/* Element */
.tabs__list {
  display: flex;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.tabs__list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.tabs__item {
  display: inline-block;
  padding: 8px;
}

.tabs__link {
  display: inline-block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 8px;
}

/* Modifier */
.tabs__link--active {
  background-color: #0a2b8d;
  color: #fff !important;
}

.tabs__link:hover:not(.tabs__link--active) {
  background-color: #d0d4e4;
}

/* Tab content */
.tab-content {
  display: none;
  padding: 20px 0;
  border-radius: 8px;
}

.tab-content--active {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tabs__link {
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .tabs__link {
    padding: 8px 10px;
    font-size: 12px;
  }
}

/**
  Popup
  */

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Block: Popup */
.popup {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Element: Header */
.popup__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

/* Element: Title Group */
.popup__title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Element: Icon */
.popup__icon {
  background-color: #00205b;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Element: Title */
.popup__title {
  color: #333;
  font-size: 20px;
  font-weight: 600;
}

/* Element: Close Button */
.popup__close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 5px;
}

.popup__close:hover {
  color: #333;
}

/* Element: Badge Container */
.popup__badge-container {
  margin-bottom: 16px;
}

/* Element: Badge */
.popup__badge {
  background-color: #ffd700;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
}

/* Element: Description */
.popup__description {
  color: #333;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Element: Content */
.popup__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Block: Info Section */
.info-section {
  background-color: #eef1f8;
  border-radius: 8px;
  padding: 16px 20px;
}

/* Element: Section Title */
.info-section__title {
  color: #00205b;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Element: Section List */
.info-section__list {
  list-style-position: inside;
  margin-bottom: 10px;
}

/* Element: Section Item */
.info-section__item {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}

/* Element: Section Source */
.info-section__source {
  color: #666;
  font-size: 12px;
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .popup {
    padding: 20px;
  }

  .popup__title-group {
    gap: 12px;
  }

  .popup__icon {
    width: 36px;
    height: 36px;
  }

  .popup__title {
    font-size: 18px;
  }

  .popup__description {
    font-size: 14px;
  }

  .info-section {
    padding: 14px 16px;
  }
}

.overlay {
  position: fixed;
  inset: 0;
  background: #0008;
  display: none;
}
.popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  max-width: 640px;
  width: 90%;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  display: none;
}
.popup__close {
  background: none;
  border: 0;
  cursor: pointer;
}
