/* News & Announcements Section – Matching Template */
.elementor-element-0e8f2bb {
  padding: 80px 0;
  background: #f8fafc; /* Light background similar to template */
}

/* Header Styles */
.elementor-element-0e8f2bb .elementor-widget-text-editor {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.elementor-element-0e8f2bb .section-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #1a5c3a;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 15px;
  font-family: 'Inter', sans-serif;
}

.elementor-element-0e8f2bb .section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #1a5c3a;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.elementor-element-0e8f2bb .section-subtitle {
  color: #4a4a68;
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* News Grid – Override plugin styles */
.elementor-element-0e8f2bb #post-grid-17080 .grid-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* News Card */
.elementor-element-0e8f2bb #post-grid-17080 .item {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  height: auto;
  padding: 0 !important;
}

.elementor-element-0e8f2bb #post-grid-17080 .item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Image Layer */
.elementor-element-0e8f2bb #post-grid-17080 .layer-media {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.elementor-element-0e8f2bb #post-grid-17080 .layer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.elementor-element-0e8f2bb #post-grid-17080 .item:hover .layer-media img {
  transform: scale(1.1);
}

/* If no image, add a green placeholder */
.elementor-element-0e8f2bb #post-grid-17080 .layer-media:empty {
  background: #1a5c3a;
  height: 200px;
}

/* Content Layer */
.elementor-element-0e8f2bb #post-grid-17080 .layer-content {
  padding: 25px;
}

/* Date (we need to add it – plugin might not output date. We'll add via CSS if needed) */
/* If the plugin doesn't output date, we can add a pseudo element or use the post date via custom field */
/* For now, we'll assume date is not present; we can add a custom field later. */

/* Title */
.elementor-element-0e8f2bb #post-grid-17080 .element_1 {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin-bottom: 10px !important;
  padding: 0 !important;
}

.elementor-element-0e8f2bb #post-grid-17080 .element_1 a {
  color: #1a1a2e !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.elementor-element-0e8f2bb #post-grid-17080 .element_1 a:hover {
  color: #1a5c3a !important;
}

/* Excerpt */
.elementor-element-0e8f2bb #post-grid-17080 .element_2 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem !important;
  color: #4a4a68 !important;
  line-height: 1.6 !important;
  margin-bottom: 15px !important;
  padding: 0 !important;
}

/* Read More */
.elementor-element-0e8f2bb #post-grid-17080 .element_3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  padding: 0 !important;
}

.elementor-element-0e8f2bb #post-grid-17080 .element_3 a {
  color: #1a5c3a !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s ease;
}

.elementor-element-0e8f2bb #post-grid-17080 .element_3 a::after {
  content: '\f061'; /* FontAwesome arrow right */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.elementor-element-0e8f2bb #post-grid-17080 .element_3 a:hover {
  gap: 10px;
}

/* Pagination Styling */
.elementor-element-0e8f2bb #post-grid-17080 .pagination {
  margin-top: 50px;
  text-align: center;
}

.elementor-element-0e8f2bb #post-grid-17080 .pagination .paginate {
  display: inline-flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}

.elementor-element-0e8f2bb #post-grid-17080 .pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #ffffff !important;
  color: #1a5c3a !important;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #e8f5e9;
}

.elementor-element-0e8f2bb #post-grid-17080 .pagination .page-numbers:hover,
.elementor-element-0e8f2bb #post-grid-17080 .pagination .page-numbers.current {
  background: #1a5c3a !important;
  color: #ffffff !important;
  border-color: #1a5c3a !important;
}

.elementor-element-0e8f2bb #post-grid-17080 .pagination .prev,
.elementor-element-0e8f2bb #post-grid-17080 .pagination .next {
  width: auto;
  padding: 0 15px;
  border-radius: 40px;
}

/* Responsive */
@media (max-width: 992px) {
  .elementor-element-0e8f2bb #post-grid-17080 .grid-items {
    grid-template-columns: repeat(2, 1fr);
  }
  .elementor-element-0e8f2bb .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .elementor-element-0e8f2bb #post-grid-17080 .grid-items {
    grid-template-columns: 1fr;
  }
  .elementor-element-0e8f2bb .section-subtitle {
    font-size: 1rem;
  }
}