/* Home page only: keep content in flow and visible at every viewport size. */
.ags-home .wow {
  visibility: visible !important;
}

.ags-home .main .row>*,
.ags-home .footer .row>* {
  min-width: 0;
}

.ags-home .main p,
.ags-home .main h1,
.ags-home .main h2,
.ags-home .main h3,
.ags-home .main h4,
.ags-home .main h5,
.ags-home .main a {
  overflow-wrap: anywhere;
}

.ags-home .main img {
  max-width: 100%;
}

.ags-home .main iframe {
  max-width: 100%;
}

.ags-home .main [id] {
  scroll-margin-top: 100px;
}

.ags-home,
.ags-home body,
.ags-home .main,
.ags-home .footer {
  max-width: 100%;
  overflow-x: hidden;
}

.ags-home .bg-2 .swiper-container {
  overflow: hidden;
}

.ags-home .bg-2 .swiper-wrapper {
  align-items: center;
}

.ags-home .bg-2 .swiper-slide {
  display: flex;
  min-width: 0;
  justify-content: center;
  align-items: center;
}

.ags-home .bg-2 .swiper-slide img {
  display: block;
  width: min(100%, 112px);
  height: 76px;
  object-fit: contain;
}

.ags-home .cardGrid {
  padding-bottom: 0;
  height: auto;
}

.ags-home .cardGrid .cardInfo {
  position: static;
  width: 100%;
}

.ags-home .swiper-slide {
  height: auto;
}

.ags-home .card-testimonial-grid .box-author {
  align-items: flex-start;
}

.ags-home .card-testimonial-grid .author-info {
  min-width: 0;
}

.ags-home .card-blog-grid .card-info>.d-flex {
  flex-wrap: wrap;
  gap: 12px;
}

.ags-home .box-get-quote {
  gap: 24px;
}

.ags-home .get-quote-left {
  min-width: 0;
}

.ags-home .bg-get-quote {
  position: relative;
  clear: both;
}

/* Keep the full desktop navigation on one line at laptop widths, including
   1280px and 1440px MacBook Air viewports. */
