/*
Theme Name: Castle peak Child
Description: Castle peak Child is a child theme of Castle peak, created by Outside team
Author: Outside Team
Template: castle-peak
Author URI: https://outside.studio
Version: 1.0.0
Stable tag: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: castle-peak-child
Tags: flexible-header, custom-colors, custom-menu, custom-logo, featured-images, rtl-language-support, threaded-comments, translation-ready, style-variations
*/

/* Utilities */
.m-0 {
  margin: 0;
}

.p-0 {
  padding: 0;
}

.text-center {
  text-align: center;
}

.c-figure {
  margin-bottom: 0;
  overflow: hidden;
  position: relative;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.link-primary {
  font-family: var(--e-global-typography-adff851-font-family), Sans-serif;
  color: var(--e-global-color-primary);
  transition: 0.2s ease-in-out all;
  display: flex;
  align-items: center;
  column-gap: 16px;
}

.link-cta-arrow {
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
}

.c-card {
  background-color: var(--e-global-color-982fe97);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.text-body-small {
  font-family: var(--e-global-typography-2b04eb6-font-family), Sans-serif;
  font-size: var(--e-global-typography-2b04eb6-font-size);
  font-weight: var(--e-global-typography-2b04eb6-font-weight);
  line-height: var(--e-global-typography-2b04eb6-line-height);
  color: var(--e-global-color-primary);
}

/* Spacing Utility */
.space-large-1000 {
  padding: 64px 0;

  @media(min-width:768px) {
    padding: 80px 0;
  }

}

.space-large-1500 {
  padding: 64px 0;

  @media(min-width:768px) {
    padding: 80px 0;
  }

  @media(min-width:1025px) {
    padding: 120px 0;
  }

}

/* Main Css */

/* Colors change */
.m-awards .m-awards-header h2,
.m-awards .c-award__title,
.m-awards .c-award__description,
.m-insights .m-insights__header .m-insights__title,
.m-insights .c-insight__title,
.m-insights .c-insight__title a {
  color: var(--e-global-color-primary);
}


.elementor-kit-6 button.btn-transparent {
  background-color: transparent;
  padding: 0;
  display: flex;
}


body:not([class*=elementor-page-]) .site-main {
  max-width: none !important;
  padding: 0 !important;
}

.cp-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;

  @media(min-width:768px) {
    padding: 0 32px;
  }

  @media(min-width:1025px) {
    padding: 0 40px;
  }
}


.m-featured-blogs__item {
  padding: 0 0 24px 0;

  @media(min-width:768px) {
    padding: 0 0 32px 0;
  }

  @media(min-width:1025px) {
    padding: 40px 0;
  }
}

.m-featured-blogs__item .cp-container {
  @media(min-width:1025px) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
    align-items: center;
  }
}

.m-featured-blogs__item--media-left .cp-container {
  .m-featured-blogs__content {
    order: 2;
  }

  .m-featured-blogs__media {
    order: 1;
  }
}

.m-featured-blogs__item--first {
  background-color: var(--e-global-color-b38c796);
  padding-top: 64px;

  @media(min-width:768px) {
    padding-top: 98px;
  }

  @media(min-width:1025px) {
    padding-top: 144px;
  }
}

.m-featured-blogs__content {
  padding: 64px 0;
  display: flex;
  flex-direction: column;
  row-gap: 16px;

  @media(min-width:768px) {
    padding: 80px 0;
  }

  @media(min-width:1025px) {
    max-width: 548px;
    padding: 120px 0;
  }
}

.m-featured-blogs__figure {
  aspect-ratio: 327/395;
  border-radius: 8px;

  @media(min-width:768px) {
    aspect-ratio: 176/145;
  }

  @media(min-width:1025px) {
    aspect-ratio: 332/371;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.m-featured-blogs__eyebrow {

  font-family: var(--e-global-typography-696c9cd-font-family), Sans-serif;
  font-size: var(--e-global-typography-696c9cd-font-size);
  font-weight: var(--e-global-typography-696c9cd-font-weight);
  line-height: var(--e-global-typography-696c9cd-line-height);
  color: var(--e-global-color-primary);
  text-transform: uppercase;

}

.m-featured-blogs .m-featured-blogs__title {
  font-size: var(--e-global-typography-secondary-font-size);
  color: var(--e-global-color-primary);
  font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
  font-weight: var(--e-global-typography-secondary-font-weight);
  line-height: var(--e-global-typography-secondary-line-height);
  letter-spacing: var(--e-global-typography-secondary-letter-spacing);
  margin: 0;
}

.m-featured-blogs .m-featured-blogs__description {
  color: var(--e-global-color-primary);
}

.m-featured-blogs__btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.m-featured-blogs__cta-link {
  margin-top: 32px;
}

.m-featured-blogs__cta-link svg path {
  transition: 0.2s ease-in-out all;
}

.m-featured-blogs__cta-link:hover {
  color: var(--e-global-color-secondary);

  svg path {
    stroke: var(--e-global-color-secondary);
  }
}


/* Video Modal */
.vidModal-container {
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}


.vidModal-active {
  overflow: hidden;
}

#vidModal-wrap {
  position: fixed;
  height: 100dvh;
  z-index: 9991;
  opacity: 0;
  visibility: hidden;
  left: 0;
  top: 0;
  width: 100%;
  transition: all 0.3s ease-in-out;
  box-sizing: border-box;
}

#vidModal-wrap:after,
#vidModal-wrap .vidModal-overlay {
  left: 0;
  top: 0;
  width: 100%;
  transition: all 0.3s ease-in-out;
  box-sizing: border-box;
  height: 100%;
  position: absolute;
}

