/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
.article-container {
  width: 100%;

  .article {
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;

    &:hover {
      transform: translateY(-5px);
    }

    .article-image {
      background-size: cover;
      background-position: center;
      cursor: pointer;
      position: relative;
      aspect-ratio: 5/3;
      @media (max-width: 768px) {
        padding-bottom: 0;
      }

      img {
        width: 100%;
        height: 100%;
        border-radius: 16px;
      }

      &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0;
        transition: opacity 0.3s ease;
      }
    }

    .article-content {
      display: flex;
      gap: 16px;
      flex-direction: column;
      align-items: start;
      height: 100%;

      .article-title {
        font-size: 20px;
        font-weight: 600;
        color: var(--dp-black);
        line-height: 1.4;
      }

      .article-description {
        font-size: 16px;
        font-weight: 400;
        color: var(--dp-black);
        line-height: 1.5;
      }

      .learn-more {
        color: var(--dp-black);
        text-decoration: none;
        font-size: 16px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        margin-top: auto;
        gap: 8px;
        transition: color 0.3s ease;
      }

      .learn-more::after {
        content: '→';
        transition: transform 0.3s ease;
      }

      .learn-more:hover::after {
        transform: translateX(3px);
      }
    }


  }

  .card {
    height: 100%;
    background: white;
    padding: 24px;
    gap: 32px;
    border: 1px solid var(--dp-gray-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    &:hover {
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
  }

  .normal {
    width: 100%;
    transition: transform 0.3s ease;
    @media (max-width: 768px) {
      margin-top: 20px;
    }
  }

  &:has(.normal) {
    .article-content {
      align-items: start;
      flex: 1;
      text-align: start;
      height: auto;

      .article-title {
        margin-top: calc(50px - var(--dp-gap));
        transition: color 0.3s ease-in-out;
        @media (max-width: 768px) {
          margin-top: 0;
        }

      }

      @media (max-width: 768px) {
        padding: 15px 15px 0 0;
      }
    }

    .article-image {
      width: 100%;
      height: 100%;
      padding-left: 0;

    }

    .article-title {
      color: var(--dp-white) !important;
      font-size: 30px;
      font-weight: 600;
      width: 98%;
      word-wrap: break-word;
      @media (max-width: 768px) {
        font-size: 20px;
        margin: 0;
      }

    }
  }
}






.page-content, .layout-container {
  background-color: var(--dp-dark-primary) !important;
  .top-bar-wrapper {
    @media (width <= 1024px) {
      padding-left: 0 ;

    }
  }
}

main {
  li, a:not(.learn-more) {
    color: var(--dp-white) !important;
  }

  svg path {
    fill: var(--dp-white) !important;
  }
}


.article-expanded-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  background-color: var(--dp-dark-primary);
  color: var(--dp-white);

  .article-expanded-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    width: 60%;
    padding-top: 16px;
    gap: 24px;
    @media (max-width: 768px) {
      width: 97%;
      padding-top: 0;
    }

    .article-expanded-content-header {
      display: flex;
      flex-direction: column;
      align-items: start;
      justify-content: start;
      gap: 36px;
      width: 100%;

      .article-reading-time {
        font-size: 16px;
        font-weight: 600;
        @media (max-width: 768px) {
          font-size: 14px;
        }
      }

      .article-expanded-title {
        font-size: 42px;
        font-weight: 600;
        padding: 0;
        margin: 0;
        text-align: start;
      }

      .article-expanded-date {
        font-size: 16px;
        font-weight: 400;
        @media (max-width: 768px) {
          font-size: 14px;
        }
      }

      .article-expanded-img {
        width: 100%;
        img {
          height: 100%;
          width: 100%;
          border-radius: 24px;
        }
      }
    }

    .article-expanded-content-body {
      width: 100%;

      h4 {
        color: var(--dp-white);
        margin-bottom: 8px;
        margin-top: 16px;
        @media (max-width: 768px) {
          font-size: 24px;
          line-height: 120%;
        }
      }

      p {
        margin-top: 16px;
        font-size: 16px;
        font-weight: 400;
      }

      p:has(img) {
        display: flex;
        gap: 16px;
        margin-top: 24px;
        @media (max-width: 768px) {
          flex-direction: column;
        }

        img {
          flex: 1;
          object-fit: cover;
          border-radius: 24px;
          @media (max-width: 768px) {
            width: 100%;
          }
        }
      }

      pre {
        border-radius: 24px;
        padding: 24px;
        white-space: pre-wrap;
        word-wrap: break-word;
        background-color: var(--dp-white);
        color: var(--dp-dark-primary);
        margin-top: 16px;
      }

      ul, ol {
        display: flex;
        flex-direction: column;
        padding: 1px;
        margin-left: 20px;

        li:first-child {
          margin-top: 16px;
        }

        li:not(:first-child) {
          margin-top: 5px;
        }
      }
    }
  }

  .article-expanded-social {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-top: 40px;
    gap: 11px;

    ul {
      display: flex;
      gap: 24px;

      li {
        margin-right: 0;
      }
    }

    @media (width <= 1024px) {
      padding-top: 36px;
      padding-bottom: 36px;
    }

    .article-expanded-social-header {
      font-size: 18px;
      font-weight: 700;
      color: var(--dp-white);
    }

    img {
      width: 24px;
    }
  }

  .article-expanded-cta {
    padding: 48px 0;
    width: var(--dp-max-width);
    @media (width <= 1024px) {
      padding: 0;
      width: 100%;
    }
  }

  .article-expanded-related {
    padding: 48px 0;
    width: var(--dp-max-width);
    gap: 32px;
    .article {
      border-radius: 32px;
      &:hover {
        transform: none;
      }
    }
    @media (width <= 1024px) {
      padding: 0;
      width: 100%;
      margin-top: 48px;
    }

    h2 {
      display: none;
    }


  }

  .article-expanded-all-blogs {
    width: 328px;
    height: 55px;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 500px;
    background: var(--dp-blue);
    color: var(--dp-white);
    font-size: 18px;
    font-weight: 700;
    border: none;
    text-align: center;
    text-decoration: none;

    &:hover {
      cursor: pointer;
    }

    @media (max-width: 768px) {
      width: 100%;
    }
  }
}
.breadcrumb-container {
  display: flex;
  /*padding: 16px 64px;*/
  padding-top: 16px;
  @media (width <= 1024px) {
    padding-top: 8px;
  }

  .breadcrumb-content {
    display: flex;
    list-style: none;
    gap: 4px;
    width: 100%;
    /*padding: 8px 16px;*/
    padding: 0;
    @media (max-width: 768px) {
      gap: 1px;
      /*padding: 0;*/
    }

    .breadcrumb-item {
      font-size: 14px;
      font-weight: 400;
      line-height: 120%;
      color: var(--dp-black);
      flex-shrink: 0;
      a {
        text-decoration: none;
        color: inherit;

      }
      /*@media (max-width: 768px) {*/
      /*  gap: 1px;*/
      /*  !*padding: 0;*!*/
      /*}*/
      &:last-child {
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      &:not(:last-child)::after {
        content: ">";
        margin-left: 0;
        color: var(--dp-gray);

      }
    }

    .disabled {
      color: var(--dp-gray);
    }
  }
}
.cta-container {
  background: white;
  border-radius: 32px;
  padding: 40px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  position: relative;

  .floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;


    .bg-shape {
      position: absolute;
      background: linear-gradient(135deg, rgba(107, 115, 255, 0.1), rgba(155, 89, 182, 0.1));
      border-radius: 50%;
      /*animation: pulse 4s ease-in-out infinite;*/
    }

    .bg-shape-1 {
      width: 100px;
      height: 100px;
      top: -50px;
      right: -50px;
      /*animation-delay: 0s;*/
    }

    .bg-shape-2 {
      width: 150px;
      height: 150px;
      bottom: -75px;
      left: -75px;
      /*animation-delay: 2s;*/
    }
  }

  .cta-content {
    flex: 1;
    z-index: 2;

    .cta-title {
      font-size: 32px;
      font-weight: 600;
      color: var(--dp-black);
      margin-bottom: 30px;
      text-align: start;
    }

    .cta-button {
      background: var(--dp-blue);
      color: var(--dp-white);
      border: none;
      padding: 16px 32px;
      border-radius: 50px;
      font-size: 18px;
      font-weight: 700;
      cursor: pointer;
      width: 70%;
      text-decoration: none;
      display: block;
      text-align: center;
    }
  }

  .cta-visual {
    flex: 1;
    position: relative;
    height: 300px;

    img {
      width: 100%;
      height: 100%;
    }

    .floating-card {
      position: absolute;
      border-radius: 12px;
      border: none;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      font-weight: 600;
      animation: float 3s ease-in-out infinite;
    }

    .card-1 {
      top: 10%;
      left: -8%;
      animation-delay: 0s;
    }

    .card-2 {
      top: 25%;
      right: 2%;
      animation-delay: 1s;
    }

    .card-3 {
      bottom: 20%;
      left: 6%;
      animation-delay: 2s;
    }

    .card-4 {
      bottom: 10%;
      right: -3%;
      animation-delay: 1.5s;
    }
  }
}


