/* ===== News Page Styles ===== */

/* News Hero Section */
.news-page .news-hero {
  background: var(--jm-color-bg-light);
  color: var(--jm-color-primary);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.news-page .news-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  z-index: 0;
}

.news-page .news-hero .home-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.news-page .news-hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--jm-color-primary);
  font-weight: 700;
  line-height: 1.2;
}

.news-page .news-hero p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
  color: var(--jm-color-text);
  line-height: 1.8;
}

/* News Intro Section */
.news-page .news-intro {
  padding: 60px 0;
  background: white;
}

.news-page .news-intro .home-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.news-page .news-intro h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--jm-color-primary);
  font-weight: 700;
}

.news-page .news-intro p {
  font-size: 17px;
  max-width: 900px;
  margin: 0 auto;
  color: var(--jm-color-text);
  line-height: 1.8;
}

/* News List Section */
.news-page .news-list {
  padding: 80px 0;
  background: var(--jm-color-bg-light);
}

.news-page .news-list .home-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* News Item */
.news-page .news-item {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

/* News Pagination */
.news-pagination ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.news-pagination li {
  margin: 0;
}

.news-pagination a,
.news-pagination span {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: var(--jm-color-text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  background: white;
  font-size: 15px;
}

.news-pagination a {
  cursor: pointer;
}

.news-pagination a:hover {
  background: var(--jm-color-primary);
  color: white;
  border-color: var(--jm-color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-pagination .current {
  background: var(--jm-color-primary);
  color: white;
  border-color: var(--jm-color-primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.news-pagination .prev,
.news-pagination .next {
  font-weight: 700;
  min-width: 120px;
}

.news-pagination .prev:hover,
.news-pagination .next:hover {
  background: var(--jm-color-primary);
  color: white;
  border-color: var(--jm-color-primary);
}

.news-pagination .disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.news-pagination .disabled:hover {
  background: white;
  color: var(--jm-color-text);
  border-color: #e5e7eb;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

/* Center pagination */
.news-pagination {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.news-page .news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.news-page .news-item h3 {
  margin: 0 0 15px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.news-page .news-item h3 a {
  color: var(--jm-color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-page .news-item h3 a:hover {
  color: var(--jm-color-accent);
}

.news-page .news-excerpt {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--jm-color-text);
}

.news-page .news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--jm-color-text-light);
}

.news-page .news-meta span:first-child {
  color: var(--jm-color-accent);
  font-weight: 600;
}

/* News CTA Section */
.news-page .home-cta {
  background: var(--jm-color-primary);
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.news-page .home-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/banner-1.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.2;
  z-index: 0;
}

.news-page .home-cta .home-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.news-page .home-cta h2 {
  font-size: 40px;
  margin-bottom: 20px;
  color: white;
  font-weight: 700;
}

.news-page .home-cta p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 35px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.news-page .home-cta a {
  display: inline-block;
  padding: 14px 36px;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: transparent;
}

.news-page .home-cta a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #fff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .news-page .news-hero h1 {
    font-size: 36px;
  }
  
  .news-page .news-intro h2 {
    font-size: 30px;
  }
  
  .news-page .home-cta h2 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .news-page .news-hero {
    padding: 80px 0;
  }
  
  .news-page .news-intro {
    padding: 40px 0;
  }
  
  .news-page .news-list {
    padding: 60px 0;
  }
  
  .news-page .home-cta {
    padding: 80px 0;
  }
  
  .news-page .news-item {
    padding: 24px;
  }
  
  .news-page .news-item h3 {
    font-size: 20px;
  }
  
  .news-page .news-excerpt {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .news-page .news-hero h1 {
    font-size: 28px;
  }
  
  .news-page .news-hero p {
    font-size: 16px;
  }
  
  .news-page .news-intro h2 {
    font-size: 24px;
  }
  
  .news-page .home-cta h2 {
    font-size: 28px;
  }
  
  .news-page .home-cta p {
    font-size: 16px;
  }
  
  .news-page .home-cta a {
    padding: 14px 32px;
    font-size: 15px;
  }
  
  .news-page .news-item {
    padding: 20px;
  }
  
  .news-page .news-item h3 {
    font-size: 18px;
  }
  
  .news-page .news-meta {
    font-size: 13px;
    gap: 8px;
  }
}
