/* Hero Section */
.excalibur-hero {
  padding: 80px 0 120px 0;
  background: linear-gradient(
    135deg,
    var(--md-default-bg-color) 0%,
    var(--md-code-bg-color, #f8f9fa) 100%
  );
  position: relative;
  overflow: hidden;
}

.excalibur-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(31, 81, 136, 0.05) 0%,
    rgba(44, 62, 80, 0.05) 100%
  );
  pointer-events: none;
}

.excalibur-hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.excalibur-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 600px;
}

.excalibur-hero-text {
  max-width: 600px;
}

.excalibur-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--md-default-fg-color);
  margin-bottom: 24px;
  line-height: 1.1;
  background: linear-gradient(
    135deg,
    var(--md-default-fg-color) 0%,
    #1f5188 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.excalibur-hero-subtitle {
  font-size: 1.3rem;
  color: var(--md-default-fg-color--light);
  margin-bottom: 40px;
  line-height: 1.6;
  font-weight: 400;
}

.excalibur-hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.excalibur-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.excalibur-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.excalibur-btn:hover::before {
  left: 100%;
}

.excalibur-btn-primary {
  background: linear-gradient(135deg, #1f5188 0%, #2c3e50 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(31, 81, 136, 0.3);
}

.excalibur-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(31, 81, 136, 0.4);
}

