.page-news {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #FFD700 0%, #8B0000 100%); /* Brand colors blend */
  color: #ffffff;
  overflow: hidden;
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}

.page-news__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-news__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-news__hero-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-news__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: #FFD700;
  color: #8B0000;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button fits container */
  box-sizing: border-box;
}

.page-news__cta-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button--secondary {
  background: #8B0000;
  color: #FFD700;
}

.page-news__cta-button--secondary:hover {
  background: #6a0000;
  color: #FFD700;
}

.page-news__cta-button--small {
  padding: 10px 25px;
  font-size: 16px;
}

.page-news__cta-button--large {
  padding: 18px 45px;
  font-size: 20px;
  background: #FFD700;
  color: #8B0000;
}

.page-news__cta-button--large:hover {
  background: #e6c200;
  color: #8B0000;
}

/* Section Titles and Intros */
.page-news__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #8B0000;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-news__section-title--light {
  color: #FFD700;
}

.page-news__section-intro {
  font-size: 17px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

/* Latest Articles Section */
.page-news__latest-articles-section {
  padding: 60px 0;
  background: #f9f9f9;
}

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

.page-news__article-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-news__article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-news__article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-news__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__article-title {
  font-size: 22px;
  font-weight: bold;
  color: #8B0000;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-excerpt {
  font-size: 16px;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__article-date {
  font-size: 14px;
  color: #999999;
  margin-top: auto;
}

.page-news__read-more {
  display: inline-block;
  margin-top: 10px;
  color: #FFD700;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #e6c200;
}

.page-news__view-all-articles {
  text-align: center;
  margin-top: 50px;
}

/* Categories Section */
.page-news__categories-section {
  padding: 60px 0;
  background: #ffffff;
}

.page-news__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.page-news__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #f0f0f0;
  border-radius: 10px;
  padding: 25px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-news__category-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid #FFD700;
}

.page-news__category-title {
  font-size: 18px;
  font-weight: bold;
  color: #8B0000;
  margin: 0;
}

/* Featured Article Section */
.page-news__featured-article-section {
  padding: 60px 0;
  background: #f0f0f0;
}

.page-news__featured-card {
  display: flex;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-news__featured-image {
  width: 50%;
  height: auto;
  object-fit: cover;
}

.page-news__featured-content {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-news__featured-title {
  font-size: 30px;
  font-weight: bold;
  color: #8B0000;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-news__featured-excerpt {
  font-size: 17px;
  color: #555555;
  margin-bottom: 25px;
}

.page-news__featured-date {
  font-size: 14px;
  color: #999999;
  margin-top: 15px;
}

/* Why Choose Us Section */
.page-news__why-choose-us-section {
  padding: 60px 0;
  background: #ffffff;
}

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

.page-news__advantage-item {
  text-align: center;
  padding: 30px;
  background: #fefefe;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-news__advantage-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 2px solid #FFD700;
}

.page-news__advantage-title {
  font-size: 20px;
  font-weight: bold;
  color: #8B0000;
  margin-bottom: 10px;
}

.page-news__advantage-description {
  font-size: 16px;
  color: #555555;
}

/* Call to Action Section */
.page-news__call-to-action-section {
  padding: 80px 0;
  background: #8B0000;
  text-align: center;
}

.page-news__call-to-action-section .page-news__container {
  background: transparent; /* Container itself doesn't need background here */
}

.page-news__cta-text {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 42px;
  }

  .page-news__hero-description {
    font-size: 17px;
  }

  .page-news__section-title {
    font-size: 32px;
  }

  .page-news__article-title {
    font-size: 20px;
  }

  .page-news__featured-title {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

  .page-news__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-news__hero-section {
    padding: 60px 15px;
  }

  .page-news__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-news__hero-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-news__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__cta-button--large {
    padding: 15px 30px;
    font-size: 18px;
  }

  .page-news__section-title {
    font-size: 28px;
    padding-top: 30px;
    margin-bottom: 15px;
  }

  .page-news__section-intro {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-news__latest-articles-section, 
  .page-news__categories-section, 
  .page-news__featured-article-section, 
  .page-news__why-choose-us-section, 
  .page-news__call-to-action-section {
    padding: 40px 0;
  }

  .page-news__article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-image {
    height: 180px;
  }

  .page-news__article-title {
    font-size: 18px;
  }

  .page-news__article-excerpt {
    font-size: 15px;
  }

  .page-news__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }

  .page-news__category-card {
    padding: 15px;
  }

  .page-news__category-image {
    width: 90px;
    height: 90px;
    margin-bottom: 10px;
  }

  .page-news__category-title {
    font-size: 16px;
  }

  .page-news__featured-card {
    flex-direction: column;
  }

  .page-news__featured-image,
  .page-news__featured-content {
    width: 100%;
  }

  .page-news__featured-content {
    padding: 30px;
  }

  .page-news__featured-title {
    font-size: 22px;
  }

  .page-news__featured-excerpt {
    font-size: 15px;
  }

  .page-news__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__advantage-item {
    padding: 20px;
  }

  .page-news__advantage-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }

  .page-news__advantage-title {
    font-size: 18px;
  }

  .page-news__advantage-description {
    font-size: 15px;
  }

  .page-news__cta-text {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
  }
  .page-news__article-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__category-image {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-news__featured-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__advantage-icon {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 28px;
  }

  .page-news__section-title {
    font-size: 24px;
  }

  .page-news__article-title {
    font-size: 17px;
  }

  .page-news__featured-title {
    font-size: 20px;
  }

  .page-news__cta-text {
    font-size: 15px;
  }
}