
/* ======================== QAC ========================== */



.qac-hero{
    position:relative;
  height:320px;
  border-radius:20px;
  margin:10px;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  margin-bottom: 25px;
  background:url('../images/factory_machinery.png') center/cover no-repeat;
}

.qac-hero::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(
    to right,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.55) 40%,
    rgba(0,0,0,0.2) 100%
  );
}

.qac-hero-content{
 position:relative;
  z-index:2;
  width:70%;
  max-width:none;
  padding:0 40px;
  display:flex;
  align-items:flex-end;
  gap:40px;
}

.qac-hero h1{
  font-size:74px;
  font-weight:800;
  color:#fff;
  font-style: italic;
  margin-bottom: 20px;
  letter-spacing:1px;
  white-space:nowrap;
  line-height: 1.1;
}

.qac-hero p{
 font-size:18px;
  color:rgba(255,255,255,0.85);
  line-height:1.4;
  max-width:420px;
  margin-bottom:40px;
}

/* ================= QUALITY PAGE ================= */

.qac-section{
  padding:20px 0;
  background:#fff ;
}

.qac-container{
  max-width:1700px;
  width:70%;

  margin:auto;
}

/* ================= STATS STRIP ================= */

.stats-strip{
  background:#103e6a;
  color:#fff;
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
}

.stat-item{
  text-align:center;
  padding:28px 10px;
  border-right:1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child{border-right:none;}

.stat-num{
  display:block;
  font-size:22px;
  font-weight:700;
}

.stat-label{
  font-size:12px;
  opacity:.7;
}

/* ================= QUALITY PROMISE ================= */

.qac-section-inner{
  display:flex;
  align-items:center;
  gap:60px;
}

.qac-title{
  font-size:28px;
  font-weight:700;
  margin-bottom:20px;
  color:#076fd2;
  font-style: italic;
}

.qac-text{
  font-size:14px;
  color:#6b7280;
  line-height:1.7;
  margin-bottom:14px;
}

.qac-list{
  margin-top:15px;
}

.qac-list li{
  font-size:14px;
  margin-bottom:10px;
  padding-left:18px;
  position:relative;
  color:#374151;
}

.qac-list li::before{
  content:"";
  width:6px;
  height:6px;
  background:#2d4054;
  border-radius:50%;
  position:absolute;
  left:0;
  top:7px;
}

/* IMAGE */

.section-img{
  width:880px;
  height:350px;
  border-radius:14px;
  overflow:hidden;
  position:relative;
}

.section-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.img-badge{
  position:absolute;
  bottom:10px;
  left:10px;
  background:#2d4054;
  color:#fff;
  font-size:11px;
  padding:6px 10px;
  border-radius:6px;
}

/* ================= CERTIFICATIONS ================= */

.qac-cert{
  padding:90px 0;
  background:#ffffff;
}

.cert-inner{
  display:flex;
  gap:80px;
  align-items:center;
}

.cert-badges{
  display:grid;
  grid-template-columns:repeat(2,140px);
  gap:14px;
}

.cert-badge{
  background:#f1f5f9;
  border-radius:12px;
  padding:20px;
  text-align:center;
  transition:0.3s;
}

.cert-badge:hover{
  transform:translateY(-5px);
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.badge-icon{
  display:block;
  font-weight:700;
  font-size:16px;
  margin-bottom:6px;
}

.badge-label{
  font-size:11px;
  color:#6b7280;
}

/* RIGHT */

.cert-content p{
  font-size:14px;
  color:#6b7280;
  line-height:1.7;
  margin-bottom:12px;
}

.cert-highlight{
  margin-top:20px;
  display:flex;
  gap:12px;
  background:#f1f5f9;
  padding:14px;
  border-radius:10px;
}

/* ================= TESTING EQUIPMENT ================= */

.qac-testing{
  padding:100px 0;
  background:#cdeaff;
}

.testing-header{
  display:flex;
  justify-content:space-between;
  margin-bottom:40px;
}

.testing-header p{
  max-width:420px;
  font-size:14px;
  color:#6b7280;
}

/* NEW GROUPED GRID */

.testing-groups{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:30px;
}

.testing-group{
  background:#ffffff;
  border-radius:14px;
  padding:22px;
}

.testing-group h3{
  font-size:16px;
  margin-bottom:14px;
  color:#2d4054;
}

/* INNER GRID */

.testing-items{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}

.testing-card{
  background:#f1f5f9;
  border-radius:10px;
  padding:12px;
  font-size:12px;
  transition:0.25s;
}

.testing-card:hover{
  transform:translateY(-4px);
  background:#e2e8f0;
}

/* ================= REVEAL ================= */

.reveal{
  opacity:0;
  transform:translateY(30px);
}

/* ===================== RESPONSIVE (MOBILE + WEBVIEW) ===================== */

/* ---------- TABLET (1024px and below) ---------- */
@media (max-width:1024px){

  .qac-container{
    width:90%;
  }

  .qac-hero-content{
    width:100%;
    flex-direction:column;
    gap:20px;
    padding:0 20px;
  }

  .qac-hero h1{
    font-size:48px;
    white-space:normal;
  }

  .qac-section-inner{
    flex-direction:column;
    gap:30px;
  }

  .section-img{
    width:100%;
    height:260px;
  }

  .cert-inner{
    flex-direction:column;
    gap:40px;
  }

  .testing-groups{
    grid-template-columns:1fr;
  }

}


/* ---------- MOBILE (768px and below) ---------- */
@media (max-width:768px){

  /* HERO */
  .qac-hero{
    height: 220px;
    margin: 8px;
    border-radius: 14px;
  }

  .qac-hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0 20px;
  }

   .qac-hero h1{ 
    font-size: 10px;
    white-space: normal;
    margin-bottom: 4px;
  }

  .qac-hero p{
    font-size: 4px;
    max-width: 100%;
    margin-bottom: 20px;
  }

  /* STATS */
  .stats-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .stat-item{
    padding:20px 8px;
  }

  /* CONTENT */
  .qac-title{
    font-size:22px;
  }

  .qac-text{
    font-size:13px;
  }

  /* CERT BADGES */
  .cert-badges{
    grid-template-columns:repeat(2,1fr);
    width:100%;
  }

  /* TESTING GRID */
  .testing-items{
    grid-template-columns:1fr;
  }

}


/* ---------- SMALL MOBILE (480px and below) ---------- */
@media (max-width:480px){

  .qac-hero{
    height:220px;
  }

  .qac-hero h1{
    font-size:26px;
  }

  .qac-hero p{
    font-size:13px;
  }


  .stats-grid{
    grid-template-columns:1fr;
  }

  .stat-item{
    border-right:none;
    border-bottom:1px solid rgba(255,255,255,0.1);
  }

  .stat-item:last-child{
    border-bottom:none;
  }

  .qac-container{
    width:92%;
  }

}