@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@600;700&display=swap');

.publisher-wrapper {
  background-color: #FFFFFF
}
body {
  font-family: "Cairo", sans-serif;
  background-color: #FFFFFF !important;
  overflow-x: hidden;
}

.publisher-wrapper {
  max-width: 1760px;
  width: 100%;
  min-height: 850px; 
  height: auto; 
  margin: 0 auto;
  overflow-x: hidden;
}

.publisher-image {
  width: 91.67%; 
  height: 396px;
  border-radius: 40px;
  overflow: hidden;
  position: absolute;
  top: 155px;
  left: 50%;
  transform: translateX(-50%);
}

.publisher-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 40px;
}

.publisher-logo {
  gap: 9.22;
  position: absolute;
  top: 463.8px;
  width: 230.4px;
  height: 230.4px;
  border-radius: 1150.85px;
  padding: 23.04px;
  background-color: #FFFFFF;
  right: 6.5%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.publisher-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.publisher-text {
  position: absolute;
  top: 589px;
  right: 352px;
  width: 72.45%;
  max-width: 72.45%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: right;
  opacity: 1;
  overflow-wrap: break-word; 
  word-wrap: break-word;
}

.publisher-text h2 {
  width: 1391px;
  height: 22px;
  font-family: "Cairo";
  font-weight: 700;
  font-size: 32px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: right;
  vertical-align: middle;
  margin: 0;
}

.publisher-text .meta {
  width: 1391px;
  height: 14px;
  font-family: "Cairo";
  font-weight: 600;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: right;
  gap: 16px;
  margin: 0;
}

.publisher-text p {
  font-family: "Cairo";
  font-weight: 600; 
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0%;
  text-align: right;
  margin: 0;
  width: 100%; 
  height: auto; 
  white-space: normal; 
}

html, body {
  overflow-x: hidden;
}

@media screen and (max-width: 992px) {
  html, body {
    overflow-x: hidden !important;
  }
}

@media screen and (max-width: 992px) {
  .publisher-logo {
    right: 50%;
    transform: translateX(50%);
  }

  .publisher-text {
    right: 50%;
    transform: translateX(50%);
    width: 90%;
    max-width: 90%;
    text-align: center;
    align-items: center;
    margin-top: 100px;
  }

  .publisher-text h2,
  .publisher-text .meta,
  .publisher-text p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .publisher-text h2 {
    font-size: 30px;
  }
}

@media screen and (max-width: 445px) {
  .publisher-text h2 {
    width: 1391px;
    height: 22px;
    font-family: "Cairo";
    font-weight: 700;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: right;
    vertical-align: middle;
    margin: 0;
  }
}

@media screen and (max-width: 1243px) and (min-width: 993px) {
  .publisher-text {
    width: 85%;
    max-width: 65%;
  }

  .publisher-text h2,
  .publisher-text .meta {
    width: 100%;
  }

  .publisher-text p {
    width: 100%;
  }
}

.publisher-section {
  width: 100%;
  background: #fff;
  display: flex;
}

.publisher-container {
  width: 100%;
  max-width: 1760px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  
}

.authors-column {
  width: 307px;
  border: 1px solid #DAE1EA;
  border-radius: 16px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.authors-column h3 {
  font-family: "Cairo";
  font-size: 20px;
  font-weight: 700;
  text-align: right;
  margin: 0;
}

.authors-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.author-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  border-bottom: 1px solid #DAE1EA;
  padding: 10px 20px;
  direction: rtl;
}

.author-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;  
  display: block;
}

.author-info {
  text-align: right;
}

.author-name {
  font-family: "Cairo";
  font-size: 14px;
  font-weight: 600;
  color: #000;
  margin-bottom: 12px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: right;
}

.author-specialty {
  font-family: "Cairo";
  font-size: 14px;
  font-weight: 600;
  color: #888888;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: right;
}

.books-column {
  width: 1429px;
  border: 1px solid #DAE1EA;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.books-column h3 {
  font-family: "Cairo";
  font-size: 20px;
  font-weight: 700;
  text-align: right;
  margin: 0;
}

