/* ================================
   Webstories Category Page
================================ */

.webstories-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ================================
   Category Header
================================ */

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
}

.category-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #001070;
  margin: 0;
}

.more-link {
  text-decoration: none;
  font-weight: 600;
  color: #001070;
  transition: 0.3s ease;
}

.more-link:hover {
  color: #00094a;
}

/* ================================
   Story Grid
================================ */

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

/* ================================
   Story Card
================================ */

.story-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: 0.3s ease;
  position: relative;
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.story-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.story-title {
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
}

/* Gradient overlay effect */
.story-card::after {
  content: '';
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  pointer-events: none;
}

/* ================================
   Pagination
================================ */

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 40px 0;
}

.pagination a {
  background: #001070;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.pagination a:hover {
  background: #00094a;
}

.pagination a.disabled {
  background: #ccc;
  pointer-events: none;
}

/* ================================
   No Story Message
================================ */

.webstories-container p {
  text-align: center;
  font-size: 16px;
  margin-top: 30px;
  color: #666;
}

/* ================================
   Responsive
================================ */

@media (max-width: 768px) {
  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .story-card img {
    height: 260px;
  }
}

@media (max-width: 480px) {
  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-card img {
    height: 220px;
  }
}