/* Custom styles for enhanced About page */

/* Mission, Vision & Values Section */
.mvv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.mvv-item.full-width {
  grid-column: 1 / -1;
}

/* Values Section */
.values-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.value-item {
  border-left: 3px solid rgba(0, 0, 0, 0.1);
  padding-left: 1.5rem;
  transition: border-color 0.3s ease;
}

.value-item:hover {
  border-left-color: rgba(0, 0, 0, 0.4);
}

.value-item h3 {
  margin-bottom: 0;
}

/* Expertise Pillars Section */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.expertise-card {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.expertise-card h3 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal !important;
  hyphens: auto;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff6b35 0%, #ff8c42 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.expertise-card:hover::before {
  transform: scaleX(1);
}

.expertise-card:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.expertise-number {
  font-size: 3rem;
  font-weight: 700;
  color: #ff6b35;
  opacity: 0.3;
}

.expertise-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expertise-list li {
  padding: 0.5rem 0;
  transition: transform 0.2s ease;
}

.expertise-list li:hover {
  transform: translateX(5px);
}

/* Why Choose Us Section */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.why-choose-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  text-align: center;
  backdrop-filter: blur(10px);
}

.why-choose-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.1);
}

.why-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.why-choose-card:hover .why-icon {
  transform: scale(1.2) rotate(5deg);
}

/* Utility Classes */
.subtitle-block.center {
  justify-content: center;
  text-align: center;
}

/* Override secondary color for subtitles - use same black as other text */
.text-color-secondary {
  color: inherit !important;
}

.subtitle.text-color-secondary,
.asterisk.text-color-secondary {
  color: currentColor !important;
}

/* Responsive Design */
@media screen and (max-width: 991px) {
  .mvv-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .mvv-item.full-width {
    grid-column: 1;
  }

  /* Make mission and vision paragraphs use same font as h3 in mobile */
  .section-mission-vision-values .heading-style-h4 {
    font-family: var(--_typography---h3--font-family) !important;
    font-size: var(--_typography---h3--font-size) !important;
    font-weight: var(--_typography---h3--font-weight) !important;
    line-height: var(--_typography---h3--line-height) !important;
  }

  .values-list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .expertise-grid,
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media screen and (max-width: 767px) {
  .values-list {
    gap: 1.5rem;
  }

  .expertise-card,
  .why-choose-card {
    padding: 1.5rem;
  }

  .expertise-number {
    font-size: 2rem;
  }

  .why-icon {
    font-size: 2rem;
  }
}

/* Animation for section entry */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.value-item,
.expertise-card,
.why-choose-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.value-item:nth-child(2) {
  animation-delay: 0.1s;
}

.value-item:nth-child(3) {
  animation-delay: 0.2s;
}

.value-item:nth-child(4) {
  animation-delay: 0.3s;
}

.value-item:nth-child(5) {
  animation-delay: 0.4s;
}

.value-item:nth-child(6) {
  animation-delay: 0.5s;
}

.expertise-card:nth-child(2) {
  animation-delay: 0.15s;
}

.expertise-card:nth-child(3) {
  animation-delay: 0.3s;
}

.why-choose-card:nth-child(2) {
  animation-delay: 0.1s;
}

.why-choose-card:nth-child(3) {
  animation-delay: 0.2s;
}

.why-choose-card:nth-child(4) {
  animation-delay: 0.3s;
}

.why-choose-card:nth-child(5) {
  animation-delay: 0.4s;
}

.why-choose-card:nth-child(6) {
  animation-delay: 0.5s;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Hide background videos for reduced motion */
  video {
    display: none !important;
  }

  /* Show video poster as static background */
  .video-wrapper,
  .w-background-video {
    background-size: cover !important;
    background-position: center !important;
  }
}