@media (min-width: 1200px) {
  .ags-home .header .main-header,
  .ags-home .header .main-header .header-left {
    min-width: 0;
  }

  .ags-home .header .main-header .header-left .header-nav {
    min-width: 0;
  }

  .ags-home .header .nav-main-menu > .main-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .ags-home .header .nav-main-menu > .main-menu > li {
    float: none;
    flex: 0 0 auto;
  }

  .ags-home .header .nav-main-menu > .main-menu > li > a {
    white-space: nowrap;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .ags-home .header .container {
    max-width: 1180px;
  }

  .ags-home .header .main-header .header-left .header-logo {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
  }

  .ags-home .header .main-header .header-left .header-logo img {
    width: 100%;
    height: auto;
  }

  .ags-home .header .main-header .header-left .header-nav {
    padding-left: 22px;
  }

  .ags-home .header .nav-main-menu > .main-menu > li {
    padding-right: 4px;
  }

  .ags-home .header .nav-main-menu > .main-menu > li > a {
    padding-right: 11px;
    padding-left: 9px;
    font-size: 14px;
  }
}

@media (max-width: 1199.98px) {
  .ags-home .header .main-header .header-left .header-nav {
    padding-left: 0;
    width: auto;
  }

  .ags-home .header .main-header .header-left .header-logo {
    min-width: 0;
    max-width: 170px;
  }

  .ags-home .header .main-header .header-left .header-right {
    min-width: 0;
    width: auto;
    margin-left: auto;
    margin-right: 45px;
  }

  .ags-home .mobile-header-wrapper-style {
    width: min(380px, 100vw);
  }
}

@media (max-width: 991.98px) {

  /* No reveal-animation dependency on touch devices or after viewport rotation. */
  .ags-home .wow {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .ags-home .banner-1 {
    height: auto;
    min-height: 560px;
    padding: 75px 0 95px;
  }

  .ags-home .banner-1 h1 {
    font-size: clamp(32px, 5.5vw, 52px);
    line-height: 1.18;
  }

  .ags-home .banner-1 .box-button {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
  }

  .ags-home .banner-1 .box-button>a {
    margin-right: 0 !important;
  }

  .ags-home .box-info-bottom-img {
    position: static;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px;
  }

  .ags-home .box-info-bottom-img .info-play {
    min-width: 0;
    flex: 1 1 220px;
  }

  .ags-home .box-info-bottom-img .image-play {
    flex-shrink: 0;
  }

  .ags-home .box-slide-customers {
    padding-left: 16px !important;
    padding-right: 16px;
  }

  .ags-home .bg-customers-say::before {
    pointer-events: none;
  }

  .ags-home .box-form-contact-leading {
    padding: 32px 24px;
    margin-top: 16px;
  }

  .ags-home .box-image-contact {
    max-width: 400px;
    margin: 24px auto 0;
  }

  .ags-home .box-image-contact::before {
    right: 0;
  }

  .ags-home .box-bg-leading {
    height: 100%;
  }

  .ags-home .box-get-quote {
    flex-direction: column;
    align-items: flex-start;
  }

  .ags-home .get-quote-left {
    margin-bottom: 0;
  }

  .ags-home .get-quote-right {
    min-width: 0;
    max-width: 100%;
    width: auto;
  }

  .ags-home .box-map iframe {
    display: block;
    width: 100%;
    height: 350px;
  }

  .ags-home .map-info {
    position: static;
    max-width: none;
    margin: 0;
    padding: 28px 24px;
    display: none;
  }

  .ags-home .map-info a {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 767.98px) {
  .ags-home .bg-2 .row {
    display: block;
  }

  .ags-home .bg-2 .row > .col-lg-3,
  .ags-home .bg-2 .row > .col-lg-9 {
    width: 100%;
    max-width: 100%;
  }

  .ags-home .bg-2 .row > .col-lg-3 {
    margin-bottom: 20px !important;
  }

  .ags-home .bg-2 .font-2xl-bold {
    font-size: 25px !important;
    line-height: 1.3;
  }

  .ags-home .bg-2 .swiper-container {
    padding-bottom: 8px;
  }

  .ags-home .bg-2 .swiper-group-6 {
    touch-action: pan-y;
  }

  .ags-home .bg-2 .swiper-group-6 .swiper-wrapper {
    display: flex;
  }

  .ags-home .main>.section {
    margin-top: 48px !important;
    margin-bottom: 0 !important;
  }

  .ags-home .main>.section:first-child {
    margin-top: 0 !important;
  }

  .ags-home .main>.section[class*="pt-"],
  .ags-home .main>.section.bg-customers-say {
    padding-top: 48px !important;
  }

  .ags-home .main>.section[class*="pb-"],
  .ags-home .main>.section.bg-customers-say {
    padding-bottom: 48px !important;
  }

  .ags-home .main h2 {
    font-size: clamp(26px, 6.5vw, 36px);
    line-height: 1.25;
  }

  .ags-home .main h3 {
    font-size: 26px;
    line-height: 1.3;
  }

  .ags-home .main h4 {
    font-size: 23px;
    line-height: 1.35;
  }

  .ags-home .main .font-3xl {
    font-size: 22px !important;
    line-height: 1.4 !important;
  }

  .ags-home .main .font-lg {
    font-size: 18px !important;
    line-height: 1.6 !important;
  }

  .ags-home .title-favicon {
    padding-left: 46px;
    background-size: 34px 30px;
  }

  .ags-home .box-images .image-2 {
    right: 0;
  }

  .ags-home .list-ticks {
    display: flex;
    flex-wrap: wrap;
  }

  .ags-home .list-ticks li {
    width: 100%;
  }

  .ags-home .list-how-works li {
    align-items: flex-start;
  }

  .ags-home .list-how-works li .image-how {
    min-width: 64px;
    max-width: 64px;
    margin-right: 16px;
  }

  .ags-home .list-how-works li .image-how .img {
    width: 64px;
    height: 64px;
    line-height: 64px;
  }

  .ags-home .list-how-works li .image-how .img img {
    width: 42px;
    height: 42px;
  }

  .ags-home .list-how-works li .image-how::before {
    left: 31px;
  }

  .ags-home .cardGrid .cardInfo,
  .ags-home .card-blog-grid .card-info {
    padding: 22px 18px;
  }

  .ags-home .card-testimonial-grid {
    padding: 24px 18px;
  }

  .ags-home .card-testimonial-grid .author-name {
    font-size: 20px !important;
  }

  .ags-home .card-testimonial-grid .card-bottom-info {
    flex-wrap: wrap;
    gap: 12px;
  }

  .ags-home .box-form-contact-leading {
    padding: 28px 16px;
  }

  .ags-home .form-control {
    font-size: 16px;
    width: 100%;
    min-width: 0;
  }

  .ags-home textarea.form-control {
    min-height: 160px;
  }

  .ags-home #enquiry .col-lg-12:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }

  .ags-home #enquiry .col-lg-12:last-child>a {
    margin-right: 0 !important;
  }

  .ags-home .accordion .accordion-button {
    font-size: 18px;
    line-height: 1.45;
    padding: 18px 16px;
  }

  .ags-home .accordion .accordion-button::after {
    flex-shrink: 0;
    margin-left: 12px;
  }

  .ags-home .accordion .accordion-body {
    padding: 18px 16px;
    overflow-wrap: anywhere;
  }

  .ags-home .bg-get-quote .btn-get-quote {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    white-space: normal;
  }

  .ags-home #jute-ordering .box-button-sliders {
    margin-top: 24px;
  }

  .ags-home .box-map iframe {
    height: 300px;
  }

  .ags-home .ags-footer .menu-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
  }

  .ags-home .ags-footer .menu-bottom li {
    margin: 0;
  }
}

