.library-section {
  padding: 15px 0;
  font-family: "SolaimanLipi", Arial, sans-serif;
  color: #333;
}
.library-intro {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 25px;
  text-align: justify;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.library-card {
  background: #f9f9f9;
  border-left: 4px solid #006a4e;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.library-card h3 {
  margin-top: 0;
  color: #006a4e;
  font-size: 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.library-card ul {
  margin: 0;
  padding-left: 20px;
}
.library-card li {
  margin-bottom: 6px;
  font-size: 14px;
}
.lib-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  margin-bottom: 30px;
}
.lib-table th,
.lib-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
  font-size: 14px;
}
.lib-table th {
  background-color: #006a4e;
  color: white;
}
.lib-table tr:nth-child(even) {
  background-color: #f2f2f2;
}
.rules-box {
  background-color: #fff9e6;
  border: 1px solid #ffe0b3;
  padding: 15px;
  border-radius: 4px;
}
.rules-box h4 {
  margin-top: 0;
  color: #b36b00;
  font-size: 16px;
}

/* Online Library Styles */
.online-library-container {
  background: #ffffff;
  padding: 20px;
  margin-top: 30px;
  font-family: inherit;
}

.online-library-header {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.online-library-header h2 {
  color: #5faad9;
  font-size: 28px;
  font-weight: bold;
  margin: 0;
}

.books-count {
  text-align: center;
  color: #666666;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Grid Layout for Books */
.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

/* Responsive Grid for Smaller Screens */
@media (max-width: 992px) {
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .books-grid {
    grid-template-columns: 1fr;
  }
}

/* individual Book Card */
.book-card {
  background: #fdfdfd;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.book-img-box {
  width: 100%;
  max-width: 160px;
  height: 180px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.book-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-title {
  font-size: 16px;
  color: #111111;
  font-weight: bold;
  margin: 8px 0 4px 0;
}

.book-author {
  font-size: 12px;
  color: #666666;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

/* Download Button styling */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #27cf5f;
  color: #ffffff !important;
  text-decoration: none;
  padding: 7px 18px;
  font-size: 13px;
  border-radius: 4px;
  transition: background 0.2s ease;
  font-weight: 500;
}

.btn-download:hover {
  background-color: #09f871;
}

.btn-download i {
  font-size: 15px;
}

.online-library-section {
  margin-top: 40px;
}

.online-library-section h2 {
  text-align: center;
  color: #00a647;
  font-size: 32px;
}

.online-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.online-book-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  text-align: center;
  border-radius: 5px;
  transition: 0.3s;
}

.online-book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px #ddd;
}

.online-book-card img {
  width: 200px;
  height: 260px;
  object-fit: cover;
}

.online-book-card h3 {
  font-size: 18px;
  margin-top: 15px;
}

.online-book-card p {
  font-size: 14px;
}

.read-btn {
  display: inline-block;
  background: #28a745;
  color: white;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
}