#vidModal-wrap:after {
  content: "";
  display: block;
  background-color: var(--e-global-color-primary);
  opacity: 0;
  z-index: -1;
}

#vidModal-wrap .vidModal-container {
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;

  @media(min-width:768px) {
    padding: 0 32px;
  }

  @media(min-width:1025px) {
    padding: 0 40px;
  }
}

.vidModal-iframe-wrapper {
  position: relative;
}

.vidModal-iframe-wrapper,
#vidModal-wrap video,
#vidModal-wrap iframe {
  border-radius: 6px;
  position: relative;
  box-sizing: border-box;
  z-index: 10;
  display: block;
  max-width: 1360px;
  height: auto;
  width: 100%;
  aspect-ratio: 16 / 9;
}

#vidModal-wrap video {
  object-fit: cover;
}

#vidModal-wrap .vidModal-close {
  background-color: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  border-radius: 100%;
  padding: 0;
  transition: all 0.3s ease-in-out;
  z-index: 150;
  transition: 0.3s ease-in-out transform;
  right: 12px;
  top: 12px;
  width: 20px;
  height: 20px;

  @media(min-width:1025px) {
    right: 32px;
    top: 32px;
    width: 24px;
    height: 24px;
  }
}

#vidModal-wrap .vidModal-close svg {
  @media(max-width:767px) {
    width: 16px;
    height: 16px;
  }
}

#vidModal-wrap .vidModal-close:hover {
  transform: scale(1.1);
}


#vidModal-wrap.active {
  opacity: 1;
  visibility: visible;
}

#vidModal-wrap.active:after {
  opacity: 0.6;
}


/* Awards and Recognitions */
.m-awards {
  background-color: var(--e-global-color-2b06032);
}

.m-awards-header {
  margin-bottom: 40px;
}

.m-awards__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;

  @media(min-width:768px) {
    gap: 32px;
  }

  @media(min-width:1025px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.c-award__figure {
  aspect-ratio: 109/64;

  @media(min-width:768px) {
    aspect-ratio: 172/101;
  }

  @media(min-width:1025px) {
    aspect-ratio: 216/127;
    min-height: 254px;
  }
}

.c-award__text {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  row-gap: 16px;
  border-top: 1px solid var(--e-global-color-b38c796);
}

.c-award__text p {
  @media(min-width:1280px) {
    max-width: 63%;
    margin: 0 auto;
  }
}

.c-award__content {
  @media(min-width:1025px) {
    display: flex;
    flex-direction: column;
    height: calc(100% - 254px);
  }
}

.c-award__cta {
  border-top: 1px solid var(--e-global-color-b38c796);

  @media(min-width:1025px) {
    margin-top: auto;
  }
}

.c-award__link {
  padding: 24px;
  justify-content: space-between;

  .link-cta-arrow {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid var(--e-global-color-primary);
  }
}


/* Insights */
.m-insights {
  background-color: var(--e-global-color-982fe97);
}

.m-insights__header {
  margin-bottom: 32px;

  @media(min-width:1025px) {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 32px;
  }
}

.m-insights .m-insights__header .m-insights__title {
  font-size: var(--e-global-typography-primary-font-size);
  line-height: var(--e-global-typography-primary-line-height);

  @media(min-width:1025px) {
    grid-column: span 4;
  }
}

.m-insights-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;

  @media(min-width:1025px) {
    max-width: 65.5%;
    gap: 24px;
  }

  @media(min-width:1025px) {
    max-width: none;
    margin-top: 0;
    grid-column: span 8;
    justify-self: end;
    margin-left: -6px;
  }
}

.c-insight__media {
  display: flex;
  background-color: var(--e-global-color-bf2d161);
  background-color: var(--e-global-color-b38c796);
  overflow: hidden;
  aspect-ratio: 327/227;

  @media(min-width: 768px) {
    aspect-ratio: 80/59;
    height: 236px;
  }

  @media(min-width: 1025px) {
    aspect-ratio: 36/25;
    height: 300px;
  }
}


.c-insight__media img {
  @media(min-width:768px) {
    transition: 0.4s ease-in-out transform;
  }
}

.c-insight__media:hover img {
  @media(min-width:768px) {
    transform: scale(1.015);
  }
}

.m-insights-filter {
  color: var(--e-global-color-primary);
  text-transform: uppercase;
  line-height: 22px;
  padding-bottom: 8px;
  position: relative;
  font-family: var(--e-global-typography-adff851-font-family), Sans-serif;
}

