.btn {
  color: var(--primary);
  display: block;
  width: fit-content;
  font-size: 20px;
  padding: 10px 24px;
  border-radius: 8px;
  background-color: var(--secondary);
  align-items: center;
  margin-top: 5%;
  text-align: center;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

/* MAIN */

/* HERO */
.hero-sector {
  display: flex;
  gap: 50px;
  width: 95%;
  height: 100vh;
  margin: 5% auto;
  /* padding-top: 5%; */
  margin-bottom: 10%;
}

.hero-block {
  width: 60%;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  display: grid;
  height: 100vh;
  padding: 2%;
  box-shadow: 0 3px 20px #00000058;
}

.hero-txt {
  color: var(--text);
  z-index: 2;
  margin-top: auto;
  width: 100%;
}

.hero-date {
  font-size: 20px;
  color: var(--accent);
  opacity: .8;
}

.hero-title {
  font-size: 45px;
  color: var(--primary);
  font-weight: bold;
  text-decoration: none;
}

.hero-post-desp {
  font-size: 20px;
  font-weight: normal;
  line-height: 1.1;
  color: #f0f0f0;
  opacity: .9;
  margin-top: 1%;
  width: 100%;
  display: block;
}

/* hero SIDEBAR  */
.hero-sidebar {
  width: 50%;
}

.hero-sidebar h2 {
  font-size: 25px;
}

.hero-sidebar-block {
  margin-top: 3%;
  display: block;
}

.hero-sidebar-li {
  display: flex;
  gap: 20px;
  align-items: center;
  width: 100%;
  margin-top: 3%;
  border: none;
  border-bottom: 1px solid var(--accent-lit);
  padding: 12px;
  transition: background-color 0.3s ease;
}

.hero-sidebar-li:hover {
  border-bottom: 2px solid var(--accent-lit);
}

.hero-sidebar-li img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
}

.hero-sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-sidebar-links .categ {
  font-size: 13px;
  background-color: var(--accent-lit);
  width: fit-content;
  text-align: center;
  padding: 6px 12px;
  padding-bottom: 8px;
  border-radius: 5px;
  color: var(--accent);
  font-weight: bold;
  display: block;
}

.hero-sidebar .link {
  font-size: 15px;
  color: var(--secondary);
  display: block;
}

/* book section */

fieldset {
  border: none;
  border-top: 3px solid var(--accent);
  text-align: center;
  width: 50%;
  margin: auto;

}

fieldset legend {
  font-size: 25px;
  padding: 0 10px;
}

/* Book Sector */
.book-sector {
  margin: 5% auto;
}

.books-block {
  display: flex;
  gap: 5%;
  padding: 3% 1% 2.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;

}

.book-card {
  flex: 0 0 min(70vw, 450px);
  aspect-ratio: 4/ 4;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  scroll-snap-align: center;
  border: 1px solid #0000000d;
  /* cursor: pointer; */
}

.book-category {
  font-size: 15px;
  background: #ff0000a1;
  border: 1px solid var(--accent);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 10px;
  display: flex;
  font-weight: 600;
  justify-content: center;
  width: fit-content;
  margin: 3%;
  margin-left: auto;

}

.book-card:focus-within,
.book-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.book-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 5%;
  background: linear-gradient(to top, #000000, #000000df, #000000d8, #00000000);
  color: white;
  z-index: 1;
  transform: translateY(20vb);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  /* opacity: 0; */
}

.book-card:hover .book-content,
.book-card:focus-within .book-content {
  opacity: 1;
  transform: translateY(0);
}

.book-content h3 {
  font-size: 25px;
  margin-bottom: 3%;
  /* color: var(--secondary-lit); */
}

.book-content .book-desc {
  font-size: 15px;
  border-top: 1px solid var(--text);
  line-height: 1.2;
  margin: auto;
  margin-left: 0;
  opacity: 0;
}

.book-content .small,
.small-p {
  border-top: 0px solid var(--text);
  font-size: 15px;
}

.book-btn {
  background-color: var(--accent);
  width: 100%;
  margin-top: 5%;
}

.book-card:hover .book-content p,
.book-card:focus-within .book-content p {
  opacity: 1;
  transform: translateY(0);
}

/* main blog section */
.blog-sector {
  width: 90%;
  margin: auto;
  gap: 40px;
  padding: 40px 0;
}

.blog-block {
  flex: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 5%;
  margin-top: 2%;
}

/* CARD */
.blog-list {
  display: block;
  flex-direction: column;
  background-color: var(--primary);
  padding: 10px;
  padding-bottom: 30px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-list:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 10px #8f8f8f1a;
}

