/* ============================================================================
   SECTION TITLES
   ============================================================================ */

.primary-title {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 90px;
  padding-right: 90px;
  background: var(--secondary);
  color: white !important;
  height: 150px;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  margin: 80px 0;
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.13em;
}

.secondary-title {
  width: 50%;
  display: flex;
  align-items: center;
  justify-self: flex-end;
  padding-left: 90px;
  padding-right: 90px;
  background: var(--secondary);
  color: white !important;
  height: 150px;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  margin: 80px 0;
  margin-left: auto;
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.13em;
}

@media (max-width: 1024px) {
  .primary-title,
  .secondary-title {
    width: 70%;
    font-size: 2rem;
    height: 120px;
    padding-left: 60px;
    padding-right: 60px;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .primary-title,
  .secondary-title {
    width: 90%;
    font-size: 32px;
    height: 100px;
    padding-left: 30px;
    padding-right: 30px;
  }

  .primary-title {
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
  }

  .secondary-title {
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* ============================================================================
   HERO
   ============================================================================ */

.hero-image {
  background-size: contain;
  width: 100%;
  display: flex;
  background-repeat: no-repeat;
  background-position: top;
  height: 60vw;
}

.hero-overlay {
  display: flex;
  flex-direction: column;
  height: 58%;
  width: 100%;
  max-width: 1440px;
  align-items: flex-end;
  color: white;
  margin: 0px auto;
  position: relative;
  align-items: flex-end;
  justify-content: center;
  justify-content: flex-end;
  gap: 25%;
}

.plot-hero-video .hero-overlay {
  position: absolute;
}

h1.banner-text {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .hero-overlay {
    height: 450px;
    gap: 10px;
  }

  h1.hero-page-title {
    margin: 0px auto;
  }

  .hero-overlay h1 {
    font-size: 10vw;
  }

  .hero-image {
    background-size: cover;
    background-position: center;
    height: 600px;
  }

  body:not(.home) .hero-image {
    height: 400px;
    background-position: left;
  }
}
.banner-subtitle {
  text-transform: uppercase;
  position: relative;
  top: -2vw;
  color: white;
}

/* Video Hero Styles */
.plot-hero-video {
  width: 100%;
  height: 600px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.hero-background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: 60vw;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

/* ============================================================================
   Image Hero Section - New Layout
   ============================================================================ */
.image-hero-section {
  padding: 6rem 0;
  min-height: 900px;
  display: flex;
  align-items: center;
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
}

/* Background image overlay with opacity control */
.image-hero-section.has-bg-image::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-image-url);
  background-size: cover;
  background-position: bottom right;
  background-repeat: no-repeat;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

.image-hero-section.has-bg-image.bg-contain::before {
  background-size: contain;
  height: 90%;
}

.image-hero-section.has-bg-image.bg-cover::before {
  background-size: cover;
}

.image-hero-section .container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  gap: 5vw;
  align-items: center;
}

.image-hero-section .hero-grid {
  display: block;
}

.image-hero-section .hero-content-wrapper {
  max-width: 600px;
}

/* Alignment options */
.image-hero-section.align-left .hero-content-wrapper {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.image-hero-section.align-center .hero-content-wrapper {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.image-hero-section.align-right .hero-content-wrapper {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

.image-hero-section .hero-title {
  font-family: "Poppins", sans-serif;
  font-size: 60px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 2.4px;
  margin: 0 0 1rem 0;
}

.image-hero-section .line2 {
  font-family: "Libertinus Sans", sans-serif;
  font-size: 82px;
  color: var(--secondary) !important;
}

.image-hero-section .hero-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0;
  margin: 0 0 1.5rem 0;
  opacity: 0.95;
  border-bottom: 3px solid #ffffff50;
  width: fit-content;
}

/* Align subtitle border based on section alignment */
.image-hero-section.align-center .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.image-hero-section.align-right .hero-subtitle {
  margin-left: auto;
  margin-right: 0;
}

.image-hero-section .hero-description {
  font-family: "Libertinus Sans", sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 140%;
  letter-spacing: 0;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.image-hero-section .hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

/* Align buttons based on section alignment */
.image-hero-section.align-center .hero-buttons {
  justify-content: center;
}

.image-hero-section.align-right .hero-buttons {
  justify-content: flex-end;
}

.primary-button,
.secondary-button,
.image-hero-section .hero-button {
  font-family: "Poppins", sans-serif;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  border-radius: 0px;
  display: inline-block;
  border: 2px solid transparent;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
  width: fit-content;
}

.secondary-button,
.image-hero-section .hero-button:first-child {
  background-color: var(--secondary);
  color: white !important;
}

.secondary-button:hover,
.image-hero-section .hero-button:first-child:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
}

.primary-button,
.image-hero-section .hero-button:nth-child(2) {
  background-color: var(--primary);
  color: white !important;
  text-align: center;
}

.primary-button:hover,
.image-hero-section .hero-button:nth-child(2):hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.image-hero-section .hero-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 2rem;
}

/* Align features list based on section alignment */
.image-hero-section.align-center .hero-features-list {
  justify-content: center;
}

.image-hero-section.align-right .hero-features-list {
  justify-content: flex-end;
}

.image-hero-section .hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Libertinus Sans", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 25px;
}

.image-hero-section .checkmark-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.image-hero-section .hero-images-wrapper {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.image-hero-section .hero-image-item {
  max-width: 100%;
  pointer-events: auto;
}

.image-hero-section .hero-image-item img {
  width: 100%;
  display: block;
  min-width: 50%;
  height: auto;
}

/* Specific positioning for multiple images if needed */
.image-hero-section .hero-images-wrapper .hero-image-1 {
  position: relative;
  z-index: 2;
}

.image-hero-section .hero-images-wrapper .hero-image-2 {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  max-width: 45%;
  z-index: 1;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .image-hero-section .hero-title {
    font-size: 42px;
    line-height: 140%;
  }

  .image-hero-section.has-bg-image.bg-contain::before {
    background-size: cover;
  }

  .image-hero-section .hero-subtitle {
    font-size: 20px;
  }

  .image-hero-section .hero-content-wrapper {
    max-width: 100%;
    text-align: center;
  }

  .image-hero-section .hero-features-list {
    justify-content: center;
    max-width: 100%;
  }

  .image-hero-section .hero-images-wrapper {
    width: 60%;
    opacity: 0.3;
  }
}

@media (max-width: 768px) {
  .image-hero-section {
    padding: 3rem 0;
    min-height: 600px;
  }

  .image-hero-section .container {
    padding: 0 1.5rem;
    flex-direction: column;
  }

  .image-hero-section .hero-title {
    font-size: 32px;
  }

  .image-hero-section .hero-subtitle {
    font-size: 18px;
  }

  .image-hero-section .hero-description {
    font-size: 16px;
  }

  .image-hero-section .hero-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }

  .image-hero-section .hero-features-list {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .image-hero-section .hero-images-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    padding: 2rem 1.5rem;
    opacity: 0.2;
    justify-content: center;
  }
}

.hero-features-list {
  display: flex;
  gap: 7vw;
}
.hero-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.hero-feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-feature-icon i {
  width: 24px;
  height: 24px;
  color: var(--white);
}
.hero-feature-number {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  color: #274166 !important;
  font-family: "Poppins";
}
.hero-feature-content {
  font-size: 18px;
  text-align: center;
  color: #a3a3a3 !important;
}
.image-hero-section.has-bg-image::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-image-url);
  background-size: cover;
  background-position: var(--bg-image-position, bottom right);
  background-repeat: no-repeat;
  opacity: var(--bg-image-opacity, 0.2);
  z-index: -1;
  pointer-events: none;
}

/* ============================================================================
   Two Column with image
   ============================================================================ */
/* Two Column Image Content Section */
.two-col-image-content-section {
  padding: 50px 0;
  background-color: #f8f9fa;
  position: relative;
}

/* Remove bottom padding when the section ends with a bottom curve */
.two-col-image-content-section:has(.gallery-page-bottom-curve) {
  padding-bottom: 0px;
}
.two-col-image-content-section .flex-container {
  display: flex;
  align-items: stretch;
  margin: 0 auto;
  gap: 60px;
}

/* Column layouts — image RIGHT: col-right = image (520px), col-left = content (flex) */
.two-col-image-content-section .flex-container.image-right .col-left {
  flex: 1 1 0;
  min-width: 0;
  align-self: flex-start;
}
.two-col-image-content-section .flex-container.image-right .col-right {
  flex: 0 0 560px;
  max-width: 560px;
}

/* Column layouts — image LEFT: col-left = image (520px), col-right = content (flex) */
.two-col-image-content-section .flex-container.image-left .col-left {
  flex: 0 0 560px;
  max-width: 560px;
}
.two-col-image-content-section .flex-container.image-left .col-right {
  flex: 1 1 0;
  min-width: 0;
  align-self: flex-start;
}

/* Side text column in two-col-image-content-section */
.two-col-image-content-section .flex-container .multi-col-side-text-col {
  flex: 0 0 auto;
  align-self: stretch;
}
.two-col-image-content-section
  .flex-container.side-text--left
  .multi-col-side-text-col {
  order: -1;
}
.two-col-image-content-section
  .flex-container.side-text--right
  .multi-col-side-text-col {
  order: 999;
}

/* Image wrapper styling */
.two-col-image-content-section .image-wrapper {
  position: relative;
  width: 100%;
  object-fit: cover;
  height: 100%;
}

.two-col-image-content-section .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.two-col-image-content-section .image-wrapper .rounded-top {
  border-radius: 400px 400px 0px 0px;
}
.two-col-image-content-section .image-wrapper .rounded-left {
  border-radius: 0px 400px 400px 0px;
}

.two-col-image-content-section .image-wrapper .rounded-bottom {
  border-radius: 0px 0px 400px 400px;
}
.two-col-image-content-section .image-wrapper .rounded-right {
  border-radius: 400px 0px 0px 400px;
}

#about-susi.two-col-image-content-section .image-wrapper {
  max-height: 800px;
}

/* Image caption overlay */
.two-col-image-content-section .image-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
}

.two-col-image-content-section .image-caption-curve {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -1px;
  position: relative;
  top: 15px;
}

.two-col-image-content-section .image-caption-text {
  position: relative;
  background-color: var(--accent);
  padding: 2px 24px 2px 40px;
}

.two-col-image-content-section .image-caption-text::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 12px;
  bottom: 20px;
  border-left: 4px solid var(--primary);
}

.two-col-image-content-section .image-caption-text h3 {
  font-family: "libertinus sans", sans-serif;
  margin: 0 0 4px;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.3;
}

.two-col-image-content-section .image-caption-text p {
  margin: 0;
  line-height: 1.5;
}
/* Text Container Rounding - Desktop */
.two-col-image-content-section .col-left.grey-background.rounded-top {
  border-radius: 400px 400px 0px 0px;
}
.two-col-image-content-section .col-left.grey-background.rounded-left {
  border-radius: 0px 400px 400px 0px;
  padding-right: 8vw;
}
.two-col-image-content-section .col-left.grey-background.rounded-bottom {
  border-radius: 0px 0px 400px 400px;
}
.two-col-image-content-section .col-left.grey-background.rounded-right {
  border-radius: 400px 0px 0px 400px;
}

.home #welcome-section.two-col-image-content-section {
  padding: 150px 0px;
}

.home #welcome-section.two-col-image-content-section .image-wrapper > img,
#about-susi.two-col-image-content-section .image-wrapper > img {
  border-radius: 20px;
}

@media (max-width: 768px) {
  .home #welcome-section.two-col-image-content-section {
    padding-bottom: 20px !important;
    margin-top: -107px;
    z-index: 3;
  }

  .home .multi-col-content-section {
    padding-top: 30px !important;
  }
  /* Image Rounding - Mobile */
  .two-col-image-content-section .image-wrapper img.mobile-rounded-top {
    border-radius: 400px 400px 0px 0px;
  }
  .two-col-image-content-section .image-wrapper img.mobile-rounded-left {
    border-radius: 0px 400px 400px 0px;
  }
  .two-col-image-content-section .image-wrapper img.mobile-rounded-bottom {
    border-radius: 0px 0px 400px 400px;
  }
  .two-col-image-content-section .image-wrapper img.mobile-rounded-right {
    border-radius: 400px 0px 0px 400px;
  }

  /* Text Container Rounding - Mobile */
  .two-col-image-content-section .col-left.grey-background.mobile-rounded-top {
    border-radius: 45vw 45vw 0px 0px;
  }
  .two-col-image-content-section .col-left.grey-background.mobile-rounded-left {
    border-radius: 0px 400px 400px 0px;
  }
  .two-col-image-content-section
    .col-left.grey-background.mobile-rounded-bottom {
    border-radius: 0px 0px 400px 400px;
  }
  .two-col-image-content-section
    .col-left.grey-background.mobile-rounded-right {
    border-radius: 400px 0px 0px 400px;
  }

  .two-col-image-content-section .image-caption-text h3 {
    font-size: 24px;
  }

  .two-col-image-content-section .image-caption-text p {
    font-size: 18px;
  }
}

@media (max-width: 1200px) {
  /* Column layouts — image LEFT: col-left = image (520px), col-right = content (flex) */
  .two-col-image-content-section .flex-container.image-left .col-left {
    max-width: 400px;
  }

  .two-col-image-content-section .flex-container.image-right .col-right {
    max-width: 400px;
  }
}

/* Subtitle styling if present */
.two-col-image-content-section .subtitle {
  display: block;
  font-size: 1.2rem;
  color: #c2a66a;
  margin-top: 10px;
  text-transform: none;
  letter-spacing: 0.5px;
}

/* Button wrapper */
.two-col-image-content-section .button-wrapper {
  margin-top: 30px;
}

/* Image position variants - using order property */
/* When image is on LEFT: image is order 1, content is order 2 */
.two-col-image-content-section.image-left .col-left {
  order: 1; /* Image column */
}

.two-col-image-content-section.image-left .col-right {
  order: 2; /* Content column */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* When image is on RIGHT: content is order 1, image is order 2 */
.two-col-image-content-section.image-right .col-left {
  order: 1; /* Content column */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.two-col-image-content-section.image-right .col-right {
  order: 2; /* Image column */
}

.image-left .main-content {
  margin: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 50px;
}

.two-col-image-content-section .main-content p:has(a) {
  padding-top: 10px;
}

.two-col-image-content-section.text-text1 .main-content h2 {
  color: var(--secondary) !important;
}

.two-col-image-content-section .main-content h3 {
  color: var(--secondary);
}

.two-col-image-content-section .main-content-image img {
  width: 100%;
}

.two-col-image-content-section .image-right .col-left .main-content {
  margin: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 50px;
}
.two-col-image-content-section .main-content h3 {
  margin-bottom: 30px;
}

/* Responsive design */
@media (max-width: 768px) {
  .two-col-image-content-section .main-content {
    padding: 0px !important;
  }
}

/* Responsive design */
@media (max-width: 1024px) {
  .pilates-course-info-page .multi-col-side-text-col {
    display: none;
  }

  .two-col-image-content-section {
    padding: 40px 0px;
  }

  #reflexology-essential.two-col-image-content-section
    .flex-container.side-text--right
    .multi-col-side-text-col {
    display: none;
  }

  .two-col-image-content-section .flex-container {
    flex-direction: column !important;
    gap: 40px;
  }

  .two-col-image-content-section
    .flex-container.side-text--left
    .multi-col-side-text-col {
    order: auto;
  }

  .two-col-image-content-section .flex-container.image-right {
    flex-direction: column-reverse !important;
  }

  .pilates-page .two-col-image-content-section .flex-container.image-right {
    flex-direction: column !important;
  }

  .pilates-page .two-col-image-content-section .flex-container.image-left {
    flex-direction: column-reverse !important;
  }

  .pilates-page .two-col-image-content-section .image-wrapper img,
  .pilates-course-info-page .two-col-image-content-section .image-wrapper img,
  .reflexology-page .two-col-image-content-section .image-wrapper img,
  .reflexology-course-info-page
    .two-col-image-content-section
    .image-wrapper
    img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 700px;
    object-position: center;
  }

  .two-col-image-content-section .flex-container.image-left .col-left,
  .two-col-image-content-section .flex-container.image-right .col-right {
    max-width: 100%;
  }

  /* Reset order on mobile so it always stacks properly */
  .two-col-image-content-section .col-left,
  .two-col-image-content-section .col-right {
    order: unset;
  }
  .two-col-image-content-section .main-content {
    padding: 30px;
  }

  .two-col-image-content-section .main-content {
    margin-bottom: 20px;
  }

  .two-col-image-content-section .button-wrapper {
    margin-top: 20px;
  }

  .two-col-image-content-section.image-left .col-right {
    border-radius: 40vw 0px 0px 0px;
    padding: 0px;
    text-align: center;
  }

  .two-col-image-content-section.image-right .grey-background::before {
    display: none;
  }
  section#land-two-col.two-col-image-content-section.image-right
    .flex-container {
    flex-direction: column-reverse !important;
    gap: 0px;
  }
  .two-col-image-content-section .col-left.grey-background.mobile-rounded-top {
    border-radius: 45vw 45vw 0px 0px;
    padding-top: 45vw;
    padding: 45vw 30px 30px 30px;
  }

  #our-process-section.two-col-image-content-section .flex-container {
    flex-direction: column-reverse !important;
  }
}
@media (max-width: 1200px) {
  .two-col-image-content-section .flex-container {
    gap: 1rem;
  }
}