.m-insights-filter:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--e-global-color-primary);
  transform: scaleX(0);
  transition: transform 300ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  will-change: transform;
  transform-origin: right;
}

.m-insights-filter:hover::before,
.m-insights-filter.is-active::before {
  transform: scaleX(1);
  transform-origin: left;
}

.m-insights-grid {
  display: flex;
  flex-direction: column;
  row-gap: 24px;

  @media(min-width:768px) {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, 1fr);
  }

  @media(min-width:1025px) {
    min-height: 604px;
    gap: 32px;
    grid-template-columns: repeat(3, 1fr);
  }
}

.insight-loading {
  @media(min-width:768px) {
    min-height: 604px;
  }
}

.c-insight {
  background-color: var(--e-global-color-2b06032);
}

.c-insight__content {
  padding: 40px;

  @media(min-width:768px) {
    display: flex;
    flex-direction: column;
    height: calc(100% - 236px);
  }

  @media(min-width:1025px) {
    height: calc(100% - 300px);
  }
}

.c-insight__text {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  height: 100%;
  padding-bottom: 16px;
}

.c-insight__meta {
  margin-top: auto;
}

.c-insight__title {
  @media(min-width:768px) {
    min-height: 140px;
  }
}

.c-insight__category {
  border-top: 1px solid var(--e-global-color-b38c796);
  padding-top: 24px;

  @media(min-width:1025px) {
    margin-top: auto;
  }
}

/* Pagination */

.m-insights-pagination {
  margin-top: 32px;
}

.cp-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-direction: row;
  width: 100%;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;

  @media(min-width:768px) {
    gap: 24px;
  }

  li {

    a,
    span {
      height: 52px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--e-global-typography-5a411e5-font-family), Sans-serif;
      font-size: var(--e-global-typography-5a411e5-font-size);
      font-weight: var(--e-global-typography-5a411e5-font-weight);
      line-height: var 24px (--e-global-typography-5a411e5-line-height);
      border: 1px solid var(--e-global-color-primary);
      border-radius: 8px;
      color: var(--e-global-color-primary);
      width: 57px;

      @media(min-width:768px) {
        height: 56px;
        width: 74px;
      }

      @media(min-width:1025px) {
        width: 75px;
      }
    }
  }

  .next,
  .prev {
    height: 40px;
    width: 40px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-indent: -9999px;
  }

  .current {
    background: var(--e-global-color-primary);
    color: #fff;
    width: 55px;
    height: 52px;

    @media(min-width:768px) {
      width: 71px;
      height: 56px;
    }
  }

}


.page-numbers.dots {
  border: 0;
  padding: 0;
  width: 24px;
  height: 24px;
  line-height: 24px;
  position: relative;
  overflow: hidden;
  text-indent: -9999px;
}

.page-numbers.dots:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background-size: 24px 24px;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='25' viewBox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 12.2773C17 12.8296 17.4477 13.2773 18 13.2773C18.5523 13.2773 19 12.8296 19 12.2773C19 11.7251 18.5523 11.2773 18 11.2773C17.4477 11.2773 17 11.7251 17 12.2773Z' stroke='%23151613' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11 12.2773C11 12.8296 11.4477 13.2773 12 13.2773C12.5523 13.2773 13 12.8296 13 12.2773C13 11.7251 12.5523 11.2773 12 11.2773C11.4477 11.2773 11 11.7251 11 12.2773Z' stroke='%23151613' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 12.2773C5 12.8296 5.44772 13.2773 6 13.2773C6.55228 13.2773 7 12.8296 7 12.2773C7 11.7251 6.55228 11.2773 6 11.2773C5.44772 11.2773 5 11.7251 5 12.2773Z' stroke='%23151613' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}


.cp-pagination ul .next:before,
.cp-pagination ul .prev:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background-size: 24px 24px;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='25' viewBox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 6.27734L15 12.2773L9 18.2773' stroke='%23151613' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.cp-pagination ul .next:hover:before,
.cp-pagination ul .prev:hover:before {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='25' viewBox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 6.27734L15 12.2773L9 18.2773' stroke='%2380A49A' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.cp-pagination ul .prev:before {
  transform: translate(-50%, -50%) rotate(180deg);
}

.cp-pagination .page-numbers.disabled {
  border-color: var(--e-global-color-bf2d161);
}

.cp-pagination .page-numbers.disabled:before {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='25' viewBox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 6.27734L15 12.2773L9 18.2773' stroke='%237D7D7D' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.cp-pagination .page-numbers a:hover {
  background: transparent;
  border-color: var(--e-global-color-secondary);
  color: var(--e-global-color-secondary);
}

.cp-pagination .page-numbers a:hover svg path {
  stroke: var(--e-global-color-secondary);
}

.cp-pagination .page-numbers.disbaled svg path {
  stroke: var(--e-global-color-bf2d161);
}

.cp-pagination .page-numbers.disabled {
  color: var(--e-global-color-bf2d161);
  border-color: var(--e-global-color-bf2d161);
  pointer-events: none;
}

.cp-pagination .page-numbers.disabled svg path {
  stroke: var(--e-global-color-bf2d161);
}
