/* =========================================================
   TESTIMONIALS
   Full replacement CSS
   ========================================================= */


/* =========================================================
   GLOBAL PAGE BACKGROUND
   ========================================================= */

.path-testimonials .aw-main,
.page-node-type-testimonials .aw-main {
  background: linear-gradient(180deg, #eef7fb 0%, #ffffff 240px);
  padding-top: 24px;
  padding-bottom: 60px;
}

/* =========================================================
   PAGE TITLE
   ========================================================= */

.path-testimonials #block-alivewater-page-title {
  margin-bottom: 1.5rem;
}

.path-testimonials #block-alivewater-page-title h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #173a56;
}


/* =========================================================
   TESTIMONIALS VIEW WRAPPER
   ========================================================= */

.path-testimonials .view-testimonials {
  margin-top: 0.5rem;
}

.path-testimonials .view-testimonials .view-content {
  display: block;
}


/* =========================================================
   ONE TESTIMONIAL PER ROW
   ========================================================= */

.path-testimonials .view-testimonials .views-row {
  position: relative;
  display: block;
  margin-bottom: 24px;
  padding: 28px 30px 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(0, 132, 203, 0.10);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(14, 50, 67, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}

.path-testimonials .view-testimonials .views-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(14, 50, 67, 0.08);
  border-color: rgba(0, 132, 203, 0.18);
}


/* =========================================================
   QUOTE VISUAL
   ========================================================= */

.path-testimonials .view-testimonials .views-row::before {
  content: "❝";
  position: absolute;
  top: 14px;
  left: 18px;
  font-size: 2.7rem;
  line-height: 1;
  color: rgba(0, 132, 203, 0.12);
  font-weight: 700;
  pointer-events: none;
}

.path-testimonials .view-testimonials .views-row {
  padding-left: 42px;
}


/* =========================================================
   CARD TITLE
   ========================================================= */

.path-testimonials .view-testimonials .views-field-title {
  margin-bottom: 12px;
  padding-left: 4px;
}

.path-testimonials .view-testimonials .views-field-title a {
  display: inline-block;
  color: #173f5d;
  font-size: 1.38rem;
  line-height: 1.25;
  font-weight: 700;
  text-decoration: none;
}

.path-testimonials .view-testimonials .views-field-title a:hover,
.path-testimonials .view-testimonials .views-field-title a:focus {
  color: #0b7ec0;
  text-decoration: none;
}


/* =========================================================
   CARD BODY / EXCERPT
   ========================================================= */

.path-testimonials .view-testimonials .views-field-body {
  margin-bottom: 16px;
}

.path-testimonials .view-testimonials .views-field-body .field-content {
  position: relative;
  padding-left: 4px;
}

.path-testimonials .view-testimonials .views-field-body p {
  margin: 0;
  color: #496272;
  font-size: 1rem;
  line-height: 1.8;
}


/* =========================================================
   READ MORE BUTTON
   ========================================================= */

.path-testimonials .view-testimonials .views-field-view-node {
  margin-top: 14px;
}

