/* === Layout Utilities === */
.container-fluid {
  max-width: 1200px;
  margin: 0 auto;
}

/* === Buttons === */
.btn {
  font-weight: 500;
  border-radius: 0.375rem;
}
.btn-dark { background-color: #212529; color: #fff; }
.btn-secondary { background-color: #6c757d; color: #fff; }
.btn-dark:hover { background-color: #000; }
.btn-secondary:hover { background-color: #5a6268; }
.btn-primary:hover { background-color: #0b5ed7; }

/* === Audio & Video Frames === */
.audio-frame { width: 100%; height: 120px; border: none; }
.video-frame { width: 100%; height: 100%; border: none; }

/* === Cards (includes Book Cards) === */
.card, .book-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 0.5rem;
  border: 1px solid #e9ecef;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover, .book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.75rem 1.25rem rgba(0,0,0,0.15);
}
.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}
.card-title, .book-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #34495e;
}
.card-text, .book-desc {
  font-size: 0.95rem;
  color: #444; /* improved contrast */
  line-height: 1.5;
  min-height: 60px;
}
.card-img-top, .book-img {
  height: 280px;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid #e9ecef;
  border-radius: 0.5rem 0.5rem 0 0;
}
.card .badge, .book-meta .badge {
  font-size: 0.8rem;
  background-color: #6c757d;
}
.card .btn { margin-top: auto; }

/* === Text Utilities === */
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-muted { color: #6c757d !important; }

/* === Share Buttons === */
.share-buttons .btn {
  min-width: 100px;
  text-align: center;
}

/* === Page Title === */
.page-title {
  font-weight: 700;
  color: #2c3e50;
  font-size: 1.75rem;
}

/* === Grid Helpers === */
.row.g-4 { justify-content: center; }

/* === Disclaimer === */
.disclaimer {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* === Navbar === */
.navbar-brand { font-size: 1.25rem; letter-spacing: 0.5px; }
.nav-link { font-weight: 500; }
.nav-link:hover { text-decoration: underline; }

/* === Footer === */
.footer { background-color: #212529; }
.footer h6 { margin-bottom: 0.75rem; }
.footer a {
  color: #bbb;
  transition: color 0.2s ease;
}
.footer a:hover { color: #fff; text-decoration: underline; }

/* === Hidden & Animation === */
.hidden-post { display: none !important; }
.fade-in {
  animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  font-size: 1rem; /* base size */
}
@media (max-width: 576px) {
  body {
    font-size: 1.1rem; /* slightly larger on phones */
  }
  h1, h2 {
    font-size: 1.4rem;
  }
}

.nav-tabs, .nav-pills {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-tabs .nav-item, .nav-pills .nav-item {
  flex: 1 0 auto;
  text-align: center;
}

.card-title {
  font-size: 1rem; /* slightly larger for readability */
}
@media (max-width: 576px) {
  .card-title {
    font-size: 0.95rem;
  }
  .card-text {
    font-size: 0.85rem;
  }
}

body {
  font-size: 1rem;
  line-height: 1.5;
}
@media (max-width: 576px) {
  body { font-size: 1.1rem; }
  h1, h2 { font-size: 1.4rem; }
  .card-title { font-size: 1rem; }
  .card-text { font-size: 0.9rem; }
}


