/* style/news.css */
:root {
  --primary-color: #FF4500;
  --secondary-color: #00BFFF;
  --dark-background: #0d0d1a;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --card-background: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.15);
  --hover-background: rgba(255, 255, 255, 0.15);
}

.page-news {
  background-color: var(--dark-background);
  color: var(--light-text-color);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 120px; /* Adjusted for fixed header */
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-news__hero-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--dark-background) 0%, rgba(255, 69, 0, 0.1) 100%);
  margin-bottom: 40px;
}

.page-news__main-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-news__description {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.85);
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-news__cta-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--primary-color);
  color: var(--light-text-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
  border: none;
  cursor: pointer;
}

.page-news__cta-button:hover {
  background: #e63900;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 69, 0, 0.6);
}

.page-news__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 50px;
  padding-top: 40px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-news__featured-news {
  padding: 60px 0;
  margin-bottom: 40px;
}

.page-news__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-news__news-card {
  background: var(--card-background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-news__card-link {
  text-decoration: none;
  color: var(--light-text-color);
  display: block;
  height: 100%;
}

.page-news__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.page-news__news-card:hover .page-news__card-image {
  transform: scale(1.05);
}

.page-news__card-content {
  padding: 25px;
}

.page-news__card-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__card-excerpt {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 15px;
  line-height: 1.5;
}

.page-news__card-date {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  text-align: right;
}

.page-news__recent-articles {
  padding: 60px 0;
  background-color: rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
}

.page-news__article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.page-news__article-item {
  background: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__article-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-news__article-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--light-text-color);
  padding: 20px;
}

.page-news__article-image {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 20px;
  flex-shrink: 0;
}

.page-news__article-info {
  flex-grow: 1;
}

.page-news__article-title {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin-bottom: 8px;
  line-height: 1.3;
}

.page-news__article-excerpt {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news__article-date {
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  text-align: right;
}

.page-news__why-choose-section {
  padding: 60px 0 80px 0;
  background-color: var(--dark-background);
}

.page-news__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-news__benefits-item {
  background: var(--card-background);
  border-left: 5px solid var(--primary-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.page-news__benefits-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-news__benefits-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__benefits-item p {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.page-news__cta-buttons--bottom {
  margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-news__article-link {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }
  .page-news__article-image {
    width: 100%;
    height: 180px;
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-news__article-info {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-news {
    padding-top: 100px !important; /* Adjusted for mobile fixed header */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__hero-section {
    padding: 60px 0;
  }
  .page-news__main-title {
    font-size: 2.2em;
  }
  .page-news__description {
    font-size: 1em;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-top: 20px;
  }
  .page-news__featured-news, .page-news__recent-articles, .page-news__why-choose-section {
    padding: 40px 0;
  }
  .page-news__news-grid {
    grid-template-columns: 1fr;
  }
  .page-news__news-card {
    margin-bottom: 20px;
  }
  .page-news__card-title {
    font-size: 1.2em;
  }
  .page-news__article-title {
    font-size: 1.1em;
  }
  .page-news__article-image {
    height: 150px;
  }
  .page-news__benefits-list {
    grid-template-columns: 1fr;
  }
  .page-news__benefits-title {
    font-size: 1.3em;
  }

  /* Image responsive enforcement */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__hero-section,
  .page-news__featured-news,
  .page-news__recent-articles,
  .page-news__why-choose-section,
  .page-news__container,
  .page-news__news-card,
  .page-news__article-item,
  .page-news__benefits-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news__cta-buttons--bottom {
    margin-top: 40px;
  }
}