/* Client Stories Hero Styles */

.c-client-stories-hero {
  position: relative;
  background: #ffffff;
  width: 100%;
  padding: 40px 0 0;
  box-sizing: border-box;
  overflow: hidden;
  font-family: var(--font-family, sans-serif);
}

.c-client-stories-hero__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
}

/* ---- Title & Subtitle ---- */
.c-client-stories-hero__title {
  font-family: var(--font-family-mmc-bold);
  font-size: 40px;
  line-height: 54px;
  text-align: center;
  color: #012c52;
  margin: 0;
}

.c-client-stories-hero__title-highlight {
  font-family: var(--font-family-mmc-bold);
  font-size: 40px;
  line-height: 54px;
  color: #613a8e;
  margin: 0;
}

.c-client-stories-hero__subtitle {
  color: #012c52;
  font-size: 22px;
  line-height: 26px;
  text-align: center;
  letter-spacing: 0px;
  text-transform: capitalize;
  opacity: 1;
  padding: 20px 0 60px;
  font-family: var(--font-family);
  font-weight: 500;
  margin: 0;
}

/* ---- Search Container & Bar ---- */
.c-client-stories-hero__search-container {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 20;
}

.c-client-stories-hero__search-bar {
  display: flex;
  align-items: center;
  border-radius: 40px;
  position: relative;
  height: 38px;
  background-color: #f1f1f2;
  border: 1px solid #aab2bb;
  padding: 5px;
}

/* Teal Circle Search Icon */
.c-client-stories-hero__search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 4px;
}

.c-client-stories-hero__search-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.c-client-stories-hero__search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #1a1818;
  padding: 8px 4px;
  font-family: var(--font-family);
}

.c-client-stories-hero__search-input::placeholder {
  font-weight: 600;
  color: #1a1818;
  opacity: 1;
}

/* Dropdown Container Wrapper */
.c-client-stories-hero__dropdown-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* Grid Dropdown Toggle */
.c-client-stories-hero__grid-btn {
  background: none;
  border: none;
  color: #009be3; /* Blue */
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.c-client-stories-hero__grid-btn:hover {
  color: #7645b2;
}

/* Dropdown Options List */
.c-client-stories-hero__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #cbd0d9;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 150px;
  padding: 0 15px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  box-sizing: border-box;
}

/* Trigger visibility on container hover */
.c-client-stories-hero__dropdown-container:hover
  .c-client-stories-hero__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.c-client-stories-hero__dropdown-arrow {
  position: absolute;
  bottom: 100%;
  right: 18px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #613a8e;
}

.c-client-stories-hero__dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-client-stories-hero__dropdown-item {
  border-bottom: 1px solid #cbd0d9;
  padding: 5px 0;
  font-size: 12px;
  line-height: 30px;
  color: #333;
  box-sizing: border-box;
  margin: 0;
}

.c-client-stories-hero__dropdown-item:last-child {
  border-bottom: none;
}

.c-client-stories-hero__dropdown-link {
  display: block;
  padding: 0;
  font-size: inherit;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  line-height: inherit;
  text-align: left;
  transition: color 0.2s;
}

.c-client-stories-hero__dropdown-link:hover {
  color: #613a8e; /* Clients Theme Purple */
}

/* ---- Illustration Group ---- */
.c-client-stories-hero__illustration {
  max-width: 820px;
  margin: 20px auto 0;
  position: relative;
  z-index: 1;
}

.c-client-stories-hero__img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .c-client-stories-hero {
    padding: 30px 0 0;
  }
  .c-client-stories-hero__title {
    font-size: 32px;
  }
  .c-client-stories-hero__subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }
}
