/* News Page Styles */

.news-section {
  padding: 0 0 40px 0;
  background-color: #fff;
}

.news-section .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.news-section .section-header h6 {
  color: #0693e3;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.news-section .section-header h2 {
  font-family: 'Saira', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #0d1b3e;
  margin-bottom: 20px;
}

.news-section .divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #1a7196 0%, #68b34c 100%);
  margin: 0 auto 20px;
}

.news-section .section-header p {
  color: #6c757d;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.news-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.slider {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider img.active {
  opacity: 1;
}

.card-body {
  padding: 20px;
}

.meta-info {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.meta-info span {
  color: #1a7196;
  font-weight: 500;
}

.meta-info i {
  font-size: 12px;
}

.news-card h3 {
  font-size: 1.4rem;
  color: #222;
  margin-bottom: 12px;
  font-weight: 700;
  font-family: 'Saira', sans-serif;
  line-height: 1.3;
}

.news-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-gradient {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(to right, #1a7196 0%, #68b34c 100%);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  border-radius: 5px;
  font-weight: 500;
  transition: opacity 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-gradient:hover {
  opacity: 0.9;
  transform: translateX(3px);
}

/* Sidebar Styles */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
  font-family: 'Saira', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0d1b3e;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0693e3;
}

.category-list {
  list-style: none;
}

.category-list li {
  margin-bottom: 12px;
}

.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  color: #555;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s;
}

.category-list a:hover {
  background: #fff;
  color: #1a7196;
  padding-left: 15px;
}

.category-list i {
  margin-right: 10px;
  color: #1a7196;
}

.category-list span {
  color: #999;
  font-size: 12px;
}

.recent-post {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.recent-post:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.recent-post img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
}

.recent-post-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  line-height: 1.4;
}

.post-date {
  font-size: 12px;
  color: #999;
}

.post-date i {
  margin-right: 5px;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  padding: 6px 15px;
  background: #fff;
  color: #555;
  text-decoration: none;
  border-radius: 20px;
  font-size: 13px;
  transition: all 0.3s;
}

.tag:hover {
  background: #1a7196;
  color: #fff;
}

.cta-widget {
  background: linear-gradient(135deg, #1a7196 0%, #68b34c 100%);
  color: #fff;
}

.cta-widget h3 {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.3);
}

.cta-widget p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 15px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input {
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
}

.newsletter-form button {
  background: #fff;
  color: #1a7196;
  font-weight: 600;
}

.newsletter-form button:hover {
  background: #f0f0f0;
}

@media (max-width: 1200px) {
  .news-layout {
    grid-template-columns: 1fr 300px;
  }
  
  .news-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .news-layout {
    grid-template-columns: 1fr;
  }
  
  .news-sidebar {
    display: flex;
    flex-direction: column;
  }
  
  .recent-posts-widget {
    order: 1;
  }
  
  .cta-widget {
    order: 2;
  }
  
  .news-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .news-section .section-header h2 {
    font-size: 30px;
  }
}

@media (max-width: 650px) {
  .news-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .news-section {
    padding: 40px 0;
  }
  
  .news-section .section-header h2 {
    font-size: 26px;
  }
  
  .slider {
    height: 200px;
  }
  
  .news-card h3 {
    font-size: 1.2rem;
  }
  
  .sidebar-widget {
    padding: 20px;
  }
}