.book-card {
    flex-grow: 1;
    min-width: 232px;
    max-width: 350px;
    border-radius: 16px;
    height: 473.24139404296875px;
    position: relative;
    background: #EBF0F3;
    overflow: hidden;
    padding: 8px;
    margin: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-wrapper { 
  all: unset; 
}

.publisher-section {
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.publisher-container {
    width: 100%;
    max-width: 1760px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
    margin-left: 10px;
    margin-right: 5px;
    padding: 0px 15px 0px 15px;
}

.authors-column {
  flex: 0 0 307px;
  border: 1px solid #DAE1EA;
  border-radius: 16px;
  padding: 24px 16px;
}

.books-column {
  flex: 1;
  min-width: 600px;
  border: 1px solid #DAE1EA;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.books-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  direction: rtl;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1200px) {
  .book-card { flex: 0 0 calc(25% - 24px); }
}
@media (max-width: 900px) {
  .book-card { flex: 0 0 calc(33.33% - 24px); }
}
@media (max-width: 600px) {
  .book-card { flex: 0 0 calc(50% - 24px); }
}
@media (max-width: 562px) {
  .book-card { flex: 0 0 100%; }
}
@media (max-width: 399px) {
  .book-card { flex: 0 0 100%; }
}

@media (max-width: 930px) {
  .authors-column {
    flex: 1 1 100%;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .authors-column::-webkit-scrollbar {
    width: 6px;
  }

  .authors-column::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
  }
}

.author-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  direction: rtl;
  cursor: pointer;
  /*overflow: hidden;*/
  border-radius: 20px;
  transition: all 0.2s ease;
}
.author-item:hover {
  transform: translateY(-2px);
}
.author-item:active {
  background-color: #FFFFFF;
  transform: scale(0.98);
}
.author-item.active {
  border: 1px solid #3DA5FF;
  border-radius: 20px;
}

.author-item.active .author-name {
  color: #3DA5FF;
}

.author-item.active .author-icon img {
  border: 2px solid #3DA5FF;
  border-radius: 50%;
}

.author-icon {
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.book-card:hover {
  transform: translateY(-6px);
}

.book-image {
  width: 100%;
  height: 370px;
  display: block;
  border-radius: 16px;
  margin: 0 auto;
}

.book-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
  margin-top: 8px;
  padding: 0 16px;
}

.book-title {
  color: #000;
  margin: 0;
  font-family: "Cairo";
  font-weight: 600;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: right;
}

.fav-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
}
.fav-btn img {
  width: 25px;
  height: 25px;
  display: block;
  transform: translateY(2px);
}

.book-author {
  font-size: 14px;
  color: #798087;
  font-family: Cairo;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0%;
}

.book-rating-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.book-stars {
  color: #f5c518;
  font-size: 15px;
}

.book-rate {
  font-weight: 600;
  color: #798087;
  font-size: 14px;
}

.book-reviews {
  color: #798087;
  font-size: 13px;
}

.book-author,
.book-rating-row {
  padding: 0 16px;
  text-align: right;
  direction: rtl;
}
.book-info {
  height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  opacity: 1;
  direction: rtl;
}
.book-card .book-img img {
    height: 300px !important;
}
body {
  opacity: 0;
  transform: translateY(15px);
  animation: pageFadeIn 0.7s ease-in-out forwards;
}
@keyframes pageFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.publisher-logo {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.publisher-logo:hover {
  transform: scale(1.08) ;

}
.author-item {
  background-color: #F9FBFD;
  border-radius: 16px;
  transition: background-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}
.author-item:hover {
  background-color: #E9F3FF;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(61, 165, 255, 0.15);
}
.fav-btn img {
  transition: transform 0.3s ease, filter 0.3s ease;
}
.fav-btn:hover img {
  transform: scale(1.3);
  filter: brightness(1.3) saturate(1.3);
}
.authors-column {
  transition: box-shadow 0.3s ease;
}
.authors-column:hover {
  box-shadow: 0 0 15px rgba(61, 165, 255, 0.1);
}
.books-column {
  transition: box-shadow 0.3s ease;
}
.books-column:hover {
  box-shadow: 0 0 18px rgba(61, 165, 255, 0.12);
}

#booksGrid {
  animation: fadeBooks 0.4s ease;
}
@keyframes fadeBooks {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
.book-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0.7rem;
}
.image-layer {
  position: absolute;
  inset: 0; 
  background: linear-gradient(
    rgba(255,255,255,0.3),
    rgba(255,255,255,0.2)
  );
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
  border-radius: inherit;
}
.book-card:hover .image-layer {
  opacity: 1;
}
.book-image {
  display: block;
  width: 100%;

  transition: transform 0.4s ease-in-out;
}
.book-card:hover .book-image {
  transform: scale(1.02);
}
.fav-btn.active img {
  filter: invert(34%) sepia(99%) saturate(7465%) hue-rotate(190deg) brightness(102%) contrast(101%);
}
.section-books .book-card {
    /* height: 473.24px; */
    max-width: 154px;
     height: 420px; 
  
    padding: 0.5em;
    /* margin: 0 0.5em; */
    border-radius: 1em;
    background-color: #EBF0F3;
    box-shadow: 0px 2px 4px 0px #00000040;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    /* cursor: pointer; */
}
.book-img-fixed {
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.authors-list {
    max-height: 800PX;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

    .authors-list::-webkit-scrollbar {
        width: 6px;
    }

    .authors-list::-webkit-scrollbar-thumb {
        background-color: #888;
        border-radius: 3px;
    }

    .authors-list::-webkit-scrollbar-track {
        background: #f1f1f1;
    }


    .authors-list .author-item {
        height:50px;
        display: flex;
        align-items: center;
        padding: 0 10px;
        box-sizing: border-box;
    }
