/* general */

.entry-content {
margin: 0;
}
main{
    margin-block-start: 0;
}

/* general banners */
div#cr-banner {
    margin-block-start: 0;
}
/* form */

/* footer */
footer.wp-block-template-part {
    position: relative;
}
footer.wp-block-template-part iframe {
width:100%;
}
/* text */
span.sml-text-in-h1 {
    font-size: 1.5rem;
display: block;
}

/* breadcrumb */

.breadcrumb {
    margin: 15px 0;
    font-size: 14px;
}
.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

/* Postgrid defaults */

.cr-post-grid  .post-item {
            position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
        }

.cr-post-grid .post-item img {
width: 100%;
height: auto;
display: block;
object-fit: cover;
        }

.cr-post-grid .post-item h3 {
margin: 10px 0;
color: #fff;
font-size: 1.5em;
        }

.cr-post-grid .post-item a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 4;
    background: transparent !important;
}

.cr-post-grid  .post-item h3 a:hover {
color: var(--wp--preset--color--contrast-2, var(--wp--preset--color--contrast, transparent));
        }

.cr-post-grid .post-item span.acf-field {
display: block;
margin-top: 5px;
font-size: 0.9em;
      
        }

.cr-post-grid .post-item .read-more {
display: inline-block;
            margin-top: 10px;
            font-size: 1em;
            color: #fff;
            text-decoration: underline;
            cursor: pointer;
        }
.post-grid-image {
    position: relative;
}
.cr-post-grid span.post-grid-image-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
}
.cr-post-grid .post-item .read-more {
    display: inline-block;
    margin-top: 10px;
    font-size: .8em;
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
    width: max-content;
}
.cr-post-grid .post-item .acf-field label {
    margin-right: 5px;
}
/* Media Queries for responsive grid */
@media (max-width: 1200px) {
.cr-post-grid  {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
@media (max-width: 768px) {
.cr-post-grid   {
                grid-template-columns: repeat(1, 1fr);
            }
        }
/* Patterns */

/* faq pattern */
  .faq-content {
    max-height: 200px; /* Shortened content height */
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .faq-content.expanded {
    max-height: 500px; /* Adjust according to content length */
  }
  
  .read-more {
    cursor: pointer;
    color: blue;
    text-decoration: underline;
  }

/* WCU pattern */

#cr-wcu .wp-block-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
gap: 1rem;
}

div#cr-wcu h3.wp-block-heading {
    font-size: 20px;
	word-break: keep-all;
}
div#cr-wcu .wp-block-columns .wp-block-column .wp-block-columns .wp-block-column {
    align-items: center;
    justify-content: center;
}


/* all pattern media queries  try not to make new ones!! */

/* gutenberg */

@media (max-width:780px){
.flex-direction-reverse-col {
 flex-direction: column-reverse;
}
.flex-direction-reverse-row {
 flex-direction: row-reverse;
}
.flex-direction-col {
 flex-direction: column;
}
.flex-direction-row {
 flex-direction: row;
}
}

@media (max-width:1200px) {
#cr-wcu .wp-block-cover {
    min-height: 400px !important;
    margin-bottom: 2rem;
}
#cr-hiw .wp-block-column {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
	justify-content: center;
}
#cr-hiw .wp-block-columns.hiw-inner-columns {
    flex-wrap: wrap !important;
    flex-direction: column;
    gap: 2.5rem;
	}
div#cr-hiw .hiw-inner-columns .wp-block-column > div, div#cr-hiw .hiw-inner-columns .wp-block-column > figure {
    flex-basis: 50%;
}
}


@media (max-width:1200px) and (min-width: 781px){
div#cr-wcu .wp-block-columns {
    flex-wrap: wrap !important;
}

div#cr-wcu .wp-block-columns .wp-block-column {
    flex-basis: 100% !important;
	}
div#cr-wcu .wp-block-columns .wp-block-column:nth-of-type(2) .wp-block-columns {
    flex-wrap: nowrap !important;
}
	div#cr-wcu .wp-block-columns .wp-block-column:nth-of-type(2) .wp-block-columns .wp-block-column:nth-of-type(1)  {
    flex-basis: 20% !important;
}
	div#cr-wcu .wp-block-columns .wp-block-column:nth-of-type(2) .wp-block-columns .wp-block-column:nth-of-type(2)  {
    flex-basis: 80% !important;
}
}


@media (max-width:980px) {
h1.wp-block-heading.has-xx-large-font-size {
    font-size: var(--wp--preset--font-size--x-large) !important;
}
}
@media (max-width: 768px) {

    #cr-hiw .wp-block-column {
        flex-direction: column;
    }  
}
@media (max-width:580px){
	#cr-wcu .wp-block-columns {
	border: none !important;
	flex-wrap: wrap !important;
} 
	#cr-wcu .wp-block-columns .wp-block-column {
		flex-basis: 100% !important;
	}
  div#cr-wcu .flex-direction-row {
 flex-direction: row !important;
}
}

