
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


.text-color {
  color: #731d81;
}
.assistant-<uniquifier> {
  font-family: "Assistant", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

body {
  font-family: "Assistant", sans-serif;
  margin: 0;
  padding-top: 10px;
  background-image: url("images/bk.png");
  background-repeat: repeat;
  background-size: auto;
  background-position: top left;
  direction: ltr;
  text-align: left;
}

p {
  line-height: 1.8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header and Navigation */
.top-stripe {
  background-color: #731d81;
  height: 5px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1030;
}

.header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  height: auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #731d81;
}

.logo-nav {
  max-width: 120px;
  height: auto;
  margin-left: 35%;
  justify-content: center;
}

.nav-list {
  display: flex;
  list-style: none;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.nav-item {
  margin-right: 3rem;
}

.nav-link {
  text-decoration: none;
  color: #444;
  font-weight: 500;
}

.nav-link-active {
  color: #731d81;
}

.btn-login {
  background-color: #731d81;
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

main {
  margin-top: 80px;
  padding: 2rem 5%;
}

.sticky-top {
  position: sticky;
  top: 20px;
}

/* Article Card Styling */
.article-card {
  background-color: #fff;
  font-size: 1.4em;
  line-height: 1.4;
  text-align: left;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  width: 100%;
  margin: 20px auto 0;
}

.article-card li {
  line-height: 2;
  font-weight: bold;
}

/* Image Styling */
.image-article {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.hero-text {
  font-size: 1.3rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* Category Filtering */
.sorting {
  margin-bottom: 2rem;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  width: 90%;
  margin: 0 auto;
  max-width: 1200px;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #731d81;
  border-radius: 5px;
  background-color: #fff;
  color: #731d81;
  font-size: 1.2rem;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #731d81;
  color: #fff;
}

#category-select-mobile {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

/* Books and Cards */
.books {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
}

.book-card {
  background-color: #fff;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  transition: transform 0.3s ease;
}

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

.cover-image {
  max-height: 330px;
  min-width: 240px;
  height: 100%;
  width: auto;
  object-fit: cover;
}

.card-content {
  padding: 2rem;
  width: 80%;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #731d81;
}

.card-title a {
  text-decoration: none;
  color: inherit;
  display: inline;
}

.card-title a:hover {
  text-decoration: underline;
  color: #731d81;
}

.card-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 1.5rem;
  margin-top: 20px;
}

.card-buttons {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.btn-preview,
.btn-download {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease;
}

.btn-preview {
  background-color: #731d81;
  color: #fff;
}

.btn-preview:hover {
  background-color: #2980b9;
}

.btn-download {
  background-color: #2ecc71;
  color: #fff;
}

.btn-download:hover {
  background-color: #27ae60;
}

/* Footer */
.footer {
  background-color: #731d81;
  color: #fff;
  padding: 3rem 5% 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-section {
  flex: 1;
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
}

.footer-list-item {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: #fff;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.social-icons a {
  color: #fff;
  font-size: 1.5rem;
  margin-left: 1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #555;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1000;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #333;
  margin-bottom: 5px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.read-more-link {
  display: none;
  color: #731d81;
  cursor: pointer;
  font-weight: bold;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
  }

  .hamburger {
    display: flex;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-item {
    margin: 10px 0;
  }

  .category-filter {
    display: none;
  }

  .category-filter-mobile {
    display: block;
  }

  .book-card {
    flex-direction: column;
    width: 100%;
  }

  .card-content {
    width: 100%;
    padding: 1.5rem;
  }

  .card-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: auto;
  }

  .btn-preview,
  .btn-download {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-section {
    margin-left: 0;
  }

  .card-description {
    position: relative;
  }

  .extra-content {
    display: none;
  }

  .card-description.expanded .extra-content {
    display: inline;
  }

  .read-more-link {
    display: inline-block;
    color: #731d81;
    cursor: pointer;
    font-weight: bold;
    background-color: #fff;
    padding-left: 5px;
    margin-top: 10px;
  }

  .flex-list-item {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
  }

  .image-article {
    max-width: 100%;
    margin: 10px auto;
  }

  .cover-image {
    max-height: none;
    width: 100%;
    object-fit: cover;
  }

  body {
    font-size: 16px;
  }

  .article-card {
    font-size: 1em;
    line-height: 1.6;
    padding: 1rem;
    text-align: left;
  }

  .article-card h5 {
    font-size: 1.2em;
    margin-bottom: 1rem;
  }

  .article-card p {
    margin-bottom: 1rem;
  }

  .article-card .image-article {
    margin: 1rem auto;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 1rem;
  }
}
/* Hide disabled buttons on mobile devices */
@media (max-width: 768px) {
  .card-buttons button:disabled {
    display: none;
  }
}
