/* style/news.css */

/* Base Styles */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure consistency with body background */
}

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

.page-news__section {
  padding: 60px 0;
}

.page-news__dark-bg {
  background-color: #000000;
  color: #ffffff;
}

.page-news__light-bg {
  background-color: #f5f5f5;
  color: #333333;
}

.page-news__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

/* Hero Section */
.page-news__hero-section {
  background-image: url('[GALLERY:news_hero:1920x1080:news_page,cockfighting_arena,dynamic_lights,ga_da_88,updates]');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding: 100px 20px;
  position: relative;
  z-index: 1;
}

.page-news__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

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

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

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

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

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

.page-news__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-news__cta-button {
  margin-top: 20px;
}

/* Featured News */
.page-news__featured-news {
  background-color: #000000;
}

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

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

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

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

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

.page-news__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__card-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #1a7fb8;
}

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

.page-news__card-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-news__card-link:hover {
  color: #1a7fb8;
  text-decoration: underline;
}

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

.page-news__category-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
  padding-bottom: 20px;
  text-decoration: none;
  color: #333333;
  display: flex;
  flex-direction: column;
}

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

.page-news__category-card .page-news__card-image {
  height: 180px;
  margin-bottom: 15px;
}

.page-news__category-card .page-news__card-title {
  color: #26A9E0;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-news__category-card .page-news__card-excerpt {
  color: #666666;
  font-size: 0.95em;
  padding: 0 15px;
}

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

.page-news__article-item {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Video Section */
.page-news__video-section {
  text-align: center;
}

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

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

.page-news__video-overlay-link {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2;
  cursor: pointer;
}

/* Industry Insights */
.page-news__industry-insights .page-news__section-title,
.page-news__industry-insights .page-news__section-description {
  color: #333333;
}

.page-news__insights-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-news__insights-image {
  flex: 0 0 500px; /* Fixed width for image on desktop */
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__insights-text {
  flex: 1;
  color: #333333;
}

.page-news__insights-text h3 {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__insights-text p {
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 1.05em;
}

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

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

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

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

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

.page-news__faq-question h3 {
  margin: 0;
  color: #ffffff;
}

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

.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;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px 25px;
}

.page-news__faq-answer p {
  margin: 0;
  padding-top: 10px; /* Adjust for visual spacing after question */
}

/* CTA Section */
.page-news__cta-section {
  background-color: #f5f5f5;
}

.page-news__cta-content {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-news__cta-image {
  flex: 0 0 400px; /* Fixed width for image on desktop */
  max-width: 40%;
  height: auto;
  border-radius: 8px;
}

.page-news__cta-text {
  flex: 1;
  color: #333333;
  text-align: left;
}

.page-news__cta-text .page-news__section-title {
  text-align: left;
  color: #26A9E0;
  margin-bottom: 20px;
  font-size: 2em;
}

.page-news__cta-text p {
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

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

  .page-news__insights-image {
    flex: 0 0 40%;
    max-width: 40%;
  }

  .page-news__cta-image {
    flex: 0 0 35%;
    max-width: 35%;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

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

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

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

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

  /* 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__video-wrapper,
  .page-news__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header spacing on mobile */
  }

  /* Video Responsiveness */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  /* Button Responsiveness */
  .page-news__cta-button,
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .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;
  }
  
  .page-news__cta-buttons,
  .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;
  }

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

  .page-news__insights-content,
  .page-news__cta-content {
    flex-direction: column;
    text-align: center;
  }

  .page-news__insights-image,
  .page-news__cta-image {
    max-width: 100%;
    width: 100%;
    flex: none;
    margin-bottom: 20px;
  }

  .page-news__cta-text,
  .page-news__insights-text {
    text-align: center;
  }

  .page-news__cta-text .page-news__section-title {
    text-align: center;
    font-size: 1.8em;
  }

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

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

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

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

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

  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-news__card-title {
    font-size: 1.2em;
  }

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