.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.trending-big-card {
  position: relative;
  color: white;
}
.trending-big-card-img {
  width: 100%;
  height: 412px;
  object-fit: cover;
  filter: brightness(0.7);
  border-radius: 0.25rem;
}
.trending-big-card .card-title {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 1.75rem;
  font-weight: bold;
}

/* ===========================
   TEMPLATE 2 MOBILE RESPONSIVE
   =========================== */

/* Mobile Container Padding */
@media (max-width: 767.98px) {
  .container-fluid.px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .container.px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Trending Section - Mobile */
@media (max-width: 767.98px) {
  .trending-big-card-img {
    height: 250px;
  }

  .trending-big-card .card-title {
    font-size: 1.25rem;
    bottom: 0.75rem;
    left: 0.75rem;
  }

  .article-card-img {
    height: 150px;
  }
}

/* Latest Section - Mobile */
@media (max-width: 767.98px) {
  .list-unstyled li .d-flex img {
    width: 80px !important;
    height: 80px !important;
  }

  .list-unstyled li h6 {
    font-size: 0.9rem;
  }
}

/* Category Section Headings - Mobile */
@media (max-width: 767.98px) {
  h3 {
    font-size: 1.25rem;
  }

  .d-flex.justify-content-between.align-items-center a {
    font-size: 0.875rem;
  }
}

/* Subscribe Banner - Mobile */
@media (max-width: 767.98px) {
  .text-center.p-5 {
    padding: 2rem 1rem !important;
  }

  .text-center.p-5 h2 {
    font-size: 1.5rem;
  }

  .text-center.p-5 p {
    font-size: 0.875rem;
  }

  .input-group.mt-4 {
    flex-direction: column;
  }

  .input-group.mt-4 .form-control {
    border-radius: 0.375rem !important;
    margin-bottom: 0.5rem;
  }

  .input-group.mt-4 .btn {
    border-radius: 0.375rem !important;
    width: 100%;
  }
}

/* Article Page - Mobile */
@media (max-width: 767.98px) {
  .breadcrumb {
    font-size: 0.875rem;
    padding: 0.5rem 0;
  }

  .col-lg-8 h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .col-lg-8 .text-muted {
    font-size: 0.875rem;
  }

  .img-fluid.my-3.article {
    height: auto;
    max-height: 300px;
  }

  .author-section {
    padding: 1rem !important;
  }

  .author-section .d-flex {
    flex-direction: column;
    text-align: center;
  }

  .author-section img.author {
    margin: 0 auto 1rem auto !important;
  }
}

/* Related Posts - Mobile */
@media (max-width: 767.98px) {
  .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .card-img-top {
    height: 200px !important;
  }

  .card-title {
    font-size: 1rem;
  }
}

/* Navbar - Mobile */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 8px;
  }

  .navbar-dark .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.9);
  }

  #searchCollapse {
    margin-top: 0.5rem;
    padding: 0 !important;
  }

  #form_search .input-group {
    height: 2.5rem !important;
  }
}

/* Cards - Mobile Spacing */
@media (max-width: 767.98px) {
  .card.border-0 {
    margin-bottom: 1.5rem;
  }

  .card-body {
    padding: 1rem 0.5rem;
  }
}

/* Typography - Mobile */
@media (max-width: 767.98px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  h5 {
    font-size: 1rem;
  }

  p {
    font-size: 0.9rem;
  }
}

/* Prevent Horizontal Scroll */
@media (max-width: 767.98px) {
  body {
    overflow-x: hidden;
  }

  .container-fluid,
  .container {
    overflow-x: hidden;
  }

  .row {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Touch Targets - Minimum 44px */
@media (max-width: 767.98px) {
  .nav-link,
  .btn,
  button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Navbar Toggler - Template2 */
@media (max-width: 991.98px) {
  .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 0.75rem;
    background-color: var(--theme-section-color) !important;
  }

  .navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: var(--theme-section-color) !important;
  }
}

@media (max-width: 991.98px) {
  /* Ensure subscribe banner is visible on mobile and has appropriate padding */
  #SubscribeBox {
    display: block !important;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 1.25rem;
  }

  #SubscribeBox .text-center.p-5 {
    padding: 1.25rem !important;
  }
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #6c757d; /* optional: gives it a subtle gray color */
  padding: 0 8px; /* spacing around the > */
}

/* Featured Articles Layout - Categories Page */
.featured-articles-row {
  margin-bottom: 2rem;
}

.featured-card .card-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.featured-card .card-text {
  font-size: 1rem;
  line-height: 1.6;
}

/* Mobile Responsive - Featured Layout */
@media (max-width: 991.98px) {
  .featured-articles-row .col-lg-8,
  .featured-articles-row .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .featured-img {
    height: 300px !important;
  }

  .featured-card .card-title {
    font-size: 1.5rem;
  }

  .featured-articles-row .col-lg-4 .card-img-top {
    height: 180px !important;
  }
}

@media (max-width: 767.98px) {
  .featured-img {
    height: 250px !important;
  }

  .featured-card .card-title {
    font-size: 1.25rem;
  }

  .featured-card .card-text {
    font-size: 0.9rem;
  }

  .featured-articles-row {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .article-grid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .featured-articles-row {
    margin-bottom: 0px;
  }
}