section#land-two-col .main-content {
  z-index: 1;
}

.two-col-image-content-section.image-right .grey-background::before {
  content: "";
  position: absolute;
  top: 0;
  right: 85vw;
  bottom: 0;
  left: 0;
  background-color: #f6f4f2;
  z-index: 0;
}

.two-col-image-content-section .main-content blockquote {
  margin-top: 20px;
}

#what-to-bring.two-col-image-content-section .image-wrapper img,
#pilates-intro.two-col-image-content-section .image-wrapper img {
  object-fit: contain;
}

#pilates-intro h2:first-of-type::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 40px;
  padding-left: 10px;
  background-image: url("https://dev.blueprintweb.uk/reflexology/wp-content/uploads/2026/06/Pilates-Icon.webp");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  align-self: center;
}

#reflexology-intro .main-content > h2:first-of-type::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 40px;
  padding-left: 10px;
  background-image: url("https://dev.blueprintweb.uk/reflexology/wp-content/uploads/2026/06/Reflexology-Icon.webp");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  align-self: center;
}

#pilates-intro h2,
#reflexology-intro .main-content h2 {
  display: flex;
}

/* ============================================================================
   ABOUT
   ============================================================================ */
.about-container {
  max-width: var(--container-width);
  margin: auto;
  display: flex;
  gap: 5vw;
  align-items: flex-end;
  padding-top: 120px;
}

.about-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 5vw;
}
.about-image-circle {
  display: flex;
}

.about-content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 70px;
  height: -webkit-fill-available;
  width: 100%;
}

.grid-image img {
  width: 100%;
}
@media (max-width: 1024px) {
  .about-image-circle img,
  .grid-image img {
    width: 100%;
  }
}
/* Mobile Styles */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    gap: 40px;
    padding: var(--mobile-padding);
  }

  .about-image-circle {
    order: 3;
  }

  .about-images-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-content-wrapper {
    gap: 40px;
  }
}
/* ============================================================================
   QUOTE
   ============================================================================ */

section.quote-section {
  margin-top: 120px;
  margin-bottom: 150px;
  position: relative;
}

.quote-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 70vw;
  bottom: 0;
  left: 0;
  background-color: #f6f4f2;
  z-index: -1;
}

.quote-content {
  background: var(--tertiary);
  border-radius: 0px 400px 400px 0px;
  padding: 80px 0px;
}

@media (max-width: 768px) {
  section.quote-section {
    margin-top: 80px;
    margin-bottom: 80px;
  }
  .quote-content {
    padding: 50px 30px;
  }
}

/* ============================================================================
   TITLE AND CONTENT
   ============================================================================ */
section.title-content-section {
  margin: 92px 0px;
}

.title-content-section h2 {
  margin-bottom: 30px;
}

/* ============================================================================
   Contact
   ============================================================================ */
.contact-footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 120px;
  width: 100%;
  margin-top: 60px;
  margin-bottom: 60px;
}

.contact-footer-left {
  background: var(--tertiary);
  border-radius: 0px 25rem 25rem 0px;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 80px;
  padding-left: 0px;
}

.contact-footer-section {
  position: relative;
}

.contact-footer-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 70vw;
  bottom: 0;
  left: 0;
  background-color: #f6f4f2;
  z-index: -1;
}

.contact-footer-left,
.contact-footer-right {
  flex: 1;
}

.contact-form {
  max-width: 800px;
}

.form-group {
  margin-bottom: 20px;
}

.form-input {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--primary);
  background: transparent;
  font-size: 14px;
  color: #333;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-input::placeholder {
  color: #999;
}

.form-input:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.form-textarea {
  resize: vertical;
  min-height: 60px;
}

.form-submit {
  display: inline-block;
  background: #fff;
  color: var(--secondary) !important;
  border: 1px solid var(--secondary);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 1px;
  padding: 10px 40px 10px 30px;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Form checkbox for terms agreement */
.form-checkbox {
  margin-top: 20px;
  margin-bottom: 20px;
}

.form-checkbox label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.6;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  min-width: 18px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  border: 1px solid var(--secondary);
  background: #fff;
}

.form-checkbox span {
  color: #fff;
  font-size: 18px;
}

.form-checkbox a {
  color: var(--secondary) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px !important;
}

.form-checkbox a:hover {
  text-decoration: underline;
}

.header .contact-button,
.site-footer .contact-button {
  padding: 12px 30px;
  background-color: var(--secondary);
  color: var(--white);
  border: 2px solid var(--secondary);
  border-radius: 0;
  font-family: "Libertinus Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
  display: inline-block;
  cursor: pointer;
}

.contact-button:hover,
.site-footer .contact-button:hover {
  background-color: transparent;
  color: black;
}

/* ============================================================================
   Contact Section
   ============================================================================ */

.contact-section {
  padding: 80px 0 0 0;
  background: #000;
}

.contact-section .container {
  max-width: var(--container-width, 1600px);
  margin: 0 auto;
  padding: 0 60px;
}

.contact-title {
  margin-bottom: 60px;
}

.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.contact-form-column {
  max-width: 100%;
}

.contact-form {
  width: 100%;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
  width: 100%;
  padding: 15px 20px;
  background: var(--accent);
  border: none;
  color: #000 !important;
  font-size: 20px;
  font-family: "Libertinus Sans", sans-serif;
  min-height: 64px;
}

.contact-form .form-group textarea {
  min-height: 300px;
}

.contact-form .form-group.form-checkbox input {
  width: auto;
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
  color: #999;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
  outline: 2px solid var(--secondary);
}

.contact-form .form-group.full-width {
  grid-column: 1 / -1;
}

.contact-form .form-buttons {
  margin-top: 30px;
}

.contact-form .button-send {
  display: inline-block;
  background: var(--secondary);
  color: white !important;
  border: 1px solid var(--secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 1px;
  padding: 20px 40px 20px 30px;
  transition: transform 0.3s ease;
  cursor: pointer;
  font-family: "Lexend", sans-serif;
  width: 100%;
}

.button-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 20px;
}

.contact-info-item {
  display: flex;
  gap: 15px;
  color: #fff;
  font-size: 20px;
  font-weight: 300;
  font-family: "Poppins", sans-serif;
}

.contact-info-item a {
  font-size: 20px;
  font-weight: 300;
  font-family: "Poppins", sans-serif;
}

.contact-info-item img {
  flex: 0 0 40px;
  width: 40px;
  height: 28px;
  object-fit: contain;
  object-position: center;
  max-width: 24px;
}

.contact-info-item i {
  color: var(--white) !important;
  font-size: 28px;
  min-width: 20px;
  margin-top: 3px;
}

/* Form Messages */
.form-message {
  padding: 20px;
  border-radius: 4px;
  margin-top: 20px;
}

.form-message.success {
  background: #4caf50;
  color: #fff;
}

.form-message.error {
  background: #f44336;
  color: #fff;
}

.form-message h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.form-message p {
  margin: 0;
  font-size: 16px;
}

@media (max-width: 1200px) {
  .contact-footer-content {
    gap: 5vw;
  }
  .contact-footer-left {
    padding-left: 20px;
    gap: 30px;
  }

  /* Contact section responsive */
  .contact-section .container {
    padding: 0 40px;
  }
}

@media (max-width: 1024px) {
  .contact-footer-content {
    grid-template-columns: 1fr;
    gap: 40px !important;
  }
  .contact-footer-left {
    margin-left: -20px;
    margin-right: -20px;
  }
  .contact-footer-section::before {
    display: none;
  }

  /* Contact section responsive */
  .contact-content {
    grid-template-columns: 1fr !important;
    gap: 40px;
    display: flex !important;
    flex-direction: column;
  }

  .contact-section .container {
    padding: 0 30px;
  }

  .contact-title {
    font-size: 50px;
  }
}

@media (max-width: 768px) {
  section.contact-footer-section {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .contact-footer-left {
    background: var(--tertiary);
    border-radius: 0px 0rem 200px 0px;
    padding-left: 30px;
    padding-right: 40px;
  }
  .contact-form .form-submit {
    width: 100%;
  }

  /* Contact section responsive */
  .contact-section {
    padding: 40px 0;
  }

  .contact-section .container {
    padding: 0 20px;
  }

  .contact-title {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .button-send {
    width: 100%;
    font-size: 1.1rem;
    text-align: center;
  }

  .contact-info-column {
    gap: 20px;
  }
}

/* ============================================================================
   Post Listing Section
   ============================================================================ */
.post-listing-section {
  padding: 80px 0;
}
.post-listing-section .section-title {
  font-family: "Libertinus Sans", sans-serif;
  font-size: 70px;
  font-weight: 700;
  letter-spacing: -2%;
}

.post-listing-section .post-listing-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: normal;
}

.post-listing-grid {
  display: grid;
  gap: 0px;
}

/* Testimonial grid cards — white background, black text */
.post-listing-grid .testimonial-item {
  background: #ffffff;
  color: #000000;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.post-listing-grid .testimonial-item * {
  color: #000000a3;
}

.post-listing-grid .testimonial-item .testimonial-item-author {
  font-weight: 600;
  margin: 0;
}

.post-listing-grid .testimonial-item .testimonial-item-content {
  flex: 1;
  margin: 0;
}

.post-listing-grid .testimonial-item .testimonial-stars {
  color: var(--secondary);
  display: flex;
  gap: 4px;
  margin-top: auto;
}

.post-listing-grid .testimonial-item .testimonial-stars svg {
  flex-shrink: 0;
  fill: var(--primary);
  stroke: var(--primary);
}

/* Every 4n+1 testimonial (1st, 5th, 9th…) spans full width */
.post-listing-grid .testimonial-featured {
  grid-column: 1 / -1;
}

/* Gap between testimonial cards */
.post-type-testimonial .post-listing-grid {
  gap: 50px;
}

/* Prev / Next pagination */
.post-listing-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
}

.pl-pagination-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--secondary);
  color: var(--white) !important;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease;
}

.pl-pagination-btn:hover {
  opacity: 0.8;
  text-decoration: none;
}

.pl-pagination-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.pl-pagination-info {
  font-size: 0.9rem;
  opacity: 0.7;
  color: #fff !important;
}
.post-listing-grid.columns-1 {
  grid-template-columns: 1fr;
}
.post-listing-grid.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}
.post-listing-grid.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}
.post-listing-grid.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}
.post-listing-grid.columns-5 {
  grid-template-columns: repeat(5, 1fr);
}
.post-listing-grid.columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

/* Side text column inside post-listing-grid */
.post-listing-grid.has-side-text.side-text--left.columns-1 {
  grid-template-columns: auto 1fr !important;
}
.post-listing-grid.has-side-text.side-text--left.columns-2 {
  grid-template-columns: auto repeat(2, 1fr) !important;
}
.post-listing-grid.has-side-text.side-text--left.columns-3 {
  grid-template-columns: auto repeat(3, 1fr) !important;
}
.post-listing-grid.has-side-text.side-text--left.columns-4 {
  grid-template-columns: auto repeat(4, 1fr) !important;
}
.post-listing-grid.has-side-text.side-text--left.columns-5 {
  grid-template-columns: auto repeat(5, 1fr) !important;
}
.post-listing-grid.has-side-text.side-text--left.columns-6 {
  grid-template-columns: auto repeat(6, 1fr) !important;
}

.post-listing-grid.has-side-text.side-text--right.columns-1 {
  grid-template-columns: 1fr auto !important;
}
.post-listing-grid.has-side-text.side-text--right.columns-2 {
  grid-template-columns: repeat(2, 1fr) auto !important;
}
.post-listing-grid.has-side-text.side-text--right.columns-3 {
  grid-template-columns: repeat(3, 1fr) auto !important;
}
.post-listing-grid.has-side-text.side-text--right.columns-4 {
  grid-template-columns: repeat(4, 1fr) auto !important;
}
.post-listing-grid.has-side-text.side-text--right.columns-5 {
  grid-template-columns: repeat(5, 1fr) auto !important;
}
.post-listing-grid.has-side-text.side-text--right.columns-6 {
  grid-template-columns: repeat(6, 1fr) auto !important;
}

/* Span all rows so it runs the full height of the grid */
.post-listing-grid .multi-col-side-text-col {
  grid-row: 1 / -1;
}

/* Carousel side text — absolutely positioned so it doesn't affect carousel layout */
.post-listing-carousel.has-side-text {
  position: relative;
}

.post-listing-carousel .multi-col-side-text-col {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.post-listing-carousel.side-text--left .multi-col-side-text-col {
  left: 0;
  padding-bottom: 40px;
}

.post-listing-carousel.side-text--right .multi-col-side-text-col {
  right: 0;
}

/* Testimonial carousel: 1 card at a time full width */
.post-listing-carousel.post-type-testimonial .post-card {
  flex: 0 0 100%;
}
.testimonial-stars {
  margin-bottom: 10px;
}

.post-listing-carousel.post-type-testimonial .testimonial-item-content {
  padding: 0 40px;
}

@media (max-width: 1024px) {
  .post-listing-carousel .multi-col-side-text-col {
    position: static;
    width: 100%;
    height: 36px;
  }
}

@media (max-width: 768px) {
  .post-listing-grid.has-side-text.side-text--left.columns-1,
  .post-listing-grid.has-side-text.side-text--left.columns-2,
  .post-listing-grid.has-side-text.side-text--left.columns-3,
  .post-listing-grid.has-side-text.side-text--left.columns-4,
  .post-listing-grid.has-side-text.side-text--left.columns-5,
  .post-listing-grid.has-side-text.side-text--left.columns-6,
  .post-listing-grid.has-side-text.side-text--right.columns-1,
  .post-listing-grid.has-side-text.side-text--right.columns-2,
  .post-listing-grid.has-side-text.side-text--right.columns-3,
  .post-listing-grid.has-side-text.side-text--right.columns-4,
  .post-listing-grid.has-side-text.side-text--right.columns-5,
  .post-listing-grid.has-side-text.side-text--right.columns-6 {
    grid-template-columns: 1fr !important;
  }

  .post-listing-grid .multi-col-side-text-col {
    grid-row: auto;
  }
  .post-type-testimonial p {
    font-size: 16px;
  }
}

.post-listing-item {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: background 0.8s ease-in-out;
}
.post-listing-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.8s ease-in-out;
}

.post-listing-item:hover::before {
  transform: scale(1.1);
}

.post-listing-link {
  position: relative;
  z-index: 1;
}

.post-listing-link {
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding: 24px;
  box-sizing: border-box;
}
.post-listing-title {
  font-family: "Lexend", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin: 0;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}
.post-listing-item:hover .post-listing-title {
  color: var(--secondary);
}

