/* ===== Home page (index.html) styles ===== */

.text-primary {
  color: var(--primary, #00a2e8);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: #00a2e8;
  color: #fff;
}

.btn--primary:hover {
  background: #0088c4;
}

.btn--dark {
  background: transparent;
  border-color: #333;
  color: #333;
}

.btn--dark:hover {
  background: #333;
  color: #fff;
}

.btn--light {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn--light:hover {
  background: #fff;
  color: #1c3347;
}

/* ---------- Hero slider ---------- */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #1c3347;
  font-family: "Open Sans", Arial, sans-serif;
}

.slides {
  position: relative;
  height: clamp(420px, 30vw, 520px);
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  color: #333;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide--dark {
  color: #fff;
}

.slide__inner {
  max-width: 1040px;
  height: 100%;
  margin: 0 auto;
  padding: 30px 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.slide__inner--reverse {
  flex-direction: row-reverse;
}

.slide__inner--stack {
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.slide__media {
  flex: 0 1 45%;
  display: flex;
  justify-content: center;
}

.slide__media img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.slide__content {
  flex: 1 1 50%;
  max-width: 520px;
}

.slide__content--right {
  text-align: right;
}

.slide__title {
  margin: 0 0 20px;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.2;
}

.slide__title span {
  display: block;
  margin-top: 10px;
  text-transform: uppercase;
}

.slide__content--right .slide__title {
  text-transform: uppercase;
}

.slide__title--center {
  text-align: center;
  font-size: clamp(22px, 2.4vw, 32px);
  margin: 0;
}

.slide__divider {
  width: 60%;
  margin: 0 0 20px auto;
  border: 0;
  border-top: 2px solid #00a2e8;
}

.slide__subtitle {
  margin: 0 0 24px;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 300;
}

.slide__subtitle strong {
  display: block;
  margin-top: 8px;
  font-size: 1.3em;
  font-weight: 600;
}

.slide__list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}

.slide__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 17px;
}

.slide__list li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: -3px;
  font-size: 22px;
  font-weight: 700;
  color: #00a2e8;
}

.slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.slide__text--center {
  max-width: 620px;
  margin: 0;
  text-align: center;
  font-size: 16px;
}

/* Iframe slide */
.iframe-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 0;
}

.iframe-flow img {
  max-height: 250px;
  max-width: 38%;
  object-fit: contain;
}

.iframe-flow .iframe-flow__arrow {
  max-width: 12%;
  max-height: 90px;
}

/* ---------- Caption animations ---------- */
.anim {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: 0s;
}

.anim--left  { transform: translateX(-60px); }
.anim--right { transform: translateX(60px); }
.anim--up    { transform: translateY(30px); }

.slide.is-active .anim {
  opacity: 1;
  transform: none;
  transition-delay: var(--delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
  .slide,
  .anim {
    transition: none;
  }
}

/* ---------- Controls ---------- */
.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, background 0.2s;
}

.hero-slider:hover .slider-arrow,
.slider-arrow:focus-visible {
  opacity: 1;
}

.slider-arrow:hover {
  background: #00a2e8;
}

.slider-arrow--prev { left: 16px; }
.slider-arrow--next { right: 16px; }

.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 5;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.slider-dots button[aria-selected="true"] {
  background: #00a2e8;
  border-color: #00a2e8;
  transform: scale(1.2);
}

.slider-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
}

.slider-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #00a2e8;
}

.slider-progress span.running {
  width: 100%;
  transition: width var(--duration, 6s) linear;
}

