/* ===============================
   ATMS Blog + FAQ Section
================================ */

.atms-blog-faq {
  width: 100%;
  background: #035695;
  color: #ffffff;
  font-family: "Geist", Arial, sans-serif;
  padding: 121px 0 120px;
  margin: 0;
  overflow: hidden;
}

.atms-blog-faq *,
.atms-blog-faq *::before,
.atms-blog-faq *::after {
  box-sizing: border-box;
}

.atms-blog-faq-container {
  width: 100%;
  max-width: 1184px;
  margin: 0 auto;
}

/* ===============================
   Blog Title
================================ */

.atms-blog-section-title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;

  margin: 0 0 72px !important;
  padding: 0 !important;

  color: #ffffff !important;
  font-family: "Geist", Arial, sans-serif !important;
  font-size: 39px !important;
  font-weight: 600 !important;
  line-height: 33px !important;
  letter-spacing: 0 !important;

  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.atms-blog-section-title:hover {
  color: #ffffff;
  text-decoration: none !important;
  background: transparent !important;
}

/* ===============================
   Blog Grid
================================ */

.atms-blog-grid {
  display: grid;
  grid-template-columns: 470px 340px 340px;
  grid-template-rows: 282px 282px;
  gap: 14px 16px;
  width: 100%;
  max-width: 1184px;
}

.atms-blog-card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;

  background-image: var(--blog-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent !important;

  border-radius: 50px !important;
  overflow: hidden;
  text-decoration: none !important;
  color: #ffffff;
  isolation: isolate;

  border: 0 !important;
  box-shadow: none !important;

  transform: translateZ(0);
}

.atms-blog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.15) 42%,
      rgba(0, 0, 0, 0.84) 100%
    );
  pointer-events: none;
}

.atms-blog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image: var(--blog-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform: scale(1);
  filter: brightness(1);
  transform-origin: center center;

  transition:
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.2s ease;

  will-change: transform;
}

.atms-blog-card:hover::after {
  transform: scale(1.20);
  filter: brightness(1.04);
}

.atms-blog-card-large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

/* remove any theme/Elementor white overlay */
.atms-blog-card img,
.atms-blog-card picture,
.atms-blog-card .wp-post-image,
.atms-blog-card .elementor-widget-container,
.atms-blog-card .elementor-background-overlay {
  display: none !important;
}