/* Responsive */
@media (max-width: 1200px) {
  .post-listing-grid.columns-6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .post-listing-grid.columns-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1024px) {
  .post-listing-section {
    padding: 60px 0;
  }

  .post-listing-section .section-title {
    font-size: 50px;
    margin-bottom: 40px;
  }

  .post-listing-grid.columns-6,
  .post-listing-grid.columns-5,
  .post-listing-grid.columns-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-listing-grid.columns-3 {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (max-width: 768px) {
  .post-listing-section .section-title {
    font-size: 36px;
  }

  .post-listing-grid.columns-6,
  .post-listing-grid.columns-5,
  .post-listing-grid.columns-4,
  .post-listing-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .post-listing-grid.columns-3 {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (max-width: 600px) {
  .post-listing-grid.columns-6,
  .post-listing-grid.columns-5,
  .post-listing-grid.columns-4,
  .post-listing-grid.columns-3,
  .post-listing-grid.columns-2 {
    grid-template-columns: 1fr;
  }

  .post-listing-title {
    font-size: 20px;
  }
}

/* Services-specific styling */
.post-listing-section.post-type-service .post-listing-grid {
  gap: 24px;
}

.post-listing-section.post-type-service .post-listing-item.service-item {
  aspect-ratio: auto;
  padding: 0;
}

.post-listing-section.post-type-service
  .post-listing-item.service-item::before {
  display: none;
}

.post-listing-section.post-type-service .service-content {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.post-listing-section.post-type-service .post-listing-title {
  font-family: "Libertinus Sans", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -2%;
}

.post-listing-section.post-type-service .post-listing-excerpt {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: normal;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.post-listing-section.post-type-service .post-listing-excerpt p {
  margin: 0;
}

.post-listing-section.post-type-service .service-button {
  display: inline-block;
  padding: 12px 28px;
  background-color: #0e0e2c;
  color: #fff;
  text-decoration: none;
  font-family: "Libertinus Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  align-self: center;
}

.post-listing-section.post-type-service .service-button:hover {
  background-color: #014e92;
}

@media (max-width: 768px) {
  .post-listing-section.post-type-service .service-content {
    padding: 24px 20px;
    gap: 12px;
  }

  .post-listing-section.post-type-service .post-listing-title {
    font-size: 20px;
  }

  .post-listing-section.post-type-service .post-listing-excerpt {
    font-size: 15px;
  }

  .post-listing-section.post-type-service .service-button {
    padding: 10px 24px;
    font-size: 15px;
  }
}

/* Case Studies-specific styling */
.post-listing-section.post-type-case_study .post-listing-grid {
  gap: 24px;
}

.post-listing-section.post-type-case_study .post-listing-item.case-study-item {
  aspect-ratio: auto;
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.post-listing-section.post-type-case_study
  .post-listing-item.case-study-item::before {
  display: none;
}

.post-listing-section.post-type-case_study .case-study-link {
  text-decoration: none;
  display: block;
}

.post-listing-section.post-type-case_study .case-study-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f0f0f0;
}

.post-listing-section.post-type-case_study .case-study-image-default,
.post-listing-section.post-type-case_study .case-study-image-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.post-listing-section.post-type-case_study .case-study-image-hover {
  opacity: 0;
  background: var(--primary);
}

.post-listing-section.post-type-case_study
  .case-study-item:hover
  .case-study-image-hover {
  opacity: 1;
  padding: 20px;
  object-fit: contain;
}

.post-listing-section.post-type-case_study .case-study-content {
  padding: 20px 0;
}

.post-listing-section.post-type-case_study .post-listing-title {
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #0a2b5e;
  line-height: 1.3;
  margin: 0 0 12px 0;
  transition: color 0.3s ease;
}

.post-listing-section.post-type-case_study
  .case-study-item:hover
  .post-listing-title {
  color: #014e92;
}

.post-listing-section.post-type-case_study .case-study-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-listing-section.post-type-case_study .case-study-category {
  display: inline-block;
  font-family: "Libertinus Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #666 !important;
  padding: 4px 12px;
  background: #f5f5f5;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .post-listing-section.post-type-case_study .post-listing-title {
    font-size: 18px;
  }

  .post-listing-section.post-type-case_study .case-study-category {
    font-size: 13px;
    padding: 3px 10px;
  }
}

/* ============================================================================
   Posts Carousel
   ============================================================================ */
.posts-carousel-section {
  padding: 60px 0;
  overflow: hidden;
}

.posts-carousel-section .section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

/* ============================================================================
   Posts Carousel
   ============================================================================ */
.post-listing-carousel {
  padding: 60px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.post-listing-carousel > .container,
.post-listing-carousel > .posts-carousel-container {
  width: 100%;
}

.posts-carousel-container {
  position: relative;
  margin: 0 auto;
  padding: 0 50px 10px 90px;
  max-width: 1440px;
  width: 100%;
  text-align: center;
}

.posts-carousel {
  overflow: hidden;
  width: 100%;
}

.posts-carousel-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-card {
  flex: 0 0 calc(33.333% - 20px);
  min-width: 0;
  overflow: hidden;
  user-select: none;
  background: transparent;
}

@media (max-width: 992px) {
  .post-card {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .post-card {
    flex: 0 0 100%;
  }
  .posts-carousel-container {
    padding: 0px;
  }
}

.post-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #1a2f42;
  pointer-events: none;
}

.post-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
  transform: scale(1.04);
}

.post-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a2f42;
  color: #666;
}

.post-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.85;
  pointer-events: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-read-button {
  display: inline-block;
  background: var(--primary);
  color: white !important;
  border: 1px solid currentColor;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 24px;
  clip-path: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  pointer-events: auto;
  align-self: flex-start;
}

.post-read-button:hover {
  background: transparent;
  color: var(--primary) !important;
  border: 1px solid var(--primary);
}

.bg-primary .post-read-button:hover {
  background: var(--secondary);
  color: whitesmoke !important;
  border: 1px solid white;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: calc(50% - 60px);
  transform: translateY(-50%);
  z-index: 2;
  background: transparent;
  color: inherit;
  border: none;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.carousel-arrow:hover {
  opacity: 1;
}

.carousel-arrow--prev {
  left: 8px;
}
.carousel-arrow--next {
  right: 8px;
}

/* Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
  flex-shrink: 0;
}

.carousel-indicator:hover {
  transform: scale(1.2);
}

.carousel-indicator.active {
  background: #ffffff;
}
/* ============================================================================
   Multiple Contact Calendar
   ============================================================================ */

.mcc-section {
  padding: 50px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.mcc-section.has-bg-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-image-url);
  background-size: contain;
  background-position: right bottom;
  background-repeat: no-repeat;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

.mcc-section.has-bg-image > * {
  position: relative;
  z-index: 1;
}

.mcc-title {
  margin-bottom: 10px;
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 30px;
}

.mcc-subtitle {
  margin-bottom: 40px;
  text-align: center;
}

.mcc-type-label {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* Step selector sections */
.mcc-selector-section {
  margin-bottom: 20px;
}

.mcc-step-label {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0px;
  padding-bottom: 0px;
  opacity: 0.7;
}

/* Filter buttons container */
.mcc-filter-btns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

/* Tab buttons container */
.mcc-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

/* Shared card component (filter + tab buttons) */
.mcc-card {
  font-family: "Poppins", sans-serif;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 2px solid var(--accent);
  border-radius: 16px;
  background: var(--white, #fff);
  color: inherit;
  cursor: pointer;
  text-align: left;
  text-transform: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
  width: 100%;
}

.mcc-card:hover {
  border-color: var(--secondary);
}

.mcc-card.is-active {
  border-color: var(--secondary);
}

.mcc-card-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.mcc-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mcc-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
}

.mcc-card-subtitle {
  font-size: 0.875rem;
  opacity: 0.65;
  display: block;
}

.mcc-card-select {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.mcc-card.is-active .mcc-card-select {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.mcc-card.is-active .mcc-card-select::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* Panels */
.mcc-panel[hidden] {
  display: none;
}
.mcc-panels {
  max-width: 1200px;
  margin: 20px auto;
  padding: 5px;
}

.mcc-calendars--multiple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: start;
  width: 100%;
}

.mcc-calendar {
  width: 100%;
}

.mcc-calendar-title {
  margin: 0px;
  font-size: 24px;
  font-weight: 300;
  font-style: normal;
  text-align: center;
}

@media (max-width: 900px) {
  .mcc-calendars--multiple {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mcc-section {
    padding: 60px 0;
  }

  .mcc-filter-btns,
  .mcc-tabs {
    grid-template-columns: 1fr;
  }

  .mcc-card {
    gap: 12px;
    padding: 14px 16px;
  }

  .mcc-card-icon {
    width: 40px;
    height: 40px;
  }
}

/* ─── MCC Video fallback layout (no calendar code) ──────────────────────── */

.mcc-video-rows {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.mcc-video-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* Reversed row: video left, info right */
.mcc-video-row--reversed {
  direction: rtl;
}
.mcc-video-row--reversed > * {
  direction: ltr;
}

.mcc-video-title {
  margin: 0 0 16px;
  font-style: normal;
}

.mcc-video-intro {
  margin: 0 0 16px;
  line-height: 1.7;
  opacity: 0.9;
}

.mcc-video-intro p:last-child {
  margin-bottom: 0;
}

.mcc-video-times {
  margin: 0 0 24px;
  line-height: 1.6;
  white-space: pre-line;
}

/* Thumbnail button */
.mcc-video-media {
  position: relative;
}

.mcc-video-thumb {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: #000;
  overflow: hidden;
  border-radius: 0;
}

.mcc-video-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.mcc-video-thumb:hover img {
  opacity: 0.8;
}

.mcc-video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.mcc-video-play-icon::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 20px;
  border-color: transparent transparent transparent var(--primary, #0a2b5e);
  margin-left: 5px;
}

.mcc-video-thumb:hover .mcc-video-play-icon {
  transform: translate(-50%, -50%) scale(1.1);
  background: #fff;
}

/* ─── YouTube modal ──────────────────────────────────────────────────────── */

.mcc-video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.mcc-video-modal.is-open {
  display: flex;
}

.mcc-video-modal__inner {
  width: fit-content;
  max-width: min(90vw, 900px);
}

.mcc-video-modal__close {
  position: absolute;
  top: 0px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 4rem;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.mcc-video-modal__close:hover {
  opacity: 1;
}

.mcc-video-modal__embed {
  overflow: hidden;
}

.mcc-video-modal__embed iframe {
  display: block;
  width: min(90vw, 900px);
  aspect-ratio: 16 / 9;
  max-height: 90vh;
  border: none;
}

.mcc-video-modal__embed video {
  display: block;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  width: auto;
  height: auto;
}

body.mcc-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .mcc-video-row,
  .mcc-video-row--reversed {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 24px;
  }
}

/* MCC Contact Form Modal */
.mcc-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mcc-contact-modal[hidden] {
  display: none;
}

.mcc-contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.mcc-contact-modal__box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
}

.mcc-contact-modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  padding: 0;
}

.mcc-contact-modal__close:hover {
  opacity: 1;
}

.mcc-contact-modal__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 24px;
  padding-right: 32px;
}

.mcc-contact-modal .form-row {
  margin-bottom: 12px;
}

.mcc-contact-form {
  width: 100% !important;
}

.mcc-contact-form__submit {
  margin-top: 4px;
}

.mcc-contact-modal__message {
  padding: 16px;
  border-radius: 10px;
  text-align: center;
}

.mcc-contact-modal__message.success {
  background: color-mix(in srgb, var(--secondary) 12%, transparent);
  color: var(--secondary);
}

.mcc-contact-modal__message.error {
  background: #fff0f0;
  color: #c00;
}

@media (max-width: 540px) {
  .mcc-contact-modal__box {
    padding: 28px 20px;
  }

  .mcc-contact-modal .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   Multiple Contact Map
   ============================================================================ */

.mcm-section {
  padding: 80px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

section:has(.gallery-page-bottom-curve) + .mcm-section {
  padding: 0 0 50px 0;
  margin: -35px auto 0;
}

.mcm-section.has-bg-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-image-url);
  background-size: contain;
  background-position: right bottom;
  background-repeat: no-repeat;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

.mcm-section.has-bg-image > * {
  position: relative;
  z-index: 1;
}

.mcm-type-image {
  width: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.mcm-title {
  margin-bottom: 40px;
}

/* Tab buttons */
.mcm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 80px;
  justify-content: center;
}

.mcm-tab-btn {
  font-family: "Poppins", sans-serif;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  border-radius: 0;
  display: inline-block;
  border: 2px solid transparent;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
}

.mcm-tab-btn.is-active,
.mcm-tab-btn:hover {
  background: var(--secondary);
  color: var(--white) !important;
}

/* Panel layout */
.mcm-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.mcm-panel[hidden] {
  display: none;
}

/* Multi-location panel: stack rows vertically */
.mcm-panel--multi {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 0;
}

/* Location header: image left, name right */
.mcm-location-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Each location row: info left, map right */
.mcm-location-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 300px;
}

.mcm-location-row + .mcm-location-row {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 20px;
  margin-top: 20px;
}

.mcm-location-row .mcm-panel__map .acf-map {
  min-height: 300px;
}

.mcc-video-media .acf-map {
  width: 100%;
  min-height: 320px;
  border-radius: inherit;
}

/* Info column */
.mcm-panel__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 60px 80px;
  overflow-y: auto;
}

/* Location item */
.mcm-location-item {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0;
}

/* Single location — no top padding wasted */
.mcm-panel__info:not(.mcm-panel__info--multiple) .mcm-location-item {
  padding: 0;
}

.mcm-address {
  font-style: normal;
}

.mcm-panel__info .button-directions {
  display: inline-block;
  padding: 5px 20px;
  background: var(--primary);
  color: var(--white) !important;
  border: 2px solid var(--primary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition:
    background 0.3s ease,
    color 0.3s ease;
  align-self: flex-start;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
}

.mcm-panel__info .button-directions:hover {
  background: var(--secondary);
  border: 2px solid var(--secondary);
  padding: 5px 20px;
}

/* Map column */
.mcm-panel__map {
  position: relative;
  overflow: hidden;
}

.mcm-panel__map .acf-map {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.mcm-location-name {
  color: var(--secondary) !important;
  font-size: 26px;
}

/* Responsive */
@media (max-width: 1024px) {
  .mcm-panel {
    grid-template-columns: 1fr;
  }

  section:has(.gallery-page-bottom-curve) + .mcm-section {
    margin: -20px auto 0;
  }

  .mcm-location-row {
    grid-template-columns: 1fr;
  }

  .mcm-panel__info {
    padding: 40px;
  }

  .mcm-panel .mcm-type-label {
    padding: 40px;
  }

  .mcm-panel__map .acf-map {
    min-height: 350px;
  }

  .mcm-location-row .mcm-panel__map .acf-map {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .mcm-tabs {
    margin-top: 20px;
    margin-bottom: 50px;
  }

  .mcm-section {
    padding: 60px 0;
  }

  .mcm-tab-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  section:has(.gallery-page-bottom-curve) + .mcm-section {
    margin: 0px auto 0;
    padding-top: 16px;
  }

  .mcm-panel .mcm-type-label {
    padding: 20px;
  }

  .mcm-panel__info {
    padding: 30px 20px;
    gap: 16px;
  }

  .mcm-location-name {
    font-size: 1.5rem;
  }

  .mcm-panel__map .acf-map {
    min-height: 280px;
  }
}

/* ============================================================================
   Gallery Page Component - Flexbox 3-column layout
   ============================================================================ */

.gallery-page-section {
  padding: 80px 0 0 0;
}

.gallery-column-1,
.gallery-column-2,
.gallery-column-3 {
  width: 33%;
}

.gallery-page-header {
  text-align: center;
  margin-bottom: 60px;
}

/* Development Selector */
.gallery-page-selector {
  margin-bottom: 40px;
  display: flex;
}

.gallery-page-dropdown {
  font-size: 16px;
  border: 0px;
  border-radius: 0;
  min-width: 200px;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 45px;
  text-transform: uppercase;
  font-family: "Mabry Pro";
}

.gallery-page-dropdown:hover {
  opacity: 0.9;
}

.gallery-page-dropdown:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(194, 166, 106, 0.2);
}

.gallery-page-dropdown option {
  padding: 10px;
  font-size: 14px;
  text-transform: capitalize;
  background-color: white;
  color: #333 !important;
}

/* Gallery Stats */
.gallery-page-stats {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
  font-size: 14px;
}

.gallery-page-images-count {
  font-size: 14px;
  color: #666;
}

/* Gallery Grid Wrapper - contains multiple grid sections */
.gallery-page-grid-wrapper {
  display: block;
  width: 100%;
}

/* FIRST LOAD - Masonry Style Layout (6 images) - FLEXBOX 3 COLUMNS */
.gallery-page-grid.first-load {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  max-height: 950px;
}

.gallery-column-3 .gallery-page-item {
  height: 100%;
  width: 100%;
}

.gallery-page-section.bg-primary h2 {
  color: white !important;
}

/* Column 2 - flex wrapper for items 5 & 6 */
.gallery-column-2-wrapper {
  flex: 0 0 calc(33.333% - 10px);
  display: flex;
  flex-direction: column;
  gap: 15px;
  order: 2;
}

.gallery-column-2-wrapper .gallery-page-item {
  flex: 1;
  aspect-ratio: auto;
  min-height: 0;
  border-radius: 30px;
}

.gallery-column-2 {
  display: flex;
  flex-direction: column;
  align-content: stretch;
}

/* SUBSEQUENT LOADS - Simple 3-column rows */
.gallery-page-grid.additional-load {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.gallery-page-grid.additional-load .gallery-page-item {
  width: 33%;
  height: auto;
}

/* Gallery Item - Base Styles */
.gallery-page-item {
  overflow: hidden;
  height: 100%;
}

.gallery-column-1,
.gallery-column-2 {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.gallery-page-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 1s ease;
}

/* Load More Button */
.gallery-page-load-more-wrapper {
  display: flex;
  margin-top: 40px;
}

.gallery-page-load-more {
  display: inline-block;
  background: #fff;
  color: var(--secondary) !important;
  border: 1px solid var(--secondary);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 1px;
  padding: 10px 40px 10px 30px;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-page-load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.gallery-page-load-more:hover {
  background: var(--primary-navy);
  color: white;
  transform: translateY(-2px);
}

.gallery-page-load-more:active {
  transform: translateY(0);
}

/* No Images State */
.gallery-page-no-images {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.gallery-page-no-images p {
  font-size: 16px;
  margin: 0;
}

/* Lightbox styles */
.gallery-page-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-page-lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  cursor: pointer;
}

.gallery-page-lightbox-content {
  position: relative;
  width: 90%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-page-lightbox-image-wrapper {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-page-lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.gallery-page-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.gallery-page-lightbox-close:hover {
  transform: scale(1.1);
}

.gallery-page-lightbox-prev,
.gallery-page-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-gold);
  border: none;
  padding: 20px;
  cursor: pointer;
  z-index: 10001;
  transition: background-color 0.3s ease;
}

.gallery-page-lightbox-prev:hover,
.gallery-page-lightbox-next:hover {
  background: var(--primary-navy);
}

.gallery-page-lightbox-prev {
  left: 20px;
}

.gallery-page-lightbox-next {
  right: 20px;
}

.gallery-page-lightbox-prev img {
  height: 20px;
  filter: brightness(0) invert(1);
}

.gallery-page-lightbox-next img {
  height: 20px;
  transform: rotate(180deg);
  filter: brightness(0) invert(1);
}

.gallery-page-lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 16px;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .gallery-page-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .gallery-page-grid.first-load {
    max-height: 100%;
    margin-bottom: 0px;
  }

  .gallery-column-1,
  .gallery-column-2,
  .gallery-column-3 {
    width: 100%;
    gap: 0px;
  }

  .gallery-page-container {
    padding: 0 15px;
  }

  .gallery-page-header {
    margin-bottom: 40px;
  }

  .gallery-page-load-more {
    padding: 12px 30px;
    font-size: 12px;
  }

  .gallery-page-lightbox-prev,
  .gallery-page-lightbox-next {
    width: 50px;
    height: 50px;
    padding: 15px;
  }

  .gallery-page-lightbox-close {
    width: 45px;
    height: 45px;
    font-size: 30px;
  }
}

@media (max-width: 640px) {
  .gallery-page-dropdown {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 768px) {
  /* Single column on mobile */
  .gallery-page-grid.first-load,
  .gallery-page-grid.additional-load {
    flex-direction: column;
    width: 100%;
    gap: 0px;
  }

  .gallery-page-grid.first-load .gallery-page-item,
  .gallery-page-grid.additional-load .gallery-page-item,
  .gallery-column-2-wrapper,
  .gallery-column-2-wrapper .gallery-page-item {
    flex: 0 0 100% !important;
    width: 100% !important;
  }

  .gallery-column-2-wrapper {
    flex-direction: column;
  }

  .gallery-page-title {
    font-size: 1.5rem;
  }

  .gallery-page-load-more {
    padding: 10px 25px;
    font-size: 11px;
  }

  .gallery-page-lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
  }

  .gallery-page-lightbox-prev,
  .gallery-page-lightbox-next {
    width: 45px;
    height: 45px;
    padding: 12px;
  }

  .gallery-page-lightbox-prev {
    left: 10px;
  }

  .gallery-page-lightbox-next {
    right: 10px;
  }

  .gallery-page-lightbox-prev img,
  .gallery-page-lightbox-next img {
    height: 16px;
  }

  .gallery-page-lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .gallery-page-item,
  .gallery-page-item img,
  .gallery-page-load-more,
  .gallery-page-lightbox-close,
  .gallery-page-lightbox-prev,
  .gallery-page-lightbox-next {
    transition: none;
  }
}

/* Focus styles for accessibility */
.gallery-page-item:focus,
.gallery-page-load-more:focus,
.gallery-page-lightbox-close:focus,
.gallery-page-lightbox-prev:focus,
.gallery-page-lightbox-next:focus {
  outline: 2px solid var(--primary-gold);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .gallery-page-load-more-wrapper,
  .gallery-page-lightbox-close,
  .gallery-page-lightbox-prev,
  .gallery-page-lightbox-next {
    display: none !important;
  }

  .gallery-page-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* ============================================================================
   Gallery Page — Static Grid (section_gallery field, no developments)
   Layout: 2-col → 1 big + 2 small per group; N-col → standard grid
   ============================================================================ */

/* Bottom curve image — sits outside .container so it bleeds full width */
.gallery-page-section {
  position: relative;
}

.gallery-page-bottom-curve {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 80px;
  position: relative;
}
.reflexology-page .gallery-page-bottom-curve {
  margin-top: 0px;
}

/* ---- 2-column: groups of 3 ---- */
.gallery-page-grid--cols-2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-page-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Big image: portrait ratio, stretches to fill full group height */
.gallery-page-item--big {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  justify-self: flex-end;
  border-radius: 30px;
  width: 100%;
}

.gallery-page-item--big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Small stack: two images stacked to match the big item height */
.gallery-page-small-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.gallery-page-item--small {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.gallery-page-item--small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 20px;
}

/* Alternate groups: big image moves to the right */
.gallery-page-group--reversed .gallery-page-item--big {
  order: 2;
}

.gallery-page-group--reversed .gallery-page-small-stack {
  order: 1;
}

/* ── Class gallery location label (marker + name overlay on each image) ── */
.class-location-label {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 12px;
  pointer-events: none;
  border-radius: 20px;
  background: var(--secondary);
}

.class-location-label img {
  width: 15px;
  opacity: 65%;
}

.class-location-label h3 {
  font-size: 13px;
}

.class-location-marker img {
  width: 18px;
  height: auto;
  flex-shrink: 0;
  display: block;
}

.class-location-name {
  color: #fff;
  white-space: nowrap;
}

/* ---- N-column standard grids ---- */
.gallery-page-grid--cols-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.gallery-page-grid--cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-page-grid--cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-page-grid--cols-1 .gallery-page-item,
.gallery-page-grid--cols-3 .gallery-page-item,
.gallery-page-grid--cols-4 .gallery-page-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-page-grid--cols-1 .gallery-page-item img,
.gallery-page-grid--cols-3 .gallery-page-item img,
.gallery-page-grid--cols-4 .gallery-page-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  /* Stack the two columns on mobile */
  .gallery-page-group {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .class-location-name {
    font-size: 16px;
  }

  /* Reset order so big always comes first on mobile */
  .gallery-page-group--reversed .gallery-page-item--big,
  .gallery-page-group--reversed .gallery-page-small-stack {
    order: 0;
  }

  .gallery-page-small-stack,
  .gallery-page-group {
    gap: 30px;
  }

  .gallery-page-item--big {
    aspect-ratio: 4 / 3;

    width: 100%;
  }

  .gallery-page-item--small,
  .gallery-page-item--big {
    max-height: 350px;
  }
  .gallery-page-item img {
    object-fit: cover;
    border-radius: 20px;
  }

  .gallery-page-grid--cols-2 {
    gap: 0;
  }

  .gallery-page-grid--cols-3,
  .gallery-page-grid--cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-page-grid--cols-3,
  .gallery-page-grid--cols-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   Title Header
   ============================================================================ */
.title-container.container {
  text-align: center;
  padding-top: 120px;
  padding-bottom: 120px;
}

@media (max-width: 992px) {
  .title-container.container {
    padding-top: 40px;
    padding-bottom: 80px;
  }
}

/* ==========================================================================
   Socials
   ============================================================================ */
.socials-section {
  padding: 120px 0px;
}

@media (max-width: 768px) {
  .title-container.container {
    padding-top: 40px;
    padding-bottom: 80px;
  }
}

.socials-subtitle {
  text-align: left;
  font-weight: 400;
  letter-spacing: 0.13em;
}

.socials-icons a {
  text-decoration: none;
  border: solid 1px var(--secondary);
  background-color: var(--secondary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  color: var(--white);
  font-size: 36px;
}

.socials-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.socials-icons {
  display: flex;
  gap: 20px;
  text-transform: uppercase;
}
.socials-icons {
  display: flex;
  gap: 20px;
  text-transform: uppercase;
  align-items: center;
}

@media (max-width: 640px) {
  .socials-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  .socials-icons p {
    display: none;
  }
  .socials-icons {
    width: 100%;
    justify-content: flex-start;
  }
}
/* ============================================================================
   Posts Grid - Split Layout
   ============================================================================ */
.posts-grid-section {
  padding: 60px 0;
  background: var(--tertiary);
}

.posts-grid-section .section-title {
  margin-bottom: 40px;
}

/* Split Layout Container */
.posts-split-layout {
  display: grid;
  grid-template-columns: 25% 1fr;
  gap: 9vw;
  margin-top: 40px;
}

/* Scrolling Posts List (Left Side) */
.posts-scrolling-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-height: 1100px;
  overflow-y: auto;
  padding-right: 5vw;
  order: 1;
}

.featured-banner {
  position: absolute;
  top: 40px;
  background: linear-gradient(90deg, #fff 48.08%, rgba(255, 255, 255, 0) 100%);
  width: 250px;
  padding-left: 10px;
}
.featured-banner h3 {
  color: var(--text2);
}

/* Custom scrollbar */
.posts-scrolling-list::-webkit-scrollbar {
  width: 2px;
}

.posts-scrolling-list::-webkit-scrollbar-track {
  background: #efece8;
  border-radius: 3px;
}

.posts-scrolling-list::-webkit-scrollbar-thumb {
  background: #c8c9cb;
  border-radius: 3px;
}

.posts-scrolling-list::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Featured Post (Right Side) */
.post-featured {
  display: flex;
  flex-direction: column;
  gap: 85px;
  order: 2;
}

.post-featured-image {
  position: relative;
  overflow: hidden;
  background-color: var(--tertiary);
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.post-featured:hover img {
  transform: scale(1.05);
}

.post-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: white;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-featured-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.post-featured .post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-featured .post-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary);
}

.post-featured .post-read-button {
  display: inline-block;
  background: #fff;
  color: var(--secondary) !important;
  border: 1px solid var(--secondary);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 1px;
  padding: 10px 40px 10px 30px;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
  transition: transform 0.3s ease;
}

.post-featured .post-read-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Small Post Cards */
.post-card-small {
  display: grid;
  gap: 20px;
  padding-bottom: 25px;
  transition: transform 1s ease;
}
.post-card-small:hover img {
  transition: transform 1s ease;
}

.post-card-small:last-child {
  padding-bottom: 0;
}

.post-card-small:hover img {
  transform: scale(1.05);
}

.post-small-image {
  overflow: hidden;
  aspect-ratio: 1;
  background-color: var(--tertiary);
}

.post-small-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-small-image:hover img {
  transform: scale(1.1);
}

.post-small-image .post-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--tertiary);
  color: var(--text2);
  font-size: 12px;
}

.post-small-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.post-card-small .post-title {
  color: var(--primary);
  margin-bottom: 20px;
}

.post-card-small .post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-card-small .post-title a:hover {
  color: var(--text2);
}

.post-card-small .post-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--primary);
}

.post-card-small .post-read-button {
  display: inline-block;
  background: #fff;
  color: var(--secondary) !important;
  border: 1px solid var(--secondary);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 1px;
  padding: 10px 40px 10px 30px;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
  transition: transform 0.3s ease;
  align-self: flex-start;
}

.post-card-small .post-read-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
  .posts-split-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .post-featured-image {
    aspect-ratio: 1;
  }

  .posts-scrolling-list {
    max-height: none;
    overflow-y: visible;
    order: 2;
    padding-right: 0px;
  }

  .post-featured {
    order: 1;
    gap: 20px;
  }

  .post-featured .post-title {
    font-size: 24px;
  }
  .featured-banner {
    display: block;
  }
  .post-featured .post-read-button {
    /* Maintain same button styling on mobile */
    font-size: 1.2rem;
    padding: 8px 30px 8px 20px;
  }
  .post-card-hidden {
    display: none;
  }

  .post-card-hidden.show {
    display: grid;
    animation: fadeIn 0.3s ease;
  }

  .posts-load-more-btn {
    display: block;
  }

  .posts-load-more-btn.hidden {
    display: none;
  }
}

@media (max-width: 768px) {
  .posts-grid-section {
    padding: 40px 0;
  }

  .featured-banner {
    display: none;
  }
}

@media (max-width: 480px) {
  .post-card-small,
  .post-featured {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Load More Button */
.posts-load-more-btn {
  display: none;
  margin: 30px auto 0;
  background: #fff;
  color: var(--secondary) !important;
  border: 1px solid var(--secondary);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 1px;
  padding: 10px 40px 10px 30px;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.posts-load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.posts-load-more-btn.hidden {
  display: none !important;
}

@media (max-width: 992px) {
  .post-card-hidden {
    display: none;
  }

  .post-card-hidden.show {
    display: grid;
    animation: fadeIn 0.3s ease;
  }

  .posts-load-more-btn {
    display: block;
    order: 3;
  }
}
/* ============================================
   TEAM MEMBERS SECTION
   ============================================ */

.team-members-section {
  padding: 60px 0;
}

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.team-member-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.team-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.team-member-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-member-content {
  padding: 24px;
}

.team-member-name {
  font-size: 1.5rem;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.team-member-role {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary, #666);
  margin-bottom: 16px;
}

.team-member-bio {
  line-height: 1.7;
  color: #333;
  font-size: 0.95rem;
}

.team-member-bio p {
  margin-bottom: 12px;
}

.team-member-bio p:last-child {
  margin-bottom: 0;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .team-members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .team-members-section {
    padding: 40px 0;
  }

  .team-members-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .team-member-content {
    padding: 20px;
  }

  .team-member-name {
    font-size: 1.3rem;
  }

  .team-member-role {
    font-size: 0.9rem;
  }
}

/* ============================================================================
   COLUMN SERVICES SECTION (& Post Content - Dynamic Post Types)
   ============================================================================ */

.column-posts-section,
.column-case-studys-section,
.column-team-members-section {
  padding: 80px 0;
}
.column-services-section {
  padding: 0px;
}

.services-header,
.posts-header,
.case-studys-header,
.team-members-header {
  margin-bottom: 60px;
}

.services-title,
.posts-title,
.case-studys-title,
.team-members-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.services-subtitle,
.posts-subtitle,
.case-studys-subtitle,
.team-members-subtitle {
  font-size: 1.2rem;
  color: var(--text2, #666);
  letter-spacing: 0.5px;
}

.column-posts-container,
.column-case-studys-container,
.column-team-members-container {
  display: grid;
  gap: 40px;
  margin-top: 50px;
}

.column-services-container {
  display: grid;
  gap: 40px;
  margin: 0px;
}

/* Single column layout - horizontal with image */
.column-services-container.columns-1,
.column-posts-container.columns-1,
.column-case-studys-container.columns-1,
.column-team-members-container.columns-1 {
  grid-template-columns: 1fr;
  max-width: 100%;
  gap: 0;
}

.column-services-container.columns-1 .service-item,
.column-posts-container.columns-1 .post-item,
.column-case-studys-container.columns-1 .case-study-item,
.column-team-members-container.columns-1 .team-member-item {
  display: flex;
  flex-direction: column;
  background-color: var(--accent);

  overflow: hidden;
  margin-bottom: 0;
  border-radius: 0;
}

.column-services-container.columns-1 .service-item-even {
  background: #fff;
}

.column-services-container.columns-1 .service-grid,
.column-posts-container.columns-1 .post-grid,
.column-case-studys-container.columns-1 .case-study-grid,
.column-team-members-container.columns-1 .team-member-grid {
  display: grid;
  grid-template-columns: 479px 1fr;
  gap: 40px;
  padding: 40px 0;
}

.column-services-container.columns-1 .service-grid > .service-image,
.column-posts-container.columns-1 .post-grid > .post-image,
.column-case-studys-container.columns-1 .case-study-grid > .case-study-image,
.column-team-members-container.columns-1
  .team-member-grid
  > .team-member-image {
  order: 1;
}

.column-services-container.columns-1 .service-grid > .service-content,
.column-posts-container.columns-1 .post-grid > .post-content,
.column-case-studys-container.columns-1 .case-study-grid > .case-study-content,
.column-team-members-container.columns-1
  .team-member-grid
  > .team-member-content {
  order: 2;
  gap: 30px;
}

.column-services-container.columns-1 .service-image,
.column-posts-container.columns-1 .post-image,
.column-case-studys-container.columns-1 .case-study-image,
.column-team-members-container.columns-1 .team-member-image {
  position: relative;
  overflow: hidden;
  width: 479px;
  height: 479px;
}

.column-services-container.columns-1 .service-image {
  padding: 0px;
  border-radius: 0px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: block;
}

.column-services-container.columns-1 .service-image img,
.column-posts-container.columns-1 .post-image img,
.column-case-studys-container.columns-1 .case-study-image img,
.column-team-members-container.columns-1 .team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.column-services-container.columns-1 .service-content,
.column-posts-container.columns-1 .post-content,
.column-case-studys-container.columns-1 .case-study-content,
.column-team-members-container.columns-1 .team-member-content {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.column-services-container.columns-1 .service-excerpt,
.column-posts-container.columns-1 .post-excerpt,
.column-case-studys-container.columns-1 .case-study-excerpt,
.column-team-members-container.columns-1 .team-member-excerpt {
  color: #fff;
  font-size: 1rem;
  line-height: 1.8;
  padding: 0px;
  margin: 0;
  flex: 1;
  min-height: auto;
  text-align: left;
  font-weight: 400;
}

.column-services-container.columns-1 .service-excerpt p,
.column-posts-container.columns-1 .post-excerpt p,
.column-case-studys-container.columns-1 .case-study-excerpt p,
.column-team-members-container.columns-1 .team-member-excerpt p {
  margin-bottom: 15px;
}

.column-services-container.columns-1 .service-button,
.column-posts-container.columns-1 .post-button,
.column-case-studys-container.columns-1 .case-study-button,
.column-team-members-container.columns-1 .team-member-button {
  white-space: nowrap;
  padding: 15px 40px;
  background-color: var(--primary);
  color: var(--white) !important;
  border: 2px solid var(--primary);
  border-radius: 0;
  font-family: "Libertinus Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  display: inline-block;
  cursor: pointer;
  width: fit-content;
}

.column-services-container.columns-1 .service-button:hover,
.column-posts-container.columns-1 .post-button:hover,
.column-case-studys-container.columns-1 .case-study-button:hover,
.column-team-members-container.columns-1 .team-member-button:hover {
  background: transparent !important;
  color: var(--primary) !important;
}

/* Even items - image on right, title aligned left */
.column-services-container.columns-1 .service-item-even .service-grid,
.column-posts-container.columns-1 .post-item-even .post-grid,
.column-case-studys-container.columns-1 .case-study-item-even .case-study-grid,
.column-team-members-container.columns-1
  .team-member-item-even
  .team-member-grid {
  grid-template-columns: 1fr 479px;
}

.column-services-container.columns-1
  .service-item-even
  .service-grid
  > .service-image,
.column-posts-container.columns-1 .post-item-even .post-grid > .post-image,
.column-case-studys-container.columns-1
  .case-study-item-even
  .case-study-grid
  > .case-study-image,
.column-team-members-container.columns-1
  .team-member-item-even
  .team-member-grid
  > .team-member-image {
  order: 2;
}

.column-services-container.columns-1
  .service-item-even
  .service-grid
  > .service-content,
.column-posts-container.columns-1 .post-item-even .post-grid > .post-content,
.column-case-studys-container.columns-1
  .case-study-item-even
  .case-study-grid
  > .case-study-content,
.column-team-members-container.columns-1
  .team-member-item-even
  .team-member-grid
  > .team-member-content {
  order: 1;
  gap: 30px;
}

/* Two column layout */
.column-services-container.columns-2,
.column-posts-container.columns-2,
.column-case-studys-container.columns-2,
.column-team-members-container.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Three column layout */
.column-services-container.columns-3,
.column-posts-container.columns-3,
.column-case-studys-container.columns-3,
.column-team-members-container.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Four column layout */
.column-services-container.columns-4,
.column-posts-container.columns-4,
.column-case-studys-container.columns-4,
.column-team-members-container.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Team Member Card Styling (for post_content case) */
.team-member-item {
  background: #ffffff;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0px 8px 10px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.team-member-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.team-member-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-member-item .team-member-content {
  padding: 24px;
}

.team-member-name {
  font-size: 1.5rem;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.team-member-role {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary, #666);
  margin-bottom: 16px;
}

.team-member-bio {
  line-height: 1.7;
  color: #333;
  font-size: 0.95rem;
}

.team-member-bio p {
  margin-bottom: 12px;
}

.team-member-bio p:last-child {
  margin-bottom: 0;
}

/* Multi-column content section */
.multi-col-content-section {
  padding: 60px 0;
  width: 100%;
}

.multi-col-content-section .container {
  width: 100%;
}

/* Side text column — lives inside the grid as an auto-width column */

/* Left: prepend auto column before the content columns */
.multi-col-grid.has-side-text.side-text--left.columns-1 {
  grid-template-columns: auto 1fr !important;
}
.multi-col-grid.has-side-text.side-text--left.columns-2 {
  grid-template-columns: auto repeat(2, 1fr) !important;
}
.multi-col-grid.has-side-text.side-text--left.columns-3 {
  grid-template-columns: auto repeat(3, 1fr) !important;
}
.multi-col-grid.has-side-text.side-text--left.columns-4 {
  grid-template-columns: auto repeat(4, 1fr) !important;
}

/* Right: append auto column after the content columns */
.multi-col-grid.has-side-text.side-text--right.columns-1 {
  grid-template-columns: 1fr auto !important;
}
.multi-col-grid.has-side-text.side-text--right.columns-2 {
  grid-template-columns: repeat(2, 1fr) auto !important;
}
.multi-col-grid.has-side-text.side-text--right.columns-3 {
  grid-template-columns: repeat(3, 1fr) auto !important;
}
.multi-col-grid.has-side-text.side-text--right.columns-4 {
  grid-template-columns: repeat(4, 1fr) auto !important;
}

.multi-col-side-text-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.multi-col-side-text-col span {
  display: block;
  white-space: nowrap;
  font-size: clamp(2rem, 10vw, 5.5rem);
  font-weight: 200;
  letter-spacing: -0.2px;
  text-transform: capitalize;
  font-family: "Poppins", sans-serif;
  color: var(--primary) !important;
}

.pilates-page .multi-col-side-text-col span,
.pilates-course-info-page .multi-col-side-text-col span,
.reflexology-course-info-page .multi-col-side-text-col span {
  color: var(--primary) !important;
  white-space: break-spaces;
}

/* Left side: text reads bottom-to-top */
.side-text--left .multi-col-side-text-col span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Right side: text reads top-to-bottom */
.side-text--right .multi-col-side-text-col span {
  writing-mode: vertical-rl;
}

@media (max-width: 1024px) {
  /* On mobile collapse back to single column and show text horizontally */
  .multi-col-grid.has-side-text.side-text--left.columns-1,
  .multi-col-grid.has-side-text.side-text--left.columns-2,
  .multi-col-grid.has-side-text.side-text--left.columns-3,
  .multi-col-grid.has-side-text.side-text--left.columns-4,
  .multi-col-grid.has-side-text.side-text--right.columns-1,
  .multi-col-grid.has-side-text.side-text--right.columns-2,
  .multi-col-grid.has-side-text.side-text--right.columns-3,
  .multi-col-grid.has-side-text.side-text--right.columns-4 {
    grid-template-columns: 1fr !important;
  }

  .multi-col-side-text-col span {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    font-size: 45px;
  }
}

/* Multi-column section title and content */
.multi-col-section-title {
  text-align: center;
  margin-bottom: 20px;
}

.multi-col-section-content {
  text-align: center;
  margin-bottom: 40px;
}

/* Multi-column content grid */
.multi-col-grid {
  display: grid !important;
  gap: 40px;
  width: 100%;
}

.multi-col-grid.columns-1 {
  grid-template-columns: 1fr !important;
}

.multi-col-grid.columns-2 {
  grid-template-columns: repeat(2, 1fr) !important;
}

.multi-col-grid.columns-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

.multi-col-grid.columns-4 {
  grid-template-columns: repeat(4, 1fr) !important;
}

.multi-col-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  position: relative;
}

.multi-col-item h3 {
  position: absolute;
  color: white !important;
  bottom: 1.5rem;
  left: 1.5rem;
}

.multi-col-item img {
  max-width: 100%;
  height: 100%;
  border-radius: 8px;
  width: 100%;
  object-fit: cover;
}

/* Multi-column content alignment */
.multi-col-content-section.align-left .multi-col-item {
  text-align: left;
  align-items: flex-start;
  height: 100%;
}

.multi-col-content-section.align-center .multi-col-item {
  text-align: center;
  align-items: center;
}

.multi-col-content-section.align-right .multi-col-item {
  text-align: right;
  align-items: flex-end;
}

.service-item,
.post-item,
.case-study-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  text-align: center;
}
.team-member-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.service-item .service-title {
  font-family: "Libertinus Sans", sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.3;
  text-align: left;
}
.post-item .post-title,
.case-study-item .case-study-title,
.team-member-item .team-member-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary, #0d1f30);
}

.service-item hr,
.post-item hr,
.case-study-item hr,
.team-member-item hr {
  margin: 15px auto;
}

.service-excerpt,
.post-excerpt,
.case-study-excerpt,
.team-member-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 25px;
  min-height: 80px;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .multi-col-item-link {
    max-height: 400px;
  }

  .multi-col-item {
    height: 100%;
  }
  /* Single column horizontal layout adjustments */
  .column-services-container.columns-1 .service-grid,
  .column-posts-container.columns-1 .post-grid,
  .column-case-studys-container.columns-1 .case-study-grid,
  .column-team-members-container.columns-1 .team-member-grid {
    grid-template-columns: 1fr;
  }

  .column-services-container.columns-1 .service-image,
  .column-posts-container.columns-1 .post-image,
  .column-case-studys-container.columns-1 .case-study-image,
  .column-team-members-container.columns-1 .team-member-image {
    width: 400px;
    height: 400px;
  }

  .column-services-container.columns-1 .service-title,
  .column-posts-container.columns-1 .post-title,
  .column-case-studys-container.columns-1 .case-study-title,
  .column-team-members-container.columns-1 .team-member-title {
    font-size: 2rem;
    padding: 30px 40px;
  }

  .column-services-container.columns-1 .service-excerpt,
  .column-posts-container.columns-1 .post-excerpt,
  .column-case-studys-container.columns-1 .case-study-excerpt,
  .column-team-members-container.columns-1 .team-member-excerpt {
    padding: 30px 40px;
    font-size: 0.95rem;
  }

  .column-services-container.columns-1 .service-button,
  .column-posts-container.columns-1 .post-button,
  .column-case-studys-container.columns-1 .case-study-button,
  .column-team-members-container.columns-1 .team-member-button {
    margin: 40px;
  }

  /* Even items on tablet */
  .column-services-container.columns-1 .service-item-even .service-grid,
  .column-posts-container.columns-1 .post-item-even .post-grid,
  .column-case-studys-container.columns-1
    .case-study-item-even
    .case-study-grid,
  .column-team-members-container.columns-1
    .team-member-item-even
    .team-member-grid {
    grid-template-columns: 1fr;
  }

  .service-item h3 {
    width: 80vw !important;
  }

  .column-services-container.columns-1
    .service-item-even
    .service-grid
    > .service-image,
  .column-posts-container.columns-1 .post-item-even .post-grid > .post-image,
  .column-case-studys-container.columns-1
    .case-study-item-even
    .case-study-grid
    > .case-study-image,
  .column-team-members-container.columns-1
    .team-member-item-even
    .team-member-grid
    > .team-member-image {
    order: 1;
    width: 100%;
    aspect-ratio: 1;
    height: 100%;
  }

  .column-services-container.columns-1 .service-grid > .service-image,
  .column-posts-container.columns-1 .post-grid > .post-image,
  .column-case-studys-container.columns-1 .case-study-grid > .case-study-image,
  .column-team-members-container.columns-1
    .team-member-grid
    > .team-member-image {
    width: 100%;
    aspect-ratio: 1;
    height: 100%;
  }

  /* 4 columns becomes 2 on tablet */
  .column-services-container.columns-4,
  .column-posts-container.columns-4,
  .column-case-studys-container.columns-4,
  .column-team-members-container.columns-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  /* 3 columns becomes 2 on tablet */
  .column-services-container.columns-3,
  .column-posts-container.columns-3,
  .column-case-studys-container.columns-3,
  .column-team-members-container.columns-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  /* 2 columns stays 2 on tablet */
  .column-services-container.columns-2,
  .column-posts-container.columns-2,
  .column-case-studys-container.columns-2,
  .column-team-members-container.columns-2 {
    gap: 30px;
  }

  .column-services-container.columns-1 .service-item:not(.service-item-even),
  .column-posts-container.columns-1 .post-item:not(.post-item-even),
  .column-case-studys-container.columns-1
    .case-study-item:not(.case-study-item-even),
  .column-team-members-container.columns-1
    .team-member-item:not(.team-member-item-even) {
    background-image: none;
    padding: 20px;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  div .multi-col-grid.columns-4 {
    grid-template-columns: 1fr !important;
  }

  .column-services-section,
  .column-posts-section,
  .column-case-studys-section,
  .column-team-members-section {
    margin: 80px 0;
  }

  .services-header,
  .posts-header,
  .case-studys-header,
  .team-members-header {
    margin-bottom: 40px;
  }

  .services-title,
  .posts-title,
  .case-studys-title,
  .team-members-title {
    font-size: 2rem;
  }

  .services-subtitle,
  .posts-subtitle,
  .case-studys-subtitle,
  .team-members-subtitle {
    font-size: 1rem;
  }

  /* Single column becomes vertical stack on mobile */
  .column-services-container.columns-1 .service-grid,
  .column-posts-container.columns-1 .post-grid,
  .column-case-studys-container.columns-1 .case-study-grid,
  .column-team-members-container.columns-1 .team-member-grid {
    grid-template-columns: 1fr;
  }

  .column-services-container.columns-1 .service-image,
  .column-posts-container.columns-1 .post-image,
  .column-case-studys-container.columns-1 .case-study-image,
  .column-team-members-container.columns-1 .team-member-image {
    width: 100%;
    height: 300px;
  }

  .column-services-container.columns-1 .service-title,
  .column-posts-container.columns-1 .post-title,
  .column-case-studys-container.columns-1 .case-study-title,
  .column-team-members-container.columns-1 .team-member-title {
    font-size: 1.5rem;
    padding: 25px 30px;
    text-align: left;
    width: 100%;
  }

  .column-services-container.columns-1 .service-item-even .service-title,
  .column-posts-container.columns-1 .post-item-even .post-title,
  .column-case-studys-container.columns-1
    .case-study-item-even
    .case-study-title,
  .column-team-members-container.columns-1
    .team-member-item-even
    .team-member-title,
  .column-services-container.columns-1 .service-title:not(.service-item-even),
  .column-posts-container.columns-1 .post-title:not(.post-item-even),
  .column-case-studys-container.columns-1
    .case-study-title:not(.case-study-item-even),
  .column-team-members-container.columns-1
    .team-member-title:not(.team-member-item-even),
  .column-services-container.columns-1 .service-button,
  .column-posts-container.columns-1 .post-button,
  .column-case-studys-container.columns-1 .case-study-button,
  .column-team-members-container.columns-1 .team-member-button {
    width: 100%;
    padding: 20px 0px;
    font-size: 30px;
  }

  .column-services-container.columns-1 .service-excerpt,
  .column-posts-container.columns-1 .post-excerpt,
  .column-case-studys-container.columns-1 .case-study-excerpt,
  .column-team-members-container.columns-1 .team-member-excerpt {
    padding: 30px 0px;
    font-size: 0.9rem;
  }

  .column-services-container.columns-1 .service-button,
  .column-posts-container.columns-1 .post-button,
  .column-case-studys-container.columns-1 .case-study-button,
  .column-team-members-container.columns-1 .team-member-button {
    margin: 0 30px 25px auto;
    font-size: 0.95rem;
    padding: 10px 30px;
  }

  /* Even items on mobile - both use same button position */
  .column-services-container.columns-1 .service-button,
  .column-posts-container.columns-1 .post-button,
  .column-case-studys-container.columns-1 .case-study-button,
  .column-team-members-container.columns-1 .team-member-button {
    width: 70vw;
    font-size: 20px;
    display: flex;
    margin: 0px;
    max-width: 250px;
  }

  /* All multi-column layouts become 1 column on mobile */
  .column-services-container.columns-2,
  .column-services-container.columns-3,
  .column-services-container.columns-4,
  .column-posts-container.columns-2,
  .column-posts-container.columns-3,
  .column-posts-container.columns-4,
  .column-case-studys-container.columns-2,
  .column-case-studys-container.columns-3,
  .column-case-studys-container.columns-4,
  .column-team-members-container.columns-2,
  .column-team-members-container.columns-3,
  .column-team-members-container.columns-4,
  .multi-col-grid.columns-2,
  .multi-col-grid.columns-3,
  .multi-col-grid.columns-4 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-excerpt,
  .post-excerpt,
  .case-study-excerpt,
  .team-member-excerpt {
    min-height: auto;
  }

  /* Team member card responsive */
  .team-member-item .team-member-content {
    padding: 20px;
  }

  .team-member-name {
    font-size: 1.3rem;
  }

  .team-member-role {
    font-size: 0.9rem;
  }
}

/* ============================================================
   Courses Section (alternating left/right layout, 100px images)
   ============================================================ */
.column-courses-container {
  display: grid;
  gap: 40px;
  margin-top: 50px;
}

.column-courses-container.columns-1 {
  grid-template-columns: 1fr;
  max-width: 100%;
  gap: 0;
}

.column-courses-container.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.column-courses-container.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.column-courses-container.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.column-courses-container.columns-1 .course-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 0;
  border-radius: 0;
}

.column-courses-container.columns-1 .course-grid {
  display: grid;
  grid-template-columns: 479px 1fr;
  gap: 40px;
  padding: 40px 0;
  align-items: center;
}

.column-courses-container.columns-1 .course-grid > .course-image {
  order: 1;
}

.column-courses-container.columns-1 .course-grid > .course-content {
  order: 2;
  gap: 30px;
}

.column-courses-container.columns-1 .course-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.column-courses-container.columns-1 .course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.column-courses-container.columns-1 .course-content {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.column-courses-container.columns-1 .course-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary, #0d1f30);
}

.column-courses-container.columns-1 .course-excerpt {
  color: #fff;
  font-size: 1rem;
  line-height: 1.8;
  padding: 0;
  margin: 0;
  flex: 1;
  min-height: auto;
  text-align: left;
  font-weight: 400;
}

.column-courses-container.columns-1 .course-excerpt p {
  margin-bottom: 15px;
}

/* Even items: image on the right, content on the left */
.column-courses-container.columns-1 .course-item-even .course-grid {
  grid-template-columns: 1fr 479px;
}

.column-courses-container.columns-1
  .course-item-even
  .course-grid
  > .course-image {
  order: 2;
}

.column-courses-container.columns-1
  .course-item-even
  .course-grid
  > .course-content {
  order: 1;
}

@media (max-width: 1024px) {
  .column-courses-container.columns-1 .course-grid,
  .column-courses-container.columns-1 .course-item-even .course-grid {
    grid-template-columns: 1fr;
  }

  .column-courses-container.columns-1 .course-title {
    font-size: 2rem;
    padding: 30px 40px 0;
  }

  .column-courses-container.columns-1 .course-excerpt {
    padding: 0 40px 30px;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .column-courses-container.columns-1 .course-title {
    font-size: 1.5rem;
    padding: 25px 20px 0;
  }

  .column-courses-container.columns-1 .course-excerpt {
    padding: 0 20px 25px;
    font-size: 0.9rem;
  }
}

/* ============================================================
   Homepage Services Section
   ============================================================ */

.homepage-services-section {
  background-color: #111; /* default dark background matching screenshot */
  padding-bottom: 0;
  margin-bottom: 130px;
}

/* ----- Header bar ----- */
.homepage-services-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 50%;
}

.homepage-services-title {
  position: relative;
  display: inline-block;
  background-color: var(--secondary);
  color: #fff;
  text-transform: capitalize;
  letter-spacing: 0.03em;
  padding: 12px 40px 12px 24px;
  margin: 0;
  line-height: 1.2;
  margin-bottom: 20px;
  height: 150px;
  display: flex;
  align-items: center;
  padding-right: 90px;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  width: 50%;
  justify-content: center;
}

.homepage-services-view-all {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  transition:
    border-color 0.2s ease,
    opacity 0.2s ease;
  white-space: nowrap;
}

.homepage-services-view-all:hover {
  border-color: #e84c1e;
  opacity: 0.85;
}

/* ----- Cards strip ----- */
.homepage-services-strip {
  display: flex;
  width: 100%;
  gap: 0;
  /* Each card separated by a thin white line */
}

/* ----- Individual card ----- */
.homepage-service-card {
  position: relative;
  flex: 1 1 0;
  min-height: 320px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  cursor: pointer;
  aspect-ratio: 1;

  /* Thin white divider between cards */
  border-right: 2px solid rgba(255, 255, 255, 0.12);
}

.homepage-service-card:last-child {
  border-right: none;
}

/* Background image */
.homepage-service-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}

.homepage-service-card:hover .homepage-service-card__bg {
  transform: scale(1.06);
}

/* Gradient overlay — dark at bottom, light at top */
.homepage-service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.35) 25%,
    rgba(0, 0, 0, 0.1) 50%
  );
  z-index: 1;
  transition: background 0.3s ease;
}

.homepage-service-card:hover .homepage-service-card__overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

/* Title */
.homepage-service-card__title {
  position: relative;
  z-index: 2;
  padding: 18px 16px;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: right;
  width: 100%;
  display: block;
  max-width: 300px;
  margin-left: auto;
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet: 3 columns + 2 hidden, show all on scroll */
@media (max-width: 1024px) {
  .homepage-services-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    flex-direction: column;
  }

  .homepage-services-strip::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .homepage-service-card {
    flex: 0 0 240px; /* fixed width, horizontal scroll */
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .homepage-service-card {
    flex: 0 0 200px;
    min-height: 240px;
  }

  .homepage-services-title {
    font-size: 32px;
    padding: 10px 32px 10px 18px;
    width: 80%;
  }
}

@media (max-width: 480px) {
  .homepage-service-card {
    flex: 0 0 170px;
    min-height: 200px;
  }

  .homepage-service-card__title {
    font-size: 18px;
    padding: 14px 10px;
  }
}

/* ============================================================================
   CASE STUDIES SECTION
   ============================================================================ */

.case-studies-header {
  text-align: center;
  margin-bottom: 60px;
}

.case-studies-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.case-studies-subtitle {
  font-size: 1.2rem;
  color: var(--text2, #666);
  letter-spacing: 0.5px;
}

.column-case-studies-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 50px;
}

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

.case-study-image {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* 1:1 aspect ratio (square) */
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 20px;
}

.case-study-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.case-study-image-link:hover .case-study-image img {
  transform: scale(1.05);
}

.case-study-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e0e0;
  color: #999;
}

.case-study-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-study-title {
  font-size: 1.25rem;
  margin: 0;
}

.case-study-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.case-study-title a:hover {
  color: var(--secondary);
}

.no-case-studies {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .column-case-studies-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .column-case-studies-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .case-studies-header {
    margin-bottom: 40px;
  }

  .case-studies-title {
    font-size: 2rem;
  }

  .case-studies-subtitle {
    font-size: 1rem;
  }

  .case-study-title {
    font-size: 1.5rem;
  }
}

/* ============================================================================
      Path to Land development
   ============================================================================ */
#your-path-to-land-development {
  background: transparent;
}
#your-path-to-land-development.image-left .col-left {
  display: flex;
  flex-direction: column;
}

#your-path-to-land-development.image-left .col-right {
  border-radius: 0px 0px 20vw 0px;
  background: var(--tertiary);
}
#your-path-to-land-development .flex-container {
  gap: 0px;
}

