/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

.spotlight-animation-container .bricks-background-primary {
  opacity: 0;
  transform: translateY(30px);
}

/* Our Services Element Styles */
/* Target both the class and Bricks' element class for better compatibility */
.our-services-wrapper,
.brxe-our-services {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.services-heading {
  font-family: "Red Hat Display";
  font-weight: 800;
  font-style: ExtraBold;
  font-size: 40px;
  leading-trim: NONE;
  line-height: 60px;
  letter-spacing: 0px;
  color: #003550;
  margin-bottom: 32px;
}

.services-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: flex-start;
}

.service-image-wrapper {
  width: 100%;
  order: 2;
  border-radius: 10px;
  overflow: hidden;
}

.service-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.services-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  order: 1;
  overflow: hidden;
  padding: 64px 0;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid #003550;
  position: relative;
  color: rgb(0 53 80 / 70%);
}

.service-item:last-child {
  border-bottom: none;
}

.service-item:hover {
  color: #003550;
}

.service-item.active {
  color: #003550;
}

.service-item.active .service-arrow {
  opacity: 1;
}

.service-item:hover .service-arrow {
  opacity: 1;
}

.service-number {
  font-family: "Red Hat Text";
  font-weight: 600;
  font-style: SemiBold;
  font-size: 18px;

  line-height: 26px;
  letter-spacing: 0%;
}

.service-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.service-title {
  font-family: "Red Hat Display";
  font-weight: 900;
  font-size: 28px;
  line-height: 42px;
  letter-spacing: 0px;
}

.service-arrow {
  font-size: 1.2rem;
  color: inherit;
  transition: transform 0.3s ease;
  margin-left: auto;
  display: flex;
  opacity: 0;
}

.service-main-image {
  transition: opacity 0.3s ease-in-out;
  width: 100%;
  height: auto;
}

.layout-flipped .services-content-wrapper {
  /* flex-direction: row-reverse; */
}

.layout-flipped .service-image-wrapper {
  order: 2;
}

.layout-flipped .services-list {
  order: 1;
}

/* Mobile Styles - Image appears under active service */
@media (max-width: 767px) {
  .services-content-wrapper {
    flex-direction: column;
  }

  /* Hide desktop image on mobile */
  .service-image-wrapper {
    display: none;
  }

  .services-list {
    order: 1;
    width: 100%;
  }

  /* Mobile image appears after active service item */
  .service-image-mobile {
    width: 100%;
    margin-top: 24px;
    margin-bottom: 32px;
    border-radius: 10px;
    overflow: hidden;
    display: none;
    /* Hidden by default, shown via JavaScript when service is active */
  }

  .service-item.active + .service-image-mobile,
  .service-image-mobile.active {
    display: block;
  }

  .service-main-image-mobile {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }
}

/* Desktop Styles */
@media (min-width: 768px) {
  .services-content-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }

  /* Hide mobile images on desktop */
  .service-image-mobile {
    display: none !important;
  }

  .service-image-wrapper {
    order: 1;
    flex-shrink: 0;
    width: 50%;
    display: block;
  }

  .services-list {
    order: 2;
    width: 50%;
  }

  /* Responsive Styles */
  @media (max-width: 1024px) {
    .filtered-posts-container {
      flex-direction: column;
    }

    .filtered-posts-sidebar {
      width: 100% !important;
      margin-bottom: 30px;
    }

    .filter-list {
      flex-direction: row;
      flex-wrap: wrap;
      gap: 8px;
    }

    .filter-item {
      margin-bottom: 0;
    }

    .post-card-image-wrapper {
      width: 100%;
      height: auto;
      aspect-ratio: 472 / 265.5;
    }

    .post-card-image {
      width: 100%;
      height: 100%;
    }
  }

  @media (max-width: 768px) {
    .filtered-posts-grid {
      grid-template-columns: 1fr;
      gap: 24px;
    }

    .post-card-image-wrapper {
      width: 100%;
      height: auto;
      aspect-ratio: 472 / 265.5;
    }

    .post-card-image {
      width: 100%;
      height: 100%;
    }

    .post-card-title {
      font-size: 20px;
    }

    .post-card-excerpt {
      font-size: 14px;
    }

    .filtered-posts-pagination {
      flex-direction: column;
      gap: 16px;
    }

    .filtered-posts-pagination > button {
      width: 100%;
      justify-content: center;
    }

    .pagination-numbers {
      width: 100%;
      justify-content: center;
    }
  }
}

