/* style/news.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --background-dark: #0a0a0a;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.08);
  --border-color-dark-mode: rgba(255, 255, 255, 0.15);
}

.page-news {
  color: var(--text-color-dark-bg); /* Body background is dark (#0a0a0a), so text should be light */
  background-color: var(--background-dark);
  padding-top: 120px; /* Adjust for fixed header on desktop */
  min-height: 100vh;
}

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

.page-news__hero-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #a00000 100%);
  position: relative;
  overflow: hidden;
}

.page-news__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:bg:uk88,abstract_pattern,dark_red_gold_bg,1920x1080]') no-repeat center center/cover;
  opacity: 0.1;
  z-index: 0;
}

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

.page-news__main-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
  font-size: 1.2em;
  color: var(--text-color-dark-bg);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

.page-news__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: var(--primary-color);
  color: #333333;
}

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

.page-news__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-news__btn-secondary:hover {
  background: var(--primary-color);
  color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 60px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-news__section-description {
  font-size: 1.1em;
  color: var(--text-color-dark-bg);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

/* Categories Section */
.page-news__categories-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

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

.page-news__card {
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-color-dark-bg);
}

.page-news__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

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

.page-news__category-title, .page-news__article-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin: 15px 15px 10px;
  line-height: 1.4;
}

.page-news__category-text, .page-news__article-excerpt {
  font-size: 0.95em;
  color: var(--text-color-dark-bg);
  margin: 0 15px 15px;
  flex-grow: 1;
  line-height: 1.5;
}

.page-news__category-link {
  display: inline-block;
  margin: 0 15px 15px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__category-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* Featured News Section */
.page-news__featured-news-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-news__article-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

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

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

.page-news__article-date {
  font-size: 0.85em;
  color: #aaa;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-color-dark-mode);
}

.page-news__load-more {
  text-align: center;
  margin-top: 50px;
}

.page-news__about-uk88-section {
  padding: 80px 0;
  background: linear-gradient(45deg, var(--primary-color) 0%, #e6c200 100%);
  color: #333333;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-news__about-uk88-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:bg:uk88,abstract_gold_pattern,light_gold_bg,1920x1080]') no-repeat center center/cover;
  opacity: 0.1;
  z-index: 0;
}

.page-news__about-uk88-section > .page-news__container {
  position: relative;
  z-index: 1;
}

.page-news__about-uk88-section .page-news__section-title {
  color: #333333;
  text-shadow: none;
}

.page-news__about-uk88-section .page-news__section-description {
  color: #333333;
  margin-bottom: 30px;
}

.page-news__about-uk88-section .page-news__btn-primary {
  background: var(--secondary-color);
  color: var(--text-color-dark-bg);
}

.page-news__about-uk88-section .page-news__btn-primary:hover {
  background: #a00000;
  color: var(--text-color-dark-bg);
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

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

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-color-dark-mode);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg-dark-mode);
  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.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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: var(--text-color-dark-bg);
  transform: rotate(45deg); /* Plus to X */
}

.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 20px;
  opacity: 0;
  color: var(--text-color-dark-bg);
  background: rgba(255, 255, 255, 0.05);
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px !important;
  opacity: 1;
  border-top: 1px solid var(--border-color-dark-mode);
}

.page-news__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

.page-news__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-news__faq-answer a:hover {
  color: #e6c200;
}

.highlight {
  color: var(--primary-color);
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-news__main-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__hero-section,
  .page-news__categories-section,
  .page-news__featured-news-section,
  .page-news__about-uk88-section,
  .page-news__faq-section {
    padding: 60px 0;
  }
  .page-news__category-grid,
  .page-news__article-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
    font-size: 15px;
    line-height: 1.6;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }
  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-news__category-image, .page-news__article-image {
    height: 180px;
  }
  .page-news__category-title, .page-news__article-title {
    font-size: 1.2em;
  }
  .page-news__category-text, .page-news__article-excerpt {
    font-size: 0.9em;
  }
  
  /* FAQ Mobile */
  .page-news__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-news__faq-question h3 {
    font-size: 1em;
    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;
  }
  
  /* Ensure all images are responsive on mobile */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__category-item,
  .page-news__article-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__category-grid,
  .page-news__article-grid {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 1.8em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__hero-section,
  .page-news__categories-section,
  .page-news__featured-news-section,
  .page-news__about-uk88-section,
  .page-news__faq-section {
    padding: 40px 0;
  }
}