#your-path-to-land-development .image-wrapper img,
#your-path-to-land-development .image-wrapper {
  height: auto;
}
.map-details {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  padding: 0px 20px;
  justify-content: center;
  justify-items: center;
  align-content: center;
  text-decoration: none;
}
.map-details a {
  text-decoration: none;
}

@media (max-width: 1024px) {
  .map-details {
    padding: 50px 20px;
    grid-template-columns: auto;
    gap: 50px;
  }
}
@media (max-width: 768px) {
  #your-path-to-land-development .col-right {
    text-align: left;
    padding: 120px 20px;
  }
}

/* ============================================================================
   build-process
   ============================================================================ */

.build-process-content {
  border-radius: 20vw 0px 0px 0px;
  background-color: var(--tertiary);
}

.build-image img {
  width: 100%;
  border-radius: 0px 0px 20vw 0px;
}

.build-process-wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 120px 20px;
}

.build-process-wrapper h2 {
  margin-bottom: 20px;
}

section.build-process {
  margin-bottom: 120px;
}

@media (max-width: 768px) {
  .build-process-wrapper {
    text-align: right;
    padding: 200px 30px;
  }
  .build-process-content {
    border-radius: 400px 0px 0px 0px;
  }
  section.build-process {
    margin-bottom: 80px;
  }
}

