/* style/news.css */

/* Base Styles & Typography */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #FFCC00; /* Gold for main titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__sub-title {
  font-size: 1.8em;
  color: #FFCC00;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news p {
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-news a {
  color: #FFCC00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.page-news__btn-primary {
  background-color: #CC0000;
  color: #ffffff;
  border: 2px solid #CC0000;
}

.page-news__btn-primary:hover {
  background-color: #ff3333;
  border-color: #ff3333;
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #FFCC00;
  border: 2px solid #FFCC00;
}

.page-news__btn-secondary:hover {
  background-color: #FFCC00;
  color: #CC0000;
}

/* Section Backgrounds */
.page-news__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-news__light-bg {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding: 120px 20px 60px; /* Adjusted padding-top to account for fixed header */
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: var(--header-offset, 120px);
}

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

.page-news__hero-section .page-news__container {
  position: relative;
  z-index: 1;
}

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

.page-news__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

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

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

.page-news__article-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  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: 220px;
  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: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-news__article-title a {
  color: #FFCC00;
  text-decoration: none;
}

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

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

.page-news__read-more {
  color: #CC0000;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.page-news__arrow {
  transition: transform 0.3s ease;
}

.page-news__read-more:hover .page-news__arrow {
  transform: translateX(5px);
}

/* Featured Video Section */
.page-news__featured-video {
  padding: 80px 20px;
  text-align: center;
}

.page-news__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 40px auto 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-news__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Categories Section */
.page-news__categories {
  padding: 80px 20px;
}

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

.page-news__category-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-align: center;
  padding-bottom: 20px;
  text-decoration: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  background-color: #CC0000;
}

.page-news__category-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-news__category-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #FFCC00;
  padding: 0 15px;
}

.page-news__category-card:hover .page-news__category-title {
  color: #ffffff;
}

/* About AE888 Section */
.page-news__about-ae888 {
  padding: 80px 20px;
}

.page-news__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: center;
}

.page-news__content-grid--reverse {
  flex-direction: column-reverse;
}

.page-news__image-block {
  text-align: center;
}

.page-news__about-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 20px;
}

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

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  color: #FFCC00;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 20px;
}

.page-news__faq-answer p {
  margin-bottom: 0;
  color: #cccccc;
}

/* General CTA buttons styling */
.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-news__content-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-news__content-grid--reverse {
    grid-template-areas: "image text";
  }

  .page-news__content-grid--reverse .page-news__text-block {
    grid-area: text;
  }

  .page-news__content-grid--reverse .page-news__image-block {
    grid-area: image;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: var(--header-offset, 120px) 15px 40px;
    min-height: 500px;
  }

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

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

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

  .page-news__btn-primary,
  .page-news__btn-secondary {
    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;
  }

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

  .page-news__section-description {
    font-size: 0.95em;
  }

  .page-news__sub-title {
    font-size: 1.5em;
  }

  .page-news__latest-articles,
  .page-news__featured-video,
  .page-news__categories,
  .page-news__about-ae888,
  .page-news__faq-section {
    padding: 60px 15px;
  }

  .page-news__article-grid,
  .page-news__category-grid {
    grid-template-columns: 1fr;
  }

  .page-news__article-image,
  .page-news__category-image {
    height: auto;
  }

  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__video-wrapper,
  .page-news__container,
  .page-news__article-card,
  .page-news__category-card,
  .page-news__faq-item,
  .page-news__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important; /* Remove container padding if present */
    padding-right: 0 !important; /* Remove container padding if present */
    overflow-x: hidden !important;
  }

  .page-news__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
  }

  .page-news__content-grid {
    grid-template-columns: 1fr;
  }

  .page-news__content-grid--reverse {
    flex-direction: column;
  }

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

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

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

  .page-news__cta-buttons {
    flex-direction: column;
  }
}