/* Filtered Posts Element Styles */
.filtered-posts-wrapper,
.brxe-filtered-posts {
  width: 100%;
}

.filtered-posts-container {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

/* Sidebar */
.filtered-posts-sidebar {
  flex-shrink: 0;
  width: 300px;
}

.filter-title {
  color: #ffffff;
  margin: 0 0 24px 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 30px;
  font-family: "Red Hat Display";
}

.filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  margin-bottom: 4px;
  color: #003550;
}

.filter-item:hover {
  background-color: #ffffff80;
}

.filter-item.active {
  background-color: #ffffff80;
}

.filter-text {
  flex: 1;
  font-family: "Red Hat Text";
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  color: #ffffff;
}

.filter-item.active .filter-text {
  font-weight: 600;
}

.filter-arrow {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: #ffffff;
}

.filter-item.active .filter-arrow {
  opacity: 1;
}

.filter-item:hover .filter-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* Main Content */
.filtered-posts-content {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.filtered-posts-grid {
  display: grid;
  grid-template-columns: repeat(var(--columns, 2), 1fr);
  gap: var(--gap, 30px);
  margin-bottom: 40px;
}

/* Post Card */
.post-card {
  display: flex;
  flex-direction: column;
  background-color: transparent;
  overflow: hidden;
  transition: transform 0.3s ease;
}

/* .post-card:hover {
    transform: translateY(-4px);
  } */

.post-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 265.5px;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: 10px;
}

.post-card-image {
  width: 472px;
  height: 265.5px;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-image {
  transform: scale(1.05);
}

.post-card-category {
  background-color: #bae2d0;
  color: #003550;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  width: fit-content;
  font-family: "Red Hat Text";
  margin-bottom: 8px;
}

.post-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-card-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  font-family: "Red Hat Text";
}

.post-card-title a {
  color: #ffffff;
  text-decoration: none;
}

.post-card-excerpt {
  color: #ffffff;
  margin: 0;
  line-height: 24px;
  font-size: 16px;
  font-family: "Red Hat Text";
  font-weight: 400;
}

.post-card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  margin-top: 16px;
  font-family: "Red Hat Text";
  transition: color 0.3s ease;
  line-height: 24px;
}

.post-card-read-more:hover {
  text-decoration: underline;
}

.read-more-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.post-card-read-more:hover .read-more-arrow {
  transform: translateX(4px);
}

.no-posts {
  color: #ffffff;
  text-align: center;
  padding: 40px;
  font-size: 18px;
}

/* Pagination */
.filtered-posts-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-top: 40px;
  gap: 20px;
  width: 100%;
}

.filtered-posts-pagination > button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: #00bbaf;
  color: #003550;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

.filtered-posts-pagination > button:hover:not(.disabled) {
  background-color: rgba(0, 183, 195, 1);
  color: white;
}

.filtered-posts-pagination > button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.filtered-posts-pagination > button svg {
  width: 16px;
  height: 16px;
}

.pagination-prev svg {
  order: -1;
}

/* Page Numbers (Centered) */
.pagination-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
}

.pagination-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 12px;
  background-color: transparent;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

.pagination-number:hover {
  border: 1px solid #8e8e8e;
}

.pagination-number.active {
  background-color: #00bbaf;
  border: 1px solid #00bbaf;
  color: #003550;
}

.pagination-dots {
  color: rgba(255, 255, 255, 0.5);
  padding: 0 8px;
  font-size: 16px;
}

