.slider-wrapper {
  width: 100%;
  max-width: 1200px;
  height: 550px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin: 0 auto;
}

.inner {
  display: flex;
  height: 100%;
  transition: 0.5s ease;
}

article {
  min-width: 100%;
  height: 100%;
  position: relative;
}

article img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TEXT overlay */
.info-box {
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 344px;
  height: 90px;
  width: 100%;
  padding: 20px;
  color: black;
  background: rgba(220, 220, 220, 0.8);
  /* box-shadow: 0 6px 0 rgba(60, 110, 160, 0.9), 0 12px 0 rgba(45, 90, 135, 0.9),
    0 20px 30px rgba(0, 0, 0, 0.4); */

  /* Smooth animasiya */
  /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
}
/* .info-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 4px 0 rgba(60, 110, 160, 0.9), 0 8px 0 rgba(45, 90, 135, 0.9),
    0 25px 40px rgba(0, 0, 0, 0.5);
} */
.info-box .title {
  font-family: Avantgarde, TeX Gyre Adventor, URW Gothic L, sans-serif;
  font-size: 18px;
  font-weight: bold;
}
/* BUTTONS */
.slider-wrapper .prev,
.slider-wrapper .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(200, 193, 193, 0.7);
  border: none;
  font-size: 30px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
}

.slider-wrapper .prev {
  left: 10px;
}
.slider-wrapper .next {
  right: 10px;
}
.sliderNews {
  margin-top: 20px;
  display: flex;
}
.News {
  margin: 10px 50px;
  display: flex;
  gap: 20px;
}
.sliderNewsText {
  font-size: 16px;
  color: #333;
}
.allNews {
  display: flex;
  flex-direction: column;
}
.digitalLiteratura {
  display: flex;
  justify-content: space-between;
  margin: 50px 0;
}
.news-slider {
  position: relative;
  width: 360px;
  background: #f7f7f7;
  border-radius: 10px;
  overflow: hidden;
}

/* BAŞLIQ */
.news-header {
  position: sticky;
  top: 0;
  background: #3b6688;
  color: white;
  font-size: 18px;
  font-weight: bold;
  padding: 12px 16px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* SADECE XƏBƏRLƏRİN GÖRÜNDÜYÜ SAHƏ */
.news-slides-wrapper {
  height: 350px; /* 5 xəbər × 70px */
  overflow: hidden;
  position: relative;
}

/* SLIDE KONTEYNER */
.news-slides {
  transition: transform 0.4s ease;
}

/* TƏK XƏBƏR */
.news-slide {
  height: 70px;
  padding: 8px 16px;
  border-bottom: 1px solid #ddd;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* TARİX */
.news-date {
  font-size: 12px;
  color: #888;
}

/* BAŞLIQ */
.news-title {
  font-size: 14px !important;
  color: #222 !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
}

.news-title:hover {
  color: #007bff;
  text-decoration: underline;
}

/* BUTTONLAR */
.news-buttons {
  position: absolute;
  right: 8px;
  top: 60%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.news-buttons button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  cursor: pointer;
}
.news-buttons button img {
  width: 20px;
}

.allArticles {
  display: flex;
}
.article {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #333;
  padding: 0 30px;
}
.article .date {
  font-size: 15px;
}
.article .title {
  font-size: 20px;
}

.allParent {
  display: grid;
  grid-template-columns: (5, 1fr);
  grid-template-rows: (5, 1fr);
  gap: 8px;
}
.otherLinks {
  grid-row: span 2 / span 2;
  grid-column-start: 4;
  grid-row-start: 1;
  padding: 40px 50px 22px 50px;
  background-color: #4a36cf;
  /* background: url(https://academy.uz/dist/img/ornament.png) no-repeat; */
}
.otherLinks ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: white;
}
.two {
  grid-column-start: 2;
  grid-row-start: 1;
}
.three {
  grid-column-start: 3;
  grid-row-start: 1;
}
.four {
  grid-column-start: 3;
  grid-row-start: 2;
}
.five {
  grid-column-start: 2;
  grid-row-start: 2;
}
.six {
  grid-column-start: 1;
  grid-row-start: 2;
}
.scienncePublication {
  margin: 50px 0;
}
.scienncePublicationHeader {
  background-color: #3b6688;
  border-radius: 8px;
  width: 300px;
  color: white;
}
.scienncePublicationHeader h1 {
  padding: 10px 30px;
  font-size: 22px;
}
.scienncePublicationHeaderColumn {
  display: flex;
}
.books img {
  width: 120px;
  height: 160px; /* əlavə edildi – hamısı eyni olacaq */
  object-fit: cover; /* şəkili kəsir, amma deformasiya etmir */
  border-radius: 6px; /* istəyə bağlı – daha səliqəli görünür */
}
.books,
.journals {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 70px;
  align-items: center;
}
.books {
  display: flex;
  overflow: hidden; /* görünməyən kitablar gizlənir */
  gap: 10px;
  scroll-behavior: smooth;
}

.books a {
  flex: 0 0 20%; /* bir sətirdə 5 kitab */
  max-width: 20%;
}

.pageswitch {
  text-align: right;
  text-decoration: none;
  color: #463333;
  text-transform: uppercase;
  margin: 10px 0;
}
.scrolSwitchPage {
  display: flex;
  justify-content: space-between;
}
.prev,
.next {
  padding: 12px 16px;
  border-radius: 50%;
  border: 3px solid #dedede;
  display: inline;
  font-size: 20px;
  cursor: pointer;
}
.journals img {
  width: 120px;
  height: 160px; /* əlavə edildi */
  object-fit: cover;
  border-radius: 6px;
}
.corner-text {
  display: flex;
  align-items: center;
  color: #333;
}
.corner-text img {
  width: 50px;
}
.title a {
  color: #333;
  text-decoration: none; /* normalda xətt yoxdur */
  text-decoration-color: transparent; /* hover olmayan vəziyyətdə xətt "yox" */
  transition: all 0.2s ease;
}
.title a:hover {
  color: #007bff;
  text-decoration: underline; /* xətt görünür */
  text-decoration-color: #007bff; /* xətt rəngi */
  text-decoration-thickness: 2px; /* xətt qalınlığı */
}
.image-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #3b6688;
  width: 300px;
  padding: 10px;
  position: relative;
  overflow: hidden; /* overlay-in şəkildən çıxmaması üçün */
  width: 300px; /* və ya şəkilin genişliyi */
}

