/* Interactive Side by Side Widget Styles */

.interactive-side-by-side-widget {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.interactive-side-by-side {
  display: flex;
  align-items: stretch;
  min-height: 400px;
  width: 100%;
}

.interactive-side-by-side-image {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.interactive-side-by-side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.interactive-side-by-side-image:hover img {
  transform: scale(1.05);
}

.interactive-side-by-side-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  background-color: #ffffff;
}

.main-content {
  flex: 1;
  margin-bottom: 30px;
}

.main-content-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #333333;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.main-content-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666666;
  margin: 0 0 25px 0;
  transition: color 0.3s ease;
}

.main-content-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: #0073aa;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #0073aa;
}

.main-content-button:hover {
  background-color: transparent;
  color: #0073aa;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 115, 170, 0.3);
}

.content-items-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.content-item {
  padding: 15px 20px;
  background-color: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.content-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: #0073aa;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.content-item:hover,
.content-item.active {
  background-color: #e3f2fd;
  border-color: #0073aa;
  transform: translateX(5px);
  box-shadow: 0 3px 10px rgba(0, 115, 170, 0.1);
}

.content-item:hover::before,
.content-item.active::before {
  transform: scaleY(1);
}

.content-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: #333333;
  transition: color 0.3s ease;
}

.content-item:hover .content-item-title,
.content-item.active .content-item-title {
  color: #0073aa;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .interactive-side-by-side {
    min-height: 350px;
  }

  .main-content-title {
    font-size: 2rem;
  }

  .main-content-description {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .interactive-side-by-side {
    flex-direction: column !important;
    min-height: auto;
  }

  .interactive-side-by-side-image {
    width: 100% !important;
    height: 250px;
    margin-right: 0 !important;
    margin-bottom: 20px;
  }

  .interactive-side-by-side-content {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 30px 20px;
  }

  .main-content-title {
    font-size: 1.8rem;
  }

  .content-items-list {
    gap: 10px;
  }

  .content-item {
    padding: 12px 15px;
  }

  .content-item-title {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .interactive-side-by-side-content {
    padding: 20px 15px;
  }

  .main-content-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .main-content-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .main-content-button {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .content-item {
    padding: 10px 12px;
  }

  .content-item-title {
    font-size: 0.95rem;
  }
}

/* Animation for content switching */
.main-content-title,
.main-content-description,
.main-content-button {
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth image transition */
.interactive-side-by-side-image img {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Loading state for images */
.interactive-side-by-side-image img.loading {
  opacity: 0.7;
}

/* Focus states for accessibility */
.content-item:focus {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}

.main-content-button:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .interactive-side-by-side {
    flex-direction: column;
  }

  .interactive-side-by-side-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .content-items-list {
    display: none;
  }

  .main-content-button {
    display: none;
  }
}
