* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Serif Bengali', serif;
  background-color: #f7f7f7;
  color: #222;
}

/* Header */
.category-header {
  background: #ffffff;
  padding: 30px 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.category-header h1 {
  margin: 0;
  font-size: 28px;
}

.category-header p {
  margin-top: 8px;
  color: #555;
  font-size: 14px;
}

/* Story list */
.story-list {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 15px;

  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Desktop: 5 columns */
  gap: 10px;
}

/* Story card */
.story-card {
  display: block;
  padding: 22px 18px;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: inherit;

  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.story-card h2 {
  margin: 0;
  font-size: 20px;
  font-weight: normal;
  line-height: 1.5;
}

/* Hover effect */
.story-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

/* Tablet */
@media (max-width: 1024px) {
  .story-list {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
  }
}

/* Mobile */
@media (max-width: 600px) {
  .category-header h1 {
    font-size: 22px;
  }

  .story-list {
    grid-template-columns: 1fr; /* Mobile: 1 column */
  }

  .story-card h2 {
    font-size: 18px;
  }
}


/* ==================================================
   Optional Mini Navigation (Compact Version) Start
================================================== */

.back-btn {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}


.mini-episode-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;

  padding: 12px 10px;
  margin-bottom: 0;

  background-color: #0f0f0f; /* footer match */
}

/* ===== Single Item ===== */
.mini-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 72px;           /* 👈 desktop smaller */
  padding: 6px 12px;         /* 👈 compact */

  background-color: #1e1e1e;
  color: #ffffff;

  font-size: 0.85rem;        /* 👈 desktop smaller text */
  font-weight: 500;
  line-height: 1.2;

  border-radius: 5px;
  text-decoration: none;

  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease;
}



/* ===== Hover Effect ===== */
.mini-nav-item:hover {
  color: #2f80ff;
  background-color: #e6e6e6;

  box-shadow:
    0 0 0 1px rgba(47, 128, 255, 0.35),
    0 0 8px rgba(47, 128, 255, 0.3);

  transform: translateY(-1px);
}

/* ================= Tablet ================= */
@media (max-width: 768px) {
  .mini-episode-nav {
    gap: 8px;
    padding: 10px 8px;
  }

  .mini-nav-item {
    min-width: 68px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

/* ================= Mobile ================= */
@media (max-width: 480px) {
  .mini-episode-nav {
    gap: 6px;
    padding: 8px 6px;
  }

  .mini-nav-item {
    min-width: auto;       /* text-based width */
    padding: 5px 9px;
    font-size: 0.78rem;
    border-radius: 4px;
  }
}

/* ==================================================
   Optional Mini Navigation (Compact Version) End
================================================== */