.path-testimonials .view-testimonials .views-field-view-node a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #17a2df 0%, #0084cb 100%);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 132, 203, 0.20);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.path-testimonials .view-testimonials .views-field-view-node a:hover,
.path-testimonials .view-testimonials .views-field-view-node a:focus {
  color: #ffffff;
  background: linear-gradient(180deg, #1299d6 0%, #0078b8 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 132, 203, 0.24);
}

.path-testimonials .view-testimonials .views-field-view-node a::after {
  content: "→";
  font-weight: bold;
  margin-left: 8px;
  font-size: 0.95rem;
}


/* =========================================================
   FULL PAGER STYLING
   Note: View must be changed to Full pager in Drupal admin
   ========================================================= */

.path-testimonials .view-testimonials nav.pager {
  margin-top: 1.75rem;
}

.path-testimonials .view-testimonials .pagination,
.path-testimonials .view-testimonials .pager__items {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.path-testimonials .view-testimonials .page-item,
.path-testimonials .view-testimonials .pager__item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.path-testimonials .view-testimonials .page-item .page-link,
.path-testimonials .view-testimonials .pager__item .page-link,
.path-testimonials .view-testimonials .pager__item a,
.path-testimonials .view-testimonials .pager__item span {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(0, 132, 203, 0.16);
  background: #ffffff;
  color: #173f5d;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 5px 12px rgba(14, 50, 67, 0.05);
  transition: all 0.2s ease;
}

.path-testimonials .view-testimonials .page-item .page-link:hover,
.path-testimonials .view-testimonials .pager__item a:hover {
  background: #eef8fd;
  border-color: rgba(0, 132, 203, 0.26);
  color: #007fbe;
}

.path-testimonials .view-testimonials .page-item.active .page-link,
.path-testimonials .view-testimonials .page-item.is-active .page-link,
.path-testimonials .view-testimonials .pager__item.is-active span,
.path-testimonials .view-testimonials .pager__item.is-active a {
  background: #0084cb;
  border-color: #0084cb;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 132, 203, 0.22);
}

.path-testimonials .view-testimonials .pager__item--previous .page-link,
.path-testimonials .view-testimonials .pager__item--next .page-link,
.path-testimonials .view-testimonials .pager__item--previous a,
.path-testimonials .view-testimonials .pager__item--next a {
  min-width: auto;
  padding: 0 14px;
}

/* =========================================================
   TESTIMONIAL DETAIL PAGE LAYOUT
   Based on Research layout logic, but with explicit states
   ========================================================= */
   
.page-node-type-testimonials #block-alivewater-page-title {
  display: none !important;
}

.page-node-type-testimonials .aw-shared-section-content-wrap {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.page-node-type-testimonials .aw-shared-section-content-grid--testimonial {
  display: grid;
  align-items: start;
  column-gap: 2%;
  row-gap: 1.25rem;
}

.page-node-type-testimonials .aw-shared-section-content-grid--testimonial.layout--three {
  grid-template-columns: 24% 50% 26%;
}

.page-node-type-testimonials .aw-shared-section-content-grid--testimonial.layout--left {
  grid-template-columns: 24% minmax(0, 74%);
}

.page-node-type-testimonials .aw-shared-section-content-grid--testimonial.layout--right {
  grid-template-columns: minmax(0, 72%) 26%;
}

.page-node-type-testimonials .aw-shared-section-content-grid--testimonial.layout--full {
  grid-template-columns: minmax(0, 1fr);
}

.page-node-type-testimonials .aw-shared-section-sidebar,
.page-node-type-testimonials .aw-shared-section-main-content,
.page-node-type-testimonials .aw-page-content,
.page-node-type-testimonials .shared-section-page-body {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 992px) {
  .page-node-type-testimonials .aw-shared-section-sidebar {
    position: sticky;
    top: 110px;
  }
}

@media (max-width: 991.98px) {
  .page-node-type-testimonials .aw-shared-section-content-grid--testimonial,
  .page-node-type-testimonials .aw-shared-section-content-grid--testimonial.layout--three,
  .page-node-type-testimonials .aw-shared-section-content-grid--testimonial.layout--left,
  .page-node-type-testimonials .aw-shared-section-content-grid--testimonial.layout--right,
  .page-node-type-testimonials .aw-shared-section-content-grid--testimonial.layout--full {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .page-node-type-testimonials .aw-shared-section-sidebar {
    position: static;
  }
}


/* =========================================================
   DETAIL PAGE TITLE / BREADCRUMB / CARD
   ========================================================= */

.page-node-type-testimonials .shared-section-page-breadcrumb {
  margin-bottom: 0.8rem;
}

.page-node-type-testimonials .breadcrumb {
  margin: 0;
  padding: 0;
  background: none;
  font-size: 0.95rem;
}

.page-node-type-testimonials .breadcrumb-item + .breadcrumb-item::before {
  color: #7aa7c3;
}

.page-node-type-testimonials .shared-section-page-title-wrap {
  margin-bottom: 1.2rem;
}

.page-node-type-testimonials .shared-section-page-title {
  margin: 0;
  color: #173a56;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.page-node-type-testimonials .shared-section-page-body {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(251,253,255,0.98) 100%);
  border: 1px solid rgba(0, 132, 203, 0.10);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
}

.page-node-type-testimonials .testimonial-content p {
  margin-bottom: 1rem;
  line-height: 1.85;
}

.page-node-type-testimonials .testimonial-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}


/* =========================================================
   DETAIL PAGE META AT BOTTOM
   ========================================================= */

.page-node-type-testimonials .testimonial-meta-bottom {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid #e4edf4;
}

.page-node-type-testimonials .testimonial-author,
.page-node-type-testimonials .testimonial-location {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 0.45rem;
}

.page-node-type-testimonials .testimonial-meta-label {
  color: #5a7688;
  font-weight: 700;
}

.page-node-type-testimonials .testimonial-meta-value {
  color: #1b648b;
  font-weight: 600;
}

.page-node-type-testimonials .testimonial-related-product {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid #e4edf4;
}

.page-node-type-testimonials .testimonial-related-product h3 {
  color: #173a56;
  margin-bottom: 0.9rem;
}


/* =========================================================
   OPTIONAL IMAGE GROUPS INSIDE TESTIMONIALS
   ========================================================= */

.page-node-type-testimonials .testimonial-images {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.page-node-type-testimonials .testimonial-images img {
  max-width: 260px;
  height: auto;
  border-radius: 8px;
}


/* =========================================================
   BLOCKQUOTE STYLING
   ========================================================= */

.page-node-type-testimonials .testimonial blockquote {
  font-size: 1.12rem;
  font-style: italic;
  color: #2c6c8c;
  border-left: 4px solid #2c6c8c;
  padding-left: 18px;
  margin: 0 0 20px;
}

.page-node-type-testimonials .testimonial blockquote::before {
  content: "❝";
  margin-right: 4px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 991.98px) {
  .path-testimonials .view-testimonials .views-row {
    padding: 24px 22px 20px 34px;
  }

  .path-testimonials .view-testimonials .views-field-title a {
    font-size: 1.18rem;
  }

  .path-testimonials .view-testimonials .views-field-body p {
    font-size: 0.97rem;
  }

  .page-node-type-testimonials .aw-shared-section-content-grid--testimonial {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .page-node-type-testimonials .shared-section-page-body {
    padding: 1.35rem;
  }
}

@media (max-width: 575.98px) {
  .path-testimonials #block-alivewater-page-title h1,
  .page-node-type-testimonials .shared-section-page-title {
    font-size: 1.85rem;
  }

  .path-testimonials .view-testimonials .views-row {
    padding: 20px 18px 18px 30px;
    border-radius: 16px;
  }

  .page-node-type-testimonials .shared-section-page-body {
    padding: 1.15rem;
    border-radius: 16px;
  }
}

@media (min-width: 992px) {
  .page-node-type-testimonials .aw-shared-section-sidebar {
    position: sticky;
    top: 110px;
  }
}

.page-node-type-testimonials .shared-section-page-body {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(251,253,255,0.98) 100%);
  border: 1px solid rgba(0, 132, 203, 0.10);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
}

.page-node-type-testimonials .shared-section-page-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #173a56;
  font-weight: 700;
}

.page-node-type-testimonials .testimonial-author {
  font-weight: 600;
  margin-bottom: 6px;
  color: #1e6f9c;
}

.page-node-type-testimonials .testimonial-location {
  font-size: 0.95rem;
  color: #6b7d88;
  margin-bottom: 18px;
}

.page-node-type-testimonials .testimonial-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.page-node-type-testimonials .testimonial-related-product {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5eef5;
}

.page-node-type-testimonials .testimonial-related-product h3 {
  color: #173a56;
  margin-bottom: 12px;
}

.page-node-type-testimonials .aw-sidebar .block {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 132, 203, 0.10);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(14, 50, 67, 0.06);
  overflow: hidden;
}

.page-node-type-testimonials .aw-sidebar .block > h2 {
  margin: 0;
  padding: 1rem 1.15rem;
  font-size: 1rem;
  font-weight: 700;
  color: #173a56;
  background: linear-gradient(180deg, #f6fbfe 0%, #edf7fc 100%);
  border-bottom: 1px solid rgba(0, 132, 203, 0.10);
}

@media (max-width: 991.98px) {
  .page-node-type-testimonials .aw-shared-section-content-grid--testimonial,
  .page-node-type-testimonials .aw-shared-section-content-grid--testimonial:has(.aw-shared-section-sidebar--left) {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .page-node-type-testimonials .aw-shared-section-sidebar {
    position: static;
  }

  .page-node-type-testimonials .shared-section-page-body {
    padding: 1.4rem;
  }
}

@media (max-width: 575.98px) {
  .page-node-type-testimonials .shared-section-page-title {
    font-size: 1.85rem;
  }

  .page-node-type-testimonials .shared-section-page-body {
    padding: 1.15rem;
    border-radius: 16px;
  }
}

/* =========================================
   TESTIMONIAL DETAIL - LEFT SIDEBAR DESIGN
   ========================================= */

.page-node-type-testimonials .aw-shared-section-sidebar--left .aw-sidebar-region__inner {
  background: #ffffff;
  border: 1px solid rgba(24, 119, 151, 0.12);
  border-radius: 18px;
  padding: 1.1rem 1rem;
  box-shadow: 0 10px 30px rgba(19, 72, 96, 0.08);
}

.page-node-type-testimonials .aw-shared-section-sidebar--left .block {
  margin-bottom: 0;
}

.page-node-type-testimonials .aw-shared-section-sidebar--left .view-testimonial-block .view-content {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.page-node-type-testimonials .aw-shared-section-sidebar--left .views-view-responsive-grid {
  display: block;
}

.page-node-type-testimonials .aw-shared-section-sidebar--left .views-view-responsive-grid__item {
  margin: 0;
}

.page-node-type-testimonials .aw-shared-section-sidebar--left .views-view-responsive-grid__item-inner {
  padding: 0;
}

.page-node-type-testimonials .aw-shared-section-sidebar--left .views-field-title a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fcfe 0%, #eef8fb 100%);
  border: 1px solid rgba(24, 119, 151, 0.10);
  color: #114b5f;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.45;
  transition: all 0.25s ease;
}

.page-node-type-testimonials .aw-shared-section-sidebar--left .views-field-title a:hover,
.page-node-type-testimonials .aw-shared-section-sidebar--left .views-field-title a:focus {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #edf9fd 0%, #dff4fa 100%);
  border-color: rgba(24, 119, 151, 0.22);
  color: #0b5c74;
  text-decoration: none;
}

.page-node-type-testimonials .aw-shared-section-sidebar--left .views-field-title a.is-active,
.page-node-type-testimonials .aw-shared-section-sidebar--left .views-field-title a[aria-current="page"] {
  background: linear-gradient(180deg, #dff6fc 0%, #cfeef8 100%);
  border-color: rgba(24, 119, 151, 0.28);
  color: #0a4e63;
  box-shadow: inset 0 0 0 1px rgba(24, 119, 151, 0.08);
}


.page-node-type-testimonials .aw-shared-section-sidebar--left h2,
.page-node-type-testimonials .aw-shared-section-sidebar--left .block-title {
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
  color: #114b5f;
  margin: 0 0 0.9rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(24, 119, 151, 0.12);
}