/* Statistics Section Widget Styles */
.ewg-statistics-section {
  padding: 80px 0;
  background: #ffffff;
}

.ewg-statistics-section .statistics-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Left Column - Image and Statistics */
.ewg-statistics-section .left-column {
  position: relative;
}

.ewg-statistics-section .main-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.ewg-statistics-section .main-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.ewg-statistics-section .main-image:hover img {
  transform: scale(1.05);
}

/* Statistic Box */
.ewg-statistics-section .statistic-box {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  text-align: center;
  min-width: 120px;
  z-index: 10;
}

.ewg-statistics-section .statistic-number {
  font-size: 36px;
  font-weight: 700;
  color: #e74c3c;
  line-height: 1;
  margin-bottom: 5px;
  display: block;
}

.ewg-statistics-section .statistic-label {
  font-size: 12px;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Video Button */
.ewg-statistics-section .video-button-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.ewg-statistics-section .video-play-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(231, 76, 60, 0.9);
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  backdrop-filter: blur(10px);
}

.ewg-statistics-section .video-play-button::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid rgba(231, 76, 60, 0.3);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.ewg-statistics-section .video-play-button:hover {
  transform: scale(1.1);
  background: rgba(231, 76, 60, 1);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Right Column - Content */
.ewg-statistics-section .right-column {
  padding-left: 20px;
}

.ewg-statistics-section .top-label {
  font-size: 14px;
  color: #e74c3c;
  font-weight: 500;  
  padding: 10px 19px;
  background-color: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  height: 40px;  
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.ewg-statistics-section .top-label::before {
  position: absolute;
  content: "";
  width: 3px;
  height: 10px;
  background-color: rgb(238, 13, 8);
  top: 0;
  inset-inline-start: 0;
}

.ewg-statistics-section .top-label::after {
  position: absolute;
  content: "";
  width: 3px;
  height: 10px;
  background-color: rgb(238, 13, 8);
  bottom: 0;
  inset-inline-end: 0;
}

.ewg-statistics-section .main-title {
  font-size: 42px;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.2;
  margin-bottom: 20px;
}

.ewg-statistics-section .description {
  font-size: 16px;
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Tabs */
.ewg-statistics-section .tabs-container {
  margin-bottom: 15px;
}

.ewg-statistics-section .tabs-nav {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
  border-bottom: 1px solid #ecf0f1;
}

.ewg-statistics-section .tab-title {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: #7f8c8d;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border-bottom: 2px solid transparent;
}

.ewg-statistics-section .tab-title.active,
.ewg-statistics-section .tab-title:hover {
  color: #e74c3c;
  border-bottom-color: #e74c3c;
}

.ewg-statistics-section .tabs-content {
  position: relative;
  min-height: 50px;
}

.ewg-statistics-section .tab-content {
  display: none;
  font-size: 15px;
  color: #7f8c8d;
  line-height: 1.6;
  animation: fadeIn 0.3s ease;
}

.ewg-statistics-section .tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Features List */
.ewg-statistics-section .features-list {
  margin-bottom: 30px;
}

.ewg-statistics-section .feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 12px;
}

.ewg-statistics-section .feature-icon {
  color: #27ae60;
  font-size: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
}

.ewg-statistics-section .feature-text {
  font-size: 15px;
  color: #7f8c8d;
  margin: 0;
}

/* Bottom Section */
.ewg-statistics-section .bottom-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.ewg-statistics-section .cta-button {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 15px 35px;
  height: 60px;
  transition: all 0.3s linear;
  border-radius: 2px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  text-decoration: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transform: skewX(-5deg);
}

.ewg-statistics-section .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(231, 76, 60, 0.3);
  text-decoration: none;
  color: #ffffff;
}

.ewg-statistics-section .cta-button i {
  transition: transform 0.3s ease;
}

.ewg-statistics-section .cta-button:hover i {
  transform: translateX(5px);
}

/* Signature Section */
.ewg-statistics-section .signature-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ewg-statistics-section .signature-image {
  width: 160px;
  height: auto;
  border-radius: 5px;
}

.ewg-statistics-section .signature-name {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  position: relative;
}

.ewg-statistics-section .signature-name::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e74c3c;
}

/* Video Modal */
#ewgVideoModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#ewgVideoModal.modal-open {
  opacity: 1;
  visibility: visible;
}

#ewgVideoModal .video-modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transform: scale(0.7);
  transition: transform 0.3s ease;
}

#ewgVideoModal.modal-open .video-modal-content {
  transform: scale(1);
}

#ewgVideoModal .video-modal-close {
  position: fixed;
  top: 30px;
  right: 30px;
  font-size: 28px;
  color: #ffffff;
  cursor: pointer;
  z-index: 10001;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
}

#ewgVideoModal .video-modal-close:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 6px 15px rgba(192, 57, 43, 0.4);
  border-color: #f8f9fa;
}

#ewgVideoModal .video-modal-close:active {
  transform: scale(1.05) rotate(90deg);
  transition: all 0.1s ease;
}

#ewgVideoModal .video-modal-close::before {
  content: "×";
  font-family: Arial, sans-serif;
  font-size: 32px;
  line-height: 1;
  margin-top: -2px;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .ewg-statistics-section .statistics-container {
    gap: 40px;
  }

  .ewg-statistics-section .main-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .ewg-statistics-section {
    padding: 60px 0;
  }

  .ewg-statistics-section .statistics-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ewg-statistics-section .right-column {
    padding-left: 0;
  }

  .ewg-statistics-section .main-title {
    font-size: 32px;
  }

  .ewg-statistics-section .tabs-nav {
    flex-wrap: wrap;
    gap: 20px;
  }

  .ewg-statistics-section .bottom-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .ewg-statistics-section .statistic-box {
    bottom: 20px;
    left: 20px;
    padding: 20px 25px;
  }

  .ewg-statistics-section .statistic-number {
    font-size: 30px;
  }

  .ewg-statistics-section .video-play-button {
    width: 70px;
    height: 70px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .ewg-statistics-section .statistics-container {
    padding: 0 15px;
  }

  .ewg-statistics-section .main-title {
    font-size: 28px;
  }

  .ewg-statistics-section .tabs-nav {
    gap: 15px;
  }

  .ewg-statistics-section .tab-title {
    font-size: 14px;
  }

  .ewg-statistics-section .cta-button {
    padding: 12px 25px;
    font-size: 13px;
  }

  .ewg-statistics-section .statistic-box {
    bottom: 15px;
    left: 15px;
    padding: 15px 20px;
    min-width: 100px;
  }

  .ewg-statistics-section .statistic-number {
    font-size: 24px;
  }

  .ewg-statistics-section .statistic-label {
    font-size: 10px;
  }

  .video-modal-content {
    width: 95%;
    margin: 20px;
  }

  #ewgVideoModal .video-modal-close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  #ewgVideoModal .video-modal-close::before {
    font-size: 28px;
  }
}

/* Print Styles */
@media print {
  .ewg-statistics-section .video-play-button,
  .video-modal {
    display: none !important;
  }
}
