/* --- PREMIUM BLOG PAGE STYLES --- */

.blog-hero-section {
    padding-top: 180px;
    padding-bottom: 60px;
    background: radial-gradient(circle at center, rgba(222, 0, 0, 0.05) 0%, transparent 70%);
}

.main-headline span {
    color: #de0000;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

/* Glassy Filter Pills */
.filter-pill {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 25px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    outline: none;
}

.filter-pill:hover, .filter-pill.active {
    background: #de0000;
    color: #fff;
    border-color: #de0000;
    box-shadow: 0 5px 15px rgba(222, 0, 0, 0.4);
    transform: translateY(-3px);
}

/* Pagination Styling */
.pagination .page-link {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Anton', sans-serif;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 5px;
    transition: 0.3s;
}

.pagination .page-item.active .page-link {
    background: #de0000;
    border-color: #de0000;
}

.pagination .page-link:hover {
    background: rgba(222, 0, 0, 0.2);
    color: #fff;
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .blog-hero-section { padding-top: 140px; }
    .main-headline { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .filter-pill { padding: 6px 15px; font-size: 0.8rem; }
}












/* --- PREMIUM MAVEX LOADER --- */
.mavex-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(222, 0, 0, 0.1);
    border-top: 3px solid #de0000;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Glassy Coming Soon Container */
.coming-soon-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 60px 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}




















/* ==============================
   Recommended Resources (MAVEX)
   Works even if your section uses Bootstrap container
   ============================== */

/* Target by heading text area (safe selectors) */
section.container.mt-5:has(h3),
section.container:has(h3) {
  position: relative;
}



/* Specifically style the Recommended Resources section */
section.container.mt-5:has(h3.mb-3) {
  margin-top: 48px !important;
  margin-bottom: 32px !important;
  padding: 28px 22px !important;

  border-radius: 18px;
  background: linear-gradient(180deg, rgba(223, 2, 1, 0.12) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.25) 100%);
  border: 1px solid rgba(223, 2, 1, 0.22);

  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

/* Title */
section.container.mt-5:has(h3.mb-3) h3.mb-3 {
  margin: 0 0 14px 0 !important;
  font-weight: 800;
  letter-spacing: 0.4px;
  font-size: 1.25rem;
  color: #ffffff;
}

/* Small helper line (optional: if you later add a <p class="desc">) */
section.container.mt-5:has(h3.mb-3) .desc {
  margin: 0 0 14px 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Link container paragraph */
section.container.mt-5:has(h3.mb-3) p {
  margin: 0 !important;
}

/* The direct link button look */
section.container.mt-5:has(h3.mb-3) a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;

  text-decoration: none !important;
  font-weight: 700;
  letter-spacing: 0.2px;

  color: #ffffff;
  background: linear-gradient(90deg, rgba(26, 0, 0, 0.85) 0%, rgba(223, 2, 1, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow: 0 14px 35px rgba(223, 2, 1, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

/* Add a subtle arrow using CSS only */
section.container.mt-5:has(h3.mb-3) a::after {
  content: "→";
  font-weight: 900;
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Hover */
section.container.mt-5:has(h3.mb-3) a:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 18px 45px rgba(223, 2, 1, 0.28);
}

/* Focus (keyboard accessibility) */
section.container.mt-5:has(h3.mb-3) a:focus-visible {
  outline: 2px solid rgba(223, 2, 1, 0.65);
  outline-offset: 3px;
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 768px) {
  section.container.mt-5:has(h3.mb-3) {
    padding: 22px 16px !important;
    border-radius: 16px;
  }

  section.container.mt-5:has(h3.mb-3) h3.mb-3 {
    font-size: 1.12rem;
  }

  section.container.mt-5:has(h3.mb-3) a {
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
  }
}

@media (max-width: 420px) {
  section.container.mt-5:has(h3.mb-3) {
    margin-top: 36px !important;
    padding: 18px 14px !important;
  }

  section.container.mt-5:has(h3.mb-3) a {
    font-size: 0.92rem;
  }
}