/* ===============================
   ATMS Certifications Section
================================ */

.atms-certifications {
  width: 100%;
  background: #035695;
  color: #ffffff;
  font-family: "Geist", Arial, sans-serif;
  padding: 118px 20px 120px;
  overflow: hidden;
}

.atms-certifications *,
.atms-certifications *::before,
.atms-certifications *::after {
  box-sizing: border-box;
}

.atms-cert-container {
  width: 100%;
  max-width: 1216px;
  height: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ===============================
   Section Header
================================ */

.atms-cert-header {
  width: 100%;
  max-width: 1184px;
  flex: 0 0 auto;
  margin: 0 auto 70px;
  padding: 0;
}

.atms-cert-header h2 {
  margin: 0 0 36px;
  color: #ffffff;
  font-family: "Geist", Arial, sans-serif;
  font-size: 39px;
  font-weight: 600;
  line-height: 33px;
  letter-spacing: 0;
}

.atms-cert-header p {
  margin: 0;
  max-width: 1184px;
  color: #ffffff;
  font-family: "Geist", Arial, sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 33px;
  letter-spacing: 0;
}

/* ===============================
   Invisible Inner Scroll
================================ */

.atms-cert-list {
  width: 100%;
  max-width: 1216px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;

  overflow-y: auto !important;
  overflow-x: hidden !important;

  display: flex;
  flex-direction: column;
  gap: 35px;

  padding: 0 16px 60px;
  margin: 0 auto;

  scroll-behavior: smooth;

  scrollbar-width: none;
  -ms-overflow-style: none;

  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.atms-cert-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* ===============================
   Certification Card Default
================================ */

.atms-cert-card {
  width: 100%;
  margin: 0 auto;
  min-height: 277px;
  flex: 0 0 auto;

  border: 1px solid #ffffff;
  border-radius: 40px;
  background: transparent;
  color: #ffffff;
  overflow: hidden;

  transform: translateY(0) scale(1);
  transform-origin: center center;
  will-change: transform, min-height;

  transition:
    min-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}

.atms-cert-card-inner {
  min-height: 277px;
  padding: 44px 120px 42px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;

  transition:
    padding 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    min-height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.atms-cert-card h3 {
  margin: 0 0 22px;
  color: #ffffff;
  font-family: "Geist", Arial, sans-serif;
  font-size: 31px;
  font-weight: 400;
  line-height: 45px;
  letter-spacing: 0;

  transition:
    color 0.32s ease,
    transform 0.32s ease;
}

.atms-cert-card p {
  margin: 0 0 32px;
  max-width: 900px;
  color: #ffffff;
  font-family: "Geist", Arial, sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 27px;
  letter-spacing: 0;

  transition:
    color 0.32s ease,
    transform 0.32s ease;
}

.atms-cert-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 88px;
  min-height: 25px;
  padding: 10px;

  border: 1px solid #ffffff;
  border-radius: 8px;
  background: transparent;
  color: #ffffff;

  font-family: "Geist", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;

  transform: translateY(0) scale(1);
  transform-origin: center center;

  transition:
    min-width 0.32s ease,
    min-height 0.32s ease,
    padding 0.32s ease,
    background 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease,
    font-size 0.28s ease,
    border-radius 0.28s ease;
}

/* ===============================
   Prototype Hover Effect
================================ */

.atms-cert-card:hover {
  min-height: 330px;
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.22);
  animation: atmsCertCardHoverShake 0.46s ease both;
}

.atms-cert-card:hover .atms-cert-card-inner {
  min-height: 330px;
  padding: 66px 120px 54px;
}

.atms-cert-card:hover h3 {
  color: #035695;
}

.atms-cert-card:hover p {
  color: #8e8e8e;
}

.atms-cert-card:hover .atms-cert-btn {
  min-width: 148px;
  min-height: 60px;
  padding: 0 24px;
  border-radius: 18px;
  background: #ffe331;
  border-color: #ffe331;
  color: #111111;
  font-size: 22px;
  animation: atmsCertButtonHoverShake 0.46s ease both;
}

.atms-cert-card.is-leaving {
  animation: atmsCertCardLeaveShake 0.46s ease both;
}

.atms-cert-card.is-leaving .atms-cert-btn {
  animation: atmsCertButtonLeaveShake 0.46s ease both;
}

.atms-cert-btn:hover,
.atms-cert-btn:focus {
  background: #ffe331;
  border-color: #ffe331;
  color: #111111;
}

/* Elementor / Hello reset protection */
.atms-certifications a,
.atms-certifications a:hover,
.atms-certifications a:focus {
  text-decoration: none;
}

/* ===============================
   Laptop
================================ */

@media (max-width: 1366px) {
  .atms-certifications {
    padding: 96px 20px 112px;
  }

  .atms-cert-container {
    max-width: 1012px;
    height: 760px;
  }

  .atms-cert-header {
    max-width: 980px;
    margin-bottom: 58px;
  }

  .atms-cert-header h2 {
    font-size: 34px;
    line-height: 32px;
    margin-bottom: 28px;
  }

  .atms-cert-header p {
    font-size: 17px;
    line-height: 29px;
  }

  .atms-cert-list {
    max-width: 1012px;
    gap: 28px;
    padding: 0 16px 48px;
  }

  .atms-cert-card {
    min-height: 230px;
    border-radius: 34px;
  }

  .atms-cert-card-inner {
    min-height: 230px;
    padding: 38px 78px 36px;
  }

  .atms-cert-card h3 {
    font-size: 26px;
    line-height: 38px;
    margin-bottom: 16px;
  }

  .atms-cert-card p {
    font-size: 15px;
    line-height: 24px;
    margin-bottom: 26px;
  }

  .atms-cert-card:hover {
    min-height: 285px;
  }

  .atms-cert-card:hover .atms-cert-card-inner {
    min-height: 285px;
    padding: 52px 78px 44px;
  }

  .atms-cert-card:hover .atms-cert-btn {
    min-width: 128px;
    min-height: 48px;
    border-radius: 14px;
    font-size: 17px;
  }
}

/* ===============================
   Tablet
================================ */

@media (max-width: 991px) {
  .atms-certifications {
    padding: 76px 24px 86px;
  }

  .atms-cert-container {
    max-width: 752px;
    height: 720px;
  }

  .atms-cert-header {
    max-width: 720px;
    margin-bottom: 44px;
  }

  .atms-cert-header h2 {
    font-size: 34px;
    line-height: 34px;
    margin-bottom: 24px;
  }

  .atms-cert-header p {
    font-size: 17px;
    line-height: 29px;
  }

  .atms-cert-list {
    max-width: 752px;
    gap: 24px;
    padding: 0 16px 42px;
  }

  .atms-cert-card {
    min-height: auto;
    border-radius: 30px;
  }

  .atms-cert-card-inner {
    min-height: auto;
    padding: 36px 44px 34px;
  }

  .atms-cert-card h3 {
    font-size: 25px;
    line-height: 34px;
  }

  .atms-cert-card p {
    max-width: 100%;
    font-size: 15px;
    line-height: 25px;
  }

  .atms-cert-card:hover {
    min-height: auto;
  }

  .atms-cert-card:hover .atms-cert-card-inner {
    min-height: auto;
    padding: 44px 44px 40px;
  }

  .atms-cert-card:hover .atms-cert-btn {
    min-width: 124px;
    min-height: 46px;
    font-size: 16px;
    border-radius: 14px;
  }
}

/* ===============================
   Mobile
================================ */

@media (max-width: 767px) {
  .atms-certifications {
    padding: 64px 20px 74px;
  }

  .atms-cert-container {
    max-width: none;
    height: 690px;
  }

  .atms-cert-header {
    max-width: 100%;
    margin-bottom: 36px;
  }

  .atms-cert-header h2 {
    font-size: 30px;
    line-height: 32px;
    margin-bottom: 20px;
  }

  .atms-cert-header p {
    font-size: 15px;
    line-height: 26px;
  }

  .atms-cert-list {
    max-width: none;
    gap: 20px;
    padding: 0 10px 36px;
  }

  .atms-cert-card {
    border-radius: 24px;
  }

  .atms-cert-card-inner {
    padding: 30px 26px 28px;
  }

  .atms-cert-card h3 {
    font-size: 22px;
    line-height: 30px;
    margin-bottom: 16px;
  }

  .atms-cert-card p {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 24px;
  }

  .atms-cert-btn {
    min-width: 88px;
    min-height: 28px;
    padding: 6px 14px;
    font-size: 12px;
  }

  .atms-cert-card:hover .atms-cert-card-inner {
    padding: 34px 26px 32px;
  }

  .atms-cert-card:hover .atms-cert-btn {
    min-width: 120px;
    min-height: 44px;
    font-size: 15px;
    border-radius: 13px;
  }
}

/* ===============================
   Small Mobile
================================ */

@media (max-width: 480px) {
  .atms-certifications {
    padding: 56px 18px 66px;
  }

  .atms-cert-container {
    height: 620px;
  }

  .atms-cert-header h2 {
    font-size: 28px;
    line-height: 30px;
  }

  .atms-cert-header p {
    font-size: 14px;
    line-height: 24px;
  }

  .atms-cert-list {
    gap: 18px;
    padding: 0 8px 32px;
  }

  .atms-cert-card {
    border-radius: 22px;
  }

  .atms-cert-card-inner {
    padding: 28px 22px 26px;
  }

  .atms-cert-card h3 {
    font-size: 20px;
    line-height: 28px;
  }

  .atms-cert-card p {
    font-size: 13px;
    line-height: 22px;
  }
}

/* ===============================
   Certification Hover Shake Effect
================================ */

@keyframes atmsCertCardHoverShake {
  0% {
    transform: translateY(0) scale(1);
  }

  22% {
    transform: translateY(13px) scale(1.018);
  }

  46% {
    transform: translateY(5px) scale(1.01);
  }

  70% {
    transform: translateY(10px) scale(1.015);
  }

  100% {
    transform: translateY(8px) scale(1.012);
  }
}

@keyframes atmsCertButtonHoverShake {
  0% {
    transform: translateY(0) scale(1);
  }

  22% {
    transform: translateY(8px) scale(1.045);
  }

  46% {
    transform: translateY(2px) scale(1.018);
  }

  70% {
    transform: translateY(6px) scale(1.032);
  }

  100% {
    transform: translateY(4px) scale(1.025);
  }
}

@keyframes atmsCertCardLeaveShake {
  0% {
    transform: translateY(8px) scale(1.012);
  }

  22% {
    transform: translateY(-4px) scale(0.998);
  }

  46% {
    transform: translateY(3px) scale(1.006);
  }

  70% {
    transform: translateY(-1px) scale(1);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes atmsCertButtonLeaveShake {
  0% {
    transform: translateY(4px) scale(1.025);
  }

  22% {
    transform: translateY(-4px) scale(0.985);
  }

  46% {
    transform: translateY(2px) scale(1.006);
  }

  70% {
    transform: translateY(-1px) scale(1);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}