/* Certification page redesign v2
   Exact fix for actual widget HTML:
   .rzzx.w1600 > .rzlist > .zs > img + .zcName
*/
.gsee-cert-page,
.gsee-cert-page * {
  box-sizing: border-box;
}

.gsee-cert-page {
  --gsee-red: #e60033;
  --gsee-blue: #1f5ab8;
  --gsee-navy: #061b49;
  --gsee-text: #202833;
  --gsee-muted: #687485;
  --gsee-line: #e2e9f3;
  background:
    radial-gradient(circle at 92% 2%, rgba(31, 90, 184, .08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f5f8fc 48%, #ffffff 100%);
  padding: 36px 0 76px;
  overflow: hidden;
}

.gsee-cert-page a {
  color: inherit;
  text-decoration: none;
}

.gsee-cert-page img {
  display: block;
  max-width: 100%;
}

.gsee-cert-container {
  width: min(1360px, calc(100vw - 72px));
  margin: 100px auto 0 auto;
}

/* Breadcrumb */
.gsee-cert-breadcrumb {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100% !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  color: #7a8493;
  font-size: 14px;
}

.gsee-cert-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #687485;
  transition: color .18s ease;
}

.gsee-cert-breadcrumb a:hover,
.gsee-cert-breadcrumb a:last-child {
  color: var(--gsee-red);
}

.gsee-cert-breadcrumb > span {
  color: #b3bdca;
}

/* Hero */
.gsee-cert-hero {
  position: relative;
  min-height: 238px;
  margin-bottom: 28px;
  padding: 48px 54px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(6, 27, 73, .95), rgba(25, 56, 108, .92)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 48px);
  box-shadow: 0 22px 58px rgba(6, 27, 73, .16);
  overflow: hidden;
}

.gsee-cert-hero::before {
  content: "";
  position: absolute;
  left: 54px;
  top: 38px;
  width: 58px;
  height: 4px;
  border-radius: 99px;
  background: var(--gsee-red);
}

.gsee-cert-kicker {
  margin-top: 26px;
  color: rgba(255,255,255,.66);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
}

.gsee-cert-hero h1 {
  max-width: 900px;
  margin: 14px 0 0;
  color: #fff;
  font-size: 46px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.gsee-cert-desc {
  max-width: 900px;
  margin-top: 18px;
  color: rgba(255,255,255,.82);
  font-size: 16px;
  line-height: 1.85;
}

.gsee-cert-desc,
.gsee-cert-desc * {
  color: rgba(255,255,255,.82) !important;
  font-size: 16px !important;
  line-height: 1.85 !important;
}

/* Main */
.gsee-cert-main {
  width: 100%;
}

.gsee-cert-card {
  min-height: 520px;
  border: 1px solid rgba(6, 27, 73, .08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
  overflow: hidden;
}

.gsee-cert-card-head {
  padding: 26px 30px;
  border-bottom: 1px solid var(--gsee-line);
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.gsee-cert-card-kicker {
  margin-bottom: 8px;
  color: var(--gsee-red);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
}

.gsee-cert-card-head h2 {
  margin: 0;
  color: var(--gsee-navy);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 900;
}

.gsee-cert-widget {
  width: 100%;
  padding: 32px;
  overflow: hidden;
}

/* Reset old width */
.gsee-cert-widget .w1600,
.gsee-cert-widget .main {
  width: 100% !important;
  max-width: none !important;
}

/* Hide old unused script visual impact */
.gsee-cert-widget script {
  display: none !important;
}

/* Exact certification list */
.gsee-cert-widget .rzzx {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.gsee-cert-widget .rzlist {
  position: relative;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 18px 18px 20px !important;
  border: 1px solid #e4ebf3 !important;
  border-radius: 20px;
  background: #fbfdff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .055);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.gsee-cert-widget .rzlist::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 4px;
  border-radius: 0 0 99px 99px;
  background: linear-gradient(90deg, var(--gsee-red), var(--gsee-blue));
  opacity: 0;
  transition: opacity .2s ease;
}

.gsee-cert-widget .rzlist:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 0, 51, .25) !important;
  background: #fff;
  box-shadow: 0 20px 46px rgba(15, 23, 42, .11);
}

.gsee-cert-widget .rzlist:hover::before {
  opacity: 1;
}

.gsee-cert-widget .rzlist .zs {
  width: 100% !important;
  height: 360px !important;
  margin: 0 !important;
  padding: 16px !important;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #ffffff, #f4f7fb);
  border: 1px solid #edf2f8;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gsee-cert-widget .rzlist .zs img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 10px;
  cursor: zoom-in;
  transition: transform .25s ease;
}

.gsee-cert-widget .rzlist:hover .zs img {
  transform: scale(1.025);
}

.gsee-cert-widget .rzlist .zcName {
  min-height: 52px;
  margin: 16px 0 0 !important;
  padding: 0 4px !important;
  color: var(--gsee-navy) !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  font-weight: 900 !important;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lightbox */
.gsee-cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.gsee-cert-lightbox.active {
  display: flex;
}

.gsee-cert-lightbox-mask {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 30, .84);
  backdrop-filter: blur(4px);
}

.gsee-cert-lightbox-inner {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100vw - 48px));
  max-height: calc(100vh - 96px);
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .34);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gsee-cert-lightbox-inner img {
  width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  border-radius: 14px;
  background: #f5f7fb;
}

.gsee-cert-lightbox-title {
  max-width: 100%;
  margin-top: 14px;
  color: var(--gsee-navy);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 900;
  text-align: center;
}

.gsee-cert-lightbox-close {
  position: absolute;
  right: -16px;
  top: -16px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--gsee-red);
  color: #fff;
  font-size: 28px;
  line-height: 42px;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.gsee-cert-lightbox-close:hover {
  transform: rotate(90deg);
  box-shadow: 0 12px 28px rgba(230, 0, 51, .24);
}

.gsee-cert-lightbox-open {
  overflow: hidden !important;
}

@media (max-width: 1180px) {
  .gsee-cert-container {
    width: min(1120px, calc(100vw - 40px));
  }

  .gsee-cert-widget .rzzx {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gsee-cert-widget .rzlist .zs {
    height: 330px !important;
  }
}

@media (max-width: 760px) {
  .gsee-cert-page {
    padding: 24px 0 50px;
  }

  .gsee-cert-container {
    width: calc(100vw - 28px);
  }

  .gsee-cert-hero {
    min-height: 210px;
    padding: 38px 24px 30px;
    border-radius: 22px;
  }

  .gsee-cert-hero::before {
    left: 24px;
    top: 28px;
  }

  .gsee-cert-hero h1 {
    font-size: 32px;
  }

  .gsee-cert-card {
    border-radius: 20px;
  }

  .gsee-cert-card-head {
    padding: 22px;
  }

  .gsee-cert-card-head h2 {
    font-size: 24px;
  }

  .gsee-cert-widget {
    padding: 20px;
  }

  .gsee-cert-widget .rzzx {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gsee-cert-widget .rzlist {
    padding: 14px 14px 18px !important;
  }

  .gsee-cert-widget .rzlist .zs {
    height: 300px !important;
  }

  .gsee-cert-lightbox {
    padding: 34px 14px;
  }

  .gsee-cert-lightbox-inner {
    width: calc(100vw - 28px);
    padding: 16px;
  }

  .gsee-cert-lightbox-close {
    right: 8px;
    top: 8px;
  }
}