@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}


@media (max-width: 768px) {
  .cta-container {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 30px;
    width: 100%;

    .cta-content {
      order: 3;
      width: 100%;
      word-break: break-word;
      .cta-title {
        font-size: 31px;
      }

      .cta-button {
        width: 100%;
      }
    }

    .cta-visual {
      order: 2;

      .floating-card {
        width: 70px;
        height: 27px;
      }
    }

  }


}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
}

.pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--dp-gray-light);
  background: none;
  color: var(--dp-black);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
  user-select: none;
}

.pagination-item:hover:not(.active):not(.disabled) {
  background-color: #f3f4f6;
  color: #374151;
}

.pagination-item.active {
  background-color: var(--dp-blue);
  color: var(--dp-white);
  font-weight: 600;
}

.pagination-item.disabled {
  color: var(--dp-gray);
  cursor: not-allowed;
}

.pagination-item.disabled:hover {
  background: none;
}

.pagination-item.nav-button {
  padding: 0 2px;
  font-size: 16px;
  font-weight: 600;
}

.pagination-item.ellipsis {
  cursor: default;
  font-weight: 600;
}

.pagination-item.ellipsis:hover {
  background: none;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 480px) {
  .pagination {
    gap: 2px;
    padding: 6px;
  }

  .pagination-item {
    min-width: 28px;
    height: 28px;
    font-size: 13px;
  }
}
.carousel-component {
  display: grid;
  grid-template-areas:
  "title controls"
  "slider slider";

  .title {
    grid-area: title;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--dp-gap);

    h3, h1 {
      margin-bottom: 0;
    }
  }

  .slider-control {
    grid-area: controls;
    display: flex;
    justify-content: end;

    button {
      width: 64px;
      height: 64px;
      border: none;
      background-color: initial;
      display: flex;
      align-items: center;
      justify-content: center;

      svg path {
        fill: #1e1e1e;
      }
    }

    button:hover {
      cursor: pointer;
      border-radius: 50%;
      background: rgba(218, 218, 218, 0.20);
    }
  }

  .slider-control.static {
    display: none;
  }

  .slider {
    grid-area: slider;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    li {
      display: flex;
      width: 100%;
      flex-shrink: 0;

    }

    .short {
      width: 44% !important;
      margin-top: calc(50px - var(--dp-gap));
      @media (max-width: 768px) {
        margin-top: 0;
        width: 87% !important;
      }
    }

  }

  .slider:has(li.short) {
    gap: 20px;
    @media (max-width: 768px) {
      gap: 24px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }

    li {
      scroll-snap-align: start
    }
  }

  .slider.related {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    gap: 32px;
    scrollbar-width: none;

    li {
      flex: 0 0 calc(100% / 3 - 32px * 2 / 3);
      scroll-snap-align: start;
      min-width: 0;

      @media (max-width: 1024px) {
        flex: 0 0 calc(50% - 16px);
      }

      @media (max-width: 768px) {
        flex: 0 0 100%;
      }
    }
    /*&:has(li:nth-child(3)) li{*/
    /*  */
    /*}*/
  }

  .slider.static {

    flex-wrap: wrap;
    justify-content: center;
    gap: var(--dp-gap);

    li {
      width: 30%;
    }
  }

  &:has(.slider li.short) {
    @media (max-width: 768px) {
      .slider-control {
        display: none;
      }
    }
  }

  &:has(.slider.related) {
    .title {
      @media (max-width: 768px) {
        justify-content: center;
        h3 {
          text-align: center;
        }
      }
    }
  }
}

@media (width <= 1024px) {
  .carousel-component {
    grid-template-areas:
      "title"
      "slider"
      "controls";

    .title {
      h3 {
        text-align: left;
      }
    }

    .slider {
      margin-bottom: var(--dp-gap-small, 12px);
      @media (max-width: 768px) {
        margin-bottom: 0;
      }
    }

    .slider.static {
      column-gap: unset;
      flex-wrap: nowrap;
      justify-content: unset;

      li {
        width: 100%;

      }
    }

    .slider-control {
      grid-area: controls;
      justify-content: center;
    }

    .slider-control.static {
      display: flex;
    }
  }

}

@media (width >= 1024px) {
  .carousel-component {
    grid-template-columns: 3fr 1fr;
  }
}

@media (width >= 1024px) {
  .projects-by-service {
    .carousel-component {
      .slider {
        gap: var(--dp-gap-medium);

        li {
          width: calc(50% - var(--dp-gap-medium) / 2);
        }
      }
    }
  }
}




