/* ========================================
   PRODUCT PAGE -
   All product-related styling in one file
   ======================================== */

/* ========================================
   PRODUCT HEADER SECTION
   ======================================== */
.product-header {
  color: white;
  position: relative;
  overflow: hidden;
}

.product-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.product-header .container {
  position: relative;
  z-index: 1;
}

/* Statistics Row */
.stats-row {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.stat-item {
  border-radius: 12px;
  padding: 16px 24px;
  font-weight: 600;
  text-align: left;
}

.stat-item.primary {
  background: #5519e4;
  min-width: 140px;
}

.stat-item.secondary {
  background: #cbda4f;
  color: #000;
  min-width: 140px;
}

.stat-number {
  font-size: 45px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
  font-family: 'Clash Display';
}

.stat-text {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.3;
    font-weight: 400;
}

/* Main Content */
.product-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #5519e4;
}

.product-subtitle {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #1F2937;
}

.product-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
  color: #374151;
  max-width: 500px;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 16px;
}

.cta-primary a,
.cta-secondary a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-primary a {
  background: #5519e4;
  color: white;
}

.cta-secondary a {
  background: #9e46ee;
  color: white;
}

.cta-primary a:hover,
.cta-secondary a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.cta-secondary a:hover {
  background: #7C3AED;
  color: white;
}

/* Visual Section */
.product-header__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* Play Button */
.play-button {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
}

.play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 70px;
    background: #5519e4;
    border-radius: 15% !important;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.play-btn:hover {
  background: #6D28D9;
  transform: scale(1.1);
  color: white;
}

.play-btn svg {
  margin-left: 4px; /* Center the play icon */
}

/* Testimonial */
.testimonial {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: #1F2937;
  border-radius: 15px;
  width: 320px;
  max-width: 350px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid #000;
}

.testimonial__content{
  padding: 15px 20px 10px 20px;
}

.testimonial__text {
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
}

.testimonial__text p {
    margin-bottom: 0;
}

.testimonial__text::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -5px;
  font-size: 32px;
  color: #7C3AED;
  line-height: 1;
}

.testimonial__author {
  font-weight: 400;
  font-size: 14px;
  color: #6B7280;
}

.testimonial__stats {
    background: #cbda4f;
    color: #000;
    padding: 10px;
    border-radius: 0 0 15px 15px;
    font-weight: 400;
    font-size: 18px;
    text-align: center;
    line-height: 1.5;
}

/* ========================================
   PRODUCT FEATURES SECTION
   ======================================== */
.product-features-section {
  background: #5519e4;
  padding: 40px 0;
  color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0;
}

/* Fix for Drupal field wrapper */
.features-grid .field--items {
  display: contents; /* This makes the field wrapper transparent to grid layout */
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 10px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.icon-circle::before {
  content: '';
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 50%;
  display: block;
}

.icon-image img {
  max-width: 75px;
  max-height: 75px;
  filter: brightness(0) invert(1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
}

.feature-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.9;
  color: white;
}

/* Feature-specific icons using CSS */
.feature-item:nth-child(1) .icon-circle::before {
  background: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
}

.feature-item:nth-child(2) .icon-circle::before {
  background: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM19 12c0 2.76-2.24 5-5 5s-5-2.24-5-5 2.24-5 5-5 5 2.24 5 5zm-5-13C6.48-1 2 3.48 2 9s4.48 10 10 10 10-4.48 10-10S17.52-1 12-1z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
}

.feature-item:nth-child(3) .icon-circle::before {
  background: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
}

.feature-item:nth-child(4) .icon-circle::before {
  background: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
}

.feature-item:nth-child(5) .icon-circle::before {
  background: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
}

.feature-item:nth-child(6) .icon-circle::before {
  background: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
}

/* ========================================
   PRODUCT CONTENT SECTION
   ======================================== */

/* Utility Classes */
.text-purple {
  color: #7C3AED;
}
.bg-purple{
  background-color: #9e48ec;
}
.text-yellow {
  color: #cbda4f;
}
.btn-blue{
    background: #5519e4;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 0;
}
.btn-purple{
  background-color: #9e48ec;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 0;
}
.btn-risk {
  background-color: #cbda4f;
  color: #000;
  font-weight: 500;
  border-radius: 20px;
}

/* Product Sidebar */
.product-sidebar-container {
  margin-bottom: 30px;
}

.product-sidebar {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 20px;
  max-width: 350px;
  border: 1px solid #f0f0f0;
}

/* Desktop Header */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e5e5;
}

