* {
  box-sizing: border-box;
  font-family: Arial, sans-serif !important;
}

body {
  margin: 0;
}

/* ================= LAYOUT ================= */
.allSlider {
  margin: 30px 0;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}

/* ================= MAIN SLIDER ================= */
.wrapper {
  max-width: 900px;
  position: relative;
}

.wrapper input {
  display: none;
}

.inner {
  width: 500%;
  transition: 1.2s ease-in-out;
}
/* 🔥 DİNAMİK SLIDER FIX (koduna toxunmadan) */

.wrapper .inner {
  display: flex !important;
  width: calc(100% * var(--total)) !important;
}

.wrapper .inner article {
  width: calc(100% / var(--total)) !important;
  float: none !important;
}
article {
  width: 20%;
  float: left;
  position: relative;
}

article img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.slider-wrapper {
  overflow: hidden;
  border-radius: 2px;
}

/* TEXT */
.info {
  position: absolute;
  bottom: 40px;
  left: 40px;

  background: rgba(0, 0, 0, 0.6);
  padding: 25px;
  border-radius: 8px;

  color: white;
  max-width: 600px;

  opacity: 0;
  transition: 0.5s;
}

.info h3 {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* maksimum 3 sətir */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 23px;
  margin-bottom: 10px;
}

.info span {
  font-size: 14px;
  opacity: 0.8;
}

/* DOTS */
.slider-dot-control {
  position: absolute;
  top: 20px;
  right: 20px;
}

.slider-dot-control label {
  width: 12px;
  height: 12px;
  background: #dcdcdc;
  display: inline-block;
  margin: 3px;
  border-radius: 2px;
}

/* ACTIVE */
#slide1:checked ~ .slider-dot-control label:nth-child(1),
#slide2:checked ~ .slider-dot-control label:nth-child(2),
#slide3:checked ~ .slider-dot-control label:nth-child(3),
#slide4:checked ~ .slider-dot-control label:nth-child(4),
#slide5:checked ~ .slider-dot-control label:nth-child(5) {
  background: #2f4a8a;
}

/* MOVE */
#slide1:checked ~ .slider-wrapper .inner {
  margin-left: 0%;
}
#slide2:checked ~ .slider-wrapper .inner {
  margin-left: -100%;
}
#slide3:checked ~ .slider-wrapper .inner {
  margin-left: -200%;
}
#slide4:checked ~ .slider-wrapper .inner {
  margin-left: -300%;
}
#slide5:checked ~ .slider-wrapper .inner {
  margin-left: -400%;
}

/* TEXT SHOW */
#slide1:checked ~ .slider-wrapper article:nth-child(1) .info,
#slide2:checked ~ .slider-wrapper article:nth-child(2) .info,
#slide3:checked ~ .slider-wrapper article:nth-child(3) .info,
#slide4:checked ~ .slider-wrapper article:nth-child(4) .info,
#slide5:checked ~ .slider-wrapper article:nth-child(5) .info {
  opacity: 1;
}

/* ================= SIDE SLIDER ================= */
.side-slider {
  width: 250px;
  height: 500px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.side-card {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  flex: 1;
}

.side-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 0 12px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  color: white;
  max-height: 40px;
  overflow: hidden;
  transition: 0.4s;
}

.side-card:hover .side-info {
  max-height: 120px;
}

.side-info h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

/* ================= NEWS ================= */

.prLine {
  height: 3px;
  width: 1000px;
  margin: 5px auto;

  background: linear-gradient(to right, transparent, #a67c52, transparent);
}

.newsSection {
  width: 100%;
  max-width: 1100px;
  margin: 40px auto;
}

.newsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.newsCard img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.newsCard h3 {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* maksimum 3 sətir */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 17px;
  margin: 10px 0;
  color: black !important;
}

.tag {
  background: #a67c52;
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  display: inline-block;
  margin-top: -25px;
  position: relative;
}

.newsCard button {
  border: 1px solid #a67c52;
  color: #a67c52;
  background: transparent;
  padding: 6px 12px;
  cursor: pointer;
  transition: 0.3s;
}

.newsCard {
  transition: 0.3s;
  overflow: hidden;
  position: relative; /* əlavə */
}

.newsCard:hover {
  transform: translateY(-8px);
}

.newsCard img {
  transition: 0.4s;
}

.newsCard:hover img {
  transform: scale(1.08);
}

.newsCard button:hover {
  background: #a67c52;
  color: white;
}

/* ====== SADƏ OVERLAY (ƏLAVƏ) ====== */

.newsOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 156px;

  background: rgba(166, 124, 82, 0.6);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  transition: 0.3s;
}

