/* ==========================================================================
   Blogs Page Stylesheet (css/blogs-page.css)
   100% Matching "blogs page.png" Reference Design
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Hero Section (Uses Standardized .services-hero-section)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   1. Topic Filter Pills Strip (Dark Theme with Deep Purple Gradient)
   -------------------------------------------------------------------------- */
.blog-pills-section {
  padding: 30px 0 30px 0;
  background:
    radial-gradient(rgba(224, 30, 90, 0.22) 1.5px, transparent 1.5px),
    radial-gradient(rgba(167, 71, 254, 0.20) 1.5px, transparent 1.5px),
    linear-gradient(135deg, #2d1060 0%, #3b0f7a 50%, #280d58 100%) !important;
  background-size: 32px 32px, 32px 32px, 100% 100% !important;
  background-position: 0 0, 16px 16px, 0 0 !important;
  position: relative;
}

.blog-pills-row {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none; /* Firefox */
}

.blog-pills-row::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.blog-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  text-decoration: none !important;
  cursor: pointer;
}

.blog-pill-item:hover {
  border-color: rgba(255, 82, 143, 0.6);
  color: #ffffff;
  background: rgba(255, 82, 143, 0.22);
  transform: translateY(-2px);
}

.blog-pill-item.active {
  background: linear-gradient(135deg, #ff528f 0%, #e01e5a 100%);
  border-color: #ff528f;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(224, 30, 90, 0.5);
}

.blog-pill-item.active i {
  color: #ffffff;
}

.blog-pill-item i {
  font-size: 13px;
  color: #ff528f;
  transition: color 0.2s ease;
}

/* --------------------------------------------------------------------------
   2. Main Blog Cards Grid Section (Light Theme Gradient)
   -------------------------------------------------------------------------- */
.blogs-grid-section {
  padding: 60px 0 80px 0;
  background: linear-gradient(to right, #fde8ef 0%, #fff2f6 30%, #ffffff 65%, #f1e4fc 100%) !important;
  position: relative;
}

.blog-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1.5px solid #f1f5f9;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(31, 20, 53, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none !important;
}

.blog-card:hover {
  border-color: #fce4ec;
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(224, 30, 90, 0.1);
}

.blog-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 205px;
  overflow: hidden;
  background-color: #f8fafc;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-img {
  transform: scale(1.08);
}

/* Gradient overlay on image bottom */
.blog-card-img-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
  pointer-events: none;
}

/* Floating Category Tag Badge on Image Top-Left */
.blog-category-tag-floating {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e01e5a;
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.blog-category-tag-floating i {
  font-size: 11px;
}

.blog-card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-title {
  font-size: 17.5px;
  font-weight: 600;
  color: #1e1b4b;
  line-height: 1.35;
  margin-bottom: 10px;
  transition: color 0.25s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card:hover .blog-card-title {
  color: #e01e5a;
}

.blog-card-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Bottom Footer Row */
.blog-card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1.5px solid #f8fafc;
  padding-top: 14px;
  margin-top: auto;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.blog-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.blog-card-meta i {
  font-size: 11.5px;
  color: #e01e5a;
}

/* "Read Article →" Action Link */
.blog-read-more-btn {
  font-size: 13px;
  font-weight: 600;
  color: #e01e5a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  transition: gap 0.2s ease;
}

.blog-card:hover .blog-read-more-btn {
  gap: 9px;
  color: #c2185b;
}

/* --------------------------------------------------------------------------
   3. Pagination Styling
   -------------------------------------------------------------------------- */
.blog-pagination-wrapper {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-link-custom {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.page-link-custom:hover {
  border-color: #fecdd3;
  color: #e01e5a;
  background: #fff0f4;
}

.page-link-custom.active {
  background: #e01e5a;
  border-color: #e01e5a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(224, 30, 90, 0.3);
}

/* --------------------------------------------------------------------------
   4. Newsletter Subscription Banner
   -------------------------------------------------------------------------- */
.blog-newsletter-section {
  padding: 20px 0 80px 0;
  background: #ffffff;
}

.blog-newsletter-card {
  background: linear-gradient(135deg, #fdf3f6 0%, #fff8fb 100%);
  border-radius: 28px;
  padding: 36px 48px;
  border: 1.5px solid #fce4ec;
  box-shadow: 0 10px 30px rgba(224, 30, 90, 0.04);
}

.newsletter-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #fecdd3;
  color: #e01e5a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 18px rgba(224, 30, 90, 0.1);
  flex-shrink: 0;
}

.newsletter-title {
  font-size: 22px;
  font-weight: 600;
  color: #1e1b4b;
  margin-bottom: 6px;
}

.newsletter-desc {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 0;
}

.newsletter-input-group {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 50px;
  padding: 5px 6px 5px 18px;
  border: 1.5px solid #f1f5f9;
  box-shadow: 0 4px 16px rgba(31, 20, 53, 0.04);
}

.newsletter-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: #1e1b4b;
  width: 100%;
}

.btn-newsletter-subscribe {
  background: linear-gradient(135deg, #e01e5a 0%, #c2185b 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 14px rgba(224, 30, 90, 0.3);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-newsletter-subscribe:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(224, 30, 90, 0.4);
}
