/*** Latest News Ultra-Modern V4 (Smart Light Edition) ***/
.latest-news {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(0, 123, 255, 0), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0, 198, 255, 0), transparent 65%),
    linear-gradient(135deg, #fafcff 0%, #f1f8ff 100%);
  padding: 49px 0;
  z-index: 1;
  font-family: 'Poppins', sans-serif;
}

/* Section Title */
.latest-news h2 {
  font-weight: 700;
  font-size: 2.1rem;
  text-align: center;
  margin-bottom: 55px;
  color: #111;
  letter-spacing: 0.4px;
  position: relative;
}
.latest-news h2::after {
  content: "";
  width: 55px;
  height: 3px;
  background: linear-gradient(to right, #ff7d00, #ff9a33);
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Carousel Cards */
.latest-news .latest-news-item {
  padding: 10px;
}
.latest-news .latest-news-item .bg-light {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,123,255,0.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  position: relative;
}

/* Optional subtle gradient overlay */
.latest-news .latest-news-item .bg-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.025), rgba(0, 198, 255, 0.025));
  pointer-events: none;
  border-radius: 14px;
}

/* Card hover effect */
.latest-news .latest-news-item:hover .bg-light {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0,123,255,0.18);
  background: rgba(255, 255, 255, 0.95);
}

/* Image Zoom */
.latest-news .latest-news-item img {
  width: 100%;
  height: 215px;
  object-fit: cover;
  transition: transform 0.6s ease;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.latest-news .latest-news-item:hover img {
  transform: scale(1.08);
}

/* Card Content */
.latest-news .latest-news-item .h4 {
  font-size: 1.12rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
  transition: color 0.3s ease;
  line-height: 1.4;
}

.latest-news .latest-news-item:hover .h4 {
  color: #ff7d00;
}

/* Author & Date */
.latest-news .latest-news-item .d-flex a,
.latest-news .latest-news-item .d-flex small {
  font-size: 0.84rem;
  color: #555;
}

.latest-news .latest-news-item .d-flex a:hover {
  color: #ff7d00;
}

/* Neon / Outline Arrows */
.latest-news .owl-nav .owl-prev,
.latest-news .owl-nav .owl-next {
  position: absolute;
  top: -52px;
  font-size: 1.15rem;
  padding: 3px 12px;
  background: transparent;
  border: 1px solid #ff7d00;
  color: #ff7d00;
  border-radius: 10px;
  box-shadow: 0 0 5px #ff7d0033;
  transition: all 0.3s ease;
}

.latest-news .owl-nav .owl-prev {
  right: 52px;
}

.latest-news .owl-nav .owl-next {
  right: 18px;
}

.latest-news .owl-nav .owl-prev:hover,
.latest-news .owl-nav .owl-next:hover {
  color: #fff;
  background: #ff7d00;
  box-shadow: 0 0 16px #ff9a3366, 0 0 28px #ff7d0044;
  transform: scale(1.07);
}

.news-card-bottom {
  background: #fff;
}

/* Responsive – Mobile Devices */
@media (max-width: 767px) {
  .latest-news h2 {
    font-size: 1.75rem;
  }

  .latest-news .latest-news-item img {
    height: 160px;
  }

  /* Owl Carousel Arrows */
  .latest-news .owl-nav .owl-prev,
  .latest-news .owl-nav .owl-next {
    top: 50%;
    padding: 8px 15px;
    font-size: 1rem;
    transform: translateY(-50%);
  }

  .latest-news .owl-nav .owl-prev {
    left: 5px; /* left side */
    right: auto;
    background:#373B48;
  }

  .latest-news .owl-nav .owl-next {
    right: 5px; /* right side */
    left: auto;
    background:#373B48;
  }
}