html {
  scroll-behavior: smooth;
}

html.has-cert-snap {
  scroll-behavior: auto;
  overflow-y: scroll;
}

body.has-cert-snap,
body.page-certificates {
  overflow-x: clip !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.app-cert-page {
  margin-top: 0 !important;
  padding-top: 0 !important;
  font-synthesis: none !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--app-bg-light);
  min-height: 100vh;
  position: relative;
  overflow-x: clip !important;
}

@media (min-width: 992px) {
  .app-cert-snap-section {
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 75px 32px 48px;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
  }

  .app-cert-snap-section > .app-cert-container {
    max-height: calc(100vh - 124px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 991.98px) {
  html,
  html.has-cert-snap {
    scroll-snap-type: none !important;
    scroll-behavior: smooth !important;
  }

  .app-cert-snap-section {
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    padding: 24px 14px;
    box-sizing: border-box;
    overflow: visible !important;
    width: 100%;
  }

  .app-cert-snap-section > .app-cert-container {
    max-height: none !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin-top: 0 !important;
    overflow: visible !important;
  }

  .app-cert-anim-visual {
    opacity: 0.85;
    transform: translateY(12px);
    transition:
      opacity 0.4s ease,
      transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .app-cert-anim-item {
    opacity: 0.9;
    transform: translateY(10px);
    transition:
      opacity 0.35s ease,
      transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .app-cert-snap-section.is-active .app-cert-anim-visual,
  .app-cert-snap-section.is-active .app-cert-anim-item {
    opacity: 1 !important;
    transform: none !important;
  }

  .anim-delay-1,
  .anim-delay-2,
  .anim-delay-3,
  .anim-delay-4,
  .anim-delay-5,
  .anim-delay-6 {
    transition-delay: 0s !important;
  }
}

.app-cert-step-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(140px, 20vw, 260px);
  font-weight: 900;
  color: #faa700;
  opacity: 0.085;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -0.04em;
}

html[data-theme="light"] .app-cert-step-watermark {
  opacity: 0.07;
}

.app-cert-chevron-top {
  position: absolute;
  top: 160px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 26, 21, 0.94);
  color: #faa700;
  border: 1px solid rgba(250, 167, 0, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition:
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

html[data-theme="light"] .app-cert-chevron-top {
  background: #ffffff;
  color: #022819;
  border-color: rgba(2, 57, 36, 0.25);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.app-cert-chevron-bottom {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 26, 21, 0.94);
  color: #faa700;
  border: 1px solid rgba(250, 167, 0, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition:
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

html[data-theme="light"] .app-cert-chevron-bottom {
  background: #ffffff;
  color: #022819;
  border-color: rgba(2, 57, 36, 0.25);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.app-cert-snap-section.is-active .app-cert-chevron-top {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0.35s;
}

.app-cert-snap-section.is-active .app-cert-chevron-bottom {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0.35s;
  animation: appCertBounce 2.4s infinite ease-in-out 0.4s;
}

.app-cert-chevron-top:hover,
.app-cert-chevron-bottom:hover {
  background: #faa700 !important;
  color: #022819 !important;
  border-color: #faa700 !important;
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(250, 167, 0, 0.6);
  animation: none;
}

@keyframes appCertBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-5px);
  }
  60% {
    transform: translateX(-50%) translateY(-2px);
  }
}

.app-cert-snap-dots {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(18, 26, 21, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 8px;
  border-radius: 24px;
  border: 1px solid rgba(250, 167, 0, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] .app-cert-snap-dots {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(2, 57, 36, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.app-cert-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(120, 140, 125, 0.45);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  padding: 0;
}

.app-cert-dot:hover {
  background: #faa700;
  transform: scale(1.25);
}

.app-cert-dot.active {
  background: #faa700 !important;
  transform: scale(1.35);
  box-shadow: 0 0 14px rgba(250, 167, 0, 0.85);
}

.app-cert-dot .app-cert-tooltip {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  border: 1px solid rgba(250, 167, 0, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .app-cert-dot .app-cert-tooltip {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(2, 57, 36, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.app-cert-dot:hover .app-cert-tooltip {
  opacity: 1;
  visibility: visible;
  right: 28px;
}

.app-cert-anim-visual {
  opacity: 0;
  transform: scale(0.94) translateY(20px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-cert-anim-item {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-cert-snap-section.is-active .app-cert-anim-visual {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition-delay: 0.15s;
}

.app-cert-snap-section.is-active .app-cert-anim-item {
  opacity: 1;
  transform: translateY(0);
}

.anim-delay-1 {
  transition-delay: 0.12s;
}

.anim-delay-2 {
  transition-delay: 0.22s;
}

.anim-delay-3 {
  transition-delay: 0.32s;
}

.anim-delay-4 {
  transition-delay: 0.42s;
}

.anim-delay-5 {
  transition-delay: 0.52s;
}

.anim-delay-6 {
  transition-delay: 0.62s;
}

.app-cert-hero-box {
  position: relative;
  background: #022819;
  border-radius: 28px;
  padding: 40px 48px;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(2, 57, 36, 0.35);
  border: 1px solid rgba(250, 167, 0, 0.3);
  text-align: left;
  width: 100%;
  max-width: 1180px;
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: center;
  box-sizing: border-box;
}

html[data-theme="light"] .app-cert-hero-box {
  background: #033924;
  border-color: rgba(250, 167, 0, 0.35);
}

.app-cert-hero-box::before,
.app-cert-hero-box::after {
  display: none !important;
}

.app-cert-hero-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  z-index: 2;
}

.app-cert-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(250, 167, 0, 0.16);
  border: 1px solid rgba(250, 167, 0, 0.35);
  color: #fbd38d;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.app-cert-hero-eyebrow-icon {
  color: #f59e0b;
}

.app-cert-hero-h1 {
  font-family: var(--font-heading);
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 12px;
}

.app-cert-hero-gold {
  color: #fbd38d;
  text-shadow: 0 0 20px rgba(250, 167, 0, 0.45);
}

.app-cert-hero-lead {
  font-size: 0.96rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin: 0 0 20px;
}

.app-cert-hero-pill-strip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.app-cert-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  font-weight: 600;
  color: #f8fafc;
}

.app-cert-hero-pill svg {
  color: #34d399;
}

.app-cert-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.app-cert-hero-scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: 30px;
  background: #faa700;
  color: #022f1e;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 8px 24px rgba(250, 167, 0, 0.45);
  transition: all 0.3s ease;
}

.app-cert-hero-scroll-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(250, 167, 0, 0.65);
  background: #f59e0b;
  color: #000000;
}

.app-cert-mouse-wheel-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.app-cert-mouse-wheel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #faa700;
  box-shadow: 0 0 0 0 rgba(250, 167, 0, 0.7);
  animation: appCertDotPulse 1.8s infinite;
}

@keyframes appCertDotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(250, 167, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(250, 167, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(250, 167, 0, 0);
  }
}

.app-cert-hero-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.app-cert-hero-media-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(250, 167, 0, 0.45);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 35px rgba(250, 167, 0, 0.2);
  width: 100%;
  height: 100%;
  min-height: 380px;
  max-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #011d12;
}

.app-cert-hero-media-glow {
  display: none !important;
}

.app-cert-hero-media-img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  transition: transform 0.4s ease;
}

.app-cert-hero-media-wrap:hover .app-cert-hero-media-img {
  transform: scale(1.02);
}

.app-cert-hero-media-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 47, 30, 0.95);
  border: 1px solid rgba(250, 167, 0, 0.5);
  color: #fbd38d;
  padding: 5px 14px;
  border-radius: 24px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.app-cert-slide-card {
  display: grid;
  gap: 36px;
  align-items: center;
  background: #0d1527;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
  max-height: calc(100vh - 145px);
  max-height: calc(100dvh - 145px);
  width: 100%;
  overflow: hidden;
}

.app-cert-card-portrait {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.app-cert-card-landscape {
  grid-template-columns: minmax(360px, 1.25fr) minmax(0, 1fr);
}

html[data-theme="light"] .app-cert-slide-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.app-cert-slide-reverse.app-cert-snap-section .app-cert-card-portrait {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.app-cert-slide-reverse.app-cert-snap-section .app-cert-card-landscape {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1.25fr);
}

.app-cert-slide-reverse .app-cert-slide-visual {
  order: 2;
}

.app-cert-slide-reverse .app-cert-slide-info {
  order: 1;
}

.app-cert-slide-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-cert-frame-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  border: 2px solid rgba(250, 167, 0, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  line-height: 0;
}

html[data-theme="light"] .app-cert-frame-wrap {
  background: transparent;
  border-color: rgba(2, 57, 36, 0.35);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.app-cert-badge-ocop {
  background: #d97706;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.app-cert-badge-provincial {
  background: #023924;
  color: #a7f3d0;
  border: 1px solid rgba(167, 243, 208, 0.3);
}

.app-cert-badge-honor {
  background: #b45309;
  color: #fef3c7;
  border: 1px solid rgba(254, 243, 199, 0.3);
}

.app-cert-badge-city {
  background: #1e3a8a;
  color: #bfdbfe;
  border: 1px solid rgba(191, 219, 254, 0.3);
}

.app-cert-card-portrait .app-cert-slide-img {
  display: block;
  height: clamp(340px, 52vh, 520px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 14px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-cert-card-landscape .app-cert-slide-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(300px, 44vh, 440px);
  max-width: 100%;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-cert-frame-wrap:hover .app-cert-slide-img {
  transform: scale(1.02);
}

.app-cert-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 14, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  text-decoration: none;
  z-index: 2;
  border-radius: 14px;
  cursor: pointer;
}

.app-cert-frame-wrap:hover .app-cert-zoom-overlay {
  opacity: 1;
  visibility: visible;
}

.app-cert-zoom-icon-box {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #023924;
  color: #ffffff;
  padding: 7px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(250, 167, 0, 0.4);
}

.app-cert-slide-info {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  height: 100%;
  overflow: hidden;
}

.app-cert-slide-counter,
.app-cert-slide-title,
.app-cert-meta-strip,
.app-cert-slide-desc,
.app-cert-slide-actions {
  position: relative;
  z-index: 2;
}

.app-cert-slide-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.app-cert-count-num {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #f59e0b;
}

.app-cert-count-divider {
  color: rgba(255, 255, 255, 0.3);
}

html[data-theme="light"] .app-cert-count-divider {
  color: #94a3b8;
}

.app-cert-count-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
}

.app-cert-slide-title {
  font-family: var(--font-heading);
  font-size: 1.38rem;
  font-weight: 800;
  line-height: 1.32;
  color: #ffffff;
  margin-bottom: 10px;
}

html[data-theme="light"] .app-cert-slide-title {
  color: #0f172a;
}

.app-cert-meta-strip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  margin-bottom: 14px;
}

html[data-theme="light"] .app-cert-meta-strip {
  background: transparent;
  border: none;
}

.app-cert-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  color: #cbd5e1;
}

html[data-theme="light"] .app-cert-meta-item {
  color: #334155;
}

.app-cert-meta-item svg {
  color: #f59e0b;
  flex-shrink: 0;
}

.app-cert-slide-desc {
  font-size: 0.9rem;
  line-height: 1.62;
  color: #cbd5e1;
  margin-bottom: 20px;
}

html[data-theme="light"] .app-cert-slide-desc {
  color: #334155;
}

.app-cert-slide-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.app-cert-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 24px;
  background: #023924;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(2, 57, 36, 0.45);
  border: 1px solid rgba(250, 167, 0, 0.3);
  transition: all 0.25s ease;
  cursor: pointer;
}

.app-cert-btn-primary:hover {
  background: #045234;
  color: #ffffff;
  transform: translateY(-2px);
  border-color: #faa700;
}

.app-cert-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 24px;
  background: transparent;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

html[data-theme="light"] .app-cert-btn-outline {
  color: #334155;
  border-color: #cbd5e1;
}

.app-cert-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}

.app-cert-guarantee-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 20px;
}

.app-cert-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 20px;
  background: var(--app-primary-50, #ebf5ee);
  color: var(--app-primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.app-cert-snap-h2 {
  font-family: var(--font-heading);
  font-size: 1.38rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 0 10px;
}

html[data-theme="light"] .app-cert-snap-h2 {
  color: #0f172a;
}

.app-cert-values-h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
}

html[data-theme="light"] .app-cert-values-h2 {
  color: #0f172a;
}

.app-cert-guarantee-sub {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

html[data-theme="light"] .app-cert-guarantee-sub {
  color: #475569;
}

.app-cert-guarantee-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
  width: 100%;
}

.app-cert-guarantee-card {
  background: #0d1527;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-cert-snap-section.is-active .app-cert-guarantee-card {
  opacity: 1;
  transform: translateY(0);
}

.app-cert-guarantee-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

html[data-theme="light"] .app-cert-guarantee-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.app-cert-guarantee-card:hover {
  transform: translateY(-3px);
}

.app-cert-guarantee-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(2, 57, 36, 0.3);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  flex-shrink: 0;
}

html[data-theme="light"] .app-cert-guarantee-icon {
  background: #ebf5ee;
  color: #023924;
}

.app-cert-guarantee-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0;
}

html[data-theme="light"] .app-cert-guarantee-title {
  color: #0f172a;
}

.app-cert-guarantee-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}

