:root {
  --primary: #1f2a44; /* navy */
  --secondary: #f4f6f9;
  --card-bg: #ffffff;
  --text-dark: #2c2c2c;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--secondary);
}
.ebook-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 0;
  text-align: center;
}

.ebook-logo {
  width: 140px;
  height: auto;
  margin-bottom: 16px;
}

.ebook-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.ebook-header p {
  margin-top: 6px;
  font-size: 16px;
  color: #666;
  letter-spacing: 0.5px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding: 80px;
  list-style: none;
}

.book-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
}

.book-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(31, 42, 68, 0.05),
    rgba(31, 42, 68, 0)
  );
}

.book-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.book-card:hover img {
  transform: scale(1.05);
}
/* ===== SECTION PEMISAH ===== */
.ebook-section {
  padding: 40px 80px 0;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  position: relative;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: var(--primary);
  display: block;
  margin-top: 8px;
  border-radius: 2px;
}

/* ===== GRID LANDSCAPE ===== */
/* ===== RESPONSIVE LANDSCAPE E-BOOK ===== */

/* Desktop & Tablet */
.book-grid.landscape {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Jaga rasio landscape */
.book-grid.landscape img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .book-grid {
    padding: 32px 20px;
    gap: 20px;
  }

  /* Landscape jadi 1 kolom di HP */
  .book-grid.landscape {
    grid-template-columns: 1fr;
  }

  /* Portrait tetap enak dibaca */
  .book-grid.portrait {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-card {
    padding: 16px;
  }
}
