/* Therapeutic Areas V2 - Modern Clean Design */

/* Main Container */
.therapeutic-areas-container {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Therapeutic Area Cards Grid */
.therapeutic-areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
}

/* Individual Therapeutic Card (Pill-shaped) */
.therapeutic-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background-color: #f3f1ff;
  border: 1px solid #e0dce8;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.therapeutic-card:hover {
  background-color: #221e46;
  color: #fff;
  border-color: #221e46;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.therapeutic-card.active {
  background-color: #221e46;
  color: #fff;
  border-color: #221e46;
  box-shadow: 0 4px 12px rgba(34, 30, 70, 0.3);
}

.therapeutic-card-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) saturate(100%);
  transition: filter 0.3s ease;
}

.therapeutic-card:hover .therapeutic-card-icon,
.therapeutic-card.active .therapeutic-card-icon {
  filter: brightness(0) invert(1);
}

.therapeutic-card-title {
  font-size: 14px;
  font-weight: 500;
  color: #333 !important;
  transition: color 0.3s ease;
}

.therapeutic-card:hover .therapeutic-card-title,
.therapeutic-card.active .therapeutic-card-title {
  color: #fff !important;
}

/* Info Panel */
.therapeutic-info-panel {
  background-color: #2c2d54;
  background: linear-gradient(135deg, #2c2d54 0%, #221e46 100%);
  border-radius: 12px;
  padding: 40px;
  margin-top: 30px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Panel Left Side - Therapeutic Icon */
.panel-therapeutic-icon {
  flex-shrink: 0;
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-right: 40px;
  margin-right: 40px;
  border-right: 2px solid rgba(255, 255, 255, 0.5) !important;
  min-height: 200px;
}

.panel-therapeutic-icon img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-top: 0;
}

/* Panel Right Side - Content */
.therapeutic-info-panel-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

/* Panel Heading */
.panel-heading {
  font-size: 32px;
  font-weight: 600;
  color: #fff !important;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

/* Override theme CSS for h2 in panel */
.therapeutic-info-panel h2,
.therapeutic-info-panel-content h2,
.template-page .entry-content-wrapper .therapeutic-info-panel h2,
.template-page .entry-content-wrapper .therapeutic-info-panel-content h2 {
  color: #fff !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

/* Panel Description */
.panel-description {
  font-size: 16px;
  color: #e8e8f0;
  margin: 0 0 30px 0;
  line-height: 1.5;
}

/* Product Cards Grid */
.product-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}

.product-cards-grid--multi {
  justify-content: flex-start;
}

.product-cards-grid--single {
  justify-content: left;
}

.product-cards-grid--multiple {
  justify-content: flex-start;
}

.product-cards-grid--mixed {
  justify-content: flex-start;
}

/* Individual Product Card */
.product-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 5px;
  min-width: 180px;
  min-height: 180px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  border-color: #221e46;
}

.product-logo {
  max-width: 100%
  max-height: 100%;
  object-fit: contain;
}

.product-name {
  color: #221e46;
  font-weight: 600;
  font-size: 16px;
}

/* Product Text Links (Patient/Public View) */
.product-text-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.product-text-link {
  color: #fff;
  text-decoration: underline;
  font-size: 16px;
  line-height: 1.6;
  transition: opacity 0.3s ease;
}

.product-text-link:hover {
  opacity: 0.8;
  color: #98f000;
}

/* Additional Section */
.panel-additional-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.additional-section-title {
  font-size: 16px;
  color: #e8e8f0;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

/* Disclaimer */
.panel-disclaimer {
  margin-top: 30px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border-left: 3px solid #98f000;
}

.panel-disclaimer p {
  margin: 0;
  font-size: 13px;
  color: #d8d8e0;
  line-height: 1.5;
}

/* Error Messages */
.therapeutic-areas-error {
  padding: 20px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  border-radius: 8px;
  margin: 20px 0;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
  .therapeutic-areas-container {
    padding: 10px;
  }
  
  .therapeutic-card {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .therapeutic-card-icon {
    width: 20px;
    height: 20px;
  }
  
  .therapeutic-info-panel {
    padding: 20px;
    flex-direction: column;
    gap: 20px;
  }
  
  .panel-therapeutic-icon {
    width: 100%;
    padding-right: 0;
    padding-bottom: 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  .panel-therapeutic-icon img {
    width: 100px;
    height: 100px;
  }
  
  .panel-therapeutic-title {
    font-size: 16px;
  }
  
  .panel-heading {
    font-size: 24px;
  }
  
  .panel-description {
    font-size: 14px;
  }
  
  .product-cards-grid {
    gap: 15px;
  }
  
  .product-card {
    min-width: 120px;
    min-height: 60px;
    padding: 15px;
  }
  
  .product-logo {
    max-width: 100px;
    max-height: 45px;
  }
}

@media only screen and (max-width: 480px) {
  .therapeutic-areas-grid {
    gap: 10px;
  }
  
  .therapeutic-card {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .therapeutic-card-icon {
    width: 18px;
    height: 18px;
  }
  
  .therapeutic-card-title {
    font-size: 13px;
  }
  
  .panel-heading {
    font-size: 20px;
  }
  
  .product-card {
    min-width: 100px;
    padding: 12px;
  }
}

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

.therapeutic-info-panel {
  animation: slideIn 0.4s ease-out;
}