.newsOverlay i {
  color: white;
  font-size: 20px;

  background: rgba(255, 255, 255, 0.25);
  padding: 12px;
  border-radius: 50%;

  display: flex;
  justify-content: center;
  align-items: center;
}

.newsCard:hover .newsOverlay {
  opacity: 1;
}

/* ================= END ================= */

.arrow-body {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  margin: 20px 0;
}

/* 🔥 ox dizaynı */
.arrow {
  width: 16px;
  height: 16px;

  border-bottom: 3px solid #8b5e3c;
  border-right: 3px solid #8b5e3c;

  transform: rotate(-45deg);

  opacity: 0;
  animation: arrowMove 1.5s infinite;
}

/* 🔥 daha səliqəli delay */
.arrow:nth-child(1) {
  animation-delay: 0s;
}
.arrow:nth-child(2) {
  animation-delay: 0.15s;
}
.arrow:nth-child(3) {
  animation-delay: 0.3s;
}
.arrow:nth-child(4) {
  animation-delay: 0.45s;
}
.arrow:nth-child(5) {
  animation-delay: 0.6s;
}

/* 🔥 animasiya (smooth edildi) */
@keyframes arrowMove {
  0% {
    opacity: 0;
    transform: rotate(-45deg) translate(-10px, -10px);
  }
  40% {
    opacity: 1;
  }
  70% {
    opacity: 1;
    transform: rotate(-45deg) translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: rotate(-45deg) translate(10px, 10px);
  }
} /* SECTION */
/* ================= PRO Jurnal (FINAL) ================= */
.journalSection {
  background: #f5ece4;
  padding: 60px 20px;

  display: flex;
  justify-content: center;
  gap: 100px;
  flex-wrap: wrap;
  perspective: 1000px; /* 🔥 3D üçün */
}

/* CARD */
.journal-card {
  width: 182px;
  height: 249px;

  overflow: hidden;
  cursor: pointer;
  position: relative;

  background: #fff;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;

  transform-style: preserve-3d;
}

/* IMAGE */
.journal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  transition: transform 0.4s ease;
}

/* 🔥 ALT SHADOW (floating hissi) */
.journal-card::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 10%;
  width: 80%;
  height: 20px;

  background: rgba(0, 0, 0, 0.2);
  filter: blur(15px);
  border-radius: 50%;
  opacity: 0.5;

  transition: 0.4s;
  z-index: 0;
}

/* 🔥 SHINE EFFECT */
.journal-card::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );

  transform: rotate(25deg);
  opacity: 0;
  z-index: 2;
}

/* 🔥 HOVER EFFECT */
.journal-card:hover {
  transform: rotateY(8deg) rotateX(5deg) translateY(-15px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* şəkil azca zoom */
.journal-card:hover img {
  transform: scale(1.08);
}

/* shine animasiya */
.journal-card:hover::before {
  opacity: 1;
  animation: shineMove 1.2s ease forwards;
}

/* shadow daha real */
.journal-card:hover::after {
  opacity: 0.8;
  transform: scale(1.2);
}
/* 🔥 RESET 3D (sadələşdiririk) */
.journal-card {
  transform: none !important;
}

/* 🔥 HOVER - CLEAN LIFT */
.journal-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

/* 🔥 IMAGE SMOOTH ZOOM */
.journal-card img {
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}

.journal-card:hover img {
  transform: scale(1.06);
}

/* 🔥 SOFT OVERLAY (premium hiss) */
.journal-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent 40%);

  opacity: 0;
  transition: 0.4s;
  z-index: 2;
}

.journal-card:hover::before {
  opacity: 1;
}

/* 🔥 FOCUS EFFECT (digərləri solğunlaşır) */
.journalSection:hover .journal-card {
  opacity: 0.6;
  transform: scale(0.98);
  transition: 0.4s;
}

.journalSection .journal-card:hover {
  opacity: 1;
  transform: translateY(-10px) scale(1.03);
  z-index: 2;
}
/* ANIMATION */
@keyframes shineMove {
  0% {
    transform: rotate(25deg) translate(-100%, -100%);
  }
  100% {
    transform: rotate(25deg) translate(100%, 100%);
  }
}
/* ================= PRO CAROUSEL (FINAL) ================= */

