/*=================================================
Back To Top button 
===================================================*/

.back-to-top {
  position: fixed;  bottom: 2rem;  right: 2rem;  width: 40px;   height: 40px;  border-radius: 50%;  background-color: var(--ka-icon-color);
  color: #fff;  display: flex;  align-items: center;  justify-content: center;  font-size: 1.2rem;   cursor: pointer;  opacity: 0;      
  pointer-events: none; transition: opacity 0.3s ease;  z-index: 9999;
}

.back-to-top.show {  opacity: 1;  pointer-events: auto;}

.theme-toggle-icon {  position: fixed;  bottom: 5rem; right: 2rem;  z-index: 9999;
  width: 40px;  height: 40px;	border: none;  border-radius: 50%; background-color: var(--ka-icon-color);
  color: #fff;  display: flex;  align-items: center;  justify-content: center;  cursor: pointer;
  opacity: 1;  transition: opacity 0.3s;
}

/*=================================================
Background Color  
===================================================*/

.bg-pink {background-color: #FFF5F8;}

.text-outline {
	color: var(--ka-primary-bg); 
	-webkit-text-stroke: 1px var(--ka-icon-color); 
	text-shadow: -1px -1px 0 var(--ka-icon-color),  1px -1px 0 var(--ka-icon-color), -1px  1px 0 var(--ka-icon-color),  1px  1px 0 var(--ka-icon-color);}

.custom-dropcap {
    float: left;
    font-size: 6em;         /* 4 times bigger */
    line-height: 0.9;
    font-weight: bold;
    padding-right: 0.18em;
    font-family: inherit;
	color: var(--ka-text-color);
}

.ka-lpd-title-vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 2px;
    text-align: left;
    min-height: 100px;
}

/* Section Background Image Animation */
  @keyframes sectionBackgroundImageAnimation {
    0% { transform: translateX(15px); }
    50% { transform: translateX(0); }
    100% {transform: translateX(15px); }
  }
  @keyframes sectionBackgroundImageAnimationDown {
    0% {
      transform: translateY(15px);
    }
    50% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(15px);
    }
  }

  @keyframes svgIconAnimationY {
    0% {
      transform: translateY(5px);
    }
    50% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(5px);
    }
  }
  @keyframes svgIconAnimationX {
    0% {
      transform: translateX(2px);
    }
    50% {
      transform: translateX(-2px);
    }
    100% {
      transform: translateX(2px);
    }
  }
  @keyframes svgIconAnimationScale {
    0% {
      transform: rotateY(0);
    }
    50% {
      transform: rotateY(180deg);
    }
    100% {
      transform: rotateY(0);
    }
  }
  @keyframes svgIconAnimationMain {
    0% {
      transform: scale(1.1);
    }
    50% {
      transform: scale(0.9);
    }
    100% {
      transform: scale(1.1);
    }
  }

  .cta-section {
    padding: 100px 120px;
    background: #f3f7fd;
    width: 100%;
    position: relative;
    overflow: hidden;
	text-align: center;
  }

  .cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/bg/section-4-bg-1.svg");
    /*background-size:contain;*/
    background-repeat: repeat-x;
    background-position: center center;
    animation: sectionBackgroundImageAnimation 8s infinite alternate;
  }


/* Flex container for each row */
.ka-lpd-row-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 32px;
}
/* Image styling */
.ka-lpd-row-flex .ka-lpd-img {
  max-width: 40%;
  height: auto;
  flex-shrink: 0;
  border-radius: 4px;
}
/* Content area */
.ka-lpd-row-flex .ka-lpd-content {
  flex: 1 1 50%;
}
/* Right-align (image on right) */
.ka-lpd-row-flex.align-right {
  flex-direction: row-reverse;
}
/* Center-align (image above, centered) */
.ka-lpd-row-flex.align-center {
  flex-direction: column;
  align-items: center;
}
.ka-lpd-row-flex.align-center .ka-lpd-img {
  max-width: 70%;
  margin-bottom: 16px;
}
/* On small screens, stack */
@media (max-width: 700px) {
  .ka-lpd-row-flex {
    flex-direction: column !important;
  }
  .ka-lpd-row-flex .ka-lpd-img,
  .ka-lpd-row-flex .ka-lpd-content {
    max-width: 100% !important;
  }
}

/* ===========================
   Image Alignment Classes
   =========================== */

/* Right aligned image */
img.alignright {
  float: right;
  margin-left: 15px;
  margin-bottom: 15px;
  border-radius: 10px;
  display: block; /* removes extra bottom space in some layouts */
}

/* Left aligned image */
img.alignleft {
  float: left;
  margin-right: 15px;
  margin-bottom: 15px;
  border-radius: 10px;
  display: block;
}

/* Centered image */
img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15px;
  border-radius: 10px;
  float: none; /* Override if any float set */
}

/* ===========================
   Float Containment (Clearfix)
   =========================== */

/* 
  This ensures that any .wrapper containing floated elements 
  (like .alignleft or .alignright images) will automatically 
  expand to fit them. No extra class needed in HTML!
*/
section::after {
  content: "";
  display: table;
  clear: both;
}
section{ position: relative}
.vertical-title {
  writing-mode: vertical-rl;      /* Makes the text vertical (top-to-bottom, left-to-right) */
  transform: rotate(180deg);    /* This flips the direction */
  text-orientation: mixed;
  /* Responsive: shrink size on small screens */
  word-break: break-word;
  white-space: pre-line;
	float: left; 
	margin: 0; 
	padding: 0;
	padding-left: 35px; 
	text-align: center; 
	font-weight: 900;
	line-height: inherit;
	text-transform: uppercase;
	position: absolute; 
	left: 10px; top: auto;
	bottom: auto;
}

@media (max-width: 600px) {
  .vertical-title {
    font-size: 2rem !important;
  }
}

/* Gutenberg block style for video overlay */
.wp-block-image.is-style-video-overlay {
  position: relative;
  display: block; /* Was inline-block */
  cursor: pointer;
  overflow: hidden;
  border-radius: 25px;
}

.wp-block-image.is-style-video-overlay img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 0.3s;
  border-radius: 25px;
}
.wp-block-image.is-style-video-overlay::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: 64px;
  height: 64px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'><circle cx='22' cy='22' r='22' fill='rgba(0,0,0,0.0)' /><polygon points='18,14 32,22 18,30' fill='white'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 36px 36px;
}

.wp-block-image.is-style-video-overlay:hover img {
  filter: brightness(0.7);
}


