/* style/news.css */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css #0a0a0a */
}

.page-news__section {
  padding: 60px 20px;
  text-align: center;
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
  box-sizing: border-box;
}

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

.page-news__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
  z-index: -1;
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-news__hero-button {
  display: inline-block;
  background: #FFD700;
  color: #0a0a0a;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__hero-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

/* Section Titles & Descriptions */
.page-news__section-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.page-news__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* Latest Articles Grid */
.page-news__latest-articles {
  background-color: #0d0d0d;
}

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

.page-news__article-card {
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
}

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

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

.page-news__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

.page-news__article-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1;
}

.page-news__read-more {
  color: #8B0000;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

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

.page-news__view-all-button-container {
  margin-top: 50px;
}

.page-news__view-all-button {
  display: inline-block;
  background: #8B0000;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__view-all-button:hover {
  background-color: #c20000;
  transform: translateY(-2px);
}

/* Featured Category Section */
.page-news__featured-category {
  background-color: #121212;
}

.page-news__category-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-news__category-image {
  width: 50%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.page-news__category-text {
  width: 50%;
}

.page-news__category-subtitle {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-news__category-subtitle a {
  color: #FFD700;
  text-decoration: none;
}

.page-news__category-subtitle a:hover {
  color: #e6c200;
}

.page-news__category-description {
  font-size: 1.05em;
  color: #cccccc;
  margin-bottom: 25px;
  line-height: 1.6;
}

.page-news__security-list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.page-news__security-list li {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #8B0000;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 4px;
  color: #f0f0f0;
  font-size: 0.95em;
}

.page-news__security-list-item-title {
  color: #FFD700;
}

.page-news__category-button {
  display: inline-block;
  background: #FFD700;
  color: #0a0a0a;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__category-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

/* FAQ Section */
.page-news__faq-section {
  background-color: #0a0a0a;
}

.page-news__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__faq-item {
  background-color: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  background-color: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #2a2a2a;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
  text-align: left;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px 25px;
}

.page-news__faq-answer p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.page-news__faq-link {
  color: #8B0000;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__faq-link:hover {
  color: #c20000;
}

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

  .page-news__section-title {
    font-size: 2em;
  }

  .page-news__category-content {
    flex-direction: column;
  }

  .page-news__category-image,
  .page-news__category-text {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

  .page-news__hero-title {
    font-size: 2em;
  }

  .page-news__hero-description {
    font-size: 1em;
  }

  .page-news__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-news__section {
    padding: 40px 15px;
  }

  .page-news__section-title {
    font-size: 1.8em;
  }

  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

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

  .page-news__article-title {
    font-size: 1.3em;
  }

  .page-news__category-subtitle {
    font-size: 1.6em;
  }

  .page-news__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-news__faq-answer {
    padding: 0 20px;
  }

  .page-news__faq-item.active .page-news__faq-answer {
    padding: 10px 20px 20px 20px;
  }

  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__articles-grid,
  .page-news__category-content,
  .page-news__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .page-news__hero-button,
  .page-news__view-all-button,
  .page-news__category-button,
  .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;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Add some space between stacked buttons */
  }
  
  /* Ensure button groups wrap or stack */
  .page-news__hero-content > .page-news__hero-button,
  .page-news__view-all-button-container > .page-news__view-all-button,
  .page-news__category-text > .page-news__category-button {
    display: block !important;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }

  .page-news__hero-description {
    font-size: 0.9em;
  }

  .page-news__section-title {
    font-size: 1.6em;
  }

  .page-news__article-title {
    font-size: 1.1em;
  }

  .page-news__category-subtitle {
    font-size: 1.4em;
  }

  .page-news__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }

  .page-news__faq-answer {
    padding: 0 15px;
  }

  .page-news__faq-item.active .page-news__faq-answer {
    padding: 8px 15px 15px 15px;
  }
}