.excalibur-btn-secondary {
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  border-color: var(--md-default-fg-color--lighter);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.excalibur-btn-secondary:hover {
  background: var(--md-code-bg-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* YouTube Video Section - Fixed Styling */
.excalibur-hero-video {
  margin-top: 40px;
}

.excalibur-video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
}

.excalibur-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
}

/* Hero Image Section */
.excalibur-hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.excalibur-image-wrapper {
  position: relative;
  max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  background: var(--md-default-bg-color);
}

.excalibur-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.excalibur-image-wrapper:hover img {
  transform: scale(1.05);
}

.excalibur-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(31, 81, 136, 0.1) 0%,
    rgba(44, 62, 80, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.excalibur-image-wrapper:hover .excalibur-image-overlay {
  opacity: 1;
}

/* Features Section */
.excalibur-features {
  padding: 100px 0;
  background: var(--md-code-bg-color, #f8f9fa);
  transition: background-color 0.25s ease;
}

.excalibur-features-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.excalibur-section-title {
  text-align: center;
  margin-bottom: 60px;
}

.excalibur-section-title h2 {
  font-size: 2.8rem;
  color: var(--md-default-fg-color);
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
}

.excalibur-section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #1f5188 0%, #2c3e50 100%);
  border-radius: 2px;
}

.excalibur-section-title p {
  font-size: 1.3rem;
  color: var(--md-default-fg-color--light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.excalibur-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.excalibur-feature-card {
  background: var(--md-default-bg-color);
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--md-default-fg-color--lightest);
}

.excalibur-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.excalibur-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #1f5188 0%, #2c3e50 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.excalibur-feature-card:hover::before {
  opacity: 1;
}

.excalibur-feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #1f5188 0%, #2c3e50 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 32px;
  color: white;
  box-shadow: 0 4px 20px rgba(31, 81, 136, 0.3);
}

.excalibur-feature-title {
  font-size: 1.3rem;
  color: var(--md-default-fg-color);
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.excalibur-feature-description {
  color: var(--md-default-fg-color--light);
  line-height: 1.8;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.excalibur-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.excalibur-feature-list li {
  padding: 10px 0;
  color: var(--md-default-fg-color--light);
  position: relative;
  padding-left: 30px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.excalibur-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1f5188;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Showcase Sections */
.excalibur-showcase-section {
  margin-bottom: 100px;
}

.excalibur-showcase-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--md-default-fg-color);
  margin-bottom: 50px;
  font-weight: 600;
  position: relative;
}

.excalibur-showcase-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #1f5188 0%, #2c3e50 100%);
  border-radius: 2px;
}

.excalibur-image-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.excalibur-image-card {
  background: var(--md-default-bg-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--md-default-fg-color--lightest);
}

.excalibur-image-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.excalibur-image-placeholder {
  width: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #666;
  overflow: hidden;
  position: relative;
}

.excalibur-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.excalibur-image-card:hover .excalibur-image-placeholder img {
  transform: scale(1.05);
}

.excalibur-image-caption {
  padding: 24px;
  background: var(--md-default-bg-color);
}

.excalibur-image-caption h4 {
  font-size: 1.2rem;
  color: var(--md-default-fg-color);
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.3;
}

.excalibur-image-caption p {
  font-size: 0.95rem;
  color: var(--md-default-fg-color--light);
  margin: 0;
  line-height: 1.5;
}

/* Brochures Section */
.excalibur-brochures {
  padding: 100px 0;
  background: var(--md-default-bg-color);
  transition: background-color 0.25s ease;
  /* CRITICAL FIX: Remove any blur effects */
  filter: none;
  backdrop-filter: none;
}

.excalibur-brochures-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.excalibur-brochures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.excalibur-brochure-card {
  background: var(--md-code-bg-color, #f8f9fa);
  border-radius: 16px;
  padding: 35px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.excalibur-brochure-card:hover {
  border-color: #1f5188;
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(31, 81, 136, 0.15);
}

.excalibur-brochure-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #1f5188 0%, #2c3e50 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: white;
  box-shadow: 0 6px 25px rgba(31, 81, 136, 0.3);
}

.excalibur-brochure-title {
  font-size: 1.3rem;
  color: var(--md-default-fg-color);
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.excalibur-brochure-description {
  color: var(--md-default-fg-color--light);
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.excalibur-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1f5188 0%, #2c3e50 100%);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(31, 81, 136, 0.3);
}

.excalibur-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(31, 81, 136, 0.4);
}

/* ========================================
   FOOTER / CONTACT SECTION - FIXED ALIGNMENT + USER'S FONT PREFERENCES
   ======================================== */
.excalibur-contact {
  padding: 80px 0 0 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  position: relative;
}

.excalibur-contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.excalibur-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

/* Footer Section Headers - ALL IDENTICAL - USER'S PREFERENCE */
.excalibur-contact-info h3 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.excalibur-company-details h4,
.excalibur-contact-links h4,
.excalibur-app-links h4 {
  font-size: 1.4rem; /* User's preference: 1.4rem */
  margin-bottom: 16px;
  color: #1f5188;
  font-weight: 600;
}

/* Footer Paragraphs - ALL IDENTICAL - USER'S PREFERENCE */
.excalibur-company-details,
.excalibur-company-details p,
.excalibur-contact-links p {
  font-size: 0.7rem; /* User's preference: 0.7rem */
  line-height: 1.6;
  color: #ccc;
  margin: 6px 0;
}

/* Contact List Styling */
.excalibur-contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.excalibur-contact-list li {
  margin-bottom: 18px;
}

.excalibur-contact-list a {
  font-size: 0.7rem; /* Consistent with paragraphs */
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.6;
}

.excalibur-contact-list a:hover {
  color: #1f5188;
}

.excalibur-contact-list strong {
  font-size: 0.7rem; /* Consistent with paragraphs */
  color: white;
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  line-height: 1.6;
}

/* App Store Links Section - ALIGNMENT FIXED */
.excalibur-app-links {
  text-align: center; /* CRITICAL FIX: Ensure parent centers all content at all screen sizes */
}

.excalibur-app-links h4 {
  font-size: 1.4rem; /* User's preference */
  margin-bottom: 24px;
  color: #1f5188;
  font-weight: 600;
  text-align: center; /* Explicit centering */
  /* Removed display: flex since text-align: center is more reliable for text */
}

.excalibur-app-buttons {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* CRITICAL FIX: Center the app store images properly */
.excalibur-app-buttons a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  width: 100%;
  transition: transform 0.3s ease;
}

.excalibur-app-buttons a:hover {
  transform: translateY(-2px);
}

.excalibur-app-buttons img {
  width: 130px;
  height: auto;
  display: block;
}

.excalibur-app-button {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 24px;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.excalibur-app-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.excalibur-app-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.excalibur-demo-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1f5188 0%, #2c3e50 100%);
  color: white;
  padding: 16px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(31, 81, 136, 0.3);
}

.excalibur-demo-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(31, 81, 136, 0.4);
}

/* Funding logos - always inline with responsive sizing */
.excalibur-funding-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-start;
}