.hero-slider.is-paused .slider-progress span {
  width: 0;
  transition: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .slide__inner {
    padding: 30px 50px 50px;
    gap: 24px;
  }

  .slide__media img {
    max-height: 280px;
  }

  .slider-arrow {
    opacity: 1;
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .slider-arrow--prev { left: 8px; }
  .slider-arrow--next { right: 8px; }
}

@media (max-width: 640px) {
  .slides {
    height: 480px;
  }

  .slide__inner,
  .slide__inner--reverse {
    flex-direction: column;
    justify-content: center;
    padding: 20px 48px 50px;
    gap: 14px;
    text-align: center;
  }

  .slide__media {
    flex: 0 0 auto;
  }

  .slide__media img {
    max-height: 150px;
  }

  .slide__content,
  .slide__content--right {
    flex: 0 0 auto;
    text-align: center;
  }

  .slide__title {
    margin-bottom: 12px;
  }

  .slide__divider {
    margin: 0 auto 12px;
  }

  .slide__list {
    display: inline-block;
    margin-bottom: 16px;
    text-align: left;
  }

  .slide__list li {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .slide__actions {
    justify-content: center;
  }

  .btn {
    padding: 9px 16px;
    font-size: 13px;
  }

  .iframe-flow img {
    max-height: 130px;
  }

  .slide__text--center {
    font-size: 14px;
  }
}

/* ---------- Shared section layout ---------- */
.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

.section-head {
  text-align: center;
  margin-bottom: 34px;
}

.section-head__title {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400;
  color: #333;
}

.section-head__subtitle {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 18px);
  color: #333;
}

/* ---------- Key features ---------- */
.key-features {
  padding: 50px 0;
  background: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 1370px;
  margin: 0 auto;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  text-align: center;
  text-decoration: none;
  border-right: 1px solid #ccc;
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  background: #c4c4c4;
  transition: background 0.25s, transform 0.25s;
}

.feature-card__icon svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card__icon svg .fill {
  fill: #fff;
}

.feature-card__title {
  flex: 1;
  margin: 24px 0 20px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  color: #666;
  transition: color 0.25s;
}

.feature-card__link {
  font-size: 13px;
  font-weight: 600;
  color: #00a2e8;
}

.feature-card:hover .feature-card__icon,
.feature-card:focus-visible .feature-card__icon {
  background: #00a2e8;
  transform: translateY(-4px);
}

.feature-card:hover .feature-card__title {
  color: #00a2e8;
}

.feature-card:hover .feature-card__link {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 40px;
  }

  .feature-card:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .key-features {
    padding: 36px 0;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }

  .feature-card {
    padding: 0 12px;
  }

  .feature-card:nth-child(3n) {
    border-right: 1px solid #ccc;
  }

  .feature-card:nth-child(2n),
  .feature-card:last-child {
    border-right: 0;
  }

  .feature-card__title {
    margin: 16px 0 12px;
    font-size: 15px;
  }
}

/* ---------- Core features ---------- */
.core-features {
  padding: 45px 0 50px;
  background: #eee;
}

.core-features__body {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  max-width: 1366px;
  margin: 0 auto;
}

/* Video thumbnail */
.video-thumb {
  position: relative;
  flex: 0 0 49%;
  padding: 0;
  border: 2px solid #ccc;
  background: #000;
  cursor: pointer;
  line-height: 0;
}

.video-thumb img {
  width: 100%;
  height: auto;
  transition: opacity 0.25s;
}

.video-thumb:hover img {
  opacity: 0.85;
}

/* Text side */
.core-features__text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.core-features__intro {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  text-align: justify;
}

.feature-lists {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 0 14px;
}

.feature-list__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  color: #00a2e8;
}

.feature-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 13px;
  color: #666;
  border-bottom: 1px solid #ccc;
}

.feature-list li:last-child {
  border-bottom: 0;
}

/* Circle with a chevron, like the live site */
.feature-list li::before {
  content: "›";
  flex: 0 0 14px;
  height: 14px;
  border: 1px solid #00a2e8;
  border-radius: 50%;
  font-size: 13px;
  line-height: 11px;
  text-align: center;
  color: #00a2e8;
}

.core-features__more {
  align-self: flex-end;
  margin-top: 40px;
  font-size: 16px;
  color: #00a2e8;
  text-decoration: none;
}

.core-features__more:hover {
  text-decoration: underline;
}

/* Video popup */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.8);
}

.video-modal[hidden] {
  display: none;
}

.video-modal__box {
  position: relative;
  width: 100%;
  max-width: 800px;
}

.video-modal__frame {
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .core-features__body {
    flex-direction: column;
    align-items: stretch;
  }

  .video-thumb {
    flex: none;
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .feature-lists {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0;
  }

  .core-features__more {
    align-self: center;
    margin-top: 24px;
  }
}

/* ---------- Featured tests ---------- */
.featured-tests {
  padding: 45px 0 50px;
  background: #fff;
  border-bottom: 1px solid #ccc;
}

.test-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Button with a fill that grows from the middle on hover */
.test-tag {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 204px;
  min-height: 46px;
  padding: 8px 26px;
  border: 1px solid #555;
  font-size: 13px;
  font-weight: 400;
  color: #555;
  text-align: center;
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s;
}

.test-tag::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #00a2e8;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.test-tag:hover,
.test-tag:focus-visible {
  color: #fff;
  border-color: #00a2e8;
}

.test-tag:hover::before,
.test-tag:focus-visible::before {
  transform: scaleY(1);
}

@media (max-width: 640px) {
  .test-tags {
    gap: 12px;
  }

  .test-tag {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    padding: 8px 10px;
  }
}

/* ---------- Skills & services ---------- */
.skills {
  padding: 45px 0 60px;
  background: #fff;
}

/* Examiner / Student switch */
.skills-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.skills-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 202px;
  height: 52px;
  border: 1px solid #ccc;
  background: #fff;
  font-family: inherit;
  font-size: 21px;
  color: #666;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.skills-tab + .skills-tab {
  border-left: 0;
}

