.amr-page {
  color: #171d3c;
  background: #fff;
  font-family: var(--text-font, "Archivo", sans-serif);
  line-height: 1.7;
}

.amr-page .hero,
.amr-page .section-inner {
  width: min(1320px, 90%);
  margin: 0 auto;
}

.amr-page .hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 65px 0;
}

.amr-page h1,
.amr-page h2,
.amr-page h3 {
  font-family: var(--title-font, "Clash Display", sans-serif);
  font-weight: 500;
  color: inherit;
}

.amr-page h1 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.12;
  margin-bottom: 24px;
}

.amr-page h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
  margin-bottom: 24px;
}

.amr-page h3 {
  font-size: 25px;
  line-height: 1.3;
  margin-bottom: 18px;
}

.amr-page p {
  font-size: 16px;
  margin-bottom: 20px;
}

.amr-page .hero-copy > p:first-of-type {
  font-size: 19px;
}

.amr-page .eyebrow {
  display: block;
  color: #ff0000;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.amr-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #171d3c;
  color: #fff;
  border: 1px solid #171d3c;
  border-radius: 5px;
  padding: 12px 20px;
  margin: 10px 10px 0 0;
  text-decoration: none;
  font-size: 16px;
}

.amr-page .button:hover {
  background: #ff0000;
  border-color: #ff0000;
  color: #fff;
}

.amr-page a:focus-visible {
  outline: 3px solid #ff0000;
  outline-offset: 4px;
}

.amr-page .hero-visual {
  background: #f0f3f8;
  padding: 25px;
  text-align: center;
}

.amr-page .hero-visual > img {
  width: 100%;
  height: 350px;
  object-fit: contain;
}

.amr-page .visual-caption {
  display: block;
  font-size: 12px;
  color: #425877;
  margin-top: 15px;
}

.amr-page .strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px 70px;
  padding: 22px 5%;
  background: #171d3c;
  color: #fff;
  font-size: 14px;
}

.amr-page .section {
  padding: 65px 0;
}

.amr-page .section:nth-of-type(odd) {
  background: #f4f6f9;
}

.amr-page .section-heading {
  grid-column: 1 / -1;
}

.amr-page .section-1 .section-inner,
.amr-page .section-2 .section-inner,
.amr-page .section-4 .section-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

