
/* News Page Styling */
.news-hero {
  height: 50vh;
  background: linear-gradient(rgba(67, 97, 238, 0.8), rgba(58, 12, 163, 0.8)),
              url('/images/newsPaper.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

.news-hero .container {
  width: 100%;
  padding: 0 5%;
  position: relative;
  z-index: 2;
  text-align: center;
}

.news-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.news-hero p {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.3s;
}

.news-hero h1.visible,
.news-hero p.visible {
  opacity: 1;
  transform: translateY(0);
}

/* News Grid */
.news-list {
  padding: 6rem 5%;
  background-color: white;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.news-article {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: translateY(30px);
}

.news-article.visible {
  opacity: 1;
  transform: translateY(0);
}

.news-article:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(67, 97, 238, 0.15);
}

.article-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

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

.article-category {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--secondary);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.article-content {
  padding: 2rem;
}

.article-meta {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.article-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-excerpt {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.article-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.article-link:hover {
  color: var(--secondary);
}

.article-link::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.article-link:hover::after {
  transform: translateX(5px);
}

/* Pagination */
.news-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 4rem;
}

.pagination-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: transparent;
  color: var(--dark);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.pagination-button:hover,
.pagination-button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination-button.next {
  width: auto;
  padding: 0 1.5rem;
  border-radius: 50px;
}

/* Newsletter Section */
.newsletter-section {
  padding: 0 5% 6rem;
}

.newsletter-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  color: white;
  box-shadow: 0 20px 50px rgba(67, 97, 238, 0.3);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.newsletter-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.newsletter-content {
  flex: 1;
  padding: 4rem;
  color: black;
}

.newsletter-image {
  flex: 1;
}

.newsletter-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newsletter-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.newsletter-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 1rem 2rem;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: #e5177b;
  transform: translateY(-2px);
}




/* Responsive Design */
@media (max-width: 1200px) {
  .newsletter-card {
    flex-direction: column;
  }
  
  .newsletter-image {
    height: 300px;
  }
}

@media (max-width: 992px) {
  .news-hero h1 {
    font-size: 3rem;
  }
  
  .news-hero p {
    font-size: 1.2rem;
  }
  
  .newsletter-content {
    padding: 3rem;
  }
}

@media (max-width: 768px) {
  .news-hero {
    height: 40vh;
    margin-top: 70px;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .news-hero h1 {
    font-size: 2.5rem;
  }
  
  .newsletter-content {
    padding: 2rem;
  }
  
  .newsletter-content h2 {
    font-size: 2rem;
  }
  
  .pagination-button:not(.next) {
    display: none;
  }
}