.skills-tab img {
  height: 40px;
  width: auto;
}

.skills-tab:hover {
  color: #00a2e8;
}

.skills-tab.is-active {
  background: #00a2e8;
  border-color: #00a2e8;
  color: #fff;
}

/* Panel: text on the left, image on the right */
.skills-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  animation: skills-fade 0.4s ease;
}

.skills-panel[hidden] {
  display: none;
}

@keyframes skills-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.skills-panel__text {
  flex: 0 1 635px;
}

.skills-panel__img {
  flex: 0 1 375px;
  margin-right: 5%;
  text-align: center;
}

.skills-panel__img img {
  max-width: 100%;
  height: auto;
  transition: opacity 0.2s;
}

.skills-panel__img img.is-changing {
  opacity: 0;
}

.skills-panel__para {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  text-align: justify;
}

/* Accordion */
.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 7px 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 17px;
  color: #666;
  text-align: left;
  cursor: pointer;
}

.accordion__header:hover {
  color: #00a2e8;
}

/* Square plus / minus icon */
.accordion__icon {
  position: relative;
  flex: 0 0 26px;
  height: 26px;
  background: #c4c4c4;
  transition: background 0.25s;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: transform 0.25s;
}

.accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion__item.is-open .accordion__icon {
  background: #00a2e8;
}

.accordion__item.is-open .accordion__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* Smooth open/close using grid rows */
.accordion__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.accordion__item.is-open .accordion__body {
  grid-template-rows: 1fr;
}

.accordion__body p {
  overflow: hidden;
  margin: 0;
  padding: 0 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  text-align: justify;
}

.accordion__item.is-open .accordion__body p {
  padding-top: 6px;
  padding-bottom: 8px;
}

@media (max-width: 900px) {
  .skills-panel {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .skills-panel__text {
    flex: none;
    width: 100%;
  }

  .skills-panel__img {
    flex: none;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .skills-tab {
    flex: 1;
    width: auto;
    height: 46px;
    font-size: 17px;
    gap: 10px;
  }

  .skills-tab img {
    height: 32px;
  }
}

/* ---------- Demo ---------- */
.demo {
  padding: 45px 0 50px;
  background: #eee;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.demo__grid {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  max-width: 1320px;
  margin: 0 auto;
}

.demo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.demo-card__title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 600;
  color: #666;
}

.demo-card__list {
  align-self: stretch;
  margin: 0 0 20px;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.demo-card__btn {
  display: block;
  margin-top: auto;
  line-height: 0;
  transition: transform 0.25s, filter 0.25s;
}

.demo-card__btn img {
  max-width: 100%;
  height: auto;
}

.demo-card__btn:hover,
.demo-card__btn:focus-visible {
  transform: translateY(-4px);
  filter: brightness(1.08) drop-shadow(0 6px 8px rgba(0, 0, 0, 0.15));
}

/* Dotted vertical line with the group icon in the middle */
.demo__divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.demo__divider::before,
.demo__divider::after {
  content: "";
  flex: 1;
  border-left: 2px dotted #9fd8f2;
}

@media (max-width: 900px) {
  .demo__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 520px;
  }

  /* Divider turns horizontal */
  .demo__divider {
    flex-direction: row;
  }

  .demo__divider::before,
  .demo__divider::after {
    border-left: 0;
    border-top: 2px dotted #9fd8f2;
  }
}

@media (max-width: 480px) {
  .demo-card__title {
    font-size: 20px;
  }

  .demo-card__list {
    font-size: 13px;
  }
}

/* ---------- Client testimonials ---------- */
.testimonials {
  padding: 45px 0 50px;
  background: #fff;
}

.testimonials__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
}

/* Quote slider box */
.quote-box {
  position: relative;
  flex: 0 1 650px;
  padding: 24px 20px 12px;
  border: 1px solid #ccc;
}

.quotes {
  display: grid;
}