.sidebar-title {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  letter-spacing: -0.02em;
}

.sidebar-arrow {
  color: #7c3aed;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.sidebar-arrow svg {
  width: 20px;
  height: 20px;
}

/* Mobile Toggle Button */
.mobile-menu-toggle {
  width: 100%;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 15px 20px;
  display: none;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.mobile-menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

.mobile-menu-toggle:active {
  transform: translateY(0);
}

.toggle-text {
  font-weight: 500;
}

.toggle-icon {
  transition: transform 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.toggle-icon svg {
  width: 20px;
  height: 20px;
}

/* Sidebar Navigation */
.sidebar-menu {
  display: block;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
}

.sidebar-nav .nav-link {
  display: block;
  padding: 14px 18px;
  margin-bottom: 3px;
  color: #4a5568;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  position: relative;
  line-height: 1.4;
}

.sidebar-nav .nav-link:hover {
  background-color: #f7fafc;
  color: #7c3aed;
  border-left-color: #7c3aed;
  transform: translateX(3px);
}

.sidebar-nav .nav-link.active {
  background-color: #edf2f7;
  color: #7c3aed;
  border-left-color: #7c3aed;
  font-weight: 600;
}

/* Drupal Menu Integration */
.sidebar-nav .menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav .menu-item {
  margin-bottom: 3px;
}

.sidebar-nav .menu-item a {
  display: block;
  padding: 14px 18px;
  color: #4a5568;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  position: relative;
  line-height: 1.4;
}

.sidebar-nav .menu-item a:hover {
  background-color: #f7fafc;
  color: #7c3aed;
  border-left-color: #7c3aed;
  transform: translateX(3px);
}

.sidebar-nav .menu-item.active-trail > a,
.sidebar-nav .menu-item a.active {
  background-color: #edf2f7;
  color: #7c3aed;
  border-left-color: #7c3aed;
  font-weight: 600;
}

/* OSA Crisis Block Styling */
.osa-crisis-block {
  width: 100%;
}

.osa-title {
  color: #6f42c1 !important;
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
  line-height: 1.2;
}

.osa-description {
  margin-bottom: 30px;
}

.osa-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 0;
}

/* OSA Symptoms Section */
.osa-symptoms {
  padding: 0;
}

.symptom-section {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
  transition: all 0.3s ease;
  overflow: hidden;
}

.symptom-section:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.symptom-section h4 {
  margin: 0;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  font-size: 1.1rem;
}

.symptom-icon {
  margin-right: 10px;
  font-size: 1.2rem;
}

.toggle-icon {
  font-size: 20px;
  font-weight: bold;
  color: #666;
  transition: transform 0.3s ease;
  line-height: 1;
}

.symptom-section.expanded .toggle-icon {
  transform: rotate(45deg);
}

.symptom-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f9f9f9;
}

.symptom-section.expanded .symptom-details {
  max-height: 250px;
}

.symptom-details ul {
  margin: 0;
  padding: 20px;
  list-style: none;
}

.symptom-details li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: #555;
}

.symptom-details li:before {
  content: '•';
  color: #6f42c1;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.symptom-details li:last-child {
  border-bottom: none;
}

/* Side image block layout for OSA content */
.paragraph-side-image-block {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin: 40px 0;
}

.paragraph-side-image-block .field--name-field-image {
  flex: 0 0 40%;
  position: relative;
}

.paragraph-side-image-block .field--name-field-image img {
  width: 100%;
  border-radius: 12px;
  background: #f0f0f0;
  min-height: 300px;
  object-fit: cover;
}

/* Placeholder styling when no image */
.paragraph-side-image-block .field--name-field-image:empty:before {
  content: 'Airway blockage during sleep leads to breathing interruptions, oxygen desaturation, and fragmented sleep patterns.';
  display: flex;
  width: 100%;
  height: 300px;
  background: #888;
  border-radius: 12px;
  color: white;
  padding: 20px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.4;
}

