/* =========================================
   Joomla Cassiopeia - Custom user.css
   Styled for menu page class: article-cards
   ========================================= */

/* Page wrapper */
.article-cards {
  max-width: 1240px;
  margin: 48px auto;
  padding: 0 24px 48px;
}

/* Blog grid spacing */
.article-cards .blog-items {
  gap: 28px;
  align-items: stretch;
}

/* Card look */
.article-cards .blog-item,
.article-cards article {
  background: #ffffff;
  border: 1px solid #e7ecf2;
  border-radius: 20px;
  padding: 28px 28px 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
}

/* Hover effect */
.article-cards .blog-item:hover,
.article-cards article:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
  border-color: #d7e1ec;
}

/* Page heading area */
.article-cards .page-header {
  margin-bottom: 24px;
}

/* Titles */
.article-cards .page-header h1,
.article-cards .page-header h2,
.article-cards .page-header h3,
.article-cards h1,
.article-cards h2,
.article-cards h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1b2430;
}

/* Title links */
.article-cards .page-header a,
.article-cards h1 a,
.article-cards h2 a,
.article-cards h3 a {
  color: #1b2430;
  text-decoration: none;
}

.article-cards .page-header a:hover,
.article-cards h1 a:hover,
.article-cards h2 a:hover,
.article-cards h3 a:hover {
  color: #2459d3;
  text-decoration: none;
}

/* Intro text */
.article-cards p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.9;
  color: #4b5563;
}

/* Lists inside article intro if any */
.article-cards ul,
.article-cards ol {
  margin: 0 0 1rem 1.2rem;
  color: #4b5563;
  line-height: 1.9;
}

/* Images */
.article-cards img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 0 18px;
  display: block;
}

/* If intro image wrapper exists */
.article-cards .intro-image,
.article-cards .item-image {
  margin-bottom: 18px;
}

/* Article info / meta */
.article-cards .article-info,
.article-cards .list-inline,
.article-cards .item-meta {
  margin-bottom: 12px;
  color: #7b8794;
  font-size: 0.92rem;
}

/* Read more spacing */
.article-cards .readmore {
  margin-top: 18px;
}

/* Read more button - elegant smaller style */
.article-cards .readmore a,
.article-cards .readmore .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid #2f6df6;
  background: #2f6df6;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(47, 109, 246, 0.18);
  transition: all 0.2s ease;
}

.article-cards .readmore a:hover,
.article-cards .readmore .btn:hover {
  background: #255de0;
  border-color: #255de0;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(47, 109, 246, 0.22);
  transform: translateY(-1px);
}

/* Prevent oversized default buttons */
.article-cards .btn {
  font-size: 0.95rem;
}

/* Pagination */
.article-cards .pagination {
  margin-top: 32px;
  justify-content: center;
  gap: 6px;
}

.article-cards .pagination .page-link,
.article-cards .pagination a,
.article-cards .pagination span {
  border-radius: 10px;
  border: 1px solid #dbe3ec;
  padding: 8px 12px;
  color: #334155;
  background: #ffffff;
}

.article-cards .pagination .active .page-link,
.article-cards .pagination .active a,
.article-cards .pagination .active span {
  background: #2f6df6;
  border-color: #2f6df6;
  color: #ffffff;
}

/* Optional top page heading style if enabled */
.article-cards .page-title,
.article-cards .page-header h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

/* Better spacing for columns */
.article-cards .items-row {
  margin-bottom: 28px;
}

/* Remove extra empty spacing some themes add */
.article-cards .blog-item + .blog-item,
.article-cards article + article {
  margin-top: 0;
}

/* Smooth typography inside cards */
.article-cards strong {
  color: #253041;
}

/* Tables inside article intros if ever used */
.article-cards table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.article-cards table th,
.article-cards table td {
  border: 1px solid #e5eaf0;
  padding: 10px 12px;
}

/* Mobile */
@media (max-width: 991px) {
  .article-cards {
    margin: 28px auto;
    padding: 0 16px 32px;
  }

  .article-cards .blog-item,
  .article-cards article {
    padding: 22px 20px 20px;
    border-radius: 16px;
  }

  .article-cards .page-header h1,
  .article-cards .page-header h2,
  .article-cards .page-header h3,
  .article-cards h1,
  .article-cards h2,
  .article-cards h3 {
    font-size: 1.15rem;
    line-height: 1.5;
  }

  .article-cards p {
    font-size: 0.98rem;
    line-height: 1.8;
  }

  .article-cards img {
    height: 190px;
    border-radius: 12px;
  }

  .article-cards .readmore a,
  .article-cards .readmore .btn {
    padding: 8px 14px;
    font-size: 0.92rem;
    border-radius: 10px;
  }
}

/* Small phones */
@media (max-width: 575px) {
  .article-cards {
    padding: 0 14px 28px;
  }

  .article-cards .blog-item,
  .article-cards article {
    padding: 18px 16px 18px;
  }

  .article-cards img {
    height: 170px;
  }

  .article-cards .page-title,
  .article-cards .page-header h1 {
    font-size: 1.5rem;
  }
}