.image-container img {
  display: block;
  width: 30px;
  /* height: auto; */
}
/* 
.overlay {
  position: absolute;
  bottom: 0; 
  left: 0;
  width: 100%;
  height: 30%; 
  background: rgba(255, 255, 255, 0.22); 
  backdrop-filter: blur(8px); 
  -webkit-backdrop-filter: blur(8px);
  color: black;
  transition: height 0.5s ease; 
}

.image-container:hover .overlay {
  height: 100%; 
  margin: 10px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay .text {
  margin: 10px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  
} */
.changeIMG img {
  width: 1134px;
  height: 130px;
}
/* ===== BÜTÜN KARTLAR ÜÇÜN ===== */
.allImgCard {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  gap: 20px;
  align-items: start;
}

/* digital kartlar */

.card-0 {
  grid-column: 1;
  grid-row: 1;
}
.card-1 {
  grid-column: 2;
  grid-row: 1;
}
.card-2 {
  grid-column: 3;
  grid-row: 1;
}

.card-3 {
  grid-column: 1;
  grid-row: 2;
}
.card-4 {
  grid-column: 2;
  grid-row: 2;
}

/* xəbər lenti */
.news-slider {
  grid-column: 3;
  grid-row: 2 / 4;
}

/* dərgilər */
.side-publications {
  grid-column: 1 / 3;
  grid-row: 3;
}
.allImgCard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px; /* ən azı */
  gap: 10px;
}

/* kart yerləri */
.card-0 {
  grid-column: 1;
  grid-row: 1;
}
.card-1 {
  grid-column: 2;
  grid-row: 1;
}
.card-2 {
  grid-column: 3;
  grid-row: 1;
}

.card-3 {
  grid-column: 1;
  grid-row: 2;
}
.card-4 {
  grid-column: 2;
  grid-row: 2;
}

/* xəbər */
.news-slider {
  grid-column: 3;
  grid-row: 2 / 4;
}

/* dərgilər */
.side-publications {
  grid-column: 1 / 3;
  grid-row: 3;
}

.allImgCard a {
  color: #fff;
  font-size: 14px;
  line-height: 19px;
  text-decoration: none;
}

/* ===== KART ÖZÜ ===== */
.digital-card {
  width: 300px;
  margin: 10px;
  border-radius: 8px;
  overflow: hidden;
}

