/* Use Cases page. Single continuous decorative line behind the whole page
   (like home.php) works here because none of the sub-sections below define
   their own opaque background — only card-level backgrounds do, same as
   the home page's own sections. */
:root {
  --idw-primary: #4788FF;
  --idw-secondary: #7879F1;
  --idw-bg-dark: #1B0B2B;
  --idw-text-muted: #ADB2B1;
}
.idw-features-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 5%, rgba(169, 53, 147, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 85% 55%, rgba(169, 53, 147, 0.2) 0%, transparent 40%),
    var(--idw-bg-dark);
  color: #fff;
  font-family: "M PLUS 1", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 40px 0;
}
.idw-features-page__decorative-path {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  opacity: 0.4;
  z-index: 1;
}
.idw-features-page__content-wrapper {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Typography & Shared */
.idw-features-page__label-eyebrow {
  color: var(--idw-secondary);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.idw-features-page h1,
.idw-features-page h2,
.idw-features-page h3 {
  margin: 0;
  font-weight: 700;
}
.idw-text-highlight { color: var(--idw-primary); }

/* Hero Section */
.idw-features-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 60px 0 100px;
}
.idw-features-hero__text-block { flex: 1; min-width: 300px; }
.idw-features-hero__text-block h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; margin-bottom: 24px; }
.idw-features-hero__text-block p { font-size: 18px; color: var(--idw-text-muted); line-height: 1.6; margin-bottom: 32px; }
.idw-features-hero__image-block { flex: 1; min-width: 300px; text-align: right; }
.idw-features-hero__image-block img { max-width: 100%; height: auto; border-radius: 20px; }

/* Buttons */
.idw-features-page__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--idw-primary);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
}
.idw-features-page__cta-btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* Impact Section */
.idw-features-impact {
  padding: 80px 0;
}
.idw-features-page__section-header { text-align: center; max-width: 800px; margin: 0 auto 60px; }
.idw-features-page__section-header h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 20px; }
.idw-features-page__section-header p { color: var(--idw-text-muted); font-size: 18px; }
.idw-features-impact__article-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}
.idw-features-impact__article-row--flipped { flex-direction: row-reverse; }
.idw-features-impact__article-image { flex: 1; min-width: 300px; }
.idw-features-impact__article-image img { width: 100%; border-radius: 20px; }
.idw-features-impact__article-text { flex: 1; min-width: 300px; }
.idw-features-impact__article-text h3 { font-size: 24px; margin: 16px 0; }

/* Projects Grid — cards sized at 75% (25% smaller) across the board:
   track width, image height, body padding and internal type all scaled
   down together so the shrink looks proportional, not just narrower. */
.idw-features-projects__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  max-width: 825px;
  margin: 0 auto;
  gap: 22px;
  padding-bottom: 80px;
}
.idw-features-projects__card {
  background: rgba(49, 29, 58, 0.4);
  border: 1px solid rgba(169, 53, 147, 0.3);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.idw-features-projects__card-image img { width: 100%; height: 150px; object-fit: cover; }
.idw-features-projects__card-body { padding: 18px; }
.idw-features-projects__card-body .idw-features-page__label-eyebrow { font-size: 11px; margin-bottom: 9px; }
.idw-features-projects__card-body h3 { font-size: 18px; }
.idw-features-projects__card-body p { font-size: 14px; margin: 8px 0 12px; }
.idw-features-projects__card-body .idw-features-page__cta-btn { padding: 10px 21px; font-size: 12px; gap: 9px; }

/* Testimonials */
.idw-features-testimonials__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.idw-features-testimonials__title-block { position: relative; max-width: 500px; }
.idw-features-testimonials__quote-decor { position: absolute; top: -40px; left: -20px; opacity: 0.2; width: 120px; }
.idw-features-testimonials__heading { position: relative; font-size: 32px; }
.idw-features-testimonials__subheading { max-width: 400px; color: var(--idw-text-muted); }
.idw-features-testimonials__cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.idw-features-testimonials__quote-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 30px;
  border-radius: 24px;
}
.idw-features-testimonials__quote-heading {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.idw-features-testimonials__author-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.idw-features-testimonials__card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .idw-features-hero { text-align: center; }
  .idw-features-hero__image-block { order: -1; }
  .idw-features-impact__article-row { text-align: center; }
}
