.talk-btn a {
  display: inline-block;
  background-color: black;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: 0.3s;
}
.talk-btn a:hover {
  background-color: #ffde21;
  color: black;
  transition: 0.3s;
  text-decoration: none;
}
.detuchi {
  font-size: 25px;
  border: solid 1px white;
  color: white;
  font-weight: bolder;
}
.detuchi:hover {
  background-color: #ffde21;
  color: black;
  transition: 0.3s;
  text-decoration: none;
}
.maind-button {
  display: flex;
  flexwrap: wrap;
  gap: 15px;
  margin-top: 20px;
  align-items: center;
}
.maind-button a {
  text-decoration: none;
}
.dbutton1 {
  border: 2px solid white;
  padding: 4px 10px;
  border-radius: 5px;
  color: white;
}
.dbutton1:hover {
  background-color: #ffde21;
  transition: 0.3s;
}
.dbutton1 a:hover {
  color: black;
}
.dbutton2 a:hover {
  color: #ffde21;
}
.cursor {
  display: inline-block;
  width: 5px;
  height: 0.7em;
  background-color: white;
  margin-left: 5px;
  animation: blink 0.8s steps(1) infinite;
}
.journal-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background-color: black;
  margin-left: 5px;
  animation: blink 0.8s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.about-btn {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 30px;
}
.about-btn1 a {
  border: 2px solid black;
  padding: 10px 25px;
  border-radius: 5px;
  font-size: 15px;
  background-color: #ffde21;
  color: black;
}
.about-btn1 a:hover {
  border: 2px solid #ffde21;
  background-color: transparent;
  color: black;
  transition: 0.3s;
  text-decoration: none;
}
.about-btn2 a {
  font-size: 15px;
  color: black;
}
.about-btn a:hover {
  text-decoration: none;
  color: #ffde21;
}
.testimonial-section {
  background: #f8f9fa;
  padding: 60px 0;
}

.testimonial {
  max-width: 700px;
  margin: auto;
  text-align: center;
}

.testimonial p {
  font-size: 1.1rem;
  font-style: italic;
  color: #555;
}

.testimonial h5 {
  margin-top: 15px;
  font-weight: 600;
  color: #333;
}

.testimonial span {
  color: #777;
  font-size: 0.9rem;
}

/* Custom Circle Indicators */
.carousel-indicators {
  position: static;
  margin-top: 30px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: #bdbdbd;
  margin: 0 6px;
  transition: background-color 0.3s ease;
}

.carousel-indicators .active {
  background-color: #ffde21;
}

@media (max-width: 768px) {
  .talk-btn {
    display: none;
  }
}

.resourse-head-text {
  text-align: center;
}
.resourse-head-text p {
  color: #ffde21;
}
.resourse-head-text h3 {
  font-weight: 800;
}
.flip-card {
  width: 420px;
  height: 420px;
  perspective: 1000px;
  cursor: pointer;
  margin: auto; /* centers it on small screens */
  transition: all 0.3s ease;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.flip-card-front {
  background: #ffde21;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  padding: 20px;
}

.flip-card-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffde21;
  opacity: 0.5;
  z-index: 0;
}

.flip-card-front h3,
.flip-card-front p {
  position: relative;
  z-index: 1;
  margin: 0;
}

.flip-card-front h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.flip-card-front p {
  font-size: 2.9rem;
  font-weight: bold;
  color: black;
}
/* Disable clicks on front when flipped */
.flip-card:hover .flip-card-front {
  pointer-events: none;
}

/* Ensure back is clickable */
.flip-card-back {
  pointer-events: auto;
}

.flip-card-back {
  background: url("../../images/about-image.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  transform: rotateY(180deg) translateZ(0);
  -webkit-transform: rotateY(180deg) translateZ(0);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  pointer-events: auto;
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg) scale(1.02); /* moves scale to the inner container */
}

.flip-card-back h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.flip-card-back p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.flip-card-back a {
  display: inline-block;
  padding: 10px 18px;
  background: #ffde21;
  color: white;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
  z-index: 10;
  position: relative;
}

.flip-card-back a:hover {
  background: #f1f5f9;
  /* transform: scale(1.05); */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .flip-card {
    width: 350px;
    height: 350px;
  }

  .flip-card-front p {
    font-size: 2.3rem;
  }
}

@media (max-width: 768px) {
  .flip-card {
    width: 300px;
    height: 300px;
  }

  .flip-card-front p {
    font-size: 2rem;
  }

  .flip-card-back h4 {
    font-size: 1rem;
  }
}

@media (max-width: 500px) {
  .flip-card {
    width: 90%;
    height: 250px;
  }

  .flip-card-front h3 {
    font-size: 1rem;
  }

  .flip-card-front p {
    font-size: 1.8rem;
  }

  .flip-card-back p {
    font-size: 0.9rem;
  }
}

@media (max-width: 350px) {
  .flip-card {
    height: 200px;
  }

  .flip-card-front p {
    font-size: 1.5rem;
  }

  .flip-card-back a {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

.journal-head-text {
  text-align: center;
}
.journal-head-text p {
  color: black;
}
.journal-head-text .text {
  font-size: 40px;
  font-weight: 800;
}
.journal-head-text .text span {
  font-size: 40px;
  font-weight: 300;
}

.custom-card {
  overflow: hidden;
}

/* Image hover zoom */
.card-img-container {
  overflow: hidden;
  height: 300px;
  background-color: #e6e6e6; /* default gray */
  display: flex;
  justify-content: center;
  align-items: center;
}
/* When image fails, this class applies */
.no-img {
  background-color: #ffde21; /* default fallback color */
  border: 1px solid #ddd;
}

.hover-img {
  transition: transform 0.5s ease;
}

.hover-img:hover {
  transform: scale(1.1);
}
.card-body {
  background-color: #f3f1f1ff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.category,
.time {
  display: flex;
  align-items: center;
  gap: 8px;
}
.category p,
.time p {
  margin: 0;
  font-size: 0.9rem;
  color: #adadadff;
}

.shop-head-text {
  background-color: #ffde21;
  text-align: center;
}
.shop-head-text h2 {
  font-size: 5rem;
}
.detail {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.shop-btn {
  background-color: black;
  color: #ffde21;
  padding: 5px 20px;
  border-radius: 20px;
  width: fit-content;
}
.shop-btn:hover {
  background-color: #333333;
  color: #ffde21;
  text-decoration: none;
}
.book-heading a:hover {
  color: #ffde21;
}
i {
  font-family: "Font Awesome 6 Free";
}
