/* ===============================
   ATMS Students Work At Section
================================ */

.atms-students-work {
  width: 100%;
  background: #fdfff6;
  color: #5e5e5e;
  font-family: "Geist", Arial, sans-serif;
  padding: 70px 0 138px;
  margin: 0 !important;
  overflow: hidden;
  min-height: auto !important;
}

.atms-students-work *,
.atms-students-work *::before,
.atms-students-work *::after {
  box-sizing: border-box;
}

.atms-students-container {
  width: 100%;
  max-width: 1184px;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
}

/* ===============================
   Header
================================ */

.atms-students-header {
  margin: 0 0 48px;
  padding: 0;
}

.atms-students-header h2 {
  margin: 0 0 28px;
  color: #5e5e5e;
  font-family: "Geist", Arial, sans-serif;
  font-size: 39px;
  font-weight: 600;
  line-height: 43px;
  letter-spacing: 0;
}

.atms-students-header p {
  margin: 0;
  max-width: 1184px;
  color: #5e5e5e;
  font-family: "Geist", Arial, sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 33px;
  letter-spacing: 0;
}

/* ===============================
   Manual Logo Slider
================================ */

.atms-logo-slider {
  width: 100vw;
  height: 156px;
  margin-left: calc((1184px - 100vw) / 2);
  margin-bottom: 0 !important;
  padding: 0 !important;

  overflow-x: auto;
  overflow-y: hidden;

  cursor: grab;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.atms-logo-slider::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.atms-logo-slider.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.atms-logo-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 60px;

  width: max-content;
  height: 156px;

  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: calc((100vw - 1184px) / 2);
  padding-right: calc((100vw - 1184px) / 2);
  animation: logocard-scroll 42s linear infinite;
}

@keyframes logocard-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 26.5px));
  }
}

/* Pause logo auto-scroll on hover */
.atms-logo-track:hover {
  animation-play-state: paused;
}

/* ===============================
   Logo Card
================================ */

.atms-logo-card {
  width: 297px;
  height: 156px;
  flex: 0 0 297px;

  border-radius: 30px;
  background: transparent;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  margin: 0 !important;

  overflow: hidden;
  text-decoration: none !important;
  cursor: default;

  outline: none !important;
  box-shadow: none !important;

  transition:
    background-color 520ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 650ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 520ms ease;
}

.atms-logo-card:hover {
  background-color: #ffe331;
}

.atms-logo-card,
.atms-logo-card:hover,
.atms-logo-card:focus,
.atms-logo-card:active {
  text-decoration: none !important;
  outline: none !important;
}

.atms-logo-card img {
  display: block;
  width: 100%;
  height: 100%;

  max-width: none !important;
  max-height: none !important;

  object-fit: contain;
  object-position: center;

  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;

  pointer-events: none;

  transition:
    transform 650ms cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 520ms ease;
}

.atms-logo-card:hover img {
  transform: scale(1.0); 
}

/* Hide empty/broken logo cards */
.atms-logo-card:empty,
.atms-logo-card:not(:has(img)),
.atms-logo-card:has(img[src=""]),
.atms-logo-card:has(img:not([src])) {
  display: none !important;
}

/* Remove fallback pseudo elements */
.atms-logo-card::before,
.atms-logo-card::after {
  display: none !important;
  content: none !important;
}

/* ===============================
   Laptop
================================ */

@media (max-width: 1366px) {
  .atms-students-work {
    padding: 62px 0 86px;
  }

  .atms-students-container {
    max-width: 980px;
  }

  .atms-students-header {
    margin-bottom: 42px;
  }

  .atms-students-header h2 {
    font-size: 34px;
    line-height: 38px;
    margin-bottom: 24px;
  }

  .atms-students-header p {
    font-size: 17px;
    line-height: 29px;
  }

  .atms-logo-slider {
    height: 132px;
    margin-left: calc((980px - 100vw) / 2);
  }

  .atms-logo-track {
    height: 132px;
    gap: 48px;
    padding-left: calc((100vw - 980px) / 2);
    padding-right: calc((100vw - 980px) / 2);
  }

  .atms-logo-card {
    width: 250px;
    height: 132px;
    flex-basis: 250px;
    border-radius: 26px;
    padding: 0;
  }
}

/* ===============================
   Tablet
================================ */

@media (max-width: 991px) {
  .atms-students-work {
    padding: 56px 0 76px;
  }

  .atms-students-container {
    max-width: 720px;
  }

  .atms-students-header {
    margin-bottom: 36px;
  }

  .atms-students-header h2 {
    font-size: 32px;
    line-height: 36px;
    margin-bottom: 20px;
  }

  .atms-students-header p {
    font-size: 16px;
    line-height: 27px;
  }

  .atms-logo-slider {
    height: 122px;
    margin-left: calc((720px - 100vw) / 2);
  }

  .atms-logo-track {
    height: 122px;
    gap: 32px;
    padding-left: calc((100vw - 720px) / 2);
    padding-right: calc((100vw - 720px) / 2);
  }

  .atms-logo-card {
    width: 230px;
    height: 122px;
    flex-basis: 230px;
    border-radius: 24px;
    padding: 0;
  }
}

/* ===============================
   Mobile
================================ */

@media (max-width: 767px) {
  .atms-students-work {
    padding: 48px 0 62px;
  }

  .atms-students-container {
    max-width: none;
    padding: 0 20px;
  }

  .atms-students-header {
    margin-bottom: 30px;
  }

  .atms-students-header h2 {
    font-size: 28px;
    line-height: 32px;
    margin-bottom: 16px;
  }

  .atms-students-header p {
    font-size: 15px;
    line-height: 25px;
  }

  .atms-logo-slider {
    width: calc(100% + 40px);
    height: 112px;
    margin-left: -20px;
  }

  .atms-logo-track {
    height: 112px;
    gap: 20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .atms-logo-card {
    width: 210px;
    height: 112px;
    flex-basis: 210px;
    border-radius: 22px;
    padding: 0;
  }
}

/* ===============================
   Small Mobile
================================ */

@media (max-width: 480px) {
  .atms-students-work {
    padding: 42px 0 56px;
  }

  .atms-students-container {
    padding: 0 18px;
  }

  .atms-students-header {
    margin-bottom: 26px;
  }

  .atms-students-header h2 {
    font-size: 26px;
    line-height: 30px;
    margin-bottom: 14px;
  }

  .atms-students-header p {
    font-size: 14px;
    line-height: 24px;
  }

  .atms-logo-slider {
    width: calc(100% + 36px);
    height: 104px;
    margin-left: -18px;
  }

  .atms-logo-track {
    height: 104px;
    gap: 18px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .atms-logo-card {
    width: 190px;
    height: 104px;
    flex-basis: 190px;
    border-radius: 20px;
    padding: 0;
  }
}