/* certification  */

/* HERO */
.cert-hero h1 {
  font-size: 40px;
  margin-bottom: 8px;
}
.cert-hero p {
  font-size: 18px;
  opacity: 0.9;
}

/* INTRO */
.cert-intro {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
}

/* CERT LIST */
.cert-list {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.cert-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 30px;
  padding: 30px;
  border: 1px solid #e2e8f0;
  background: var(--theme-color-light);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cert-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.cert-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-logo img {
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
  
}

.cert-info h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.cert-year {
  display: inline-block;
  font-size: 16px;
  color: var(--ssc-color1);
  font-weight: 600;
  margin-bottom: 10px;
}

.cert-info p {
  font-size: 18px;
  line-height: 1.6;
}

/* CTA */
.cert-cta {
  padding: 70px 20px;
  text-align: center;
}

.cert-cta h2 {
  font-size: 28px;
  margin-bottom: 18px;
  line-height: 40px;
}

.btn-primary {
  background: var(--ssc-color1);
  color: var(--theme-color-light);
  padding: 14px 34px;
  text-decoration: none;
  font-size: 16px;
  border-radius: 4px;
}

.btn-primary:hover {
  color: var(--theme-color-light);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .cert-item {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cert-logo {
    margin-bottom: 15px;
  }
}

/* effect */

.cert-item {
  position: relative;
  overflow: hidden;
}

.cert-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: var(--ssc-color1);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.cert-item:hover::before,
.cert-item[aria-expanded="true"]::before {
  transform: scaleY(1);
}


.cert-item h3,
.cert-item .cert-year {
  transition: color 0.3s ease;
}

.cert-item:hover h3,
.cert-item[aria-expanded="true"] h3 {
  color: var(--ssc-color1);
}

.cert-item {
  background: linear-gradient(
    90deg,
    var(--theme-color-light) 0%,
    #f8fafc 100%
  );
  transition: background 0.3s ease;
}

.cert-item:hover,
.cert-item[aria-expanded="true"] {
  background: linear-gradient(
    90deg,
    var(--theme-color-light) 0%,
    #eef5fb 100%
  );
}

/* for filter  */

.cert-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  justify-content: center;
}

.filter-btn {
  padding: 10px 10px;
  border: 1px solid #ccc;
  background: var(--theme-color-light);
  cursor: pointer;
  font-weight: 600;
  border-radius: 4px;
}

.filter-btn.active {
  background: var(--ssc-color1);
  color: var(--theme-color-light);
}