/* ============================================================================
   b-corp
   ============================================================================ */
.b-corporation {
  display: flex;
  background-color: #d4c4b8;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20vw 0px 0px 0px;
  overflow: hidden;
}

.b-corporation-content {
  flex: 1;
  padding: 60px 12vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 40%;
  background: var(--tertiary);
}

.b-corporation-content .b-corp-logo {
  width: 190px;
  margin-bottom: 30px;
}

.b-corporation-content .content p:last-child {
  margin-bottom: 0;
}
.b-corp-mobile {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .b-corporation-content {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .b-corp-mobile {
    display: block;
  }

  .b-corporation {
    flex-direction: column;
    border-radius: 0;
    min-height: 500px; /* Ensures background image is visible */
    border-radius: 200px 0px 0px 0px;
  }
  .mobile-version .b-corporation {
    justify-content: flex-end;
    border-radius: 0px 0px 0px 0px;
  }

  .mobile-version .b-corporation img.b-corp-logo {
    max-width: 140px;
    filter: invert(1);
  }
  .mobile-version .b-corporation {
    padding: 30px;
  }

  .b-corporation--has-bg {
    background-image: none !important;
  }

  .b-corporation-content img {
    display: none;
  }

  .b-corporation-content {
    max-width: 100%;
    justify-content: flex-end;
    text-align: right;
  }

  .b-corporation-content .b-corp-logo {
    width: 150px;
    margin-bottom: 20px;
  }
}
/* ============================================================================
	Meet The Founder
   ============================================================================ */

.meet-the-founder-content.container {
  display: flex;
  background-color: var(--tertiary);
  padding-top: 120px;
  padding-bottom: 120px;
  gap: 10vw;
  border-radius: 0% 20vw 20vw 0%;
  padding-right: 6vw;
}

.meet-the-founder {
  position: relative;
  overflow: hidden;
}

.meet-the-founder::before {
  content: "";
  position: absolute;
  top: 0;
  right: 80%;
  bottom: 0;
  left: 0;
  background-color: var(--tertiary);
  z-index: -1;
}
.meet-the-founder-content img {
  object-fit: cover;
}

.meet-the-founder .curved-edge {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ============================================================================
   Logo scroller
   ============================================================================ */
.logo-scroller-section {
  padding: 20px 0;
  /* NO background-color here - comes from ACF inline style */
}

.logo-scroller-wrapper {
  width: 100%;
  overflow: hidden;
}

.logo-scroller-static {
  display: none;
}

.logo-scroller-carousel {
  display: block;
  overflow: hidden;
  width: 100%;
}

.logo-scroller-track {
  display: flex;
  align-items: center;
  gap: 100px;
  width: max-content;
  animation: logoScroll 25s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.logo-scroller-track:hover {
  animation-play-state: paused;
}

.logo-scroller-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-scroller-item img {
  height: 50px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0.9);
  transition: filter 0.2s ease;
}

.logo-scroller-item a:hover img {
  filter: brightness(1.1);
}

@media (max-width: 600px) {
  .logo-scroller-track {
    gap: 60px;
    animation-duration: 18s;
  }

  .logo-scroller-item img {
    height: 35px;
    max-width: 80px;
  }
}

@keyframes logoScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================================
   Reviews
   ============================================================ */

.reviews-title {
  position: relative;
  display: inline-block;
  background-color: var(--secondary);
  color: #fff !important;
  text-transform: capitalize;
  letter-spacing: 0.03em;
  padding: 12px 40px 12px 24px;
  margin: 0;
  line-height: 1.2;
  margin-bottom: 20px;
  height: 150px;
  display: flex;
  align-items: center;
  padding-right: 90px;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  /* width: 50%; */
  justify-content: right;
}

/* ============================================================
   Google Reviews Section
   ============================================================ */

.google-reviews-section.layout-grid .container {
  max-width: 1440px;
  margin: 0 auto;
}

.google-reviews-section .reviews-title {
  margin-bottom: 60px;
}
section#google-reviews {
  margin-bottom: 0px;
  margin-top: 0px;
  padding: 80px 0px;
  position: relative;
  z-index: 1;
}

/* Background image overlay with opacity control */
.google-reviews-section.has-bg-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-image-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
}