.excalibur-funding-logos img {
  height: auto;
  display: block;
  flex-shrink: 0; /* Prevent images from getting too small */
}

/* Desktop and large screens - original size */
.excalibur-funding-logos img {
  width: 200px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Hero Responsive */
@media (max-width: 1024px) {
  .excalibur-hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .excalibur-hero-title {
    font-size: 2.8rem;
  }

  .excalibur-hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .excalibur-hero {
    padding: 60px 0 80px 0;
  }

  .excalibur-hero-title {
    font-size: 2.2rem;
  }

  .excalibur-hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .excalibur-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* Funding Logos Responsive */
@media (max-width: 768px) {
  .excalibur-funding-logos img {
    width: 180px;
  }
  .excalibur-funding-logos {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .excalibur-funding-logos img {
    width: 160px;
  }
  .excalibur-funding-logos {
    gap: 15px;
  }
}

@media (max-width: 375px) {
  .excalibur-funding-logos img {
    width: 140px;
  }
  .excalibur-funding-logos {
    gap: 12px;
  }
}

@media (max-width: 320px) {
  .excalibur-funding-logos img {
    width: 130px;
  }
  .excalibur-funding-logos {
    gap: 10px;
  }
}

/* Contact/Footer Responsive */
@media (max-width: 1024px) {
  .excalibur-contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .excalibur-app-links {
    grid-column: 1 / -1;
    /* text-align: center; <- REMOVED: Now handled by parent .excalibur-app-links */
  }
}

@media (max-width: 768px) {
  .excalibur-features {
    padding: 60px 0;
  }

  .excalibur-brochures {
    padding: 60px 0;
  }

  .excalibur-contact {
    padding: 60px 0 0 0;
  }

  .excalibur-feature-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .excalibur-section-title h2 {
    font-size: 2.2rem;
  }

  .excalibur-image-showcase {
    grid-template-columns: 1fr;
  }

  .excalibur-brochures-grid {
    grid-template-columns: 1fr;
  }

  .excalibur-contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .excalibur-app-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .excalibur-hero-container {
    padding: 0 15px;
  }

  .excalibur-features-container,
  .excalibur-brochures-container,
  .excalibur-contact-container {
    padding: 0 15px;
  }

  .excalibur-feature-card,
  .excalibur-brochure-card {
    padding: 25px;
  }
}

/* ========================================
   THEME SUPPORT
   ======================================== */
.excalibur-features {
  background: var(--md-code-bg-color, #f8f9fa);
}

.excalibur-brochures {
  background: var(--md-default-bg-color);
}

/* Add only specific transitions where needed, avoiding global blur-causing effects */
.excalibur-btn,
.excalibur-feature-card,
.excalibur-image-card,
.excalibur-brochure-card,
.excalibur-demo-button {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Ensure proper contrast in dark mode */
@media (prefers-color-scheme: dark) {
  .excalibur-feature-card:hover {
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.05);
  }

  .excalibur-image-card:hover {
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.05);
  }
}

/* Override for MkDocs Material dark mode if needed */
[data-md-color-scheme="slate"] .excalibur-features {
  background: var(--md-code-bg-color);
}

[data-md-color-scheme="slate"] .excalibur-brochures {
  background: var(--md-default-bg-color);
}

/* ========================================
   Release Notes Dropdown Styles - Custom Dropdown (Release notes, Product manuals, etc.)
   ======================================== */

.section-dropdown-container,
.release-notes-dropdown-container {
  margin: 0.5rem 0 !important;
  padding: 0;
  position: relative;
  z-index: 100;
  /* Prevent transforms from affecting dropdown positioning */
  transform: none !important;
  will-change: auto;
}

.custom-dropdown {
  position: relative;
  width: 100%;
}

.custom-dropdown-button {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 0.5px solid var(--md-default-fg-color);
  border-radius: 0.375rem;
  background-color: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  font-size: inherit;
  font-family: inherit;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease-in-out;
}

.custom-dropdown-button:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 0 0 2px rgba(var(--md-accent-fg-color--rgb), 0.1);
}

.dropdown-selected {
  flex: 1;
  text-align: left;
}

.dropdown-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
  color: var(--md-default-fg-color--light);
}

.dropdown-arrow svg {
  width: 16px;
  height: 16px;
  display: block;
}

.custom-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--md-default-bg-color);
  border: 0.5px solid var(--md-default-fg-color);
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: min(400px, 50vh);
  overflow-y: auto;
  margin-top: 2px;
  /* hide scrollbar when content does not exceed max-height */
  scrollbar-width: thin;
  scrollbar-color: var(--md-default-fg-color--lighter)
    var(--md-default-bg-color);
}

