.kta-slider {
  position: relative;
  width: 100%;
  max-width: 1100px; /* adjust as needed */
  margin: 2rem auto;
  box-sizing: border-box;
}

.slider-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: 10px;
}

/* Slides row */
.slides {
  display: flex;
  transition: transform 0.5s cubic-bezier(.22,.9,.3,1);
  will-change: transform;
}

/* Individual slide */
.slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70vh;
}

/* Keep your border-boxP styles but ensure full-width inside slide */
.border-boxP {
  position: relative;
  height: auto;         /* let content define height */
  width: 80%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 3em 0em 2em 2em;
  box-sizing: border-box;
  background: #ffe962;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* keep top icon position */
.title-wrapperP {
  position: absolute;
  top: -28px;
  left: 30%;
  transform: translateX(-50%);
  z-index: 2;
}

.top-iconP {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 70px;
  background: #ffcb00;
  border-radius: 10px;
  color: #545454;
  font-size: 1.1rem;
  padding: 0.5em;
  font-weight: bolder;
}

/* list style */
.icon-listP {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}
.icon-listP li::before { content: "- "; margin-right: .3em; color: #000; font-weight: 700; }
.icon-listP li { margin-bottom: .2rem; font-family: Futura, Trebuchet MS, Arial, sans-serif; }

/* overlay image (right) */
.bottom-right-img {
  position: absolute;
  right: -15%;        /* slightly outside */
  top: 1%;
  transform: translateY(-50%);
  width: 65%;
  max-width: 500px;
  z-index: 2;
  transition: transform .25s ease;
}

/* nav buttons */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255,255,255,0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-nav.prev { left: 6px; }
.slider-nav.next { right: 6px; }

/* dots */
.slider-dots {
  text-align: center;
  margin-top: 12px;
}
.slider-dots button {
  border: none;
  background: #ddd;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
}
.slider-dots button.active { background: #1e88e5; }

/* responsive */
@media (max-width: 900px) {
  .bottom-right-img { width: 32%; right: -8%; max-width: 160px; }
  .top-iconP { width: 200px; height: 60px; font-size: 1rem; }
}
@media (max-width: 600px) {
  .bottom-right-img { display: none; } /* hide overlay image on small screens */
  .slider-nav { width: 36px; height: 36px; }
  .top-iconP { width: 170px; font-size: .8rem; }
}

/* slider card design */
.card-slider-section {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.card-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.45s ease-in-out;
}

.card-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}

/* Glassy Card */
.cardP.glass {
  width: 96%;
  padding: 1.5rem;
  border-radius: 16px;
  color: #545454;
  text-align: left;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cardP h3 {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}

.cardP p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Slider Controls */
.slider-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.arrow-btn {
  background: #545454;
  color: #f2f2f2;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  top:-1.5em;
  font-weight: bolder;
}

.arrow-btn:hover {
  background: #f2f2f2;
  transform: scale(1.08);
  color: #545454;
}

/* Responsive */
@media (max-width: 480px) {
  .cardP.glass {
    padding: 1.2rem;
  }
  .arrow-btn {
    width: 40px;
    height: 40px;
  }
}

.button-row {
  display: flex;
  justify-content: center; /* centers both buttons horizontally */
  align-items: center;
  gap: 3px; /* space between buttons */
  margin-top: -5em;
  z-index: 1;
}

#secp3{
	/* padding-top: 2em; */
}

/* Overlay Background */


/* Overlay icon (top-right corner) */
.open-book-icon {
  position: absolute;
  top: -2em;
  right: -4em;
  width: 75px;   /* adjust icon size */
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 10;
}

.open-book-icon:hover {
  transform: scale(1.1);
}