/* Ensure content stays above the background image */
.google-reviews-section.has-bg-image > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .google-reviews-section .reviews-title {
    font-size: 40px;
    margin-bottom: 40px;
  }
}

/* Grid Layout Styles */
.google-reviews-grid {
  background-image: url("../assets/images/diagonal-stripe-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 50px 0;
}

.google-reviews-grid .grid-top-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

@media (max-width: 1024px) {
  .google-reviews-grid .grid-top-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .google-reviews-grid .grid-top-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.google-reviews-grid .grid-bottom-row {
  display: flex;
  justify-content: center;
  width: 100%;
  align-content: stretch;
  flex-direction: column;
}

.google-reviews-grid .grid-review-card {
  background: #fff;
  border-radius: 8px;
  padding: 40px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.google-reviews-grid .grid-top-row .grid-review-card::before {
  content: "“";
  position: absolute;
  font-family: "Georgia", serif;
  font-size: 500px;
  line-height: 0.5;
  color: var(--star-color, #c2a66a);
  opacity: 0.15;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.google-reviews-grid .grid-review-card > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .google-reviews-grid .grid-review-card {
    padding: 30px 20px;
    min-height: auto;
  }
}

.google-reviews-grid .grid-review-card .grs-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.google-reviews-grid .grid-review-card .grs-logo img {
  max-width: 80px;
  height: auto;
}

.google-reviews-grid .grid-review-card .grs-stars {
  font-size: 58px;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1;
  display: flex;
  justify-content: center;
  gap: 2px;
}

.google-reviews-grid .grid-review-card .grs-stars .star {
  color: #ddd !important;
  transition: color 0.2s ease;
}

.google-reviews-grid .grid-review-card .grs-stars .star.filled {
  color: var(--star-color, #c2a66a) !important;
}

.google-reviews-grid .grid-review-card .grs-review {
  color: #000;
  font-family: "Lexend", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.13em;
  text-align: center;
  flex-grow: 1;
}

.google-reviews-grid .grid-review-card .grs-author {
  color: #000;
  font-family: "Lexend", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.13em;
  font-weight: 500;
  text-align: center;
  margin-top: auto;
}

.google-reviews-grid .grid-review-card.grid-review-card-large {
  max-width: 100%;
  padding: 60px 40px;
  min-height: 300px;
}

@media (max-width: 768px) {
  .google-reviews-grid .grid-review-card.grid-review-card-large {
    padding: 40px 20px;
  }
}

.google-reviews-grid .grid-review-card-large .large-card-content {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .google-reviews-grid .grid-review-card-large .large-card-content {
    gap: 20px;
  }
}

.google-reviews-grid .grid-review-card-large .large-card-left,
.google-reviews-grid .grid-review-card-large .large-card-right {
  flex-shrink: 0;
  display: flex;
}

.google-reviews-grid .grid-review-card-large .large-card-left {
  align-items: flex-start;
  align-self: flex-start;
}

.google-reviews-grid .grid-review-card-large .large-card-right {
  align-items: flex-end;
  align-self: flex-end;
}

.google-reviews-grid .grid-review-card-large .large-card-left .quote-mark,
.google-reviews-grid .grid-review-card-large .large-card-right .quote-mark {
  font-size: 200px;
  line-height: 0.8;
  color: var(--star-color, #c2a66a) !important;
  opacity: 0.15 !important;
  font-family: Georgia, serif;
  display: block;
}

.google-reviews-grid .grid-review-card-large .large-card-right .quote-mark {
  transform: translateY(80%);
}

@media (max-width: 768px) {
  .google-reviews-grid .grid-review-card-large .large-card-left .quote-mark,
  .google-reviews-grid .grid-review-card-large .large-card-right .quote-mark {
    font-size: 80px;
  }
}

.google-reviews-grid .grid-review-card-large .large-card-middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.google-reviews-grid .grid-review-card-large .large-card-middle .grs-logo {
  justify-content: center;
}

.google-reviews-grid .grid-review-card-large .large-card-middle .grs-stars {
  text-align: center;
  font-size: 58px !important;
  justify-content: center;
}

.google-reviews-grid .grid-review-card-large .large-card-middle .grs-review {
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
}

.google-reviews-grid .grid-review-card-large .large-card-middle .grs-author {
  text-align: center;
  font-size: 16px;
}

/* Carousel Layout Styles */
.google-reviews-section .inner.splide {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 0 80px;
}

@media (max-width: 1024px) {
  .google-reviews-section .inner.splide {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .google-reviews-section .inner.splide {
    padding: 0 10px;
  }
}

.google-reviews-section .splide {
  background: transparent;
  padding: 40px 20px;
  border-radius: 8px;
}

.google-reviews-section .splide__slide {
  background: transparent;
  border-radius: 0;
  padding: 60px 40px;
  margin: 0px;
  box-shadow: none;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.google-reviews-section .splide__slide::before {
  content: "“";
  position: absolute;
  font-family: "Georgia", serif;
  font-size: 200px;
  line-height: 0.5;
  color: var(--star-color, #c2a66a);
  opacity: 0.15;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.google-reviews-section .splide__slide > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .google-reviews-section .splide__slide {
    padding: 40px 20px;
  }
}

/* ============================================================================
   Post Listing Filter
   ============================================================================ */

.post-listing-filter-section {
  padding: 80px 0;
}

.plf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
  justify-content: center;
}

.plf-filter-btn {
  background: transparent;
  color: var(--primary);
  padding: 10px 24px;
  font-family: "Libertinus Sans", sans-serif;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border 0.8s ease-in-out;
}

.plf-filter-btn.active {
  background: var(--primary);
  color: #ffffff;
}

.plf-filter-btn:hover {
  border-bottom: 1px solid var(--primary);
}

.plf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  transition: opacity 0.2s ease;
}

.plf-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}

.plf-card-default {
  position: absolute;
  inset: 0;
}

.plf-card-default .plf-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.plf-card:hover .plf-card-default .plf-card-img {
  transform: scale(1.05);
}

.plf-card-img-placeholder {
  background: #e0e0e0;
}

.plf-card-hover {
  position: absolute;
  inset: 0;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  padding: 24px;
  box-sizing: border-box;
  text-align: center;
}

.plf-card:hover .plf-card-hover {
  opacity: 1;
}

.plf-card-hover-img {
  max-height: 60%;
  object-fit: contain;
  margin-bottom: 2vw;
  display: block;
}

.plf-card-hover-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.plf-card-title {
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
  color: #ffffff;
}

.plf-card-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.plf-term {
  font-size: 12px;
  color: #ffffff;
  font-weight: 400;
}

.plf-card-btn {
  display: inline-block;
  background: #0e0e2c;
  color: var(--white);
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.plf-card-btn:hover {
  background: var(--secondary);
  color: #ffffff;
}

.plf-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  opacity: 0.6;
}

.plf-loading {
  text-align: center;
  padding: 20px 0;
  font-style: italic;
  opacity: 0.6;
}

@media (max-width: 1024px) {
  .plf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .plf-grid {
    grid-template-columns: 1fr;
  }
  .plf-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .plf-filter-btn {
    text-align: center;
  }
}

/* ============================================================================
   Google reviews
   ============================================================================ */

.google-reviews-section .splide__slide .grs-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.google-reviews-section .splide__slide .grs-logo img {
  max-width: 100px;
  height: auto;
}

.google-reviews-section .splide__slide .grs-stars {
  font-size: 30px;
  text-align: center;
  margin-bottom: 30px;
  margin-top: -20px;
  line-height: 1;
  display: flex;
  justify-content: center;
  gap: 3px;
}

.google-reviews-section .splide__slide .grs-stars .star {
  color: #ddd !important;
  transition: color 0.2s ease;
}

.google-reviews-section .splide__slide .grs-stars .star.filled {
  color: var(--star-color, #c2a66a) !important;
}

.google-reviews-section .splide__slide .grs-review {
  color: #000;
  font-family: "Libertinus Sans", sans-serif;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 300;
}

@media (max-width: 768px) {
  .google-reviews-section .splide__slide .grs-review {
    font-size: 18px;
  }
}

.google-reviews-section .splide__slide .grs-author {
  font-family: "Libertinus Sans", sans-serif;
  font-size: 20px;
  font-weight: 400;
  text-align: center;
}

.google-reviews-section .no-reviews {
  text-align: center;
  font-size: 18px;
  color: inherit;
  margin: 40px 0;
}

/* Grid Review Groups */
.google-reviews-grid .review-group {
  display: none;
}

.google-reviews-grid .review-group.active {
  display: block;
}

/* Grid Show More Button */
.grid-show-more-wrapper {
  text-align: center;
  margin-top: 40px;
}

.grid-show-more-btn {
  display: inline-block;
  background: #fff;
  color: var(--secondary) !important;
  border: 1px solid var(--secondary);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 1px;
  padding: 10px 40px 10px 30px;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.grid-show-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.grid-show-more-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .grid-show-more-btn {
    padding: 12px 30px;
    font-size: 14px;
  }
}

/* Splide Carousel Arrows */
.google-reviews-section .splide__arrows {
  width: 100%;
}

.google-reviews-section .splide__track {
  margin: 0 auto;
  width: 100%;
}
.google-reviews-section.layout-carousel .splide {
  text-align: center;
}

.google-reviews-section.layout-carousel .splide__track {
  margin-left: auto;
  margin-right: auto;
}
.google-reviews-section .splide__slide {
  align-items: center;
}

.google-reviews-section .splide__arrow {
  background: transparent;
  width: 40px;
  height: 40px;
  border-radius: 0;
  opacity: 1;
  transition: opacity 0.3s ease;
  position: absolute;
}

.google-reviews-section .splide__arrow:hover {
  background: transparent;
  opacity: 0.6;
}

.google-reviews-section .splide__arrow svg {
  fill: #fff;
}
.google-reviews-section .splide__arrow:hover svg {
  fill: var(--star-color, #c2a66a);
}

.google-reviews-section .splide__arrow--prev {
  left: 20px;
}

.google-reviews-section .splide__arrow--next {
  right: 20px;
}

@media (max-width: 1024px) {
  .google-reviews-section .splide__arrow--prev {
    left: 10px;
  }

  .google-reviews-section .splide__arrow--next {
    right: 10px;
  }
  .google-reviews-grid .grid-top-row .grid-review-card:nth-child(3) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .google-reviews-section .splide__arrow {
    width: 30px;
    height: 30px;
  }

  .google-reviews-section .splide__arrow--prev {
    left: 5px;
  }

  .google-reviews-section .splide__arrow--next {
    right: 5px;
  }

  .google-reviews-section .splide__arrows {
    top: 40px;
  }
  .google-reviews-grid .grid-top-row .grid-review-card:nth-child(3) {
    grid-column: auto;
  }
}

/* Splide Pagination Dots */
.google-reviews-section .splide__pagination {
  bottom: -40px;
}

.google-reviews-section .splide__pagination__page {
  background: #ddd;
  opacity: 1;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.google-reviews-section .splide__pagination__page.is-active {
  background: var(--star-color, #c2a66a);
  transform: scale(1.2);
}

.google-reviews-section .splide__pagination__page:hover {
  background: var(--star-color, #c2a66a);
  opacity: 0.8;
}

/* Override ::before for carousel - use div instead */
.google-reviews-section .splide__slide::before {
  display: none !important;
}

.google-reviews-section .splide__slide .quote-background {
  font-family: "Georgia", serif;
  font-size: 150px;
  font-weight: 500;
  line-height: 0.5;
  color: var(--star-color, #c2a66a) !important;
  opacity: 0.8;
  text-align: center;
  margin: 0;
  padding: 0;
}

.google-reviews-section .splide__list {
  display: flex;
  align-items: stretch;
}

.google-reviews-section .tm__item.splide__list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.google-reviews-section .splide__slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  list-style: none;
  text-align: center;
}

/* ============================================================================
   CTA Content Section
   ============================================================================ */

.cta-content-section {
  padding: 80px 0;
  margin: 0;
}

.cta-content-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-content-section .cta-title {
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 600;
}

.cta-content-section .cta-content {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
}

.cta-content-section .cta-content p {
  margin: 0;
}

.cta-content-section .cta-button-wrapper {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-content-section .cta-button {
  white-space: nowrap;
  padding: 15px 40px;
  background-color: var(--black);
  color: var(--white) !important;
  border: 2px solid var(--primary);
  border-radius: 0;
  font-family: "Libertinus Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 1px;
  transition: transform 0.3s ease;
  display: inline-block;
  cursor: pointer;
}

.cta-content-section .cta-button:hover,
.cta-content-section .cta-button_2:hover {
  transform: translateY(-2px);
}

.cta-content-section .cta-button_2 {
  white-space: nowrap;
  padding: 15px 40px;
  background-color: var(--primary);
  color: var(--white) !important;
  font-family: "Libertinus Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 1px;
  transition: transform 0.3s ease;
  display: inline-block;
  cursor: pointer;
}

/* Alignment options */
.cta-content-section.align-left .container {
  align-items: flex-start;
  text-align: left;
}

.cta-content-section.align-left .cta-button-wrapper {
  justify-content: flex-start;
}

.cta-content-section.align-center .container {
  align-items: center;
  text-align: center;
}

.cta-content-section.align-center .cta-button-wrapper {
  justify-content: center;
}

.cta-content-section.align-right .container {
  align-items: flex-end;
  text-align: right;
}

.cta-content-section.align-right .cta-button-wrapper {
  justify-content: flex-end;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .cta-content-section {
    padding: 40px 0;
  }

  .cta-content-section .cta-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .cta-content-section .cta-content {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .cta-content-section .cta-button-wrapper {
    flex-direction: column;
    width: 100%;
  }

  .cta-content-section .cta-button {
    width: 100%;
    text-align: center;
  }

  /* Override alignment on mobile - always center */
  .cta-content-section .container {
    align-items: center;
    text-align: center;
  }

  .cta-content-section .cta-button-wrapper {
    justify-content: center;
  }
}

/* ============================================================================
   Terms and Conditions & Privacy Policy & Complaints Policy
   ============================================================================ */

section#terms-conditions,
section#privacy-policy,
section#complaints-policy {
  margin-top: 50px;
}

@media (max-width: 768px) {
  section#terms-conditions,
  section#privacy-policy,
  section#complaints-policy {
    margin-top: 50px;
  }
}

section#terms-conditions h2.one-col-title,
section#privacy-policy h2.one-col-title,
section#complaints-policy h2.one-col-title {
  margin-bottom: 50px;
}

#reflexology-experience section p,
section#terms-conditions p {
  margin-bottom: 20px;
}

#reflexology-experience .one-col-content p {
  text-align: center;
  padding-bottom: 30px;
}

#reflexology-courses .one-col-title {
  color: var(--secondary) !important;
}

/* ============================================================================
   Two Column Image Accordion Section
   ============================================================================ */

.two-col-image-accordion-section {
  padding: 60px 0;
}

.two-col-accordion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Image side control */
.two-col-image-accordion-section.image-right .two-col-accordion-grid {
  grid-template-columns: 1fr 1fr;
}

.two-col-image-accordion-section.image-right .accordion-image-column {
  order: 2;
}

.two-col-image-accordion-section.image-right .accordion-content-column {
  order: 1;
}

.accordion-section-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.accordion-section-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  font-weight: 700;
}

/* Alignment */
.two-col-image-accordion-section.align-center .accordion-content-column {
  text-align: center;
}

.two-col-image-accordion-section.align-right .accordion-content-column {
  text-align: right;
}

/* Accordion Styles */
.accordion-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.accordion-item {
  border: none;
  border-bottom: 1px solid var(--primary);
  border-radius: 0;
  overflow: visible;
  background: transparent;
  transition: none;
}

.accordion-item:hover {
  box-shadow: none;
}

.accordion-header {
  width: 100%;
  padding: 20px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  color: inherit;
  transition: none;
}

.accordion-header:hover {
  background: transparent;
}

.accordion-header.active {
  background: transparent;
}

.accordion-title-text {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.accordion-content.hidden-accordion {
  display: none;
}

.accordion-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease;
}

.accordion-content-inner {
  padding: 0 0 20px 0;
  line-height: 1.6;
  font-size: 1rem;
}

.accordion-content-inner p {
  margin-bottom: 15px;
}

.accordion-content-inner p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  div .two-col-accordion-grid {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  .two-col-image-accordion-section.image-right .accordion-image-column,
  .two-col-image-accordion-section.image-right .accordion-content-column {
    order: unset;
  }

  .accordion-section-title {
    font-size: 2rem;
  }

  .accordion-title-text {
    font-size: 1.25rem;
  }

  .accordion-header {
    padding: 15px 0;
  }

  .accordion-content-inner {
    padding: 0 0 15px 0;
  }
}

/* ============================================================================
   Video Section
   ============================================================================ */

.video-section {
  padding: 80px 0px;
}

.video-section-title {
  margin-bottom: 0.5em;
  text-align: center;
}

.video-section-subtitle {
  margin-bottom: 1.5em;
  opacity: 0.85;
}

/* Grid — groups of 3: big + small stack, alternating sides */
.video-section-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-section-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.video-section-item--big {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
}

.video-section-small-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.video-section-item--small {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

/* Alternate groups: big image moves to the right */
.video-section-group--reversed .video-section-item--big {
  order: 2;
}

.video-section-group--reversed .video-section-small-stack {
  order: 1;
}

/* Button fills its container and images cover it */
.video-section-item .mcc-video-thumb {
  height: 100%;
  cursor: pointer;
  border-radius: 20px;
}

.video-section-item .mcc-video-thumb img {
  height: 100%;
  object-fit: cover;
}

/* Placeholder when no poster image is set */
.video-section-no-poster {
  width: 100%;
  height: 100%;
  background: #1a1a2e;
}

/* Responsive */
@media (max-width: 768px) {
  .video-section-group {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .video-section-group--reversed .video-section-item--big,
  .video-section-group--reversed .video-section-small-stack {
    order: 0;
  }

  .video-section-small-stack,
  .video-section-group {
    gap: 30px;
  }

  .video-section-item--big {
    aspect-ratio: 4 / 3;
    width: 100%;
  }

  .video-section-item--small,
  .video-section-item--big {
    max-height: 350px;
  }

  .video-section-grid {
    gap: 0;
  }
}

/* ============================================================================
   Thank You Section
   ============================================================================ */

section#thank-you {
  padding: 50px 0;
}

@media (max-width: 768px) {
  section#thank-you {
    padding: 50px 0;
  }
}

section#thank-you h2.one-col-title {
  margin-bottom: 50px;
}

section p {
  padding-bottom: 20px;
}
/* ========================================
   Service Hero Section
   ======================================== */

.services-hero-section {
  padding: 6rem 0 0;
  min-height: 900px;
  display: flex;
  position: relative;
  overflow: visible;
  z-index: 1;
  align-items: center;
  background: linear-gradient(
    to bottom,
    var(--gradient-start) 0%,
    var(--gradient-end) 100%
  ) !important;
}

.services-hero-section .container {
  display: flex;
  flex-direction: column;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.services-hero-section .hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  padding-bottom: 3rem;
}

.services-hero-section .hero-menu-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 0.5rem;
}

.services-hero-section .hero-menu-item {
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0;
  margin: 0;
  opacity: 0.95;
  border-bottom: 3px solid #ffffff50;
  width: 300px;
  text-align: left;
  color: var(--white);
  padding: 20px 0;
}

.services-hero-section .hero-content-wrapper {
  max-width: 600px;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.services-hero-section h1 {
  margin: 0 0 1rem 0;
  color: var(--white);
}

.services-hero-section .hero-description {
  margin-bottom: 2rem;
  opacity: 0.95;
  color: var(--white);
}

.services-hero-section .hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.services-hero-section .hero-button {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
  border: 2px solid transparent;
}

.services-hero-section .hero-button:first-child {
  background-color: #0e0e2c;
  color: white;
}

.services-hero-section .hero-button:first-child:hover {
  background-color: #0a0a20;
  transform: translateY(-2px);
}

.services-hero-section .hero-button:nth-child(2) {
  background-color: #0a2b5e;
  color: white;
}

.services-hero-section .hero-button:nth-child(2):hover {
  background-color: #082348;
  transform: translateY(-2px);
}

.services-hero-section .hero-images {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.hero-images img {
  width: 100%;
  height: auto;
  border-radius: 0px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: block;
}

/* ========================================
   Services Overview Section
   ======================================== */

.services-overview {
  padding: 80px 0 80px;
}

.services-overview .container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.services-overview .overview-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: start;
}

.services-overview h2 {
  margin: 0 0 20px 0;
  text-align: center;
}

.services-overview .overview-intro {
  margin: 0;
  text-align: center;
}

.services-overview .overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.services-overview .overview-item {
  padding: 30px;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  background: #ffffff;
  justify-items: flex-start;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-overview .overview-item img {
  height: 20px;
  width: max-content;
}

.services-overview .overview-item-icon {
  padding: 5px;
  background-color: lightgray;
  aspect-ratio: 1 / 1;
  width: 40px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-overview .overview-item h3 {
  margin: 15px 0;
  text-align: center;
}

.services-overview .overview-item p {
  font-size: 16px;
  line-height: 1.2;
  margin: 0;
  text-align: center;
}
@media (max-width: 768px) {
  .services-overview .overview-layout .overview-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Services packages Section
   ======================================== */

.services-packages {
  padding: 80px 0;
}

.services-packages .container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.services-packages h2 {
  margin: 0 0 20px 0;
  display: flex;
  justify-content: center;
  text-align: center;
}

.services-packages .packages-intro {
  text-align: center;
  margin: 0 auto 50px;
}

.services-packages .packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.services-packages .packages-grid--one-col {
  grid-template-columns: 1fr;
}

.services-packages .packages-grid--two-col {
  grid-template-columns: repeat(2, 1fr);
}

.services-packages .package-card {
  border: 1px solid #ecf1f4;
  border-radius: 8px;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
}

.services-packages .package-card.popular {
  border: 1px solid var(--secondary);
  border-radius: 8px;
  padding: 30px;
  background-color: #ecf1f4;
}

.services-packages .package-card .price {
  font-family: "Poppins", sans-serif;
  font-size: 36px;
  line-height: 40px;
  font-weight: 500;
}
.services-packages .package-card .subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--primary);
  margin: 0px;
  text-align: center;
}

.services-packages .package-card .price-wrap {
  text-align: center;
}

.services-packages .packages-number {
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 20px;
  background: #fff;
  aspect-ratio: 1;
  width: 60px;
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
}

.services-packages .packages-item h3 {
  color: var(--white);
  font-weight: 400;
  margin: 0 0 15px 0;
}

.services-packages .packages-item p {
  font-size: 16px;
  line-height: 1.2;
  margin: 0;
}

.services-packages ul {
  margin-bottom: 30px;
}

.services-packages p.small {
  max-width: 80%;
  margin: auto;
  margin-top: 20px;
  text-align: center;
  margin-bottom: 30px;
}

p.price-wrap.vat {
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-packages li.packages-item {
  list-style: none;
  padding: 6px 0 6px 28px;
  position: relative;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  color: var(--black);
  font-weight: 400;
}

.services-packages li.packages-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

.package-card ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.services-packages li.packages-item-no-check {
  list-style: none;
  padding: 6px 0 6px 0;
  text-align: left;
}

.services-packages .service-button {
  display: inline-block;
  padding: 15px 40px;
  border: 2px solid var(--primary);
  background-color: var(--primary);
  color: #fff;
  text-decoration: none;
  font-family: "Libertinus Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  border-radius: 0px;
  transition: all 0.3s ease;
  align-self: center;
  width: 100%;
  text-align: center;
}

.services-packages .service-button:hover {
  background-color: transparent;
  color: var(--primary);
}

@media (max-width: 768px) {
  .services-packages .packages-grid,
  .services-packages .packages-grid--two-col {
    grid-template-columns: 1fr;
  }

  .services-packages p.small {
    max-width: 100%;
    margin-bottom: 30px;
  }
}
/* ========================================
   Service Hero Section
   ======================================== */

.landing-hero-section {
  padding: 6rem 0 0;
  min-height: 900px;
  display: flex;
  position: relative;
  overflow: visible;
  z-index: 1;
  align-items: center;
  background: linear-gradient(
    to bottom,
    var(--gradient-start) 0%,
    var(--gradient-end) 100%
  ) !important;
}

.landing-hero-section .container {
  display: flex;
  flex-direction: column;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.landing-hero-section .hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  padding-bottom: 3rem;
}

.landing-hero-section .hero-menu-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 0.5rem;
}

.landing-hero-section .hero-menu-item {
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0;
  margin: 0;
  opacity: 0.95;
  border-bottom: 3px solid #ffffff50;
  width: 300px;
  text-align: left;
  color: var(--white);
  padding: 20px 0;
}

.landing-hero-section .hero-content-wrapper {
  max-width: 600px;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.landing-hero-section h1 {
  margin: 0 0 1rem 0;
  color: var(--white);
}

.landing-hero-section .hero-description {
  margin-bottom: 2rem;
  opacity: 0.95;
  color: var(--white);
}

.landing-hero-section .hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.landing-hero-section .hero-button {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
  border: 2px solid transparent;
}

.landing-hero-section .hero-button:first-child {
  background-color: #0e0e2c;
  color: white;
}

.landing-hero-section .hero-button:first-child:hover {
  background-color: #0a0a20;
  transform: translateY(-2px);
}

.landing-hero-section .hero-button:nth-child(2) {
  background-color: #0a2b5e;
  color: white;
}

.landing-hero-section .hero-button:nth-child(2):hover {
  background-color: #082348;
  transform: translateY(-2px);
}

.landing-hero-section .hero-images {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.hero-images img {
  width: 100%;
  height: auto;
  border-radius: 0px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: block;
}

.landing-hero-section .hero-description a span {
  color: white;
  font-size: 20px;
}

.landing-hero-section .contact-info-item a span {
  color: white;
  font-size: 20px;
}

.landing-hero-section .hero-contact-info {
  display: flex;
  gap: 40px;
  flex-direction: column;
  margin-top: 35px;
}

.contact-form {
  width: 100%;
  border: 1px solid #ffffff78;
  padding: 30px;
  border-radius: 5%;
  background: #ffffff21;
}

.form-service-select {
  margin-bottom: 20px;
}

.form-service-label {
  color: white;
  font-size: 16px;
  margin-bottom: 12px;
}

.form-service-options {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  align-items: stretch;
}

@media (min-width: 1440px) {
  .contact-form {
    width: 75%;
  }
}

@media (max-width: 768px) {
  .form-service-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-option {
  cursor: pointer;
  display: flex;
}

.service-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.service-option-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  background: #ecf1f4;
  border: 2px solid transparent;
  border-radius: 8px;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
  width: 100%;
}

.service-icon {
  display: block;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.service-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary) !important;
  text-align: center;
  line-height: 1.2;
}

.service-option input[type="radio"]:checked + .service-option-inner {
  border-color: #ffffff;
  transform: scale(1.05);
}

.service-option:hover .service-option-inner {
  border-color: rgba(255, 255, 255, 0.5);
}

.contact-form p {
  color: white;
  font-size: 25px;
  font-weight: 500;
}
.hero-form-column {
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 1024px) {
  .landing-hero-section .hero-grid {
    grid-template-columns: 1fr;
  }
  .contact-form {
    width: 100%;
    border: none;
    border-radius: 5%;
    background: transparent;
    padding: 0px;
  }

  .landing-hero-section .hero-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .contact-form .form-row,
  .contact-form .form-group.full-width {
    margin-bottom: 15px;
    grid-template-columns: 1fr;
  }
  .contact-form .form-group {
    margin-bottom: 0px;
  }
}
/* ========================================
   Landing socials footer
   ======================================== */
.landing-socials-footer {
  background-color: var(--primary);
  padding: 24px 20px;
  text-align: center;
}

.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.landing-footer-socials {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.landing-footer-socials a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white, #fff);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.landing-footer-socials a:hover {
  opacity: 1;
}

.landing-footer-socials a img,
.landing-footer-socials a svg {
  display: block;
  flex-shrink: 0;
}

.landing-footer-socials a span {
  font-size: 0.9rem;
}

.landing-footer-credit {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.landing-footer-credit a {
  color: var(--secondary, #c2a66a);
  text-decoration: none;
}

.landing-footer-credit a:hover {
  text-decoration: underline;
}

/* ============================================================================
   Reviews Section — #reviews
   ============================================================================ */
#reviews {
  min-height: 700px; /* adjust to taste */
  background-image: url("https://dev.blueprintweb.uk/reflexology/wp-content/uploads/2026/05/Testimonials-scaled.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#big-reviews {
  min-height: 1790px; /* adjust to taste */
  background-image: url("https://dev.blueprintweb.uk/reflexology/wp-content/uploads/2026/05/testimonials-background-scaled-e1779899135858.png");
  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
}

#big-reviews .post-listing-header {
  padding: 50px 0;
}

#reflexology .one-col-content p {
  margin: 0 !important;
  text-align: center;
}

/* ============================================================================
   Class Location Cards (post_content section with post_type = class)
   ============================================================================ */

/* ── Grid container ── */
.column-classes-container {
  display: grid;
  gap: 32px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.column-classes-container.columns-1 {
  grid-template-columns: 1fr;
}
.column-classes-container.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}
.column-classes-container.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}
.column-classes-container.columns-4 {
  grid-template-columns: repeat(2, 1fr);
}

/* ── Individual card ── */
.class-item {
  display: flex;
  flex-direction: column;
}

/* ── Card inner content ── */
.class-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

/* ── Thumbnail ── */
.class-thumbnail img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* ── Location title ── */
.class-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: inherit;
}

/* ── Type tags (e.g. Reflexology, Pilates) ── */
.class-type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.class-type-tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit;
}

/* ── Schedule / times block ── */
.class-schedule {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.9;
  white-space: pre-line;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .column-classes-container.columns-3,
  .column-classes-container.columns-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .column-classes-container.columns-2,
  .column-classes-container.columns-3,
  .column-classes-container.columns-4 {
    grid-template-columns: 1fr;
  }
}

.button-group {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  margin-top: 30px;
}

/* =============================================================================
   Reflexology Hero Section
   reflexology-hero.css
   
   Layout: two-column — hero content left, stacked Google Review cards right.
   Stack order (bottom to top):
     1. Section background colour / gradient  (on the element itself)
     2. Background image                      (::before pseudo-element)
     3. Overlay image                         (.rh-overlay — decorative PNG/SVG)
     4. All content                           (z-index: 2+)
   ============================================================================= */

/* ── Section wrapper ─────────────────────────────────────────────────────── */

.reflexology-hero-section {
  position: relative;
  overflow: hidden;
}

/* ── Layer 1: Background image via ::before ──────────────────────────────── */

.reflexology-hero-section.has-bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-image-url);
  background-size: cover;
  background-position: var(--bg-image-position, center center);
  background-repeat: no-repeat;
  opacity: var(--bg-image-opacity, 1);
  z-index: 0;
  pointer-events: none;
}

/* ── Layer 2: Overlay image (.rh-overlay) ────────────────────────────────── 
   Sits above the bg image. Use a PNG/SVG with transparency for decorative
   effects — waves, leaves, shapes etc.                                       */

.reflexology-hero-section .rh-overlay {
  position: absolute;
  inset: 0;
  background-image: var(--bg-overlay-url);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
  z-index: 1;
  pointer-events: none;
}

/* ── Two-column container ────────────────────────────────────────────────── */

.reflexology-hero-section .rh-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 50% 1fr;
  gap: 15vw;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 2vw;
  min-height: 900px;
}

.home .reflexology-hero-section .rh-container {
  padding-bottom: 0vw;
}

/* ── Left column: hero content ───────────────────────────────────────────── */

.reflexology-hero-section .rh-content-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
  justify-content: space-between;
}