.pro-carousel {
  width: 100%;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 2000px;
  overflow: hidden;
} /* dairəvi 3D sistem */
.pro-track {
  position: relative;
  width: 300px;
  height: 400px;
  transform-style: preserve-3d;
  /* animation: rotateSlider 40s linear infinite; */
} /* 🔥 KİTABLARI BALACALAŞDIRDIQ */
.pro-slide {
  position: absolute;
  width: 130px; /* 180 → 130 */
  height: 190px; /* 260 → 190 */
  left: 50%;
  top: 50%;
  transform-origin: center;
  margin-left: -65px; /* yarısı */
  margin-top: -95px; /* yarısı */
  transition: 0.5s;
} /* şəkil */
.pro-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
} /* DÜNYA KİMİ FIRLANMA */
@keyframes rotateSlider {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
} /* hover pause */
/* .pro-carousel:hover .pro-track {
  animation-play-state: paused;
} */
/* =========================8 dene kart olan dene =====  */
/* 🔥 SECTION (BG FULL + CENTER FIX) */
.otherSections {
  display: grid;
  grid-template-columns: repeat(4, 260px);
  justify-content: center;
  gap: 40px;

  padding: 80px 20px;

  background-image: url("../img/bg-img.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
}

/* 🔥 SOFT OVERLAY */
.otherSections::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(2px);
  z-index: 0;
}

/* 🔥 KART */
.section13 {
  width: 260px;
  height: 200px;

  padding: 20px;

  background-image: url("../img/Sıcak nötr tonlarda geometrik desenler.png");
  background-size: cover; /* 🔥 əlavə */
  background-position: center; /* 🔥 əlavə */
  background-repeat: no-repeat; /* 🔥 əlavə */

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;

  cursor: pointer;
  position: relative;
  z-index: 1;

  overflow: hidden;
}

/* 🔥 border */
.section13::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* 🔥 HOVER */
.section13:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* 🔥 ICON */
.section13 img {
  width: 60px;
  height: 60px;
  object-fit: contain;

  margin-bottom: 12px;

  filter: grayscale(100%) opacity(0.7);
  transition: all 0.4s ease;
}

.section13:hover img {
  filter: none;
  transform: scale(1.1);
}
.newsOverlay i {
  font-size: 20px;
  color: white;
  font-family: FontAwesome !important;
}
/* 🔥 YAZI (FIX OLUNDU 🔥) */
.section13 h3 {
  font-size: 18px;
  font-weight: 600;
  color: #222;

  max-width: 200px;
  line-height: 1.4;
  text-align: center;

  white-space: normal; /* 🔥 əsas fix */
  word-break: break-word; /* 🔥 uzun sözləri bölür */

  display: -webkit-box;
  -webkit-line-clamp: 2; /* 🔥 max 2 sətir */
  -webkit-box-orient: vertical;
  overflow: hidden;

  transition: 0.3s;
}

.section13:hover h3 {
  color: #6b4226;
}

/* 🔥 KÜNC XƏTLƏR (PRO VERSION) */
a {
  text-decoration: none;
}
/* MODAL BACKGROUND */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.9);
}

/* MODAL IMAGE */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 300px;
  animation: zoom 0.4s;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* ANIMATION */
@keyframes zoom {
  from {
    transform: scale(0.7);
  }
  to {
    transform: scale(1);
  }
}
.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.modal-buttons button {
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  font-size: 17px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
}

.all-books {
  background: white;
  color: #222;
}

.read-book {
  background: #6e330a;
  color: white;
}

.modal-buttons button:hover {
  transform: scale(1.06);
}
/* ================= NEWS WRAPPER ================= */

.newsWrapper {
  display: grid;
  grid-template-columns: 1fr 300px; /* xəbərlər solda, xəbər lenti sağda */
  align-items: start;
}

/* ===== SAĞ XƏBƏR LENTİ ===== */

.newsSidebar {
  background: #fafafa;
  padding: 30px 25px;
}

.newsSidebar h2 {
  font-size: 20px;
  color: #9b6b3d;
  margin-bottom: 3px;
}
.notificationBox h2 {
  font-size: 20px;
  color: #9b6b3d;
  margin-bottom: 3px;
}
.sidebarLine {
  width: 57px;
  height: 3px;
  background: #9b6b3d;
  margin-bottom: 20px;
}