@media (max-width: 991px) {
  .services-content-wrapper {
    gap: 50px;
    align-items: center;
  }

  .service-title {
    font-size: 25px;
    line-height: 25px;
  }

  .service-item {
    padding: 20px 1.5rem;
    gap: 20px;
  }

  .filtered-posts-container {
    gap: 20px;
  }
}

.pagination-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 12px;
  background-color: transparent;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

.pagination-number:hover {
  border: 1px solid #8e8e8e;
}

.pagination-number.active {
  background-color: #00bbaf;
  border: 1px solid #00bbaf;
  color: #003550;
}

.pagination-dots {
  color: rgba(255, 255, 255, 0.5);
  padding: 0 8px;
  font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .filtered-posts-container {
    flex-direction: column;
  }

  .filtered-posts-sidebar {
    width: 100% !important;
    margin-bottom: 30px;
  }

  .filter-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-item {
    margin-bottom: 0;
  }

  .post-card-image-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 472 / 265.5;
  }

  .post-card-image {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 768px) {
  .filtered-posts-grid {
    grid-template-columns: 1fr;
    gap: 50px !important;
  }

  .post-card-image-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 472 / 265.5;
  }

  .post-card-image {
    width: 100%;
    height: 100%;
  }

  .post-card-title {
    font-size: 20px;
  }

  .post-card-excerpt {
    font-size: 14px;
  }

  .pagination-numbers {
    width: 100%;
    justify-content: center;
  }
}

/* Featured Posts Carousel Element Styles */
.featured-posts-carousel-wrapper,
.brxe-featured-posts-carousel {
  width: 100%;
}

.featured-posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.featured-posts-title {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.featured-posts-navigation {
  display: flex;
  gap: 12px;
  position: relative;
}

.featured-posts-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background-color: #00bbaf;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
  margin: 0;
  position: static !important;
}

.featured-posts-nav-button::after {
  font-size: 16px !important;
  color: #ffffff;
}

.featured-posts-nav-button:hover:not(.swiper-button-disabled) {
  background-color: rgba(0, 183, 195, 1);
  transform: scale(1.05);
}

.featured-posts-nav-button.swiper-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.featured-posts-nav-button svg {
  width: 16px;
  height: 16px;
}

.featured-posts-carousel-container {
  position: relative;
  width: 100%;
}

.featured-posts-swiper {
  width: 100%;
  height: auto;
}

.featured-posts-swiper .swiper-wrapper {
  display: flex;
}

.featured-post-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.featured-post-card-content {
  display: flex;
  flex-direction: row;
  gap: 24px;
  height: 100%;
  align-items: flex-start;
}

.featured-post-card-image-wrapper {
  flex-shrink: 0;
  width: 292px;
  height: 292px;
  overflow: hidden;
  border-radius: 8px;
}

.featured-post-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-post-card-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.featured-post-card-category {
  display: inline-block;
  background-color: rgba(0, 183, 195, 0.9);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.featured-post-card-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  font-family: "Red Hat Display";
}

.featured-post-card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-post-card-excerpt {
  color: #ffffff;
  margin: 0;
  line-height: 24px;
  font-size: 16px;
  flex: 1;
  font-family: "Red Hat Text";
}

.featured-post-card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  margin-top: auto;
  transition: color 0.3s ease;
  width: fit-content;
  font-size: 16px;
}

.featured-post-card-read-more:hover {
  color: rgba(0, 183, 195, 1);
}

.read-more-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.featured-post-card-read-more:hover .read-more-arrow {
  transform: translateX(4px);
}

.no-posts {
  color: #ffffff;
  text-align: center;
  padding: 40px;
  font-size: 18px;
}