.rh-content-col-inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.reflexology-hero-section .line2 {
  color: var(--secondary) !important;
  font-weight: 400;
}

/* ── Right column: review cards ──────────────────────────────────────────── */

.reflexology-hero-section .rh-reviews-col {
  position: relative;
  display: flex;
  gap: 0;
  height: 100%;
}

/* =============================================================================
   Review card slide transitions
   All slides are absolute + invisible.
   Only .is-active is visible and takes up layout space (position: relative).
   ============================================================================= */

.reflexology-hero-section .rh-reviews-slide {
  display: flex;
  flex-direction: column;
  gap: 70px;

  opacity: 0;
  transform: translateY(12px);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reflexology-hero-section .rh-reviews-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}

/* ── Individual review card ──────────────────────────────────────────────── */

.reflexology-hero-section .rh-review-card {
  background: #ecf1f494;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Card header: Google logo + stars side by side ───────────────────────── */

.reflexology-hero-section .rh-review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.reflexology-hero-section .rh-google-logo {
  height: 18px;
  width: auto;
  display: block;
}

/* ── Stars ───────────────────────────────────────────────────────────────── */

.reflexology-hero-section .rh-stars {
  display: flex;
  gap: 1px;
}

.reflexology-hero-section .rh-star {
  font-size: 0.95rem;
  color: #e0e0e0;
}

.reflexology-hero-section .rh-star.filled {
  color: #f5a623;
}

/* ── Review text — clamped to 5 lines to keep cards equal height ─────────── */

.reflexology-hero-section .rh-review-text {
  font-size: 18px;
  line-height: 1.65;
  color: #444;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 300;
}

.rh-review-text::before {
  content: '"';
  font-size: 50px;
  color: var(--secondary);
  font-family: revert;
  line-height: normal;
}

/* ── Author name ─────────────────────────────────────────────────────────── */

.reflexology-hero-section .rh-review-author {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent, #7fbfb0);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-top: 0.6rem;
  margin-top: auto;
}

/* ── Navigation dots ─────────────────────────────────────────────────────── */

.reflexology-hero-section .rh-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 1rem;
  display: none;
}

