/* Why Choose SR8 Section Styles - Matching Reference Image */
.why-choose-sr8-section {
  position: relative;
  min-height: 600px;
  margin-top: 60px;
  margin-left: 100px;
  margin-right: 100px;
  border-radius: 50px;
  transition: background-color 0.3s ease;
}

/* Statistics Bar (Overlapping at Bottom) */
.statistics-bar {
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  padding: 20px 0;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10;
  transition: background-color 0.3s ease;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #F44336;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 1rem;
  color: white;
  font-weight: 500;
}

/* Main Content Section */
.main-content-section {
  padding: 60px 0 80px 0;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 5;
  transition: background-color 0.3s ease;
}

/* Man Image Container */
.man-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.man-background {
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: none;
  border: none;
  transition: background-color 0.3s ease;
}

.man-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 0;
  object-fit: cover;
  border: none;
  box-shadow: none;
}

/* Content Container */
.why-choose-content {
  padding: 20px 0;
  transition: background-color 0.3s ease;
}

/* Main Question */
.main-question {
  margin-bottom: 40px;
}

.question-title {
  margin: 0;
  line-height: 1.2;
  text-align: right;
  transition: color 0.3s ease, font-family 0.3s ease, font-size 0.3s ease;
}

/* Arabic Language Support */
[lang="ar"] .question-title,
[dir="rtl"] .question-title,
html[lang="ar"] .question-title {
  text-align: right;
}

/* English Language Support */
[lang="en"] .question-title,
[dir="ltr"] .question-title,
html[lang="en"] .question-title {
  text-align: left;
}

.sr8-highlight {
  color: #F44336;
  font-weight: bold;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 500px;
}

/* Feature Block */
.feature-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px 10px;
  transition: all 0.3s ease, background-color 0.3s ease;
  border-radius: 50px;
}

.feature-block:hover {
  transform: translateY(-2px);
}

/* Feature Icon */
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: all 0.3s ease, background-color 0.3s ease;
}

.feature-icon i {
  font-size: 20px;
  color: white;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Dynamic Icon Color Support */
.feature-icon i[style*="color"] {
  transition: color 0.3s ease;
}

/* Enhanced Icon Hover Effects */
.feature-block:hover .feature-icon i {
  transform: scale(1.1);
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Feature Text */
.feature-text {
  line-height: 1.3;
  text-align: center;
  transition: color 0.3s ease, font-family 0.3s ease, font-size 0.3s ease;
}

/* Arabic Language Support for Features */
[lang="ar"] .feature-text,
[dir="rtl"] .feature-text,
html[lang="ar"] .feature-text {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 991px) {
  .why-choose-sr8-section {
    margin-top: 50px;
    margin-left: 50px;
    margin-right: 50px;
  }
  
  .statistics-bar {
    bottom: -25px;
    padding: 15px 0;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
  
  .main-content-section {
    padding: 70px 0 50px 0;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .man-image {
    max-width: 300px;
  }
}

@media (max-width: 767px) {
  .why-choose-sr8-section {
    margin-top: 40px;
    margin-left: 30px;
    margin-right: 30px;
  }
  
  .statistics-bar {
    bottom: -20px;
    padding: 12px 0;
  }
  
  .stat-number {
    font-size: 1.3rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .main-content-section {
    padding: 60px 0 40px 0;
  }
  
  .question-title {
    text-align: center;
  }
  
  /* Arabic Language Support for Mobile */
  [lang="ar"] .question-title,
  [dir="rtl"] .question-title,
  html[lang="ar"] .question-title {
    text-align: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 100%;
  }
  
  .feature-block {
    flex-direction: row;
    text-align: left;
    padding: 10px;
  }
  
  /* Arabic Language Support for Mobile Features */
  [lang="ar"] .feature-block,
  [dir="rtl"] .feature-block,
  html[lang="ar"] .feature-block {
    text-align: right;
  }
  
  .feature-icon {
    margin-bottom: 0;
    margin-right: 15px;
    flex-shrink: 0;
  }
  
  /* Arabic Language Support for Mobile Icons */
  [lang="ar"] .feature-icon,
  [dir="rtl"] .feature-icon,
  html[lang="ar"] .feature-icon {
    margin-right: 0;
    margin-left: 15px;
  }
  
  .man-image {
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .why-choose-sr8-section {
    margin-left: 20px;
    margin-right: 20px;
  }
  
  .statistics-bar {
    bottom: -15px;
    padding: 10px 0;
  }
  
  .stat-number {
    font-size: 1.1rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  
  .feature-text {
    font-size: 12px;
  }
  
  .feature-icon {
    width: 40px;
    height: 40px;
  }
  
  .feature-icon i {
    font-size: 16px;
  }
}

/* Dynamic Background Color Support */
.why-choose-sr8-section[style*="background-color"] {
  transition: background-color 0.3s ease;
}

.main-content-section[style*="background-color"] {
  transition: background-color 0.3s ease;
}

.why-choose-content[style*="background-color"] {
  transition: background-color 0.3s ease;
}

.feature-block[style*="background-color"] {
  transition: background-color 0.3s ease;
}

.feature-icon[style*="background-color"] {
  transition: background-color 0.3s ease;
}

.statistics-bar[style*="background-color"] {
  transition: background-color 0.3s ease;
}

/* Enhanced Hover Effects with Dynamic Colors */
.feature-block:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Smooth Color Transitions */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