.amr-page .section-1 .section-inner {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.amr-page .section-inner > p {
  grid-column: 1 / -1;
}

.amr-page .item {
  padding: 30px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 5px;
}

.amr-page .section-1 .item {
  display: flex;
  flex-direction: column;
}

.amr-page .section-1 .item .button {
  margin-top: auto;
}

.amr-page .product {
  width: 100%;
  height: 230px;
  object-fit: contain;
  margin: 15px 0 25px;
}

.amr-page .section-2 article:last-child {
  grid-column: 1 / -1;
}

.amr-page li {
  margin-bottom: 8px;
}

.amr-page .section-3 .item,
.amr-page .section-6 .item {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 35px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #dce1e9;
  border-radius: 0;
  padding: 26px 0;
}

.amr-page .section-3 .item p,
.amr-page .section-6 .item p {
  margin: 0;
}

.amr-page .section-5 {
  background: #171d3c !important;
  color: #fff;
}

.amr-page .section-7 {
  text-align: center;
}

.amr-page .section-7 .section-inner {
  max-width: 900px;
}

@media (max-width: 991px) {
  .amr-page .hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .amr-page .section-1 .section-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .amr-page .hero,
  .amr-page .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .amr-page .section-2 .section-inner,
  .amr-page .section-4 .section-inner,
  .amr-page .section-3 .item,
  .amr-page .section-6 .item {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .amr-page .hero-visual > img {
    height: 250px;
  }
}

/* Hero banner and product cards. */
.amr-page .hero {
  width: 100%;
  padding: 75px max(5%, calc((100% - 1320px) / 2));
  grid-template-columns: 1fr;
  background:
    linear-gradient(90deg, rgba(23, 29, 60, 0.95), rgba(23, 29, 60, 0.65)),
    url("../images/AMR-AGV/banner.webp") center / cover;
  color: #fff;
}

.amr-page .hero-copy {
  max-width: 850px;
}

.amr-page .hero-visual {
  display: none;
}

.amr-page .hero .button {
  background: #fff;
  color: #171d3c;
  border-color: #fff;
}

.amr-page .hero .button:last-child {
  background: transparent;
  color: #fff;
}

.amr-page .section-1 .section-heading,
.amr-page .section-1 .section-inner > p {
  text-align: center;
}

/* Rounded arrow outline matching the supplied button reference. */
.amr-page .button .button-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 29px;
  border: none;
  border-radius: 11px 15px 15px 15px;
}

.amr-page .button .button-arrow::before {
  content: "";
  display: block;
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateX(-2px) rotate(45deg);
}

/* Keep supporting sections in the site container and the hero full width. */
.amr-page .amr-content-container {
  margin-top: 32px;
  padding-left: 0;
  padding-right: 0;
}

.amr-page .hero,
.amr-page .section-inner {
  width: 100%;
  max-width: none;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 575px) {
  .amr-page .hero,
  .amr-page .section-inner,
  .amr-page .strip {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.amr-page .hero {
  padding-left: max(24px, calc((100% - 1092px) / 2));
  padding-right: max(24px, calc((100% - 1092px) / 2));
}

@media (max-width: 575px) {
  .amr-page .hero {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.amr-page .section-3 .item:last-child {
  border-bottom: 0;
}

/* Compact product actions with a single-line label and a close-set arrow. */
.amr-page .section-1 .item .button {
  align-self: flex-start;
  justify-content: space-between;
  max-width: 100%;
  gap: 12px;
  padding: 12px 16px;
  margin-right: 0;
  white-space: nowrap;
  font-size: 16px;
}

.amr-page .section-1 .item .button .button-arrow {
  flex: 0 0 16px;
  width: 16px;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .amr-page .section-1 .item .button {
    font-size: 14px;
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Equal visible space before the label and after the chevron. */
.amr-page .section-1 .item .button .button-arrow {
  flex-basis: 11px;
  width: 11px;
  height: 11px;
  position: relative;
}

.amr-page .section-1 .item .button .button-arrow::before {
  position: absolute;
  width: 8px;
  height: 8px;
  top: 50%;
  right: 2px;
  transform: translateY(-50%) rotate(45deg);
}

.amr-page .section-1 .item .button {
  padding-left: 16px;
  padding-right: 16px;
  justify-content: center;
  gap: 12px;
}

.amr-page .product-button-chevron {
  display: block;
  flex: 0 0 8px;
  margin: 0;
}

/* Tighter spacing throughout the AMR / AGV comparison. */
.amr-page .section-2 .section-inner {
  gap: 16px;
}

.amr-page .section-2 .section-heading h2 {
  margin-bottom: 0;
}

.amr-page .section-2 .section-inner > p {
  margin-bottom: 4px;
}

.amr-page .section-2 .item {
  padding: 24px;
}

.amr-page .section-2 .item > :last-child {
  margin-bottom: 0;
}

.amr-page .section-3 .item .button {
  justify-self: start;
  justify-content: center;
  gap: 12px;
  padding-left: 20px;
  padding-right: 20px;
  margin-right: 0;
}

.amr-page .application-button-chevron {
  display: block;
  flex: 0 0 8px;
  margin: 0;
}

/* Compact integration section spacing and balanced action padding. */
.amr-page .section-4 .section-inner {
  gap: 16px;
}

.amr-page .section-4 .section-heading h2 {
  margin-bottom: 0;
}

.amr-page .section-4 .section-inner > p {
  margin-bottom: 4px;
}

.amr-page .section-4 .item {
  padding: 24px;
}

.amr-page .section-4 .item > :last-child {
  margin-bottom: 0;
}

.amr-page .section-4 .button {
  justify-content: center;
  gap: 12px;
  padding-left: 20px;
  padding-right: 20px;
  margin-right: 0;
}

.amr-page .integration-button-chevron {
  display: block;
  flex: 0 0 8px;
  margin: 0;
}

/* One consistent action treatment across every section. */
.amr-page .button,
.amr-page .section-1 .item .button,
.amr-page .section-3 .item .button,
.amr-page .section-4 .button {
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

.amr-page .button .amr-button-chevron {
  display: block;
  width: 8px;
  height: 12px;
  flex: 0 0 8px;
  margin: 0;
  border: 0;
}

/* Keep the solution introduction close to its product cards. */
.amr-page .section-1 .section-inner {
  row-gap: 16px;
}

.amr-page .section-1 .section-heading h2 {
  margin-bottom: 0;
}

.amr-page .section-1 .section-inner > p {
  margin-bottom: 0;
}

/* Share heading, description and action rows between integration cards. */
.amr-page .section-4 .item {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 16px;
  align-content: start;
}

.amr-page .section-4 .item h3,
.amr-page .section-4 .item p,
.amr-page .section-4 .item .button {
  margin-top: 0;
  margin-bottom: 0;
}

.amr-page .section-4 .item .button {
  align-self: start;
  justify-self: start;
}

@media (max-width: 575px) {
  .amr-page .section-4 .item {
    grid-row: auto;
    grid-template-rows: none;
  }
}

/* Equal-width mobile actions within each content area. */
@media (max-width: 575px) {
  .amr-page .button,
  .amr-page .section-1 .item .button,
  .amr-page .section-3 .item .button,
  .amr-page .section-4 .button {
    width: 100%;
    margin-right: 0;
    justify-content: center;
  }
}

/* Compact application items on mobile. */
@media (max-width: 575px) {
  .amr-page .section-3 .item {
    gap: 8px;
    padding: 18px 0;
  }

  .amr-page .section-3 .item h3 {
    margin-bottom: 0;
  }
}

/* Button and card hover transitions. */
@media (prefers-reduced-motion: no-preference) {
  .amr-page .button {
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease;
  }

  .amr-page .button .amr-button-chevron {
    transition: transform 0.2s ease;
  }

  .amr-page .button:hover .amr-button-chevron {
    transform: translateX(3px);
  }

  .amr-page .section-1 .item,
  .amr-page .section-2 .item,
  .amr-page .section-4 .item {
    transition:
      box-shadow 0.25s ease,
      border-color 0.25s ease;
  }

  .amr-page .button:hover {
    box-shadow: 0 5px 14px rgba(23, 29, 60, 0.15);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .amr-page .section-1 .item:hover,
  .amr-page .section-2 .item:hover,
  .amr-page .section-4 .item:hover {
    border-color: #b4bfd0;
    box-shadow: 0 10px 28px rgba(23, 29, 60, 0.09);
  }
}

/* Tighter product cards without cropping product images. */
.amr-page .section-1 .section-inner {
  column-gap: 16px;
}

.amr-page .section-1 .item {
  padding: 20px;
}

.amr-page .section-1 .item h3 {
  margin-bottom: 8px;
}

.amr-page .section-1 .product {
  margin-top: 8px;
  margin-bottom: 12px;
}

.amr-page .section-2 .solution-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 28%);
  align-items: center;
  gap: 32px;
}

.amr-page .solution-choice-copy > :last-child {
  margin-bottom: 0;
}

.amr-page .solution-choice-visual {
  width: 100%;
  max-width: 300px;
  justify-self: center;
}

@media (max-width: 767px) {
  .amr-page .section-2 .solution-choice {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .amr-page .solution-choice-visual {
    max-width: 200px;
    grid-row: 1;
  }
}

/* Application cards: image, heading, then description. */
.amr-page .section-3 .section-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.amr-page .section-3 .application-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce1e9;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(23, 29, 60, 0.04);
}

.amr-page .section-3 .application-card:last-child {
  border-bottom: 1px solid #dce1e9;
}

.amr-page .application-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.amr-page .section-3 .application-card h3 {
  margin: 0;
  padding: 24px 24px 12px;
}

.amr-page .section-3 .application-card p {
  margin: 0;
  padding: 0 24px 26px;
}

.amr-page .application-action {
  grid-column: 1 / -1;
  text-align: center;
}

@media (max-width: 1199px) {
  .amr-page .section-3 .section-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .amr-page .section-3 .section-inner {
    grid-template-columns: 1fr;
  }
}

.amr-page .section-4 .item {
  grid-row: span 5;
}

.amr-page .section-4 .software-card-logo {
  display: block;
  width: min(240px, 100%);
  height: 90px;
  object-fit: contain;
  object-position: center;
  justify-self: center;
}

/* Native keyboard-accessible expand / collapse FAQs. */
.amr-page .section-6 details.faq-item {
  display: block;
  padding: 0;
}

.amr-page .section-6 .faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--title-font, "Clash Display", sans-serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.4;
}

.amr-page .faq-item summary::-webkit-details-marker {
  display: none;
}

.amr-page .faq-item summary::after {
  content: "+";
  flex: 0 0 24px;
  text-align: center;
  font-family: sans-serif;
  font-size: 24px;
}

.amr-page .faq-item[open] summary::after {
  content: "\2212";
}

.amr-page .faq-item summary:focus-visible {
  outline: 2px solid #171d3c;
  outline-offset: 3px;
}

.amr-page .faq-item .faq-answer {
  padding: 0 44px 20px 0;
}

.amr-page .faq-item .faq-answer p {
  margin: 0;
}

@media (max-width: 575px) {
  .amr-page .section-6 .faq-item summary {
    font-size: 18px;
    padding: 16px 0;
  }

  .amr-page .faq-item .faq-answer {
    padding-right: 0;
  }
}

.amr-page .section-6 .faq-item summary {
  padding: 14px 0;
}

.amr-page .faq-item .faq-answer {
  padding-bottom: 14px;
}

.amr-page .faq-item[open] summary {
  padding-bottom: 8px;
}

/* FAQ cards and expanded state. */
.amr-page .section-6 .section-heading {
  margin-bottom: 24px;
}

.amr-page .section-6 details.faq-item {
  margin-bottom: 12px;
  border: 1px solid #dce1e9;
  border-radius: 8px;
  background: #fff;
}

.amr-page .section-6 .faq-item summary {
  padding: 18px 20px;
  font-size: 20px;
  border-radius: 8px;
}

.amr-page .section-6 .faq-item[open] summary {
  padding-bottom: 18px;
  background: #edf1f8;
  color: #171d3c;
  border-radius: 8px 8px 0 0;
}

.amr-page .faq-item summary::after {
  content: "";
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin: -4px 4px 0 8px;
}

.amr-page .faq-item[open] summary::after {
  content: "";
  transform: rotate(225deg);
  margin-top: 4px;
}

.amr-page .faq-item .faq-answer {
  padding: 14px 20px 18px;
}

@media (prefers-reduced-motion: no-preference) {
  .amr-page .faq-item summary::after {
    transition: transform 0.24s ease;
  }
}

@media (max-width: 575px) {
  .amr-page .section-6 .faq-item summary {
    padding: 14px 16px;
    font-size: 18px;
    gap: 16px;
  }

  .amr-page .section-6 .faq-item[open] summary {
    padding-bottom: 14px;
  }

  .amr-page .faq-item .faq-answer {
    padding: 12px 16px 16px;
  }
}

.amr-page h2.sub-title {
  color: #ff4824;
}

.amr-page .section-1 .item .product {
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #dce1e9;
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 3px 10px rgba(23, 29, 60, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.amr-page #consultation .section-inner {
  display: grid;
  grid-template-columns: 1fr;
  max-width: none;
  text-align: center;
}

.amr-page .cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(24px, 3vw, 36px) clamp(20px, 4vw, 48px);
  background: #171d3c;
  color: #fff;
  border: 1px solid #171d3c;
  border-radius: 20px;
  text-align: center;
}

.amr-page .cta-card .section-heading {
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.amr-page .cta-card h2 {
  color: #fff;
  font-size: clamp(24px, 2.5vw, 32px);
}

.amr-page .cta-card p {
  max-width: 720px;
  margin: 0 auto 24px;
}

.amr-page .cta-card .button {
  margin: 0;
  background: #ff0000;
  border-color: #ff0000;
  color: #fff;
}

.amr-page .cta-card .button:hover {
  background: #d90000;
  border-color: #d90000;
}

@media (max-width: 767px) {
  .amr-page #consultation .section-inner {
    grid-template-columns: 1fr;
  }
}

.amr-robot-products .owl-carousel .owl-item > div {
  padding: 4px 6px 10px;
}

.amr-robot-products .robot-carousel-outer {
  position: relative;
  padding: 0 60px;
}

.amr-robot-products .owl-theme .owl-nav {
  position: absolute;
  top: 40%;
  width: 100%;
  left: 0;
  transform: translateY(-50%);
  display: flex !important;
  justify-content: space-between;
  margin: 0 !important;
}

.amr-robot-products .owl-theme .owl-nav [class*="owl-"] {
  background: #1e3a6e !important;
  border: 2px solid rgba(74, 158, 255, 0.4) !important;
  color: #fff !important;
  width: 42px;
  height: 42px;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 10;
  transition: all 0.2s ease;
}

.amr-robot-products .owl-carousel .owl-nav button.owl-prev {
  left: -50px;
  background: #fff !important;
  color: #171d3c !important;
  border-color: #fff !important;
}

.amr-robot-products .owl-carousel .owl-nav button.owl-next {
  right: -50px;
  background: #fff !important;
  color: #171d3c !important;
  border-color: #fff !important;
}

.amr-robot-products .owl-theme .owl-nav [class*="owl-"]:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  transform: scale(1.1);
}

.amr-robot-products .owl-theme .owl-nav .disabled {
  opacity: 0.3 !important;
  cursor: not-allowed;
}

.amr-robot-products .owl-theme .owl-dots {
  margin-top: 20px !important;
}

.amr-robot-products .owl-theme .owl-dots .owl-dot {
  background: rgba(255, 255, 255, 0.5) !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50%;
  margin: 5px 7px !important;
}

.amr-robot-products .owl-theme .owl-dots .owl-dot.active {
  background: #fff !important;
  width: 24px !important;
  border-radius: 4px;
}

.amr-robot-products .owl-theme .owl-dots .owl-dot span,
.amr-robot-products .owl-theme .owl-dots .owl-dot.active span,
.amr-robot-products .owl-theme .owl-dots .owl-dot:hover span {
  visibility: hidden;
}

.amr-robot-products .home-products-card:hover .robot-product-img-div,
.amr-robot-products .home-products-card:focus .robot-product-img-div {
  background: #1b2880;
}

.amr-robot-products .home-products-card:hover .robot-product-cardbody {
  background: #767eb3;
}

@media (max-width: 575px) {
  .amr-robot-products .robot-carousel-outer {
    padding: 0 36px;
  }

  .amr-robot-products .owl-carousel .owl-nav button.owl-prev {
    left: -35px;
  }

  .amr-robot-products .owl-carousel .owl-nav button.owl-next {
    right: -35px;
  }
}

.amr-robot-products {
  background: #171d3c;
  padding: 60px 0 40px;
  color: #fff;
}
.amr-robot-products .robot-card-text {
  font-size: 16px;
  margin-bottom: 0;
}
