/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

.case-studies-archive {
  padding: 80px 20px;
  background-color: #f5f5f7;
}

.case-studies-archive__header {
  max-width: 1120px;
  margin: 0 auto 48px;
  text-align: center;
}

.case-studies-archive__title {
  margin: 0 0 16px;
  font-size: 42px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.case-studies-archive__tagline {
  margin: 0 auto 32px;
  font-size: 18px;
  line-height: 1.6;
  color: #4b5563;
  max-width: 640px;
}

.case-studies-archive__filters {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.case-studies-filter {
  flex: 0 1 440px;
}

.case-studies-filter__select {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 65px 0 17px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 400;
  border: 2px solid #d1d5db;
  border-radius: 14px;
  background-color: #ffffff;
  color: #4b5563;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 22px center;
  background-size: 14px 9px;
}

.case-studies-filter__select.case-studies-filter__select--selected {
  color: #111827;
  font-weight: 500;
}

.case-studies-filter__select::-ms-expand {
  display: none;
}

.case-studies-filter__select:focus {
  outline: none;
  border-color: #111827;
}

.case-studies-grid {
  max-width: 1120px;
  margin: 0 auto 40px;
  display: flex;
  gap: 30px;
}

.case-studies-grid__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.case-study-card {
  display: flex;
  flex-direction: column;
  border-radius: 21px;
  overflow: hidden;
  background-color: #ffffff;
  border: #a0a0a0 solid 1px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.case-study-card__link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.case-study-card__top {
  position: relative;
  flex-shrink: 0;
  min-height: 260px;
  background-size: cover;
  background-position: center center;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  border-radius: 21px 21px 0 0;
  justify-content: end;
}

.case-study-card__tag {
  position: absolute;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.96);
  color: #111827;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.case-study-card__top a {
  max-width: 50%;
}

.case-study-card__overlay-inner {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.case-study-card__title {
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: #111827;
}

.case-study-card__logo img {
  max-height: 40px;
  width: auto;
  display: block;
}

.case-study-card__bottom {
  display: flex;
  flex-direction: column;
  padding: 24px 32px 28px;
  background-color: #ffffff;
  border-top: 1px solid #a0a0a0;
}

.case-study-card__excerpt {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #000;
}

.case-study-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.case-study-card__client {
  display: flex;
  align-items: center;
  gap: 20px;
}

.case-study-card__client-photo {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #ffffff;
  position: relative;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.case-study-card__client-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-study-card__client-info {
  display: flex;
  flex-direction: column;
}

.case-study-card__client-name {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.case-study-card__client-role {
  font-size: 13px;
  color: #000;
}

.case-study-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.case-study-card__see-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
}

.case-study-card__see-link:hover {
  color: #374151;
}

.case-study-card__see-link-icon {
  width: 14px;
  height: 14px;
  position: relative;
  top: 2px;
  flex-shrink: 0;
}

.case-study-card__play-icon {
  width: 65px;
  height: 65px;
  display: block;
}

.case-study-card__play-button {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: none !important;
}

.case-study-card__play-button::before,
.case-study-card__play-button::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.case-study-card__play-button::before {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

.case-study-card__play-button::after {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  display: none;
}

.case-study-card__play-button .case-study-card__play-icon {
  position: relative;
  z-index: 1;
}

.case-study-card__testimonial-link {
  color: #111827;
  cursor: pointer;
  text-decoration: underline;
}

.case-studies-archive__empty {
  max-width: 1120px;
  margin: 40px auto;
  text-align: center;
  color: #6b7280;
}

/* Case studies pagination (the_posts_pagination) */
.case-studies-archive .pagination {
  margin: 34px auto 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.case-studies-archive .pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.case-studies-archive .pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #061e64;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.case-studies-archive .pagination a.page-numbers:hover {
  background: #061e64;
  border-color: #061e64;
  color: #ffffff;
}

.case-studies-archive .pagination a.page-numbers:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(6, 30, 100, 0.22);
}

.case-studies-archive .pagination .page-numbers.current {
  background: #061e64;
  border-color: #061e64;
  color: #ffffff;
}

.case-studies-archive .pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  padding: 0 6px;
  min-width: auto;
}

.case-studies-archive .pagination .page-numbers.prev,
.case-studies-archive .pagination .page-numbers.next {
  padding: 0 18px;
}

.case-studies-archive .pagination .page-numbers.prev::before {
  content: "←";
  margin-right: 10px;
  font-weight: 700;
}

.case-studies-archive .pagination .page-numbers.next::after {
  content: "→";
  margin-left: 10px;
  font-weight: 700;
}

.case-studies-archive .pagination .page-numbers.prev,
.case-studies-archive .pagination .page-numbers.next,
.case-studies-archive .pagination .page-numbers.current {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.case-studies-archive .pagination .page-numbers.prev:hover,
.case-studies-archive .pagination .page-numbers.next:hover {
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.case-studies-archive .pagination .page-numbers.dots:hover {
  background: transparent;
  border-color: transparent;
  color: #061e64;
}

.case-studies-archive .pagination .page-numbers[aria-current="page"] {
  background: #061e64;
  border-color: #061e64;
  color: #ffffff;
}

@media (max-width: 767px) {
  .case-studies-archive .pagination .nav-links {
    gap: 8px;
  }

  .case-studies-archive .pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
  }
}
.site-main.case-studies-archive {
  padding: 0;
}
.case-studies-archive__header {
  padding: 45px 25px 0;
}
@media (max-width: 1024px) {
  .case-study-card__top a {
    max-width: 100%;
    margin-top: 47px;
  }
  .case-study-card__title {
    font-size: 24px;
  }
  .site-main.case-studies-archive {
    padding: 0;
    max-width: 94% !important;
  }
}

@media (max-width: 767px) {
  .case-study-card__top a {
    max-width: 60%;
    margin-top: 0px;
  }
  .case-studies-grid {
    flex-direction: column;
  }

  .case-studies-archive {
    padding: 60px 16px;
  }

  .case-study-card {
    border-radius: 20px;
  }

  .case-study-card__top {
    padding: 18px;
  }

  .case-study-card__overlay {
    max-width: 100%;
  }

  .case-study-card__overlay-inner {
    padding: 20px 20px 18px;
    min-height: auto;
  }

  .case-study-card__tag {
    top: 16px;
    left: 16px;
  }

  .case-study-card__title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .case-study-card__bottom {
    padding: 18px 18px 20px;
  }

  .case-study-card__meta {
    flex-direction: row;
    align-items: center;
  }

  .case-studies-archive__title {
    font-size: 32px;
  }

  .case-studies-archive__tagline {
    font-size: 16px;
  }

  .case-studies-filter {
    flex-basis: 100%;
  }

  .case-studies-filter__select {
    font-size: 14px;
    height: 50px;
    border-radius: 12px;
    background-position: right 16px center;
  }
  .case-study-card__actions {
    width: 100%;
    justify-content: end;
  }

  .case-studies-archive__filters {
    gap: 15px;
    flex-wrap: wrap;
  }
}

.case-study-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.case-study-modal.is-open {
  display: flex;
}

.case-study-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.case-study-modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 560px;
  width: calc(100% - 40px);
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 32px 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.case-study-modal__close {
  position: absolute;
  top: 14px;
  right: 19px;
  border: none;
  background: #000;
  font-size: 22px;
  line-height: 0;
  cursor: pointer;
  margin-top: -10px;
  margin-right: -10px;
  border-radius: 100%;
  height: 30px;
  width: 30px;
  line-height: 1px;
  text-align: center;
  padding: 0;
  font-size: 27px;
  background: none !important;
  color: #000 !important;
}

.case-study-modal__body {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: #111827;
}

.case-study-modal__body iframe,
.case-study-modal__body video {
  width: 100%;
  max-width: 100%;
  height: 350px;
  border-radius: 16px;
  margin-bottom: 16px;
}
.post-type-archive-case-studies #primary {
  background: none !important;
  max-width: 94%;
}