.newsTimeline {
  position: relative;
}

.newsTimeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  width: 1px;
  height: 100%;
  background: #c7b299;
}

.timelineItem {
  position: relative;
  padding-left: 30px;
  margin-bottom: 30px;
}

.timelineItem::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #b58552;
}

.timelineItem a {
  display: block;
  color: black;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 5px;
}

.timelineItem span {
  color: #b58552;
  font-size: 12px;
}

/* ===== OXLAR ===== */

.newsArrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
}

.newsArrows button,
.pauseBtn {
  width: 45px;
  height: 45px;

  border: 1px solid #b58552;
  background: white;

  display: flex;
  justify-content: center;
  align-items: center;

  color: #b58552;
  font-size: 20px;
  font-weight: bold;

  cursor: pointer;
  transition: 0.3s;
}

.newsArrows button:hover,
.pauseBtn:hover {
  background: #b58552;
  color: white;
}

/* ===== SOL XƏBƏRLƏR ===== */

.newsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.newsTimeline {
  height: 420px;
  overflow: hidden;
  position: relative;
}

.timelineTrack {
  display: flex;
  flex-direction: column;
}

@keyframes scrollNews {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}
/* ================= MOBILE ================= */

@media (max-width: 992px) {
  /* SLIDER */
  .allSlider {
    flex-direction: column;
    gap: 15px;
    padding: 0 10px;
    margin: 15px 0;
  }

  .wrapper {
    width: 100%;
    max-width: 100%;
  }

  article img {
    height: 250px;
  }

  .info {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 10px;
    max-width: none;
  }

  .info h3 {
    font-size: 15px;
    margin-bottom: 5px;
  }

  .info span {
    font-size: 12px;
  }

  .slider-dot-control {
    top: 10px;
    right: 10px;
  }

  /* SAĞ XƏBƏRLƏR */
  .side-slider {
    width: 100%;
    flex-direction: row;
    gap: 10px;
    height: auto;
  }

  .side-info h4 {
    font-size: 13px;
  }

  /* XƏBƏRLƏR */
  .newsWrapper {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .newsGrid {
    padding: 0 10px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .newsCard img {
    height: 220px;
  }

  .newsSidebar {
    padding: 15px;
  }

  .newsTimeline {
    height: 400px;
  }

  /* XƏTT */
  .prLine {
    width: 90%;
  }

  /* 8 KART */
  .otherSections {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 30px 10px;
  }

  .section13 {
    width: 100%;
    height: 140px;
    padding: 10px;
  }

  .section13 img {
    width: 40px;
    height: 40px;
  }

  .section13 h3 {
    font-size: 14px;
  }

  /* JURNALLAR */
  .journalSection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 30px;
  }

  .journal-card {
    width: 120px;
    height: 170px;
  }

  /* KİTAB KARUSELİ */
  .pro-carousel {
    height: 250px;
  }

  .pro-track {
    width: 180px;
    height: 220px;
  }

  .pro-slide {
    width: 70px;
    height: 100px;
    margin-left: -35px;
    margin-top: -50px;
  }

  /* MODAL */
  .modal-content {
    width: 90%;
  }

  .modal-buttons {
    flex-direction: column;
    align-items: center;
  }

  .modal-buttons button {
    width: 220px;
  }
}
/* ===== BILDIRIS ===== */

.notificationBox {
  background: #fafafa;
  padding: 30px 25px;
  padding: 15px;
}

.notificationBox h2 {
  font-size: 20px;
  color: #9b6b3d;
  margin-bottom: 0;
}

.notificationBox .sidebarLine {
  margin-bottom: 10px;
}

.notificationCard {
  overflow: hidden;
}

.notificationCard img {
  width: 100%;
  height: 95px;
  object-fit: cover;
  display: block;
}

.notificationCard h4 {
  margin-top: 8px;
  color: #000;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notificationIcon {
  width: 70px;
  height: 70px;
  margin: 0 auto;

  display: flex;
  justify-content: center;
  align-items: center;

  background: #f3ece5;
  border-radius: 50%;
}

.notificationIcon i {
  font-size: 32px;
  color: #9b6b3d;
}

.notificationCard {
  text-align: center;
}
.notificationBox .newsTimeline {
  height: 190px; /* istədiyin qədər dəyiş */
  overflow: hidden;
}
