/* Global layout */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #070000ff;
  background-image: url('icon-kitab.png');
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.content {
  flex: 1;
}

/* Card transparan */
.transparent-card {
  background: rgba(255, 255, 255, 0.404);
  border: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.transparent-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-img-top {
  max-height: 250px;
  object-fit: cover;
}

/* Small Card */
.small-card {
  max-width: 300px;
  margin: auto;
  border-radius: 12px;
}

.small-card img {
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.small-card .card-body {
  padding: 1rem;
}

.small-card .card-title {
  font-size: 1.5rem;
}

@media (max-width: 576px) {
  .small-card {
    max-width: 90%;
  }

  .small-card img {
    height: 150px;
  }

  .small-card .card-title {
    font-size: 1rem;
  }
}

/* Kitab Card (Perpustakaan) */
.kitab-card {
  background-color: #fffcfcb8;
  border-radius: 15px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  height: 130px;
  transition: transform 0.2s ease;
}

.kitab-card:hover {
  transform: translateY(-5px);
}

.kitab-cover img {
  height: 120px;
  border-radius: 10px;
}

.kitab-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin: 0;
}

.kitab-author {
  font-style: italic;
  color: #555;
  margin: 0;
}

a.kitab-link {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 480px) {
  .kitab-card {
    gap: 10px;
  }

  .kitab-title {
    font-size: 1rem;
  }

  .kitab-author {
    font-size: 0.9rem;
  }
}