@media (max-width: 575.98px) {
  .ags-home .bg-2 .swiper-group-6 .swiper-slide img {
    width: 92px;
    height: 70px;
  }

  .ags-home .banner-1 {
    min-height: 0;
    padding: 56px 0 90px;
  }

  .ags-home .header .main-header .header-left .header-logo {
    max-width: 140px;
  }

  .ags-home .header .main-header .header-left .header-logo img {
    width: 100%;
    height: auto;
  }

  .ags-home .main .btn {
    max-width: 100%;
    white-space: normal;
  }

  .ags-home .cardLeadingCompany {
    display: block;
    margin-bottom: 16px;
  }

  .ags-home .bg-leading-company>.container>.row>.col-lg-3 {
    width: 50%;
  }

  .ags-home .cardLeadingCompany .font-lg {
    font-size: 15px !important;
  }

  .ags-home .bg-faqs .box-accordion>.mt-20 {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }

  .ags-home .bg-faqs .box-accordion>.mt-20>a {
    margin-right: 0 !important;
  }

  .ags-home #jute-ordering .swiper-button-next,
  .ags-home #jute-ordering .swiper-button-prev {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ags-home .wow {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
/* Legal services and EXIM category tabs. */
.ags-home .footer .ags-expertise-link {
  position: relative;
  display: block;
  overflow: visible;
}

.ags-home .footer .ags-expertise-link:hover,
.ags-home .footer .ags-expertise-link:focus {
  z-index: 10;
}

.ags-home .footer .ags-expertise-link img {
  border-radius: 8px;
}

.ags-home .ags-expertise-name {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: 150px;
  padding: 9px 12px;
  border-radius: 6px;
  background: #ffbf00;
  color: #152742;
  box-shadow: 0 4px 16px rgb(0 0 0 / 20%);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.ags-home .ags-expertise-link:hover .ags-expertise-name,
.ags-home .ags-expertise-link:focus .ags-expertise-name {
  visibility: visible;
  opacity: 1;
}

.ags-home .ags-expertise-link:focus-visible {
  outline: 2px solid #ffbf00;
  outline-offset: 3px;
}

.ags-home .list-imgs li:nth-child(3n) .ags-expertise-name {
  left: auto;
  right: 0;
  transform: none;
}

.ags-home .list-imgs li:nth-child(3n + 1) .ags-expertise-name {
  left: 0;
  transform: none;
}

.ags-home .ags-enquiry-forms label {
  display: block;
  margin-bottom: 8px;
  color: #034b62;
  font-size: 14px;
  font-weight: 600;
}

.ags-home .ags-enquiry-forms textarea { min-height: 130px; }

.ags-home .ags-enquiry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.ags-home .ags-service-tabs.ags-product-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.ags-home .ags-product-tabs .ags-service-tab {
  min-width: 0;
  padding: 16px 20px;
  line-height: 1.5;
}

@media (max-width: 575.98px) {
  .ags-home .ags-service-tabs.ags-product-tabs {
    grid-template-columns: 1fr;
  }
}

.ags-home .ags-product-feature {
  overflow: hidden;
  background: #fff;
  border-bottom: 6px solid #ffbf00;
  box-shadow: 0 8px 32px rgb(21 39 66 / 9%);
}

.ags-home .ags-product-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: right center;
}

.ags-home .ags-product-copy {
  padding: clamp(24px, 4vw, 50px);
}

.ags-home .ags-product-copy h3 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
}