.blog-list img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.blog-flex-top {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.blog-list .date {
  font-size: 15px;
  color: gray;
  margin: 10px 0;
}

.blog-flex-top .category {
  font-size: 12px;
  font-weight: bold;
  color: var(--accent);
}

.blog-list h3 {
  font-size: 20px;
  margin-bottom: 1px;
}

.blog-list .desc {
  font-size: 14px;
  color: var(--secondary);
}

.blog-list .read-more {
  color: var(--accent);
  font-size: 12px;
}

.blog-list small {
  display: block;
  margin-top: 10px;
  /* color: gray; */
}

.home-blog-btn {
  width: 30%;
  margin: auto;
}

/* SIDEBAR */
.blog-sidebar {
  flex: 1;
}

.blog-sidebar h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.blog-categ-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.blog-categ-list li {
  margin-top: 10px;
  /* background-color: var(--secondary); */
  border: 1px solid var(--secondary);
  /* padding: 1px 20px; */
  width: 100px;
  height: 30px;
  padding-bottom: 35px;
  align-content: center;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
}

.blog-categ-list li a {
  color: var(--secondary);
  font-size: 14px;
}

/* SIDE POSTS */
.side-post {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.side-post img {
  width: 70px;
  height: 50px;
  object-fit: cover;
}

.side-post p {
  font-size: 14px;
}

/* BUTTON */
.view-all {
  width: 100%;
  padding: 10px;
  background: #ddd;
  border: none;
  cursor: pointer;
  font-weight: bold;
}


/* event sector */

.event-block {
  width: 100%;
  margin: auto;
  display: flex;
  gap: 20px;
  padding: 10px 0 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.event-li {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 0 0 min(85vw, 600px);
  scroll-snap-align: center;
  margin-top: 2%;
  border: 1px solid #0000000d;
  background-color: var(--primary);
  padding: 15px;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-li:hover {
  transform: translateY(-8px);
  /* border: 1px solid rgba(0, 0, 0, 0.155); */
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.event-li img {
  width: 250px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.event-txt-block {
  padding: 0 20px;

}

.event-flex {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-bottom: 3%;
}



.event-flex span {
  font-size: 15px;
  color: #00000080;
}

.event-icons {
  width: 20px;
  color: var(--accent);
  padding-right: 5px;
}

.event-date b {
  color: var(--accent);
  padding-right: 1%;
}

.event-block .title {
  font-size: 25px;
  /* margin-bottom: 10px; */
  /* text-align: center; */
}

.event-block .desc {
  font-size: 15px;
  line-height: 1.5;
}

.event-btn {
  width: 100%;
  margin-top: 5%;
  background-color: var(--secondary);
  box-shadow: 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-link {
  padding: 8px 16px;
  border: 1px solid #f4b9b991;
  color: var(--secondary);
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

.page-link:hover {
  background-color: #ffe6e6;
}

.page-link.active {
  background-color: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.page-dots {
  color: #555;
  font-weight: bold;
  letter-spacing: 2px;
}

/* Featured Video Section */
.video-sector {
  width: 80%;
  margin: 5% auto;
  text-align: center;
}

.video-block {
  margin-top: 2%;
  height: 100vh;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: var(--secondary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.video-block iframe {
  width: 100%;
  height: 100vh;
  border-radius: 15px;
}


@media (max-width: 768px) {

  /* HERO - home */
  .hero-sector {
    flex-direction: column;
    /* display: block; */
    width: 95%;
    height: 100%;
    margin: 0% auto;
    margin-bottom: 5%;
    padding-top: 5%;
    height: fit-content;
  }

  .hero-block {
    height: 80vh;
    width: 100%;
    padding: 4%;
    align-content: end;
  }

  .hero-txt {
    margin-top: 3%;
  }

  .hero-date {
    font-size: 15px;
    margin-bottom: 2%;
  }

  .hero-title {
    font-size: 35px;
    font-weight: bold;
  }

  .hero-post-desp {
    font-size: 15px;
    margin-top: 1%;
  }


  /* hero SIDEBAR  */
  .hero-sidebar {
    width: 100%;
    height: auto;

  }

  .hero-sidebar h2 {
    font-size: 30px;
  }

  .hero-sidebar-block {
    margin-top: 0%;
    height: min-content;
    max-height: max-content;
  }

  .hero-sidebar-li {
    margin-bottom: 1%;
    margin-top: 0;
    border-bottom: 2px solid var(--accent-lit);
    padding-bottom: 10px;
  }

  .hero-sidebar-li img {
    width: 100px;
    height: 60px;
    border-radius: 8px;
    object-fit: auto;
    object-position: top;
  }

  .hero-sidebar-links {
    gap: 12px;
  }

  .hero-sidebar-links .categ {
    font-size: 13px;
  }

  .hero-sidebar .link {
    font-size: 20px;
    color: var(--secondary);
  }

  .hero-sidebar-btn {
    width: 100%;
  }

  /* book section */

  fieldset {
    border-top: 2px solid var(--accent);
    width: 80%;
  }

  fieldset legend {
    font-size: 25px;
  }

  /* Book Sector */
  .book-sector {
    margin-top: 10%;
    height: min-content;
  }

  .books-block {
    margin-top: 1%;
    padding-top: 5%;
  }

  .book-content h3 {
    font-size: 30px;
  }

  .book-content p {
    font-size: 15px;
    padding-top: 1%;
  }

  .book-btn {
    margin-top: 5%;
  }


  /* event sector */

  .event-li {
    flex: 0 0 min(65vw, 600px);
    flex-direction: column;
  }

  .event-li img {
    width: 100%;
    height: 40vh;
    object-fit: cover;
    border-radius: 10px;
  }

  .event-txt-block {
    width: 100%;
  }

  .event-date {
    font-size: 15px;
    color: gray;
    padding-bottom: 2%;
  }

  .event-date b {
    color: var(--accent);
    padding-right: 1%;
  }

  .event-block .title {
    font-size: 25px;
    margin-bottom: 10px;
    margin-top: 3%;
    /* text-align: center; */
  }

  .event-block .desc {
    font-size: 15px;
    line-height: 1.5;
  }

  .event-btn {
    width: 100%;
    margin-top: 8%;
  }


  /* main blog section */
  .blog-sector {
    width: 95%;
    flex-direction: column;
    gap: 40px;
    padding: 40px 0;
  }

  .blog-block {
    display: block;
    margin-top: 3%;
  }

  .home-blog-btn {
    width: 90%;
  }


  /* CARD */
  .blog-list {
    display: flex;
    flex-direction: column;
  }

  .blog-list:hover {
    transform: translateY(-8px);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
  }

  .blog-list img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
  }

  .blog-flex-top {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: start;
  }

  .blog-list .date {
    font-size: 15px;
    /* color: gray; */
    margin: 10px 0;
    text-align: center;
    margin-left: auto;
    margin-top: 3%;
  }

  .blog-flex-top .category {
    font-size: 12px;
    font-weight: bold;
    color: var(--accent);
  }

  .blog-list h3 {
    font-size: 30px;
    margin-bottom: 10px;
  }

  .blog-list .desc {
    font-size: 15px;
    /* color: #555; */
  }

  .blog-list .read-more {
    color: var(--accent);
    font-size: 15px;
  }

  .blog-list small {
    display: block;
    margin-top: 10px;
    color: gray;
  }

  /* SIDEBAR */
  .sidebar {
    flex: 1;
  }

  .sidebar h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  /* BUTTON */
  .view-all {
    width: 100%;
    padding: 10px;
    background: var(--secondary);
    border: none;
    cursor: pointer;
    font-weight: bold;
  }

  /* Video Sector Mobile */
  .video-sector {
    width: 95%;
    margin-top: 10%;
    margin-bottom: 5%;
  }
}


@media (max-width: 600px) {
  .hero-sector {
    width: 95%;
    margin: 0% auto;
    gap: 30px;
    padding-top: 5%;
  }

  .hero-txt {
    margin-bottom: 0;
  }


  .hero-date {
    font-size: 12px;
  }

  .hero-title {
    font-size: 25px;
  }

  .hero-post-desp {
    font-size: 13.5px;
    opacity: 1;
    margin-top: 2%;
  }

  .hero-sidebar {
    width: 100%;
    margin-top: 1%;
  }

  .hero-sidebar h2 {
    font-size: 25px;
    margin-bottom: 0;
  }

  .hero-sidebar-block {
    margin-top: 0%;
  }

  .hero-sidebar-li {
    margin-top: 0%;
    margin-bottom: 3%;
    padding-bottom: 10px;
  }

  .hero-sidebar-li img {
    border-radius: 6px;
  }

  .hero-sidebar .link {
    font-size: 13px;
  }

  .hero-sidebar-btn {
    width: 100%;
    font-size: 15px;
  }

  /* book section */

  fieldset {
    width: 90%;
    margin-bottom: 5%;

  }

  fieldset legend {
    font-size: 20px;
  }

  /* Book Sector */
  .book-sector {
    margin-top: 15%;
  }

  .books-block {
    gap: 10%;
    padding: 3% 5% 2.8rem;
  }

  .book-card {
    flex: 0 0 min(90vw, 750px);
    object-fit: cover;
  }

  .book-content h3 {
    font-size: 20px;
  }

  .book-content p {
    font-size: 12px;
    width: 100%;
  }


  /* event sector */

  .event-sector {
    margin-top: 10%;
    margin-bottom: 0%;
  }

  .event-li {
    flex-direction: column;
    min-width: 98%;
    padding: 3% 5% 1.8rem;
  }

  .event-li img {
    height: 40vh;
  }

  .event-txt-block {
    padding: 0 1px;
  }

  .event-date {
    font-size: 12px;
  }


  .event-block .title {
    font-size: 25px;
    margin-bottom: 5px;
  }

  .event-block .desc {
    font-size: 12px;
  }

  .event-btn {
    margin-top: 5%;
  }

  /* main blog section */
  .blog-sector {
    margin-top: 1%;
  }

  .blog-flex {
    width: 95%;
    padding: 30px 0;
  }

  /* GRID */
  .blog-block {
    gap: 50px;
    margin-bottom: 10%;
    padding-top: 3%;
  }

  /* CARD */

  .blog-list {
    margin-bottom: 8%;
  }

  .blog-list img {
    height: 300px;
  }

  .blog-list .date {
    font-size: 12px;
  }

  .blog-flex-top .category {
    font-size: 12px;
  }

  .blog-list h3 {
    font-size: 25px;
  }

  .blog-list .desc {
    font-size: 12px;
  }

  .blog-list .read-more {
    font-size: 12px;
  }

  .home-blog-btn {
    width: 100%;
  }
}