@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

html, body {
  font-family: 'Poppins', sans-serif;
}

 #mainSlider img {
  height: 550px;
  object-fit: cover;
} 

#mainSlider .carousel-control-next-icon {
  background-color: #000;
  padding: 20px;
  border-radius: 5px;
}

#mainSlider .carousel-control-prev-icon {
  background-color: #000;
  padding: 20px;
  border-radius: 5px;
}

.carousel-indicators [data-bs-target] {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ccc; /* light gray for inactive */
  border: none;
  margin: 0 5px;
  opacity: 1;
  transition: background-color 0.3s ease;
}

.carousel-indicators .active {
  background-color: #333; /* dark for active */
}

.car-img {
  border: 1px solid #d1d3d5;
}

/* .books-product-wraper {

  width: auto;
  height: auto;
}

.books-product-wraper img {
  height: auto !important; 

} */


/* Card container = the box both images will fill */
.books-product-wraper.car-img{
  position: relative;
  overflow: hidden;
  aspect-ratio: 227 / 333;        
  width: 100%;
  border-radius: 0.5rem;          
}

/* Stack both images perfectly */
.books-product-wraper.car-img .main-image,
.books-product-wraper.car-img .hover-image{
  position: absolute;
  inset: 0;                     
  height: 100%;
  object-fit: cover;             
  display: block;
  backface-visibility: hidden;     
  transition: transform .35s ease, opacity .25s ease;
  border-radius: inherit;
  padding:15px;
}

/* Start state */
.books-product-wraper.car-img .hover-image{
  opacity: 0;
  transform: rotateY(180deg);
}

/* Hover flip */
.books-product-wraper.car-img:hover .main-image{
  transform: rotateY(180deg);
  opacity: 0;
}
.books-product-wraper.car-img:hover .hover-image{
  transform: rotateY(0);
  opacity: 1;
}

/* Heart icon stays above images */
.heart-icon{
  font-size: 1.3rem;
  color: #444;
  padding-right: 13px;
}

@media (max-width: 767.98px){
  .books-product-wraper.car-img .main-image,
  .books-product-wraper.car-img .hover-image{
    transform: none !important;
  }
  .books-product-wraper.car-img .hover-image{
    opacity: 0 !important;
  }
}




.campaign-section-title {
  color: #383a3c;
  text-align: center;
  font-size: 24px;
  font-style: normal;
  font-weight: 300;
  line-height: 32px;
}
.campaign-section-subtitle {
  color: #383a3c;
  text-align: center;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px; /* 140% */
}

.main-image,
.hover-image {
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.best-seller-action {
  border-width: 1px;
  color: #444;
}

.bestseller-title {
  font-size: 24px;
  font-style: normal;
  line-height: 32px;
}
.bestseller-link {
  color: #222;
  font-size: 18px;
}
.bestseller-book-title a {
    color: #383a3c;
    text-decoration: none;
    display: -webkit-box;          /* Flexbox for line clamp */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;        /* Show up to 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
}
.bestseller-book-title a:hover {
    color: #fccf53;
}

.bestseller-author {
  color: #8c9196;
  font-size: 14px;
}
.bestseller-price {
  font-size: 1.25rem;
}
.news-section-title {
  color: #383a3c;
  text-align: center;
  font-size: 24px;
  font-style: normal;
  font-weight: 300;
  line-height: 32px; /* 133.333% */
}
.news-section-link {
  color: #222;
  font-size: 1.25rem;
}
.news-date {
  color: #8c9196;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
}

.news-title-action {
  color: #383a3c;
  text-decoration: none;
}

.news-title-action:hover {
  color: #383a3c;
  text-decoration: none;
}

.news-title-action:hover {
  color: #fccf53;
}

.news-title-wrap {
  border-bottom: 2px solid #dcdedf;
}
.news-title {
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 32px;
}
.news-desc {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

/* Style for Wanna Create Section */
.wanna-create-section {
  background: #fde399;
  padding: 2.5rem 4rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.Kitab-bizim-isimiz-text-wraper {
    max-width: 100%;
}
.wanna-create-text {
    display: block;
}
.wanna-create-author {
    display: block;
    text-align: right;
}


.wanna-create-title {
  color: #383a3c;
  font-size: 48px;
  font-style: normal;
  font-weight: 500;
  line-height: 56px;
  text-align: left;
  margin-bottom: 1.5rem;
}

.wanna-create-text {
  margin-bottom: 0;
  text-align: left;
  color: #383a3c;
  font-size: 24px;
  font-style: normal;
  line-height: 32px; /* 133.333% */
}

.wanna-create-author {
  text-align: right;
  margin-left: 2rem;
  color: #383a3c;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 32px; /* 133.333% */
}

.Kitab-bizim-isimiz-text-wraper {
  padding-right: 30px;
}
.audiobook-section {
  min-height: 340px;
}
.audiobook-title {
  color: #44a6c6;
  font-family: "Poppins", sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}
.audiobook-desc {
  color: #3c3c3c;
  font-size: 1rem;
  max-width: 420px;
}
.audiobook-btn {
  background: #fde399;
  color: #3c3c3c;
  border: none;
  border-radius: 14px;
  padding: 8px 50px;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 500;
  transition: background 0.2s;
  text-decoration: none;
}
.audiobook-btn:hover {
  background: #ffe9b8;
}
.audiobook-img-wrap {
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  width: 100%;
  max-width: 370px;
  margin: 0 auto;
}
.audiobook-img {
  width: 928px;
  height: 464px;
  height: auto;
  object-fit: cover;
}

.content-wrapper {
  text-align: center;
}

.content-wrapper {
  /* visibility: hidden;
  opacity: 0; */
  transition: opacity 0.3s ease;
  height: auto; /* maintains space */
}

.card-wrapper:hover .content-wrapper {
  visibility: visible;
  opacity: 1;
    font-weight: bold;
}

.content-wrapper .title {
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}
.content-wrapper .title a {
  color: #383a3c;
  text-decoration: none;
    font-weight: bold;
}

.content-wrapper .title a:hover {
  color: #fccf53;
  text-decoration: none;

}

.content-wrapper .sub-title {
  color: #383a3c;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

@media (max-width: 767px) {
  .audiobook-img {
    width: 300px !important;
  }
  .audiobook-title {
    font-size: 2rem;
  }
  .audiobook-img-wrap {
    max-width: 100%;
  }
}

/* GTranslate "AZ EN" Style */
.gtranslate_wrapper {
    display: flex !important;
    gap: 10px !important;
    align-items: center;
}

/* Style the AZ and EN links */
.gtranslate_wrapper a.glink {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color:#8c9196;
}



/* Keep the active language highlighted if needed */
.gtranslate_wrapper a.glink.gt-current-lang {
    color: #000 !important;
    text-decoration: underline !important;
}

/* Hide everything else (Google dropdown, logo, powered by) */
.gtranslate_wrapper select, 
.gtranslate_wrapper .skiptranslate, 
.gtranslate_wrapper div[id^="google_translate_element"],
.gtranslate_wrapper span {
    display: none !important;
}