/* TITLE ÜZRƏ KLIK */
.digital-card .text {
  display: block;
  font-size: 18px;
  cursor: pointer;
  color: white;
}

/* DROPDOWN LIST (ƏSAS) */
.digital-card .slide {
  max-height: 0; /* açılmamış hündürlük */
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  background: #ededed;
  list-style: none;
  margin: 0;
  padding: 0;
}

.digital-card .slide li {
  padding: 12px 20px;
  border-top: 1px solid #ccc;
}

.digital-card .slide li a {
  text-decoration: none;
  color: #2d2f31;
  display: block;
}

/* CHECKBOX GİZLƏT */
.digital-card .touch {
  display: none;
}

/* AÇILMA */
.digital-card .touch:checked + .slide {
  max-height: 500px; /* lazım olan maksimum hündürlük */
  opacity: 1;
}

/* ===== ALT MENYU (TƏHSİL) ===== */
.sub-touch {
  display: none;
}

.sub-title {
  display: block;
  background: #3f6a8a;
  color: #fff;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  border-top: 1px solid #ccc;
}

.sub-slide {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #ededed;
}

.sub-touch:checked + .sub-title + .sub-slide {
  max-height: 200px; /* uyğun hündürlük */
  opacity: 1;
}

.sub-slide li {
  padding: 12px 30px;
  border-top: 1px solid #ccc;
}

.sub-slide li a {
  color: #2d2f31;
  font-size: 14px;
  text-decoration: none;
  display: block;
}

.side-publications {
  border-radius: 10px;
  padding: 15px;
}

.side-publications h3 {
  margin-bottom: 15px;
  font-size: 22px;
  color: #333;
}
.card-bottom-shape {
  position: absolute;

  z-index: 1;
}
.first {
  bottom: 388px;
  left: 50%;
  transform: translateX(-29px);
  width: 180px;
  height: 220px;
}
.secont {
  bottom: 388px;
  left: 50%;
  transform: translateX(-284px);
  width: 180px;
  height: 220px;
}
.third {
  bottom: 388px;
  left: 50%;
  transform: translateX(-538px);
  width: 180px;
  height: 220px;
}

.side-books {
  display: flex;
  justify-content: space-between;
  padding: 0px 15px;
}

.side-books img {
  width: 160px;
  height: 235px;
  object-fit: cover;
  border-radius: 6px;
}
.side-books img:first-child {
  position: relative;
  z-index: 2;
}
/* ===== TABLET STYLES (max-width: 1024px) ===== */
@media (max-width: 1024px) {
  .slider-wrapper {
    height: 400px;
  }

  .info-box {
    padding: 15px;
  }

  .info-box .title {
    font-size: 16px;
  }

  .sliderNews {
    flex-direction: column;
  }

  .allNews {
    width: 100%;
  }

  .News {
    margin: 10px 20px;
  }

  /* Grid becomes 2 columns */
  .allImgCard {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 20px;
  }

  .card-0 {
    grid-column: 1;
    grid-row: 1;
  }

  .card-1 {
    grid-column: 2;
    grid-row: 1;
  }

  .card-2 {
    grid-column: 1;
    grid-row: 2;
  }

  .card-3 {
    grid-column: 2;
    grid-row: 2;
  }

  .card-4 {
    grid-column: 1;
    grid-row: 3;
  }

  .news-slider {
    grid-column: 2;
    grid-row: 3 / 5;
  }

  .side-publications {
    grid-column: 1 / 3;
    grid-row: 5;
  }

  .card-bottom-shape {
    display: none;
  }

  .scienncePublicationHeader {
    font-size: 24px;
  }

  .books {
    gap: 15px;
  }

  .books img {
    width: 100px;
    height: 140px;
  }
}