/* show scrollbar only when needed (for Webkit browsers) */
.custom-dropdown-menu::-webkit-scrollbar {
  width: 8px;
}

.custom-dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

.custom-dropdown-menu::-webkit-scrollbar-thumb {
  background-color: var(--md-default-fg-color--lighter);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.custom-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background-color: var(--md-default-fg-color--light);
}

.dropdown-option {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--md-default-fg-color);
  text-decoration: none;
  transition: background-color 0.2s ease;
  cursor: pointer;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

.dropdown-option:last-child {
  border-bottom: none;
}

.dropdown-option:hover {
  background-color: var(--md-accent-fg-color--transparent);
}

.dropdown-option.selected {
  background-color: var(--md-accent-fg-color--transparent);
  font-weight: 500;
}

/* Dark mode support */
[data-md-color-scheme="slate"] .custom-dropdown-menu {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.release-notes-dropdown {
  display: none;
}

/* Release Notes Label Styling */
.md-nav__link--release-notes {
  color: var(--md-default-fg-color--light) !important;
  font-weight: 400;
  cursor: default;
}

.md-nav__link--release-notes:hover {
  color: var(--md-default-fg-color--light) !important;
}

#release-notes-label {
  color: var(--md-default-fg-color--light) !important;
}

#release-notes-label:hover {
  color: var(--md-default-fg-color--light) !important;
}

#release-notes-label span {
  color: var(--md-default-fg-color--light) !important;
}

/* ========================================
   Generic Section Dropdown Styles (Release notes, Product manuals, etc.)
   ======================================== */

.section-dropdown-container {
  margin: 0.5rem 0 !important;
  padding: 0;
  position: relative;
  z-index: 100;
  /* Prevent transforms from affecting dropdown positioning */
  transform: none !important;
  will-change: auto;
}

/* Generic section dropdown label styling */
.md-nav__link--section-dropdown {
  color: var(--md-default-fg-color--light) !important;
  font-weight: 400;
  cursor: default;
}

.md-nav__link--section-dropdown:hover {
  color: var(--md-default-fg-color--light) !important;
}

#section-dropdown-label {
  color: var(--md-default-fg-color--light) !important;
  font-weight: 400;
  cursor: default;
}

#section-dropdown-label:hover {
  color: var(--md-default-fg-color--light) !important;
}

#section-dropdown-label span {
  color: var(--md-default-fg-color--light) !important;
  font-weight: 400;
}

/* ========================================
   PRODUCT MANUAL TWO-LEVEL DROPDOWN STYLES
   ======================================== */

.product-manual-dropdown-container {
  position: relative;
  margin-top: 10px;
}

#version-dropdown-label {
  font-weight: 800;
  cursor: default;
}

.product-manual-label:first-child {
  margin-top: 0;
}

#product-manual-dropdown,
#version-dropdown {
  position: relative;
  margin-bottom: 16px;
  margin-top: 10px;
}

#product-manual-dropdown:last-child,
#version-dropdown:last-child {
  margin-bottom: 0;
}

#product-manual-menu,
#version-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

/* ensure proper spacing between the two dropdowns */
#product-manual-dropdown .custom-dropdown-button,
#version-dropdown .custom-dropdown-button {
  width: 100%;
  min-height: 40px;
}

/* dark mode support for product manual dropdowns */
[data-md-color-scheme="slate"] #product-manual-menu,
[data-md-color-scheme="slate"] #version-menu {
  background: var(--md-default-bg-color);
  border-color: var(--md-default-fg-color--lightest);
}

[data-md-color-scheme="slate"] .product-manual-label {
  color: var(--md-default-fg-color--light);
}