.atms-blog-badge {
  position: absolute;
  top: 34px;
  right: 34px;
  z-index: 3;

  min-width: 78px;
  height: 44px;
  padding: 0 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;
  background: #d60000 !important;
  color: #ffffff;

  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.atms-blog-card-content {
  position: absolute;
  left: 34px;
  right: 28px;
  bottom: 34px;
  z-index: 3;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.atms-blog-card-content h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 27px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: 0;
  text-decoration: none !important;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.atms-blog-card-content p {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 300;
  line-height: 30px;
  letter-spacing: 0;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.atms-blog-card:not(.atms-blog-card-large) .atms-blog-card-content {
  left: 36px;
  right: 26px;
  bottom: 36px;
}

.atms-blog-card:not(.atms-blog-card-large) .atms-blog-card-content h3 {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 27px;
  -webkit-line-clamp: 3;
}

.atms-blog-card:not(.atms-blog-card-large) .atms-blog-card-content p {
  font-size: 16px;
  line-height: 22px;
  -webkit-line-clamp: 2;
}

/* ===============================
   Explore Blog Button
================================ */

.atms-blog-explore {
  grid-column: 3 / 4;
  grid-row: 2 / 3;

  width: 340px;
  height: 96px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;

  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50px;

  background: transparent;
  color: #ffffff;

  font-size: 27px;
  font-weight: 700;
  line-height: 34px;
  text-decoration: none !important;

  transition:
    width 800ms cubic-bezier(0.34, 1.56, 0.64, 1),
    height 800ms cubic-bezier(0.34, 1.56, 0.64, 1),
    background 500ms ease,
    color 500ms ease,
    border-color 500ms ease,
    transform 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.atms-blog-explore:hover {
  width: 340px;
  height: 282px;
  background: #ffe331;
  color: #5e5e5e;
  border-color: #ffe331;
  transform: translateY(-1px);
}

/* ===============================
   FAQs
================================ */

.atms-faqs {
  margin-top: 96px;
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.atms-faq-title {
  margin: 0 0 66px;
  padding: 0;

  color: #ffffff !important;
  font-family: "Geist", Arial, sans-serif;
  font-size: 39px;
  font-weight: 600;
  line-height: 33px;
  letter-spacing: 0;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.atms-faq-list {
  width: 100%;
  margin: 0;
  padding: 0;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.atms-faq-item {
  width: 100%;
  margin: 0;
  padding: 0;

  position: relative;
  overflow: hidden;

  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow: none !important;
  outline: none !important;

  color: #ffffff;
}

.atms-faq-question {
  width: 100%;
  min-height: 92px;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  margin: 0;
  padding: 0 56px 0 0;

  color: #ffffff;
  cursor: pointer;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.atms-faq-question span:first-child {
  display: block;
  width: 100%;

  color: #ffffff !important;
  font-family: "Geist", Arial, sans-serif;
  font-size: 31px;
  font-weight: 400;
  line-height: 45px;
  letter-spacing: 0;

  background: transparent !important;
  border: 0 !important;
  text-decoration: none !important;
}

/* ===============================
   FAQ Arrow Movement
   Same movement as Why Choose
================================ */

.atms-faq-icon {
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;

  width: 26px !important;
  height: 22px !important;

  display: block !important;
  overflow: visible !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;

  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center center;

  transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.atms-faq-icon::before,
.atms-faq-icon::after {
  content: "";
  position: absolute;
  top: 10px;

  width: 14px;
  height: 2px;

  background: #ffffff;
  border-radius: 10px;

  transform-origin: center center;
}

.atms-faq-icon::before {
  left: 2px;
  transform: rotate(45deg);
}

.atms-faq-icon::after {
  right: 2px;
  transform: rotate(-45deg);
}

/* closed arrow visual = right chevron */
.atms-faq-item:not(:hover):not(.is-open) .atms-faq-icon {
  transform: translateY(-50%) rotate(-90deg);
}

/* hover/open arrow visual = down chevron */
.atms-faq-item:hover .atms-faq-icon,
.atms-faq-item.is-open .atms-faq-icon {
  transform: translateY(-50%) rotate(0deg);
}

.atms-faq-answer {
  max-height: 0;
  overflow: hidden;

  margin: 0;
  padding: 0 80px 0 0;

  color: #ffffff !important;
  font-family: "Geist", Arial, sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 33px;
  letter-spacing: 0;

  opacity: 0;
  transform: translateY(-8px);

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;

  transition:
    max-height 500ms ease,
    opacity 350ms ease,
    transform 350ms ease,
    padding 350ms ease;
}

.atms-faq-item:hover .atms-faq-answer,
.atms-faq-item.is-open .atms-faq-answer {
  max-height: 180px;
  padding: 0 80px 30px 0;
  opacity: 1;
  transform: translateY(0);
}

/* Remove theme/Elementor unwanted hover styles */
.atms-faqs,
.atms-faqs *,
.atms-faq-list,
.atms-faq-item,
.atms-faq-question,
.atms-faq-answer {
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.atms-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.72) !important;
}

.atms-faq-item:hover,
.atms-faq-question:hover,
.atms-faq-question:focus,
.atms-faq-question:active,
.atms-faq-question span:hover,
.atms-faq-question span:focus {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* ===============================
   FAQ Responsive
================================ */

@media (max-width: 1366px) {
  .atms-faqs {
    margin-top: 80px;
  }

  .atms-faq-title {
    margin-bottom: 52px;
    font-size: 34px;
    line-height: 32px;
  }

  .atms-faq-question {
    min-height: 82px;
    padding-right: 52px;
  }

  .atms-faq-question span:first-child {
    font-size: 25px;
    line-height: 38px;
  }

  .atms-faq-icon {
    right: 0 !important;
    top: 50% !important;
    width: 26px !important;
    height: 22px !important;
  }

  .atms-faq-icon::before,
  .atms-faq-icon::after {
    top: 10px;
    width: 14px;
  }

  .atms-faq-icon::before {
    left: 2px;
  }

  .atms-faq-icon::after {
    right: 2px;
  }

  .atms-faq-answer {
    padding-right: 70px;
    font-size: 17px;
    line-height: 29px;
  }

  .atms-faq-item:hover .atms-faq-answer,
  .atms-faq-item.is-open .atms-faq-answer {
    padding: 0 70px 26px 0;
  }
}

@media (max-width: 991px) {
  .atms-faqs {
    margin-top: 76px;
  }

  .atms-faq-title {
    margin-bottom: 44px;
    font-size: 32px;
    line-height: 34px;
  }

  .atms-faq-question {
    min-height: 82px;
    padding-right: 46px;
  }

  .atms-faq-question span:first-child {
    font-size: 24px;
    line-height: 34px;
  }

  .atms-faq-icon {
    right: 0 !important;
    top: 50% !important;
    width: 24px !important;
    height: 20px !important;
  }

  .atms-faq-icon::before,
  .atms-faq-icon::after {
    top: 9px;
    width: 13px;
  }

  .atms-faq-icon::before {
    left: 2px;
  }

  .atms-faq-icon::after {
    right: 2px;
  }

  .atms-faq-answer {
    padding-right: 52px;
    font-size: 17px;
    line-height: 29px;
  }

  .atms-faq-item:hover .atms-faq-answer,
  .atms-faq-item.is-open .atms-faq-answer {
    padding: 0 52px 24px 0;
  }
}

@media (max-width: 767px) {
  .atms-faqs {
    margin-top: 60px;
  }

  .atms-faq-title {
    margin-bottom: 28px;
    font-size: 28px;
    line-height: 1.2;
  }

  .atms-faq-question {
    min-height: 66px;
    padding-right: 36px;
  }

  .atms-faq-question span:first-child {
    font-size: 17px;
    line-height: 1.35;
  }

  .atms-faq-icon {
    right: 0 !important;
    top: 50% !important;
    width: 22px !important;
    height: 18px !important;
    flex-basis: 22px !important;
  }

  .atms-faq-icon::before,
  .atms-faq-icon::after {
    top: 8px;
    width: 12px;
    height: 2px;
  }

  .atms-faq-icon::before {
    left: 1px;
  }

  .atms-faq-icon::after {
    right: 1px;
  }

  .atms-faq-answer {
    padding-right: 36px;
    font-size: 15px;
    line-height: 24px;
  }

  .atms-faq-item:hover .atms-faq-answer,
  .atms-faq-item.is-open .atms-faq-answer {
    padding: 0 36px 20px 0;
  }
}

@media (max-width: 480px) {
  .atms-faq-question {
    min-height: 62px;
    padding-right: 32px;
  }

  .atms-faq-question span:first-child {
    font-size: 16px;
  }

  .atms-faq-icon {
    right: 0 !important;
    top: 50% !important;
    width: 20px !important;
    height: 18px !important;
  }

  .atms-faq-icon::before,
  .atms-faq-icon::after {
    top: 8px;
    width: 11px;
  }

  .atms-faq-icon::before {
    left: 1px;
  }

  .atms-faq-icon::after {
    right: 1px;
  }

  .atms-faq-answer {
    padding-right: 32px;
    font-size: 14px;
    line-height: 23px;
  }

  .atms-faq-item:hover .atms-faq-answer,
  .atms-faq-item.is-open .atms-faq-answer {
    padding: 0 32px 18px 0;
  }
}

/* ===============================
   No Posts
================================ */

.atms-no-posts {
  color: #ffffff;
  font-size: 18px;
  line-height: 28px;
}

/* ===============================
   Laptop
================================ */

@media (max-width: 1366px) {
  .atms-blog-faq {
    padding: 100px 0 100px;
  }

  .atms-blog-faq-container {
    max-width: 980px;
  }

  .atms-blog-section-title {
    margin-bottom: 56px;
    font-size: 34px;
    line-height: 32px;
  }

  .atms-blog-grid {
    grid-template-columns: 390px 282px 282px;
    grid-template-rows: 234px 234px;
    gap: 14px;
    max-width: 980px;
  }

  .atms-blog-explore {
    width: 282px;
    height: 82px;
    font-size: 23px;
    line-height: 30px;
  }

  .atms-blog-explore:hover {
    width: 282px;
    height: 234px;
  }

  .atms-blog-card {
    border-radius: 40px !important;
  }

  .atms-blog-card-content h3 {
    font-size: 24px;
    line-height: 28px;
  }

  .atms-blog-card-content p {
    font-size: 17px;
    line-height: 26px;
  }

  .atms-blog-card:not(.atms-blog-card-large) .atms-blog-card-content h3 {
    font-size: 19px;
    line-height: 22px;
  }

  .atms-blog-card:not(.atms-blog-card-large) .atms-blog-card-content p {
    font-size: 13px;
    line-height: 18px;
  }
}

/* ===============================
   Tablet
================================ */

@media (max-width: 991px) {
  .atms-blog-faq {
    padding: 86px 0 90px;
  }

  .atms-blog-faq-container {
    max-width: 720px;
  }

  .atms-blog-section-title {
    margin-bottom: 44px;
    font-size: 32px;
    line-height: 34px;
  }

  .atms-blog-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 18px;
    max-width: 720px;
  }

  .atms-blog-card-large {
    grid-column: 1 / 3;
    grid-row: auto;
    height: 430px;
  }

  .atms-blog-card:not(.atms-blog-card-large) {
    height: 220px;
  }

  .atms-blog-explore {
    grid-column: 2 / 3;
    grid-row: auto;

    width: 100%;
    height: 100px;
    font-size: 24px;
  }

  .atms-blog-explore:hover {
    width: 100%;
    height: 220px;
  }
}

/* ===============================
   Mobile Blog Layout Fix
   Each card one below another
================================ */

@media (max-width: 767px) {
  .atms-blog-faq {
    padding: 70px 0 76px;
  }

  .atms-blog-faq-container {
    max-width: none;
    padding: 0 20px;
  }

  .atms-latest-blogs {
    margin-bottom: 68px;
  }

  .atms-blog-section-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 0 32px !important;
    color: #ffffff !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }

  .atms-blog-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    width: 100% !important;
  }

  .atms-blog-card,
  .atms-blog-card-large {
    grid-column: auto !important;
    grid-row: auto !important;

    width: 100% !important;
    height: 360px !important;
    min-height: 360px !important;

    border-radius: 34px !important;
    background-size: cover !important;
    background-position: center !important;
  }

  .atms-blog-card-content,
  .atms-blog-card:not(.atms-blog-card-large) .atms-blog-card-content {
    left: 24px !important;
    right: 24px !important;
    bottom: 28px !important;
  }

  .atms-blog-card-content h3,
  .atms-blog-card:not(.atms-blog-card-large) .atms-blog-card-content h3 {
    font-size: 25px !important;
    line-height: 1.15 !important;
    margin-bottom: 12px !important;
    -webkit-line-clamp: 3;
  }

  .atms-blog-card-content p,
  .atms-blog-card:not(.atms-blog-card-large) .atms-blog-card-content p {
    font-size: 17px !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: 2;
  }

  .atms-blog-badge {
    top: 22px !important;
    right: 22px !important;
    min-width: 70px !important;
    height: 36px !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
    background: #d80000 !important;
    color: #ffffff !important;
    font-size: 14px !important;
  }

  .atms-blog-explore {
    grid-column: auto !important;
    grid-row: auto !important;

    width: 100% !important;
    height: 92px !important;
    min-height: 92px !important;

    border-radius: 46px !important;
    font-size: 24px !important;
  }

  .atms-blog-explore:hover {
    height: 92px !important;
    min-height: 92px !important;
    margin-top: 0 !important;
    border-radius: 46px !important;
  }
}

/* ===============================
   Small Mobile
================================ */

@media (max-width: 480px) {
  .atms-blog-faq-container {
    padding: 0 18px;
  }

  .atms-blog-card,
  .atms-blog-card-large {
    height: 330px !important;
    min-height: 330px !important;
    border-radius: 30px !important;
  }

  .atms-blog-card-content,
  .atms-blog-card:not(.atms-blog-card-large) .atms-blog-card-content {
    left: 22px !important;
    right: 22px !important;
    bottom: 24px !important;
  }

  .atms-blog-card-content h3,
  .atms-blog-card:not(.atms-blog-card-large) .atms-blog-card-content h3 {
    font-size: 22px !important;
    line-height: 1.15 !important;
  }

  .atms-blog-card-content p,
  .atms-blog-card:not(.atms-blog-card-large) .atms-blog-card-content p {
    font-size: 15px !important;
    line-height: 1.35 !important;
  }

  .atms-blog-explore {
    height: 84px !important;
    min-height: 84px !important;
    font-size: 22px !important;
  }

  .atms-blog-explore:hover {
    height: 84px !important;
    min-height: 84px !important;
  }
}