/* Base Scroll Animation Style */
.scroll-element{
  opacity: 0; /* Initially hidden */
  transition: all 0.6s ease-out; /* Smooth animation */
	z-index:10;
	position:relative;
}

.scroll-element.first-element {
  transform: translateY(50px); /* Default start position */
}
.scroll-element.second-element {
  transform: translateY(100px); /* Default start position */
}
.scroll-element.third-element {
  transform: translateY(150px); /* Default start position */
}
.scroll-element.fourth-element {
  transform: translateY(200px); /* Default start position */
}
/* animate from-right start position */
.scroll-element.first-element.from-right-element {
  transform: translateX(50px); /* Default start position */
}
.scroll-element.second-element.from-right-element {
  transform: translateX(100px); /* Default start position */
}
.scroll-element.third-element.from-right-element {
  transform: translateX(150px); /* Default start position */
}
.scroll-element.fourth-element.from-right-element {
  transform: translateX(200px); /* Default start position */
}

/* animate from-left start position */
.scroll-element.first-element.from-left-element {
  transform: translateX(-50px); /* Default start position */
}
.scroll-element.second-element.from-left-element {
  transform: translateX(-100px); /* Default start position */
}
.scroll-element.third-element.from-left-element {
  transform: translateX(-150px); /* Default start position */
}
.scroll-element.fourth-element.from-left-element {
  transform: translateX(-200px); /* Default start position */
}

/* fade in */
.scroll-element.fadein-element.visible{
  opacity: 1; /* visible */
}
.scroll-element.second-fadein-element.visible{
  opacity: 1;  /* visible */
transition-delay: 0.9s;
}
.scroll-element.third-fadein-element.visible{
  opacity: 1; /* visible */
transition-delay: 1.3s;
}

/* Animation Variants */
.scroll-element.first-element.visible {
  opacity: 1;
  transform: translateY(0); /* Move into view */
  transition-duration: 0.6s; /* Faster animation */
}

.scroll-element.second-element.visible {
  opacity: 1;
  transform: translateY(0);
  transition-duration: 0.8s; /* Medium animation speed */
}

.scroll-element.third-element.visible {
  opacity: 1;
  transform: translateY(0);
  transition-duration: 1s; /* Slowest animation */
}
.scroll-element.fourth-element.visible {
  opacity: 1;
  transform: translateY(0);
  transition-duration: 1.2s; /* Slowest animation */
}

/* animate from-right start position */
.scroll-element.first-element.from-right-element.visible {
  opacity: 1;
  transform: translateX(0); /* Default start position */
  transition-duration: 0.6s; /* Faster animation */
}
.scroll-element.second-element.from-right-element.visible {
  opacity: 1;
  transform: translateX(0); /* Default start position */
  transition-duration: 0.8s; /* Faster animation */
}
.scroll-element.third-element.from-right-element.visible {
  opacity: 1;
  transform: translateX(0); /* Default start position */
  transition-duration: 1s; /* Faster animation */
}
.scroll-element.fourth-element.from-right-element.visible {
  opacity: 1;
  transform: translateX(0); /* Default start position */
  transition-duration: 1.2s; /* Faster animation */
}
/* animate from-left start position */
.scroll-element.first-element.from-left-element.visible {
  opacity: 1;
  transform: translateX(0); /* Default start position */
  transition-duration: 0.6s; /* Faster animation */
}
.scroll-element.second-element.from-left-element.visible {
  opacity: 1;
  transform: translateX(0); /* Default start position */
  transition-duration: 0.8s; /* Faster animation */
}
.scroll-element.third-element.from-left-element.visible {
  opacity: 1;
  transform: translateX(0); /* Default start position */
  transition-duration: 1s; /* Faster animation */
}
.scroll-element.fourth-element.from-left-element.visible {
  opacity: 1;
  transform: translateX(0); /* Default start position */
  transition-duration: 1.2s; /* Faster animation */
}

/* progress bar */
    #progress-container {
      position: fixed;
      top: 15%;
      right: 20px;
      height: 70vh; /* 70% of the viewport height */
      width: 5px;
      z-index: 9999;
    }

/* Progress bar itself */
    #progress-bar {
      width: 100%;
      height: 0%; /* Starts at 0% */
      transition: height 0.1s ease-out;
    }

/* highlight */
.highlight-text {
	word-break: keep-all;
}

/* separatewordtitle animation */

.separatewordtitle {
    display: block;
	line-height:1.2;
}
.separatewordtitle-single {
	display: inline-block;
}

.separatewordtitle-single {
    opacity: 1; /* Start visible */
    transform: translateY(0); /* Start from below */
}