/* Whitepapers Dropdown Styles */
.whitepapers-dropdown-container {
  /* Removed container styling - just the dropdown */
}

/* Custom Dropdown Styles */
.whitepapers-custom-dropdown {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
  z-index: 10;
}

.whitepapers-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  color: #333;
}

.whitepapers-dropdown-header:hover {
  border-color: #662d90;
  box-shadow: 0 2px 4px rgba(102, 45, 144, 0.1);
}

.whitepapers-dropdown-header.active {
  border-color: #662d90;
  box-shadow: 0 0 0 3px rgba(102, 45, 144, 0.1);
}

.whitepapers-dropdown-placeholder {
  color: #666;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whitepapers-dropdown-arrow {
  font-size: 12px;
  color: #666;
  transition: transform 0.3s ease;
}

.whitepapers-dropdown-header.active .whitepapers-dropdown-arrow {
  transform: rotate(180deg);
}

.whitepapers-dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #ddd;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  display: none !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.whitepapers-dropdown-options.show {
  display: block !important;
}

.whitepapers-dropdown-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.whitepapers-dropdown-option:hover,
.whitepapers-dropdown-option.active {
  background-color: #f8f9fa;
}

.whitepapers-dropdown-option:last-child {
  border-bottom: none;
}

.whitepapers-option-image {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain !important;
  border-radius: 4px;
  margin-right: 12px;
  flex-shrink: 0;
  aspect-ratio: auto !important;
  max-width: 40px !important;
  max-height: 40px !important;
  min-width: auto !important;
  min-height: auto !important;
}

.whitepapers-option-no-image {
  width: 40px;
  height: 40px;
  background-color: #f0f0f0;
  border-radius: 4px;
  margin-right: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
}

.whitepapers-option-text {
  flex: 1;
  font-size: 14px;
  color: #333;
}

/* Legacy select styles for fallback */
.whitepapers-dropdown {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  background: white;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.whitepapers-dropdown:hover {
  border-color: #662d90;
  box-shadow: 0 2px 4px rgba(102, 45, 144, 0.1);
}

.whitepapers-dropdown:focus {
  outline: none;
  border-color: #662d90;
  box-shadow: 0 0 0 3px rgba(102, 45, 144, 0.1);
}

.whitepapers-count {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  font-style: italic;
}

.whitepapers-help {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
  padding: 10px;
  background: #f4f0f8;
  border-left: 4px solid #662d90;
  border-radius: 4px;
}

/* Dynamic Content Section Styles */
.whitepapers-content-section {
  margin-top: 20px;
  padding: 20px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
}

.whitepapers-content-container {
  max-width: 500px;
  margin: 0 auto;
}

.whitepapers-content-header {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  margin-top: 0;
}

.whitepapers-content-details {
  margin-bottom: 20px;
}

.whitepapers-study-duration {
  font-size: 16px;
  color: #1a1a1a;
  margin: 0;
}

.whitepapers-download-section {
  margin-top: 20px;
}

.whitepapers-download-btn {
  display: inline-block;
  background: #662d90;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.whitepapers-download-btn:hover {
  background: #4a1f6b;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 45, 144, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
  .whitepapers-dropdown-container {
    margin: 10px;
    padding: 15px;
  }

  .whitepapers-dropdown {
    font-size: 14px;
    padding: 10px 12px;
  }

  .whitepapers-content-section {
    margin-top: 15px;
    padding: 15px;
  }

  .whitepapers-content-header {
    font-size: 20px;
  }
}
