/* ====================================
   QUALITY HERO V2
==================================== */
.quality-hero-v2 {
  background:
    linear-gradient(rgba(8, 15, 28, 0.82), rgba(8, 15, 28, 0.82)),
    url("../images/quality/quality-banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 140px 0;
}

.quality-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.quality-hero-content {
  color: #ffffff;
}

.quality-hero-content h1 {
  font-size: 72px;
  line-height: 1.1;
  font-weight: 800;
  margin: 25px 0;
  animation: qualityFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.quality-hero-content p {
  font-size: 20px;
  line-height: 1.9;
  color: #d5d9df;
}

.quality-hero-stats {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.quality-hero-stats .stat-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 20px 25px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quality-hero-stats .stat-item h3 {
  color: #ffffff;
  font-size: 36px;
  margin: 0;
  font-weight: 700;
}

.quality-hero-stats .stat-item span {
  color: #d7d7d7;
  font-size: 14px;
}

.quality-cert-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cert-preview-card {
  background: #ffffff;
  padding: 10px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cert-preview-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.cert-preview-card:hover img {
  transform: scale(1.04);
}

/* ====================================
   OVERVIEW (COMMON)
==================================== */
.section-tag {
  display: inline-block;
  background: #eaf1ff;
  color: #214f99;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-title {
  font-size: 50px;
  font-weight: 800;
  margin: 20px 0;
  color: #111827;
  line-height: 1.2;
}

.section-subtitle {
  max-width: 850px;
  color: #667085;
  line-height: 1.9;
  margin-bottom: 50px;
  font-size: 16px;
}

/* ====================================
   CERTIFICATIONS SECTION
==================================== */
.certifications-showcase {
  padding: 120px 0;
  background: #f8fafc;
}

.certification-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.certificate-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #e5e7eb;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.certificate-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.certificate-content {
  padding: 25px;
}

.certificate-content h3 {
  color: #214f99;
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 700;
}

.certificate-content p {
  color: #667085;
  line-height: 1.8;
  margin: 0;
}

/* ====================================
   TIMELINE (PROCESS) SECTION
==================================== */
.quality-process-v2 {
  padding: 120px 0;
  background: #ffffff;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  margin-top: 60px;
}

.process-step {
  position: relative;
  text-align: center;
}

.step-number {
  width: 80px;
  height: 80px;
  background: #214f99;
  color: #ffffff;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(33, 79, 153, 0.2);
  transition: transform 0.3s ease;
}

.process-step:hover .step-number {
  transform: scale(1.08);
}

.process-step h3 {
  font-size: 18px;
  line-height: 1.5;
  color: #111827;
  font-weight: 700;
}

/* ====================================
   BENEFITS SECTION
==================================== */
.quality-benefits-v2 {
  padding: 120px 0;
  background: #f8fafc;
}

.benefits-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.benefits-content p {
  color: #667085;
  line-height: 1.9;
  margin-bottom: 20px;
  font-size: 16px;
}

.benefits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.benefit-item {
  background: #ffffff;
  padding: 20px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease;
}

.benefit-item:hover {
  transform: translateY(-2px);
}

.benefit-item i {
  color: #214f99;
  font-size: 20px;
  flex-shrink: 0;
}

.benefit-item span {
  font-weight: 600;
  color: #111827;
  font-size: 15px;
}

/* ====================================
   STATS COUNTER SECTION
==================================== */
.quality-stats {
  background: #214f99;
  padding: 110px 0;
}

.quality-stats .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.quality-stats .stat-box {
  text-align: center;
  color: #ffffff;
}

.quality-stats .stat-box h3 {
  font-size: 60px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1;
}

.quality-stats .stat-box p {
  margin: 0;
  font-size: 18px;
  opacity: 0.9;
}

/* ====================================
   CTA SECTION
==================================== */
.quality-cta-v2 {
  position: relative;
  background:
    linear-gradient(rgba(8, 15, 28, 0.85), rgba(8, 15, 28, 0.85)),
    url("../images/quality/quality-cta.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 140px 0;
  text-align: center;
}

.quality-cta-v2 h2 {
  color: #ffffff;
  font-size: 58px;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.2;
}

.quality-cta-v2 p {
  color: #d5d9df;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.9;
  font-size: 20px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 35px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.primary-btn {
  background: #214f99;
  color: #ffffff;
  border: 2px solid #214f99;
}

.primary-btn:hover {
  background: #163d7a;
  border-color: #163d7a;
}

.secondary-btn {
  border: 2px solid #ffffff;
  color: #ffffff;
  background: transparent;
}

.secondary-btn:hover {
  background: #ffffff;
  color: #111827;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
}

/* ====================================
   ANIMATION INTERNALS
==================================== */
@keyframes qualityFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====================================
   RESPONSIVE BREAKPOINTS
==================================== */

/* Breakpoint: 1200px */
@media (max-width: 1200px) {
  .certification-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 25px;
  }

  .benefits-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Breakpoint: 991px */
@media (max-width: 991px) {
  .quality-hero-v2,
  .certifications-showcase,
  .quality-process-v2,
  .quality-benefits-v2,
  .quality-stats,
  .quality-cta-v2 {
    padding: 80px 0;
  }

  .quality-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .quality-hero-content h1 {
    font-size: 52px;
  }

  .quality-stats .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
  }

  .section-title {
    font-size: 38px;
  }

  .quality-cta-v2 h2 {
    font-size: 44px;
  }
}

/* Breakpoint: 768px */
@media (max-width: 768px) {
  .certification-grid,
  .process-timeline,
  .quality-stats .stats-grid,
  .benefits-list {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    gap: 35px;
  }

  .quality-hero-content h1 {
    font-size: 40px;
  }

  .section-title {
    font-size: 32px;
  }

  .quality-cta-v2 h2 {
    font-size: 34px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .quality-hero-stats {
    flex-direction: column;
    gap: 15px;
  }
}

/* Breakpoint: 480px */
@media (max-width: 480px) {
  .quality-hero-v2 {
    padding: 60px 0;
  }

  .quality-hero-content h1 {
    font-size: 32px;
  }

  .quality-hero-content p,
  .quality-cta-v2 p {
    font-size: 16px;
  }

  .quality-cert-preview {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 28px;
  }

  .certificate-image img {
    height: 240px;
  }

  .quality-stats .stat-box h3 {
    font-size: 44px;
  }

  .quality-cta-v2 h2 {
    font-size: 28px;
  }
}