.paragraph-side-image-block .osa-crisis-block {
  flex: 1;
}

/* Helper messages */
.admin-helper {
  margin-top: 20px;
  padding: 12px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  font-size: 12px;
  color: #856404;
}

.menu-error {
  margin-bottom: 15px;
  padding: 10px;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  font-size: 12px;
  color: #721c24;
}

.custom-menu-info {
  margin-bottom: 15px;
  padding: 10px;
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: 6px;
  font-size: 12px;
  color: #0c5460;
}

.menu-info {
  font-style: italic;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Content Section Integration */
.product-content-section {
  scroll-margin-top: 80px;
  margin-bottom: 40px;
}

/* Focus States for Accessibility */
.sidebar-nav .nav-link:focus,
.sidebar-nav .menu-item a:focus {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}

.mobile-menu-toggle:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

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

/* Product Header Responsive */
@media (max-width: 768px) {
  .product-header {
    padding: 40px 0;
  }
  
  .stats-row {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
  }
  
  .stat-item {
    min-width: 200px;
  }
  
  .product-title {
    font-size: 32px;
    text-align: center;
  }
  
  .product-subtitle {
    font-size: 24px;
    text-align: center;
  }
  
  .product-description {
    font-size: 14px;
    text-align: center;
    margin: 0 auto 30px;
  }
  
  .cta-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .cta-primary a,
  .cta-secondary a {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .play-button {
    top: 10px;
    right: 10px;
  }
  
  .play-btn {
    width: 60px;
    height: 60px;
  }
  
  .testimonial {
    position: static;
    margin-top: 20px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .stats-row {
    gap: 10px;
  }
  
  .stat-item {
    min-width: 160px;
    padding: 12px 18px;
  }
  
  .stat-number {
    font-size: 20px;
  }
  
  .stat-text {
    font-size: 12px;
  }
  
  .product-title {
    font-size: 28px;
  }
  
  .product-subtitle {
    font-size: 20px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
}

/* Product Features Responsive */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .product-features-section {
    padding: 30px 0;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 20px;
  }
  
  .feature-item {
    padding: 15px 5px;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
  }
  
  .icon-circle {
    width: 50px;
    height: 50px;
  }
  
  .icon-circle::before {
    width: 25px;
    height: 25px;
  }
  
  .icon-image img {
    max-width: 48px;
    max-height: 48px;
    padding: 8px;
  }
  
  .feature-title {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .feature-item {
    padding: 10px;
  }
  
  .feature-title {
    font-size: 12px;
  }
}

/* Product Content Responsive */
@media (max-width: 1199.98px) {
  .product-sidebar {
    position: relative;
    top: auto;
    max-width: 100%;
    margin: 20px auto;
  }
}

@media (min-width: 1200px) {
  .product-sidebar-container {
    position: sticky;
    top: 20px;
    z-index: 10;
  }
  
  .product-sidebar {
    margin: 0;
  }
}

@media (max-width: 991.98px) {
  .product-sidebar {
    border-radius: 16px;
    padding: 20px;
    margin: 15px;
  }
  
  .sidebar-header {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .sidebar-menu {
    display: none;
    animation: slideDown 0.3s ease-out;
  }
  
  .sidebar-menu.show {
    display: block;
  }
  
  .sidebar-nav .nav-link,
  .sidebar-nav .menu-item a {
    padding: 16px 18px;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .paragraph-side-image-block {
    flex-direction: column;
    gap: 20px;
  }
  
  .paragraph-side-image-block .field--name-field-image {
    flex: none;
    width: 100%;
  }
  
  .osa-title {
    font-size: 1.8rem !important;
  }
  
  .symptom-section h4 {
    padding: 12px 15px;
    font-size: 1rem;
  }
  
  .symptom-details ul {
    padding: 15px;
  }
  
  .symptom-details li {
    font-size: 0.9rem;
  }
  
  .osa-symptoms {
    padding-left: 0 !important;
  }
}

@media (max-width: 575.98px) {
  .product-sidebar {
    margin: 10px;
    padding: 18px;
    border-radius: 14px;
  }
  
  .mobile-menu-toggle {
    padding: 16px 18px;
    font-size: 15px;
  }
  
  .sidebar-nav .nav-link,
  .sidebar-nav .menu-item a {
    padding: 14px 16px;
    font-size: 14px;
  }
}

/* Smooth Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   PRODUCT PAGE -
   All product-related styling in one file
   ======================================== */

/* ========================================
   PRODUCT HEADER SECTION
   ======================================== */
.product-header {
  color: white;
  position: relative;
  overflow: hidden;
}

.product-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.product-header .container {
  position: relative;
  z-index: 1;
}

/* Statistics Row */
.stats-row {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.stat-item {
  border-radius: 12px;
  padding: 16px 24px;
  font-weight: 600;
  text-align: left;
}

.stat-item.primary {
  background: #5519e4;
  min-width: 140px;
}

.stat-item.secondary {
  background: #cbda4f;
  color: #000;
  min-width: 140px;
}

.stat-number {
  font-size: 45px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
  font-family: 'Clash Display';
}

.stat-text {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.3;
    font-weight: 400;
}

/* Main Content */
.product-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #5519e4;
}

.product-subtitle {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #1F2937;
}

.product-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
  color: #374151;
  max-width: 500px;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 16px;
}

.cta-primary a,
.cta-secondary a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-primary a {
  background: #5519e4;
  color: white;
}

.cta-secondary a {
  background: #9e46ee;
  color: white;
}

.cta-primary a:hover,
.cta-secondary a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.cta-secondary a:hover {
  background: #7C3AED;
  color: white;
}

/* Visual Section */
.product-header__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* Play Button */
.play-button {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
}

.play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 70px;
    background: #5519e4;
    border-radius: 15% !important;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.play-btn:hover {
  background: #6D28D9;
  transform: scale(1.1);
  color: white;
}

.play-btn svg {
  margin-left: 4px; /* Center the play icon */
}

/* Testimonial */
.testimonial {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: #1F2937;
  border-radius: 15px;
  width: 320px;
  max-width: 350px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid #000;
}

.testimonial__content{
  padding: 15px 20px 10px 20px;
}

.testimonial__text {
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
}

.testimonial__text p {
    margin-bottom: 0;
}

.testimonial__text::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -5px;
  font-size: 32px;
  color: #7C3AED;
  line-height: 1;
}

.testimonial__author {
  font-weight: 400;
  font-size: 14px;
  color: #6B7280;
}

.testimonial__stats {
    background: #cbda4f;
    color: #000;
    padding: 10px;
    border-radius: 0 0 15px 15px;
    font-weight: 400;
    font-size: 18px;
    text-align: center;
    line-height: 1.5;
}

/* ========================================
   PRODUCT FEATURES SECTION
   ======================================== */
.product-features-section {
  background: #5519e4;
  padding: 40px 0;
  color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0;
}

/* Fix for Drupal field wrapper */
.features-grid .field--items {
  display: contents; /* This makes the field wrapper transparent to grid layout */
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 10px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.icon-circle::before {
  content: '';
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 50%;
  display: block;
}

.icon-image img {
  max-width: 75px;
  max-height: 75px;
  filter: brightness(0) invert(1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
}

.feature-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.9;
  color: white;
}

/* Feature-specific icons using CSS */
.feature-item:nth-child(1) .icon-circle::before {
  background: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
}

.feature-item:nth-child(2) .icon-circle::before {
  background: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM19 12c0 2.76-2.24 5-5 5s-5-2.24-5-5 2.24-5 5-5 5 2.24 5 5zm-5-13C6.48-1 2 3.48 2 9s4.48 10 10 10 10-4.48 10-10S17.52-1 12-1z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
}

.feature-item:nth-child(3) .icon-circle::before {
  background: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
}

.feature-item:nth-child(4) .icon-circle::before {
  background: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
}

.feature-item:nth-child(5) .icon-circle::before {
  background: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
}

.feature-item:nth-child(6) .icon-circle::before {
  background: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
}

/* ========================================
   PRODUCT CONTENT SECTION
   ======================================== */

/* Utility Classes */
.text-purple {
  color: #7C3AED;
}
.bg-purple{
  background-color: #9e48ec;
}
.text-yellow {
  color: #cbda4f;
}
.btn-blue{
    background: #5519e4;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 0;
}
.btn-purple{
  background-color: #9e48ec;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 0;
}
.btn-risk {
  background-color: #cbda4f;
  color: #000;
  font-weight: 500;
  border-radius: 20px;
}

/* Product Sidebar */
.product-sidebar-container {
  margin-bottom: 30px;
}

.product-sidebar {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 20px;
  max-width: 350px;
  border: 1px solid #f0f0f0;
}

/* Desktop Header */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e5e5;
}

.sidebar-title {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  letter-spacing: -0.02em;
}

.sidebar-arrow {
  color: #7c3aed;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.sidebar-arrow svg {
  width: 20px;
  height: 20px;
}

/* Mobile Toggle Button */
.mobile-menu-toggle {
  width: 100%;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 15px 20px;
  display: none;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.mobile-menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

.mobile-menu-toggle:active {
  transform: translateY(0);
}

.toggle-text {
  font-weight: 500;
}

.toggle-icon {
  transition: transform 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.toggle-icon svg {
  width: 20px;
  height: 20px;
}

/* Sidebar Navigation */
.sidebar-menu {
  display: block;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
}

.sidebar-nav .nav-link {
  display: block;
  padding: 14px 18px;
  margin-bottom: 3px;
  color: #4a5568;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  position: relative;
  line-height: 1.4;
}

.sidebar-nav .nav-link:hover {
  background-color: #f7fafc;
  color: #7c3aed;
  border-left-color: #7c3aed;
  transform: translateX(3px);
}

.sidebar-nav .nav-link.active {
  background-color: #edf2f7;
  color: #7c3aed;
  border-left-color: #7c3aed;
  font-weight: 600;
}

/* Drupal Menu Integration */
.sidebar-nav .menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav .menu-item {
  margin-bottom: 3px;
}

.sidebar-nav .menu-item a {
  display: block;
  padding: 14px 18px;
  color: #4a5568;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  position: relative;
  line-height: 1.4;
}

.sidebar-nav .menu-item a:hover {
  background-color: #f7fafc;
  color: #7c3aed;
  border-left-color: #7c3aed;
  transform: translateX(3px);
}

.sidebar-nav .menu-item.active-trail > a,
.sidebar-nav .menu-item a.active {
  background-color: #edf2f7;
  color: #7c3aed;
  border-left-color: #7c3aed;
  font-weight: 600;
}

/* OSA Crisis Block Styling */
.osa-crisis-block {
  width: 100%;
}

.osa-title {
  color: #6f42c1 !important;
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
  line-height: 1.2;
}

.osa-description {
  margin-bottom: 30px;
}

.osa-description p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 0;
}

/* OSA Symptoms Section */
.osa-symptoms {
  padding: 0;
}

.symptom-section {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
  transition: all 0.3s ease;
  overflow: hidden;
}

.symptom-section:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.symptom-section h4 {
  margin: 0;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  font-size: 1.1rem;
}

.symptom-icon {
  margin-right: 10px;
  font-size: 1.2rem;
}

.toggle-icon {
  font-size: 20px;
  font-weight: bold;
  color: #666;
  transition: transform 0.3s ease;
  line-height: 1;
}

.symptom-section.expanded .toggle-icon {
  transform: rotate(45deg);
}

.symptom-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f9f9f9;
}

.symptom-section.expanded .symptom-details {
  max-height: 250px;
}

.symptom-details ul {
  margin: 0;
  padding: 20px;
  list-style: none;
}

.symptom-details li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: #555;
}

.symptom-details li:before {
  content: '•';
  color: #6f42c1;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.symptom-details li:last-child {
  border-bottom: none;
}

/* Side image block layout for OSA content */
.paragraph-side-image-block {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin: 40px 0;
}

.paragraph-side-image-block .field--name-field-image {
  flex: 0 0 40%;
  position: relative;
}

.paragraph-side-image-block .field--name-field-image img {
  width: 100%;
  border-radius: 12px;
  background: #f0f0f0;
  min-height: 300px;
  object-fit: cover;
}

/* Placeholder styling when no image */
.paragraph-side-image-block .field--name-field-image:empty:before {
  content: 'Airway blockage during sleep leads to breathing interruptions, oxygen desaturation, and fragmented sleep patterns.';
  display: flex;
  width: 100%;
  height: 300px;
  background: #888;
  border-radius: 12px;
  color: white;
  padding: 20px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.4;
}

.paragraph-side-image-block .osa-crisis-block {
  flex: 1;
}

/* Helper messages */
.admin-helper {
  margin-top: 20px;
  padding: 12px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  font-size: 12px;
  color: #856404;
}

.menu-error {
  margin-bottom: 15px;
  padding: 10px;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  font-size: 12px;
  color: #721c24;
}

.custom-menu-info {
  margin-bottom: 15px;
  padding: 10px;
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: 6px;
  font-size: 12px;
  color: #0c5460;
}

.menu-info {
  font-style: italic;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Content Section Integration */
.product-content-section {
  scroll-margin-top: 80px;
  margin-bottom: 40px;
}

/* Focus States for Accessibility */
.sidebar-nav .nav-link:focus,
.sidebar-nav .menu-item a:focus {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}

.mobile-menu-toggle:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

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

/* Product Header Responsive */
@media (max-width: 768px) {
  .product-header {
    padding: 40px 0;
  }
  
  .stats-row {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
  }
  
  .stat-item {
    min-width: 200px;
  }
  
  .product-title {
    font-size: 32px;
    text-align: center;
  }
  
  .product-subtitle {
    font-size: 24px;
    text-align: center;
  }
  
  .product-description {
    font-size: 14px;
    text-align: center;
    margin: 0 auto 30px;
  }
  
  .cta-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .cta-primary a,
  .cta-secondary a {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .play-button {
    top: 10px;
    right: 10px;
  }
  
  .play-btn {
    width: 60px;
    height: 60px;
  }
  
  .testimonial {
    position: static;
    margin-top: 20px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .stats-row {
    gap: 10px;
  }
  
  .stat-item {
    min-width: 160px;
    padding: 12px 18px;
  }
  
  .stat-number {
    font-size: 20px;
  }
  
  .stat-text {
    font-size: 12px;
  }
  
  .product-title {
    font-size: 28px;
  }
  
  .product-subtitle {
    font-size: 20px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
}

/* Product Features Responsive */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .product-features-section {
    padding: 30px 0;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 20px;
  }
  
  .feature-item {
    padding: 15px 5px;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
  }
  
  .icon-circle {
    width: 50px;
    height: 50px;
  }
  
  .icon-circle::before {
    width: 25px;
    height: 25px;
  }
  
  .icon-image img {
    max-width: 30px;
    max-height: 30px;
    padding: 8px;
  }
  
  .feature-title {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .feature-item {
    padding: 10px;
  }
  
  .feature-title {
    font-size: 12px;
  }
}

/* Product Content Responsive */
@media (max-width: 1199.98px) {
  .product-sidebar {
    position: relative;
    top: auto;
    max-width: 100%;
    margin: 20px auto;
  }
}

@media (min-width: 1200px) {
  .product-sidebar-container {
    position: sticky;
    top: 20px;
    z-index: 10;
  }
  
  .product-sidebar {
    margin: 0;
  }
}

@media (max-width: 991.98px) {
  .product-sidebar {
    border-radius: 16px;
    padding: 20px;
    margin: 15px;
  }
  
  .sidebar-header {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .sidebar-menu {
    display: none;
    animation: slideDown 0.3s ease-out;
  }
  
  .sidebar-menu.show {
    display: block;
  }
  
  .sidebar-nav .nav-link,
  .sidebar-nav .menu-item a {
    padding: 16px 18px;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .paragraph-side-image-block {
    flex-direction: column;
    gap: 20px;
  }
  
  .paragraph-side-image-block .field--name-field-image {
    flex: none;
    width: 100%;
  }
  
  .osa-title {
    font-size: 1.8rem !important;
  }
  
  .symptom-section h4 {
    padding: 12px 15px;
    font-size: 1rem;
  }
  
  .symptom-details ul {
    padding: 15px;
  }
  
  .symptom-details li {
    font-size: 0.9rem;
  }
  
  .osa-symptoms {
    padding-left: 0 !important;
  }
}

@media (max-width: 575.98px) {
  .product-sidebar {
    margin: 10px;
    padding: 18px;
    border-radius: 14px;
  }
  
  .mobile-menu-toggle {
    padding: 16px 18px;
    font-size: 15px;
  }
  
  .sidebar-nav .nav-link,
  .sidebar-nav .menu-item a {
    padding: 14px 16px;
    font-size: 14px;
  }
}

/* Smooth Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   MOBILE RESPONSIVE OPTIMIZATIONS - MOBILE ONLY
   ======================================== */

/* Mobile Only - Keep desktop layout intact */
@media (max-width: 768px) {
  .product-header {
    padding: 2rem 0;
    text-align: center;
  }

  .product-header .container {
    padding: 0 1rem;
  }

  /* Hide play button and testimonial on mobile */
  .play-button,
  .testimonial {
    display: none !important;
  }

  /* Statistics Row - Force side by side on mobile with equal height */
  .stats-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .stat-item {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    min-width: 0;
    width: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
  }

  .stat-item.primary,
  .stat-item.secondary {
    flex: 1;
    max-width: none;
  }

  .stat-number {
    font-size: 1.4rem;
    line-height: 1.2;
  }

  .stat-text {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  /* Mobile Layout Structure - Reorganize the two-column layout */
  .product-header .row {
    display: flex;
    flex-direction: column;
  }

  .product-header .col-lg-6 {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
  }

  /* Reorganize content within product-header__content */
  .product-header__content {
    display: flex;
    flex-direction: column;
  }

  /* Order 1: Stats Row */
  .stats-row {
    order: 1;
    margin-bottom: 1.5rem;
  }

  /* Order 3: Title, Subtitle, Description */
  .product-title {
    order: 3;
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-align: center;
  }

  .product-subtitle {
    order: 4;
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-align: center;
  }

  .product-description {
    order: 5;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .product-description h4 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }

  .product-description p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Order 4: CTA Buttons */
  .cta-buttons {
    order: 6;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Order 2: Product Visual (Image) - Move from right column to between stats and content */
  .product-header__visual {
    order: 2;
    margin: 0 auto 1.5rem auto;
    max-width: 280px;
  }

  .product-image {
    margin: 0 auto;
    max-width: 280px;
  }

  .product-image img {
    width: 100%;
    height: auto;
    max-width: 280px;
  }

  /* JavaScript will handle the reorganization */
  .mobile-reorganized .product-header__visual {
    order: 2;
  }
  
  .mobile-reorganized .product-title {
    order: 3;
  }
  
  .mobile-reorganized .product-subtitle {
    order: 4;
  }
  
  .mobile-reorganized .product-description {
    order: 5;
  }
  
  .mobile-reorganized .cta-buttons {
    order: 6;
  }

  .cta-primary,
  .cta-secondary {
    flex: 1;
    width: auto !important;
  }

  .cta-primary a,
  .cta-secondary a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    padding: 12px;
    text-align: center;
    font-size: 0.9rem;
    min-height: 48px;
    width: 140px;
  }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
  .product-header {
    padding: 1.5rem 0;
  }

  .product-header .container {
    padding: 0 0.75rem;
  }

  /* Stats - Force side by side even on small screens with equal height */
  .stats-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    max-width: 350px;
    gap: 8px;
  }

  .stat-item {
    padding: 10px 12px;
    flex: 1;
    width: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 70px;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .stat-text {
    font-size: 0.75rem;
  }

  /* Order 2: Product Visual (Image) - Small Mobile */
  .product-header__visual {
    max-width: 240px;
  }

  .product-image {
    max-width: 240px;
  }

  /* Typography */
  .product-title {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .product-subtitle {
    font-size: 1.2rem;
  }

  .product-description {
    font-size: 0.9rem;
  }

  .product-description h4 {
    font-size: 1.1rem;
  }

  .product-description p {
    font-size: 0.85rem;
  }

  /* CTA Buttons - Force side by side with equal width and height */
  .cta-buttons {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    max-width: 350px;
    gap: 8px;
  }

  .cta-primary,
  .cta-secondary {
    flex: 1;
    width: auto !important;
  }

  .cta-primary a,
  .cta-secondary a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.85rem;
    height: 44px;
    min-height: 44px;
  }
}

/* Mobile Layout Reorganization Script */
