/*
News & Content Section
Modern card design with slider/carousel
*/

/* News Section */
.news-section,
.free-quote {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.news-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="news-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23news-grid)"/></svg>') center/cover;
  opacity: 0.3;
  pointer-events: none;
}

/* Section Header */
.news-section .section-heading,
.free-quote .section-heading {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.news-section .section-heading h6,
.free-quote .section-heading h6 {
  color: #337ab7;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.news-section .section-heading h2,
.free-quote .section-heading h2 {
  font-size: 2.75rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 1rem;
}

.news-section .section-heading h2 em,
.free-quote .section-heading h2 em {
  color: #337ab7;
  font-style: normal;
}

.news-section .section-heading .line-dec,
.free-quote .section-heading .line-dec {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #337ab7 0%, #4a90e2 100%);
  margin: 1rem auto;
  border-radius: 2px;
}

.news-section .section-heading p,
.free-quote .section-heading p {
  color: #64748b;
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto;
}

/* News Carousel Container */
.news-carousel-wrapper {
  position: relative;
  z-index: 2;
}

/* News Card */
.news-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  margin: 0 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #337ab7 0%, #4a90e2 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(51, 122, 183, 0.3);
}

.news-date {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #1e293b;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-date i {
  color: #337ab7;
}

/* News Content */
.news-content {
  padding: 1.75rem;
}

.news-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-content p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.news-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.875rem;
}

.news-author i {
  color: #337ab7;
}

.news-read-more {
  color: #337ab7;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.news-read-more:hover {
  color: #2868a3;
  gap: 0.75rem;
}

.news-read-more i {
  font-size: 0.75rem;
}

/* Owl Carousel Custom Styling */
.news-carousel .owl-nav {
  margin-top: 2rem;
  text-align: center;
}

.news-carousel .owl-nav button {
  width: 50px;
  height: 50px;
  background: white !important;
  border-radius: 50%;
  margin: 0 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid #e2e8f0;
}

.news-carousel .owl-nav button:hover {
  background: linear-gradient(135deg, #337ab7 0%, #4a90e2 100%) !important;
  border-color: #337ab7;
  transform: scale(1.1);
}

.news-carousel .owl-nav button span {
  font-size: 1.5rem;
  line-height: 1;
  color: #337ab7;
}

.news-carousel .owl-nav button:hover span {
  color: white;
}

.news-carousel .owl-dots {
  margin-top: 2rem;
  text-align: center;
}

.news-carousel .owl-dot {
  width: 12px;
  height: 12px;
  background: #cbd5e1;
  border-radius: 50%;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.news-carousel .owl-dot.active {
  background: linear-gradient(135deg, #337ab7 0%, #4a90e2 100%);
  width: 30px;
  border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .news-section {
    padding: 80px 0;
  }

  .news-section .section-heading h2 {
    font-size: 2.25rem;
  }

  .news-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .news-section {
    padding: 60px 0;
  }

  .news-section .section-heading {
    margin-bottom: 3rem;
  }

  .news-section .section-heading h2 {
    font-size: 2rem;
  }

  .news-section .section-heading p {
    font-size: 1rem;
  }

  .news-card {
    margin: 0 5px;
  }

  .news-content {
    padding: 1.5rem;
  }

  .news-content h3 {
    font-size: 1.125rem;
  }

  .news-meta {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .news-section .section-heading h2 {
    font-size: 1.75rem;
  }

  .news-image {
    height: 180px;
  }

  .news-content {
    padding: 1.25rem;
  }

  .news-content h3 {
    font-size: 1rem;
  }

  .news-content p {
    font-size: 0.875rem;
  }
}