/*
 * Custom CSS for site-specific styling tweaks.
 * Add your own CSS rules below; this file is loaded after style.css
 * so anything here can override the default theme styles.
 */

/* Example:
body {

}
*/

.not-perfect{
    letter-spacing: 0px;
    -webkit-text-stroke-width: 1.5px !important;
    stroke-width: 1.5px !important;
    -webkit-text-stroke-color: #000;
    stroke: #000 !important;
    color: transparent !important;
}
.main-header {
  position: relative;
  z-index: 1;
  margin-bottom: -130px !important;
}
footer{
  margin-top: 0px !important;
}
.main-header::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -41px;
  width: 110vw;
  height: 173px;
  background-image: url("../images/cruve_img.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center bottom;
  pointer-events: none;
  z-index: -1;
}

/* Navigation item shapes - desktop only */
@media (min-width: 768px) {
  .main-nav li a {
    position: relative;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-bottom-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    z-index: 2;
  }

  .main-nav li a > * {
    position: relative;
    z-index: 3;
  }

  .main-nav li a:hover span{
    border-bottom-color: black;
    transform: translateY(-2px);
  }
  .main-nav li a span{
    transition: transform 0.3s ease;
  }

  .main-nav li a::before {
    content: "";
    position: absolute;
    display: block;
    width: 60px;
    height: 60px;
    right: -10px;
    top: -50%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    opacity: 1;
    z-index: -1;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: scale(1) rotate(0deg);
  }

  .main-nav li a:hover::before {
    transform: scale(1.15) rotate(15deg);
    opacity: 0.9;
  }

  /* Cycle through all 7 shapes */
  .main-nav li:nth-child(1) a::before {
    background-image: url("../images/shapes/_1.png");
  }

  .main-nav li:nth-child(2) a::before {
    background-image: url("../images/shapes/_2.png");
  }

  .main-nav li:nth-child(3) a::before {
    background-image: url("../images/shapes/_3.png");
  }

  .main-nav li:nth-child(4) a::before {
    background-image: url("../images/shapes/_7.png");
  }

  .main-nav li:nth-child(5) a::before {
    background-image: url("../images/shapes/_5.png");
  }

  .main-nav li:nth-child(6) a::before {
    background-image: url("../images/shapes/_6.png");
  }

  .main-nav li:nth-child(7) a::before {
    background-image: url("../images/shapes/_7.png");
  }

  /* Repeat pattern for items beyond 7 */
  .main-nav li:nth-child(8) a::before {
    background-image: url("../images/shapes/_1.png");
  }

  .main-nav li:nth-child(9) a::before {
    background-image: url("../images/shapes/_2.png");
  }

  .main-nav li:nth-child(10) a::before {
    background-image: url("../images/shapes/_3.png");
  }
}


.wp-site-blocks {
    overflow-x: hidden;
}

/* Ring cards with shape backgrounds */
.ring-cards {
  position: relative;
  overflow: hidden;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: 2rem;
  aspect-ratio: 1/1;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;

}

/* Ensure all content inside scales properly */
.ring-cards > * {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

/* Images inside cards scale to fit */
.ring-cards img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Text and other content */
.ring-cards p,
.ring-cards h1,
.ring-cards h2,
.ring-cards h3,
.ring-cards h4,
.ring-cards h5,
.ring-cards h6,
.ring-cards ul,
.ring-cards ol,
.ring-cards div {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.ring-cards h2{
    color: inherit !important;
}

.ring-cards p{
    color: var(--wp--preset--color--contrast) !important;
    font-size: 0.8em;
    font-weight: 400;
}
/* Cycle through Ellipse shapes 15-18 */
.ring-cards:nth-child(4n+1) {
  background-image: url("../images/shapes/Ellipse 15.png");
  color: var(--wp--preset--color--accent-2) !important;
  
}

.ring-cards:nth-child(4n+2) {
  background-image: url("../images/shapes/Ellipse 16.png");
  color: var(--wp--preset--color--accent-1) !important;
}

.ring-cards:nth-child(4n+3) {
  background-image: url("../images/shapes/Ellipse 17.png");
  color: var(--wp--preset--color--accent-5) !important;
}

.ring-cards:nth-child(4n+4) {
  background-image: url("../images/shapes/Ellipse 18.png");
  color: #FFC126 !important;
}

/* Mobile responsiveness for ring cards */
@media (max-width: 767px) {
  .ring-cards {
    padding: 1.25rem;
    min-width: 0;
    width: 100%;
  }

  .ring-cards h1 {
    font-size: clamp(1.25rem, 4vw, 2rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 0.5rem !important;
  }

  .ring-cards h2 {
    font-size: clamp(1.125rem, 3.5vw, 1.75rem) !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
  }

  .ring-cards h3 {
    font-size: clamp(1rem, 3vw, 1.5rem) !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
  }

  .ring-cards p {
    font-size: clamp(0.875rem, 2.5vw, 1rem) !important;
    line-height: 1.5 !important;
    margin-bottom: 0.75rem !important;
  }

  .ring-cards img {
    max-width: 80%;
    max-height: 40%;
  }

  .ring-cards > * {
    margin-bottom: 0.5rem;
  }

  .ring-cards > *:last-child {
    margin-bottom: 0;
  }
}

/* Tablet responsiveness */
@media (min-width: 768px) and (max-width: 1023px) {
  .ring-cards {
    padding: 1.5rem;
    width: 45%;
  }
  .ring-cards h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.875rem) !important;
  }

  .ring-cards p {
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem) !important;
  }

  .ring-cards img {
    max-width: 85%;
  }
}

/* Desktop responsiveness */
@media (min-width: 1024px) {
  .ring-cards {
    width: 22%;
  }
}



.aspect-1{
    aspect-ratio: 1/1;
}


.blurb-img{
    mask-image: url("../images/shapes/blurb-img.svg") !important;
    -webkit-mask-image: url("../images/shapes/blurb-img.svg") !important;
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-position: center;
    -webkit-mask-position: center;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-opacity: 1;
    -webkit-mask-opacity: 1;
}

.blurb-img.square > img {
    aspect-ratio: 1/1;
    object-fit: cover;
}


.video-tab{
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .video-tab{
    grid-template-columns: 1fr;
  }
  .video-tab .gutena-tab-title-text{
    font-size: 13px;
  }

  .main-header::before {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -1px;
    width: 110vw;
    height: 133px;
  }
  .main-header {
    position: relative;
    z-index: 1;
    margin-bottom: -70px !important;
}
}

.video-tab ul li{
  height: fit-content;
  width:100%
}

.gutena-tabs-block>.gutena-tabs-tab{
  height: fit-content;
}