.section-5 {
  padding: 40px 0 48px;
}

.section5-wrapper {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: center;
  background: linear-gradient(135deg, var(--card-bg), rgba(255,255,255,0.04));
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
}

.section5-wrapper::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
  pointer-events: none;
}

.section5-wrapper::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 72%);
  pointer-events: none;
}

.section5-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.section5-image-box {
  width: 100%;
  max-width: 430px;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
  transform: perspective(1200px) rotateY(-4deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.section5-image-box:hover {
  transform: perspective(1200px) rotateY(0deg) translateY(-4px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
}

.section5-image-box img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.section5-content {
  position: relative;
  z-index: 1;
}

.section5-heading {
  margin-bottom: 20px;
}

.section5-subtitle {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}

.section5-title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.12;
  color: var(--text-color);
  margin: 0;
}

.section5-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.expertise-point {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 18px 18px 18px 16px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.expertise-point:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.12);
}

.point-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.expertise-point p {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.8;
  color: var(--text-color);
}

body.theme-dark .section5-wrapper,
body.theme-brown .section5-wrapper {
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

body.theme-dark .expertise-point,
body.theme-brown .expertise-point {
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 992px) {
  .section5-wrapper {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 22px;
  }

  .section5-image-box {
    max-width: 100%;
    transform: none;
  }

  .section5-image-box:hover {
    transform: translateY(-2px);
  }

  .section5-image-box img {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .section-5 {
    padding: 34px 0 40px;
  }

  .section5-wrapper {
    border-radius: 22px;
    padding: 18px;
  }

  .section5-title {
    font-size: 2rem;
  }

  .expertise-point {
    grid-template-columns: 46px 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .point-icon {
    width: 42px;
    height: 42px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .expertise-point p {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .section5-image-box img {
    min-height: 240px;
  }
}