html[data-theme="light"] .app-cert-guarantee-desc {
  color: #475569;
}

.app-cert-cta-banner {
  background: #023924;
  border-radius: 18px;
  padding: 20px 28px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 14px 32px rgba(2, 57, 36, 0.22);
  width: 100%;
}

.app-cert-cta-content {
  max-width: 620px;
}

.app-cert-cta-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.app-cert-cta-desc {
  font-size: 0.84rem;
  color: #e2e8f0;
  line-height: 1.45;
  margin: 0;
}

.app-cert-cta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.app-cert-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 30px;
  background: #faa700;
  color: #022f1e;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.84rem;
  box-shadow: 0 6px 16px rgba(250, 167, 0, 0.4);
  transition: all 0.25s ease;
}

.app-cert-cta-phone:hover {
  transform: translateY(-2px);
  background: #f59e0b;
  color: #000000;
}

.app-cert-cta-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.84rem;
  transition: all 0.25s ease;
}

.app-cert-cta-contact:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-2px);
}

.fancybox__container {
  z-index: 999999 !important;
}

.fancybox__thumbs {
  display: none !important;
}

body.app-cert-in-lightbox .floating-contact-group,
body.app-cert-in-lightbox .bottom-nav,
body.app-cert-in-lightbox .app-cert-snap-dots,
body.app-cert-in-lightbox #chat-panel,
body.app-cert-in-lightbox #back-to-top {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 991.98px) {
  #cert-hero.app-cert-snap-section {
    padding-top: 76px;
    padding-bottom: 24px;
  }

  #cert-hero > .app-cert-container {
    margin-top: 0 !important;
    justify-content: center !important;
  }

  .app-cert-hero-box {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 16px;
    min-height: auto;
  }

  .app-cert-hero-info {
    align-items: center;
    text-align: center;
  }

  .app-cert-hero-gold {
    display: block;
    margin-top: 4px;
  }

  .app-cert-hero-lead {
    text-align: center;
  }

  .app-cert-hero-eyebrow,
  .app-cert-hero-pill-strip,
  .app-cert-visual-badge {
    display: none !important;
  }

  .app-cert-hero-actions {
    align-items: center;
  }

  .app-cert-hero-showcase {
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .app-cert-hero-media-wrap {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
    border-radius: 16px;
    border: 1.5px solid rgba(250, 167, 0, 0.45);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    background: transparent !important;
  }

  .app-cert-hero-media-img {
    width: 100% !important;
    height: clamp(230px, 32vh, 290px) !important;
    max-height: 290px !important;
    aspect-ratio: 16 / 10;
    object-fit: cover !important;
    object-position: center 32%;
    display: block;
    border-radius: 0 !important;
  }

  .app-cert-slide-card,
  .app-cert-card-portrait,
  .app-cert-card-landscape {
    grid-template-columns: 1fr !important;
    gap: 14px;
    padding: 16px 14px;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }

  .app-cert-slide-reverse.app-cert-snap-section .app-cert-card-portrait,
  .app-cert-slide-reverse.app-cert-snap-section .app-cert-card-landscape {
    grid-template-columns: 1fr !important;
  }

  .app-cert-slide-reverse .app-cert-slide-visual {
    order: 1 !important;
  }

  .app-cert-slide-reverse .app-cert-slide-info {
    order: 2 !important;
  }

  .app-cert-frame-wrap {
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  .app-cert-card-portrait .app-cert-slide-img,
  .app-cert-card-landscape .app-cert-slide-img {
    height: auto !important;
    max-height: 250px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }

  .app-cert-snap-dots {
    display: none !important;
  }

  .app-cert-guarantee-strip {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }

  .app-cert-guarantee-card {
    opacity: 1 !important;
    transform: none !important;
  }

  .app-cert-cta-banner {
    display: none !important;
  }

  .app-cert-chevron-top {
    display: none !important;
  }

  .app-cert-chevron-bottom {
    display: none !important;
  }

  .app-cert-zoom-overlay {
    position: absolute !important;
    inset: auto 8px 8px auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    width: auto !important;
    height: auto !important;
    z-index: 10 !important;
    pointer-events: auto !important;
  }

  .app-cert-zoom-icon-box {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(2, 57, 36, 0.94) !important;
    border: 1.5px solid rgba(250, 167, 0, 0.6) !important;
    color: #faa700 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  }

  .app-cert-zoom-icon-box span {
    display: none !important;
  }

  .app-cert-zoom-icon-box svg {
    width: 17px !important;
    height: 17px !important;
  }
}

@media (max-width: 768px) {
  .app-cert-snap-section {
    padding-top: 18px;
    padding-bottom: 18px;
    padding-left: 12px;
    padding-right: 12px;
    justify-content: flex-start;
  }

  #cert-hero.app-cert-snap-section {
    padding-top: 72px;
    padding-bottom: 18px;
  }

  .app-cert-step-watermark {
    font-size: clamp(90px, 28vw, 160px);
  }

  .app-cert-hero-box {
    padding: 14px 12px;
    border-radius: 16px;
    gap: 12px;
  }

  .app-cert-hero-media-wrap {
    max-width: 440px;
  }

  .app-cert-hero-media-img {
    height: clamp(215px, 30vh, 270px) !important;
    max-height: 270px !important;
  }

  .app-cert-hero-h1 {
    font-size: 1.45rem;
  }

  .app-cert-hero-lead {
    font-size: 0.84rem;
    margin-bottom: 14px;
  }

  .app-cert-hero-pill-strip {
    gap: 6px;
    margin-bottom: 16px;
  }

  .app-cert-hero-pill {
    padding: 4px 10px;
    font-size: 0.74rem;
  }

  .app-cert-snap-h2,
  .app-cert-values-h2 {
    font-size: 1.25rem;
  }

  .app-cert-slide-card {
    padding: 14px 12px;
    border-radius: 14px;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }

  .app-cert-card-portrait .app-cert-slide-img,
  .app-cert-card-landscape .app-cert-slide-img {
    height: auto !important;
    max-height: 190px !important;
    width: auto;
    margin: 0 auto;
  }

  .app-cert-slide-title {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }

  .app-cert-slide-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .app-cert-slide-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 8px !important;
  }

  .app-cert-btn-primary,
  .app-cert-btn-outline {
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .app-cert-cta-banner {
    padding: 14px 12px;
    border-radius: 14px;
  }

  .app-cert-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .app-cert-cta-phone,
  .app-cert-cta-contact {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .app-cert-snap-section {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 14px;
    padding-bottom: 14px;
    justify-content: flex-start;
  }

  #cert-hero.app-cert-snap-section {
    padding-top: 68px;
    padding-bottom: 14px;
  }

  .app-cert-hero-box {
    padding: 12px 10px;
    border-radius: 14px;
    gap: 10px;
  }

  .app-cert-hero-media-wrap {
    max-width: 100%;
    border-radius: 14px;
  }

  .app-cert-hero-media-img {
    height: clamp(190px, 28vh, 230px) !important;
    max-height: 230px !important;
  }

  .app-cert-hero-h1 {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }

  .app-cert-hero-lead {
    font-size: 0.8rem;
    margin-bottom: 8px;
    line-height: 1.45;
  }

  .app-cert-slide-card {
    padding: 12px 10px;
    border-radius: 14px;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    gap: 10px !important;
  }

  .app-cert-frame-wrap {
    padding: 0;
  }

  .app-cert-card-portrait .app-cert-slide-img,
  .app-cert-card-landscape .app-cert-slide-img {
    height: auto !important;
    max-height: 160px !important;
    width: auto !important;
    margin: 0 auto !important;
  }

  .app-cert-slide-counter {
    margin-bottom: 3px;
  }

  .app-cert-count-num,
  .app-cert-count-year {
    font-size: 0.72rem;
  }

  .app-cert-slide-title {
    font-size: 0.98rem;
    line-height: 1.35;
    margin-bottom: 4px;
  }

  .app-cert-meta-strip {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 4px 10px !important;
    margin-bottom: 6px !important;
  }

  .app-cert-meta-item {
    font-size: 0.74rem !important;
  }

  .app-cert-slide-desc {
    font-size: 0.76rem !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* Display both buttons side-by-side in 1 compact row on iPhone */
  .app-cert-slide-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 6px !important;
  }

  .app-cert-btn-primary,
  .app-cert-btn-outline {
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 7px 4px !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .app-cert-btn-primary svg,
  .app-cert-btn-outline svg {
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0 !important;
  }
}