/* Responsive Styles for Carousel */
@media (max-width: 1024px) {
  .featured-post-card-content {
    flex-direction: column;
  }

  .featured-post-card-image-wrapper {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .featured-posts-header {
    align-items: flex-start;
    gap: 20px;
  }

  .featured-posts-title {
    font-size: 28px;
  }

  .featured-post-card-content {
    flex-direction: row;
  }

  .featured-post-card-image-wrapper {
    width: 150px;
    height: 150px;
  }

  .featured-post-card-title {
    font-size: 20px;
  }

  .featured-post-card-excerpt {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .featured-post-card-content {
    flex-direction: column;
  }

  .featured-post-card-image-wrapper {
    width: 100%;
    height: 200px;
  }
}

.pin {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.pin:hover {
  transform: scale(1.25) translateY(-10px);
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35));
}

/* Mobile tap */
.pin:active {
  transform: scale(1.25);
}

.primary-btn,
.secondary-btn {
  position: relative;
  overflow: hidden;
}

.primary-btn > *,
.secondary-btn > * {
  position: relative;
  z-index: 2;
}

.primary-btn::after,
.secondary-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: #00857c;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: 1;
}

.primary-btn::after {
  background: #001d2c;
}

.primary-btn:hover::after,
.secondary-btn:hover::after {
  transform: translate(-50%, -50%) scale(30);
  opacity: 1;
}

@media (max-width: 767px) {
  .filtered-posts-pagination > button {
    padding: 12px;
  }
  .services-list {
    padding: 0px;
  }
}

/* Image Carousel Element Styles */
.image-carousel-wrapper,
.brxe-image-carousel {
  width: 100%;
}

.image-carousel-container {
  position: relative;
  width: 100%;
}

.image-carousel-swiper {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.image-carousel-swiper .swiper-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.image-carousel-slide {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  box-sizing: border-box;
}

.image-carousel-slide img {
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.image-carousel-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.image-carousel-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background-color: #00bbaf;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  margin: 0;
}

.image-carousel-nav-button::after {
  font-size: 16px !important;
  color: #ffffff;
}

.image-carousel-prev {
  left: 10px;
}

.image-carousel-next {
  right: 10px;
}

.image-carousel-nav-button:hover:not(.swiper-button-disabled) {
  background-color: rgba(0, 183, 195, 1);
  transform: translateY(-50%) scale(1.05);
}

.image-carousel-nav-button.swiper-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Pagination Styles */
.image-carousel-swiper .swiper-pagination {
  position: relative;
  margin-top: 20px;
  text-align: center;
}

.image-carousel-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  opacity: 1;
  margin: 0 4px;
  transition: all 0.3s ease;
}

.image-carousel-swiper .swiper-pagination-bullet-active {
  background-color: #00bbaf;
  width: 24px;
  border-radius: 5px;
}

.no-images {
  color: #ffffff;
  text-align: center;
  padding: 40px;
  font-size: 18px;
}

/* Responsive Styles for Image Carousel */
@media (max-width: 1023px) {
  .image-carousel-nav-button {
    width: 35px;
    height: 35px;
  }

  .image-carousel-prev {
    left: 5px;
  }

  .image-carousel-next {
    right: 5px;
  }
}

@media (max-width: 767px) {
  .image-carousel-nav-button {
    width: 32px;
    height: 32px;
  }

  .image-carousel-nav-button::after {
    font-size: 14px !important;
  }
}

.resources-styling .input,
input:not([type="submit"]),
select,
textarea {
  background: #ffffff;
  padding: 12px;
  border: 1.5px solid #e8e8e8;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  font-family: "Red Hat Text";
  color: #003550;
}
.resources-styling .input::placeholder,
input:not([type="submit"])::placeholder,
textarea::placeholder {
  color: #777777;
  text-transform: capitalize;
}

.resources-styling ._submit {
  background-color: #003550;
  color: #ffffff;
  font-family: "Red Hat Text";
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  padding: 12px 24px;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
  transition: all 0.3 ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
}

.resources-styling ._submit:hover {
  background-color: #001d2c;
  color: #00bbaf;
}

.tooltip,
.custom-map-tooltip {
  position: absolute;
  background-color: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  text-transform: uppercase;
}

.tooltip.show {
  opacity: 1;
}

/* Add cursor pointer to elements with data-title */
[data-title] {
  cursor: pointer;
}
