/* ==========================================================================
   Case Studies Listing Page - dedicated stylesheet
   Loaded only on the "Case Studies Listing" page template.
   Uses the same :root CSS variables defined in style.css (Bootstrap/shared
   colors, fonts) - that file loads first, so variables are already available.
   ========================================================================== */

/* ==========================================================================
   1. HERO
   ========================================================================== */

.a3-cs-hero {
  position: relative;
  background-color: var(--a3-color-dark);
  background-size: cover;
  background-position: center;
  padding: 80px 24px;
  text-align: center;
}

.a3-cs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 21, 26, 0.7) 0%,
    rgba(20, 21, 26, 0.55) 100%
  );
}

.a3-cs-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.a3-cs-hero__heading {
font-style: normal;
font-weight: 400;
font-size: 64px;
line-height: 135%;
letter-spacing: -2px;
color: #FFFFFF;
}

.a3-cs-hero__description {
  margin: 0;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  color: #D4D4D8;
}

@media (max-width: 599px) {
  .a3-cs-hero {
    padding: 56px 20px;
  }
  .a3-cs-hero__heading {
    font-size: 30px;
  }
}

/* ==========================================================================
   2. FILTER BAR
   ========================================================================== */

.a3-cs-filters {
  padding: 30px 10px;
}

.a3-cs-filters__inner {
  max-width: var(--a3-container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  background-color: #f4f4f6;
  padding: 10px;
}

.a3-cs-filters__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--a3-color-dark);
  color: #ffffff;
  border: none;
  padding: 0px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  min-height: 45px !important;
}

.a3-cs-filters__toggle-icon {
  width: 14px;
  height: 14px;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position:
    0 2px,
    0 7px,
    0 12px;
}

.a3-cs-filters__groups {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  flex: 1;
}

.a3-cs-filters__select {
  appearance: none;
  background-color: #F9F9F9;
  border: 1px solid #CCCCCC;
  border-radius: 0px;
  padding: 10px 32px 10px 14px;
  font-size: 14px;
  font-family: var(--a3-font-base);
  color: #8C8C8C;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%235b5f66' d='M6 8 0 1.5 1.5 0 6 5 10.5 0 12 1.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
  min-width: 160px;
  max-height: 45px;
}

.a3-cs-filters__select:focus {
  outline: none;
  border-color: var(--a3-color-orange);
}

.a3-cs-filters__clear {
  background: none;
  border: none;
  color: #8C8C8C;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  font-weight: normal;
}

.a3-cs-filters__clear:hover {
  color: var(--a3-color-orange);
}

@media (max-width: 767px) {
  .a3-cs-filters__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .a3-cs-filters__groups {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .a3-cs-filters__groups.is-open {
    display: flex;
  }
  .a3-cs-filters__select {
    width: 100%;
  }
  .a3-cs-filters__clear {
    margin-left: 0;
    text-align: center;
  }
}

/* ==========================================================================
   3. CASE STUDIES LIST - next
   ========================================================================== */

/* ==========================================================================
   4. TRUSTED BY - next
   ========================================================================== */

/* ==========================================================================
   5. CONTACT CTA - next
   ========================================================================== */
