* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: #fff;
  color: #696969;
}

.content {
  width: 100%;
}

.border {
  width: 100%;
  height: 22.916vw;
  background-position: center center !important;
}

/* ===== Certification Programs ===== */
.cert-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 120px 240px;
  max-width: 1920px;
  margin: 0 auto;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #b16c2a;
  line-height: 1.5;
}

.carousel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.carousel-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
}

.arrow-btn {
  width: 40px;
  height: 40px;
  background: #b16c2a;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.arrow-btn:hover { background: #9a5b22; }

.arrow-btn svg {
  width: 10px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arrow-btn.right { transform: rotate(180deg); }

.cards-viewport {
  overflow: hidden;
  width: 100%;
  max-width: 1440px;
}

.cards-track {
  display: flex;
  transition: transform 0.5s ease;
}

.cards-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 60px;
  flex-shrink: 0;
  width: 100%;
}

.cards-page.center-few {
  display: flex;
  justify-content: center;
  gap: 40px 60px;
}

.cards-page.center-few .card {
  width: 440px;
  max-width: 100%;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.card-img {
  width: 100%;
  aspect-ratio: 440 / 306;
  overflow: hidden;
  border-radius: 2px;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  color: #696969;
  text-align: center;
  line-height: 1.4;
}

.dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d9d9d9;
  border: none;
  cursor: pointer;
  transition: background 0.25s;
}
.dot.active { background: #b16c2a; }

/* ===== Partner Institutions ===== */
.partner-section {
  background: linear-gradient(to bottom, #ffffff, #eeeeee);
  padding: 120px 0 80px;
  overflow: hidden;
}

.partner-section .section-title {
  text-align: center;
  margin-bottom: 60px;
}

.partner-row {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 0 6px;
  margin-bottom: 80px;
  overflow-x: hidden;
  scrollbar-width: none;
}

.partner-row:last-child {
  margin-bottom: 0;
}
.partner-row::-webkit-scrollbar { display: none; }

.partner-logo {
  flex-shrink: 0;
  width: auto;
  height: 10.417vw;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 6px;
}

.partner-logo.wide {
  width: auto;
  min-width: 0;
}

.partner-logo img {
  width: auto;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  display: block;
}
.partner-logo .item {
  position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: all 0.3s ease;

}
.partner-logo .item:hover {
  opacity: 1;
}
.partner-logo .item p {
  color: #FFF;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
}
@media (max-width: 768px) {
    .border {
     height: 1.8rem;
    }
}
/* ===== Responsive ===== */
@media (max-width: 1600px) {
  .cert-section { padding: 80px 80px; }
  .partner-row { gap: 40px; }
}
@media (max-width: 1200px) {
  .cert-section { padding: 60px 40px; }
  .section-title { font-size: 28px; }
  .card-title { font-size: 18px; }
  .partner-row { gap: 30px; }
}
@media (max-width: 900px) {
  .cert-section { padding: 40px 20px; }
  .cards-page { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .cards-page.center-few { gap: 24px; }
  .arrow-btn { width: 32px; height: 32px; }
  .carousel-inner { gap: 16px; }
  .partner-section { padding: 60px 0 40px; }
  .partner-row { gap: 20px; }
  .partner-logo { height: 150px; }
}
@media (max-width: 600px) {
  .cards-page { grid-template-columns: 1fr; }
  .section-title { font-size: 22px; }
  .card-title { font-size: 16px; }
  .partner-logo { height: 150px; }
}
