.page-news {
  background-color: #121212;
  color: #ffffff;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Apply offset if shared doesn't */
}

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

.page-news__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

/* Hero Banner Section */
.page-news__hero-banner {
  position: relative;
  width: 100%;
  height: 500px; /* Fixed height for desktop */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 60px;
}

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

.page-news__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-news__hero-content {
  text-align: center;
  max-width: 800px;
  padding: 20px;
  z-index: 3;
}

.page-news__main-title {
  font-size: 48px;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-news__intro-text {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

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

.page-news__article-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  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 20px rgba(0, 0, 0, 0.3);
}

.page-news__article-card--featured {
  grid-column: span 2;
  display: flex;
  flex-direction: row;
}

.page-news__article-card--featured .page-news__article-image-wrapper {
  flex: 1;
}

.page-news__article-card--featured .page-news__article-content {
  flex: 1;
  padding: 30px;
}

.page-news__article-image-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.page-news__article-card--featured .page-news__article-image-wrapper {
  height: auto;
  min-height: 300px;
}

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

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

.page-news__article-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__article-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #FFC000;
}

.page-news__article-summary {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-btn {
  display: inline-block;
  background: #8B0000;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-news__read-more-btn:hover {
  background: #a00000;
}

/* CTA Section */
.page-news__cta-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
  margin-top: 60px;
}

.page-news__cta-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-news__cta-content {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.7);
  padding: 40px;
  border-radius: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.page-news__cta-title {
  font-size: 38px;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-news__cta-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-news__cta-button {
  display: inline-block;
  background: #FFD700;
  color: #121212;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__cta-button:hover {
  background: #FFC000;
  transform: translateY(-3px);
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
}

.page-news__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #cccccc;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 0 5px 5px;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-news__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-news__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFD700;
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

/* Universal image responsive styles */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-news__section, .page-news__card, .page-news__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Media Queries for Tablet */
@media (max-width: 1024px) {
  .page-news__hero-banner {
    height: 400px;
  }

  .page-news__main-title {
    font-size: 40px;
  }

  .page-news__intro-text {
    font-size: 16px;
  }

  .page-news__article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-news__article-card--featured {
    grid-column: span 2;
    flex-direction: column;
  }

  .page-news__article-card--featured .page-news__article-content {
    padding: 20px;
  }

  .page-news__article-card--featured .page-news__article-image-wrapper {
    min-height: 250px;
  }

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

  .page-news__cta-description {
    font-size: 16px;
  }

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

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

  .page-news__faq-question h3 {
    font-size: 16px;
  }
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  .page-news {
    padding-top: 0 !important; /* Mobile: shared handles offset */
  }

  .page-news__container {
    padding: 0 15px;
  }

  /* HERO Banner Section - Mobile */
  .page-news__hero-banner {
    height: 300px;
    margin-bottom: 40px;
  }

  .page-news__main-title {
    font-size: 28px !important;
    margin-bottom: 15px;
  }

  .page-news__intro-text {
    font-size: 14px !important;
    margin-bottom: 20px;
  }

  /* Latest Articles Section - Mobile */
  .page-news__latest-articles {
    padding: 40px 0;
  }

  .page-news__section-title {
    font-size: 24px !important;
    margin-bottom: 30px;
  }

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

  .page-news__article-card--featured {
    grid-column: span 1;
    flex-direction: column;
  }

  .page-news__article-card--featured .page-news__article-image-wrapper {
    min-height: 200px;
  }

  .page-news__article-image-wrapper {
    height: 200px;
  }

  .page-news__article-content {
    padding: 15px;
  }

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

  .page-news__article-summary {
    font-size: 14px;
  }

  .page-news__read-more-btn {
    padding: 8px 15px;
    font-size: 14px;
  }

  /* CTA Section - Mobile */
  .page-news__cta-section {
    padding: 50px 0;
    margin-top: 40px;
  }

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

  .page-news__cta-title {
    font-size: 26px !important;
    margin-bottom: 15px;
  }

  .page-news__cta-description {
    font-size: 15px !important;
    margin-bottom: 30px;
  }

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

  /* FAQ Section - Mobile */
  .page-news__faq-section {
    padding: 40px 0;
  }

  .page-news__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-news__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-news__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-news__faq-answer {
    padding: 0 15px;
  }
  
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px !important;
  }

  /* Universal Image & Container Mobile Adaptation */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__article-card,
  .page-news__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Button & Button Container Mobile Adaptation */
  .page-news__cta-button,
  .page-news__read-more-btn,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    overflow-x: hidden;
  }
}