.reflexology-hero-section .rh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--accent, #7fbfb0);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.25s ease,
    transform 0.2s ease;
}

.reflexology-hero-section .rh-dot.is-active,
.reflexology-hero-section .rh-dot:hover {
  background: var(--accent, #7fbfb0);
  transform: scale(1.25);
}

/* =============================================================================
   Alignment variants
   ============================================================================= */

.reflexology-hero-section.align-center .rh-container {
  text-align: center;
}

.reflexology-hero-section.align-center .hero-buttons,
.reflexology-hero-section.align-center .hero-features-list {
  justify-content: center;
}

.reflexology-hero-section .hero-buttons a {
  min-width: 180px;
  text-align: center;
}
.reflexology-hero-section .hero-buttons {
  display: flex;
  gap: 40px;
}

.reflexology-hero-section .rh-review-card {
  max-width: 80%;
}

.reflexology-hero-section .rh-review-card:nth-child(1) {
  align-self: end;
}
.reflexology-hero-section .hero-features-list {
  justify-content: center;
}

/* =============================================================================
   Responsive
   ============================================================================= */
/* Tablet: single column, reviews below content, cards side by side */
@media (max-width: 1024px) {
}
/* Tablet: single column, reviews below content, cards side by side */
@media (max-width: 900px) {
  .reflexology-hero-section .rh-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 0px;
    padding-bottom: 2.5rem;
    min-height: 840px;
    margin-bottom: -50px;
  }

  .reflexology-hero-section .rh-content-col {
    order: 1;
    justify-content: flex-start;
  }

  .hero-buttons a {
    width: 100%;
  }

  .hero-buttons {
    display: flex;
    gap: 20px;
  }

  .home #welcome-section.two-col-image-content-section {
    margin-top: -60px;
  }
  .home main .reflexology-hero-section {
    --bg-image-opacity: 0 !important;

    --bg-overlay-url: url(https://dev.blueprintweb.uk/reflexology/wp-content/uploads/2026/06/wave-mobi.webp) !important;
  }

  .hero-features-list {
    justify-content: space-evenly;
    margin-top: 20px;
  }

  .reflexology-hero-section .rh-reviews-col {
    order: 2;
    display: none;
  }

  .reflexology-hero-section .rh-reviews-slide {
    flex-direction: row;
  }

  .reflexology-hero-section .rh-review-card {
    flex: 1 1 0;
  }
}

/* Mobile: single card visible, stacked layout */
@media (max-width: 560px) {
  .reflexology-hero-section .rh-reviews-slide {
    flex-direction: column;
  }

  /* Hide non-active slides completely rather than stacking them */
  .reflexology-hero-section .rh-reviews-slide:not(.is-active) {
    display: none;
  }

  /* Remove absolute positioning so the active slide flows naturally */
  .reflexology-hero-section .rh-reviews-slide.is-active {
    position: relative;
  }

  .reflexology-hero-section .hero-buttons {
    flex-direction: column;
  }

  .reflexology-hero-section .hero-features-list {
    display: none;
  }
  .reflexology-hero-section .rh-container {
    min-height: 150vw;
    margin-bottom: -20px;
  }

  .reflexology-hero-section .rh-content-col-inner {
    padding-bottom: 150px;
  }

  .home #welcome-section.two-col-image-content-section {
    margin-top: -40px;
    padding-top: 0px;
    z-index: 2;
  }
}

.reflexology-hero-section {
  position: relative;
  overflow: hidden;
}

.reflexology-hero-section .container {
  max-width: 1773px;
  padding-left: 5vw;
}

.mcc-video-address {
  font-size: 17px;
  line-height: 1.1;
}

.what-is-reflexology-page .two-col-image-content-section .main-content h3 {
  margin-bottom: 0px !important;
}

.what-is-reflexology-page div h2,
.what-is-pilates-page .multi-col-side-text-col span {
  color: var(--secondary) !important;
}