/* All quotes share one grid cell, so the box keeps the tallest one's height */
.quote {
  grid-area: 1 / 1;
  display: flex;
  gap: 30px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.quote.is-active {
  opacity: 1;
  visibility: visible;
}

.quote__person {
  flex: 0 0 158px;
  text-align: center;
}

.quote__person img {
  display: block;
  width: 158px;
  height: 158px;
  border-radius: 50%;
  object-fit: cover;
}

.quote__person figcaption {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.quote__name {
  font-size: 15px;
  color: #666;
}

.quote__role {
  font-size: 12px;
  color: #00a2e8;
}

.quote__text {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: #666;
}

.quote__text a,
.quote-box__more {
  color: #00a2e8;
  text-decoration: none;
}

.quote__text a:hover,
.quote-box__more:hover {
  text-decoration: underline;
}

.quote-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.quote-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 2px solid #aaa;
  border-radius: 50%;
  background: #aaa;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.quote-dots button[aria-selected="true"] {
  border-color: #00a2e8;
  background: #fff;
}

.quote-box__more {
  display: block;
  margin-top: 2px;
  text-align: right;
  font-size: 16px;
}

/* Logo grid: 3 x 2 with lines only between cells */
.client-logos {
  flex: 0 1 690px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  list-style: none;
  margin: 0;
  padding: 0;
}

.client-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 75px;
  padding: 8px 16px;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.client-logos li:nth-child(3n) {
  border-right: 0;
}

.client-logos li:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.client-logos img {
  max-width: 100%;
  max-height: 66px;
  filter: grayscale(0.2);
  transition: filter 0.25s, transform 0.25s;
}

.client-logos li:hover img {
  filter: none;
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .testimonials__body {
    flex-direction: column;
    align-items: center;
  }

  .quote-box,
  .client-logos {
    flex: none;
    width: 100%;
    max-width: 690px;
  }
}

@media (max-width: 560px) {
  .quote {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }

  .quote__person {
    flex: none;
  }

  .quote__person img {
    width: 110px;
    height: 110px;
    margin: 0 auto;
  }

  .quote-box__more {
    text-align: center;
  }

  .client-logos {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Re-draw the inner lines for 2 columns */
  .client-logos li,
  .client-logos li:nth-child(3n),
  .client-logos li:nth-last-child(-n + 3) {
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
  }

  .client-logos li:nth-child(2n) {
    border-right: 0;
  }

  .client-logos li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

/* ---------- Subscribe ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.subscribe {
  position: relative;
  z-index: 0; /* lets the shadow below sit above the section background */
  padding: 30px 16px 50px;
  background: #fff;
}

.subscribe__box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 183px 38px 45px;
  background: #00a8f3;
}

/* Curved shadow under the box (like the live site's shadow image) */
.subscribe__box::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 0;
  z-index: -1;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 14px 18px rgba(0, 0, 0, 0.45);
}

.subscribe__text {
  display: flex;
  align-items: center;
  gap: 20px;
}

.subscribe__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  height: 54px;
  border-radius: 50%;
  background: #40bdf6;
}

.subscribe__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #00a8f3;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.subscribe__icon svg .bg {
  fill: #fff;
  stroke: #fff;
}

.subscribe__title {
  margin: 0;
  font-family: "Roboto", "Open Sans", Arial, sans-serif;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 300;
  color: #fff;
}

.subscribe__form {
  position: relative;
  display: flex;
  flex: 0 1 617px;
}

.subscribe__input {
  flex: 1;
  min-width: 0;
  height: 51px;
  padding: 0 16px;
  border: 2px solid transparent;
  background: #40bdf6;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.subscribe__input::placeholder {
  color: #fff;
  opacity: 1;
}

.subscribe__input:focus {
  border-color: #fff;
  background: #33b3ee;
}

.subscribe__input:focus::placeholder {
  opacity: 0.6;
}

.subscribe__input.is-invalid {
  border-color: #ffd54f;
}

.subscribe__btn {
  flex: 0 0 206px;
  height: 51px;
  border: 0;
  border-bottom: 3px solid #222;
  background: #3a3a3a;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 19px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.subscribe__btn:hover,
.subscribe__btn:focus-visible {
  background: #222;
}

.subscribe__btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.subscribe__message {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 6px 0 0;
  font-size: 13px;
  color: #fff;
}

.subscribe__message.is-error {
  color: #fff3c4;
}

@media (max-width: 1200px) {
  .subscribe__box {
    padding-right: 45px;
  }
}

@media (max-width: 900px) {
  .subscribe__box {
    flex-direction: column;
    padding: 30px 24px 40px;
    gap: 20px;
  }

  .subscribe__form {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .subscribe__text {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .subscribe__icon {
    flex: none;
    width: 54px;
  }

  .subscribe__input {
    flex: none;
  }

  .subscribe__form {
    flex-direction: column;
    gap: 10px;
  }

  .subscribe__btn {
    flex: none;
  }

  .subscribe__message {
    position: static;
    margin: 0;
    text-align: center;
  }
}