.ags-home .ags-product-details {
  margin: 24px 0;
  padding-left: 20px;
  list-style: disc;
  color: #526575;
}

.ags-home .ags-product-details li { margin-bottom: 12px; }

@media (max-width: 991.98px) {
  .ags-home .ags-product-photo {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

.ags-home .ags-process-tabs {
  margin-left: auto;
  margin-right: auto;
}

.ags-home .ags-process-products {
  display: grid;
  gap: 24px;
}

.ags-home .ags-process-products figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #152742;
}

.ags-home .ags-process-products img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.4 / 1;
  object-fit: cover;
  object-position: right center;
}

.ags-home .ags-process-products figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 30px 24px 18px;
  background: linear-gradient(transparent, rgb(8 22 39 / 90%));
  color: white;
  font-size: 22px;
  font-weight: 700;
}

.ags-home .ags-exim-process {
  list-style: none;
}

.ags-home .list-how-works .ags-process-number {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #152742;
  border-radius: 16px;
  color: #e1b367;
  font-size: 28px;
  font-weight: 700;
}

.ags-home .ags-service-tabs {
  display: flex;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  margin-bottom: 32px;
  background: #eef3f5;
  border-radius: 10px;
}

.ags-home .ags-service-tab {
  border: 0;
  border-radius: 6px;
  padding: 14px 30px;
  background: transparent;
  color: #034b62;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ags-home .ags-service-tab.active {
  background: #ffbf00;
  color: #152742;
  box-shadow: 0 3px 10px rgb(21 39 66 / 10%);
}

.ags-home .ags-service-tab:focus-visible {
  outline: 3px solid #034b62;
  outline-offset: 3px;
}

.ags-home .ags-exim-card {
  height: 100%;
  overflow: hidden;
  background: #fff;
  border-bottom: 6px solid #ffbf00;
  box-shadow: 0 8px 32px rgb(21 39 66 / 9%);
  display: flex;
  flex-direction: column;
}

.ags-home .ags-exim-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: right center;
}

.ags-home .ags-exim-card-body {
  padding: clamp(22px, 3vw, 40px);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ags-home .ags-exim-label {
  color: #526575;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.ags-home .ags-exim-card h3 {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.25;
}

.ags-home .ags-exim-card-body > .font-sm {
  margin-bottom: 26px;
}

.ags-home .ags-exim-card-body > .btn {
  margin-top: auto;
  white-space: normal;
  text-align: left;
}

@media (max-width: 575.98px) {
  .ags-home .ags-service-tabs { width: 100%; }
  .ags-home .ags-service-tab { flex: 1; padding: 12px 16px; }
}
