/* why-choose-swachh-widget.css */

.why-choose-swachh-widget {
  max-width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background-color: white;
  /* box-sizing: border-box; */
}

.why-choose-content {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.why-choose-text-section {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: start;
}


.why-choose-text-section-title {
    font-size: 0.9rem;
    line-height: 1.3rem;
    font-weight: 700;
    color: #141414;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    font-family: 'PlusJakartaSans', sans-serif;
}

.why-choose-title-spacing {
  height: 12px;
}

.why-choose-content-spacing {
  width: 18px;
  flex-shrink: 0;
}

.why-choose-image-section {
  flex-shrink: 0;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-choose-image {
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  display: block;
}

.why-choose-image img{
  width: 48px;
  height: 48px;
}

/* Integration with InfoDescWidget */
.why-choose-swachh-widget .info-desc-widget {
  width: 100%;
}

.why-choose-swachh-widget .info-desc-tile {
  margin-bottom: 8px;
}

.why-choose-swachh-widget .info-desc-tile:last-child {
  margin-bottom: 0;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .why-choose-swachh-widget {
    padding: 12px;
    border-radius: 12px;
  }
  
  .why-choose-content {
    flex-direction: column;
    align-items: center;
  }
  
  .why-choose-text-section {
    width: 100%;
    text-align: center;
  }
  
  .why-choose-title {
    font-size: 13px;
  }
  
  .why-choose-title-spacing {
    height: 10px;
  }
  
  .why-choose-content-spacing {
    width: 100%;
    height: 16px;
  }
  
  .why-choose-image-section {
    padding: 8px 0;
    width: 100%;
    justify-content: center;
  }
  
  .why-choose-image {
    max-width: 80px;
    max-height: 80px;
  }
  
  .why-choose-swachh-widget .info-desc-widget {
    text-align: left;
  }
}

/* Tablet responsive styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .why-choose-swachh-widget {
    padding: 14px;
  }
  
  .why-choose-content-spacing {
    width: 16px;
  }
  
  .why-choose-image {
    max-width: 90px;
    max-height: 90px;
  }
}

/* Large screen adjustments */
@media (min-width: 1200px) {
  .why-choose-swachh-widget {
    border-radius: 20px;
  }

}

/* Hover effects for better interactivity */
.why-choose-swachh-widget {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.why-choose-swachh-widget:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Focus states for accessibility */
.why-choose-swachh-widget:focus-within {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Loading state */
.why-choose-swachh-widget.loading {
  opacity: 0.7;
  pointer-events: none;
}

.why-choose-swachh-widget.loading .why-choose-image {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Print styles */
@media print {
  .why-choose-swachh-widget {
    border: 1px solid #ccc;
    box-shadow: none;
    page-break-inside: avoid;
    padding: 12px;
  }
  
  .why-choose-swachh-widget:hover {
    transform: none;
    box-shadow: none;
  }
  
  .why-choose-image {
    max-width: 80px;
    max-height: 80px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .why-choose-swachh-widget {
    border-color: #000;
    border-width: 2px;
  }
  
  .why-choose-title {
    color: #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .why-choose-swachh-widget {
    transition: none;
  }
  
  .why-choose-swachh-widget:hover {
    transform: none;
  }
  
  .why-choose-swachh-widget.loading .why-choose-image {
    animation: none;
  }
}

/* Dark mode support (if needed) */
/* @media (prefers-color-scheme: dark) {
  .why-choose-swachh-widget {
    background-color: #1a1a1a;
    border-color: #404040;
  }
  
  .why-choose-title {
    color: #ffffff;
  }
} */