/* ===== MOBILE STYLES (max-width: 768px) ===== */
@media (max-width: 768px) {
  .slider-wrapper {
    height: 300px;
    border-radius: 8px;
  }

  .info-box {
    padding: 10px 15px;
    height: auto;
  }

  .info-box .title {
    font-size: 14px;
  }

  .slider-wrapper .prev,
  .slider-wrapper .next {
    font-size: 24px;
    padding: 8px 12px;
  }

  .sliderNews {
    margin-top: 15px;
    padding: 0 10px;
  }

  .News {
    margin: 8px 10px;
    gap: 15px;
  }

  .sliderNewsText {
    font-size: 14px;
  }

  .digitalLiteratura {
    margin: 30px 0;
  }

  /* Single column grid */
  .allImgCard {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 15px;
  }

  .card-0,
  .card-1,
  .card-2,
  .card-3,
  .card-4 {
    grid-column: 1;
    grid-row: auto;
  }

  .news-slider {
    grid-column: 1;
    grid-row: auto;
    max-width: 100%;
  }

  .side-publications {
    grid-column: 1;
    grid-row: auto;
  }

  .news-slides-wrapper {
    height: 280px;
  }

  .side-books {
    justify-content: center;
    padding: 0 10px;
  }

  .side-books img {
    max-width: 140px;
  }

  .changeIMG {
    padding: 0 15px;
  }

  .scienncePublication {
    margin: 30px 0;
    padding: 0 15px;
  }

  .scienncePublicationHeader {
    font-size: 20px;
  }

  .books {
    gap: 10px;
    justify-content: flex-start;
  }

  .books a {
    flex: 0 0 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
  }

  .books img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
  }

  .scrolSwitchPage {
    flex-direction: column;
    align-items: stretch;
  }

  .scrolSwitchPage > div {
    display: flex;
    justify-content: center;
    gap: 15px;
  }

  .pageswitch {
    text-align: center;
  }

  .prev,
  .next {
    padding: 10px 14px;
    font-size: 18px;
  }
}

/* ===== SMALL MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {
  .slider-wrapper {
    height: 250px;
  }

  .info-box .title {
    font-size: 13px;
  }

  .slider-wrapper .prev,
  .slider-wrapper .next {
    font-size: 20px;
    padding: 6px 10px;
  }

  .News {
    gap: 10px;
  }

  .News .icon img {
    width: 20px;
    height: 20px;
  }

  .sliderNewsText {
    font-size: 13px;
  }

  .news-header {
    font-size: 16px;
    padding: 10px 12px;
  }

  .news-slide {
    height: 65px;
    padding: 6px 12px;
  }

  .news-title {
    font-size: 13px !important;
  }

  .digital-card .text {
    font-size: 16px;
  }

  .image-container {
    padding: 8px;
  }

  .side-publications h3 {
    font-size: 18px;
  }

  .side-books {
    flex-direction: column;
    align-items: center;
  }

  .side-books a {
    width: 100%;
    max-width: 200px;
  }

  .side-books img {
    width: 100%;
    max-width: 200px;
    height: auto;
  }

  .scienncePublicationHeader {
    font-size: 18px;
  }

  .books a {
    flex: 0 0 calc(50% - 5px);
    max-width: calc(50% - 5px);
  }

  .prev,
  .next {
    padding: 8px 12px;
    font-size: 16px;
  }
}
.journal-info {
  background-color: #3b6688;
  border-radius: 8px;
  gap: 10px;
  padding: 10px;
  position: relative;
}
.arrow-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow {
  position: relative;
  width: 10px; /* əvvəlki 60px idi, yarı ölçü */
  height: 10px; /* əvvəlki 60px idi */
  border-bottom: 2px solid white; /* əvvəlki 12px idi */
  border-right: 2px solid white; /* əvvəlki 12px idi */
  transform: rotate(-45deg);
  animation: arrow-load 2s infinite;
}

.arrow:nth-child(1) {
  right: 15px; /* əvvəlki 25px idi */
  animation-delay: -0.4s;
}
.arrow:nth-child(2) {
  animation-delay: -0.2s;
}
.arrow:nth-child(3) {
  left: 15px; /* əvvəlki 25px idi */
}

@keyframes arrow-load {
  0% {
    opacity: 0;
    transform: rotate(-45deg) translate(-30px, -30px);
  }
  50% {
    opacity: 1;
    transform: rotate(-45deg) translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: rotate(-45deg) translate(30px, 30px);
  }
}

/* ===== EXTRA SMALL MOBILE (max-width: 360px) ===== */
@media (max-width: 450px) {
  .changeIMG img {
    width: 334px;
    height: 130px;
  }
  .slider-wrapper {
    height: 200px;
  }

  .info-box {
    padding: 8px 10px;
  }

  .info-box .title {
    font-size: 12px;
  }

  .news-slides-wrapper {
    height: 260px;
  }

  .books a {
    flex: 0 0 100%;
    max-width: 180px;
    margin: 0 auto;
  }
}

/* ===== LANDSCAPE MOBILE (max-height: 500px) ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .slider-wrapper {
    height: 250px;
  }

  .news-slides-wrapper {
    height: 200px;
  }
}
