:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --border-color: #e0e0e0;
}

/* Base styles for the news page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff; /* Default light background, ensuring dark text */
}

/* Fixed header spacing - applied to the first main content section or main tag */
.page-news__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-news__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.page-news__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-news__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-news__hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-news__hero-title {
    font-size: 3.2em;
    margin-bottom: 15px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button--light {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}
.page-news__cta-button--light:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.page-news__cta-button--secondary {
    background: var(--text-light);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.page-news__cta-button--secondary:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__section-title--light {
    color: var(--text-light);
}

.page-news__section-description {
    font-size: 1.1em;
    color: var(--text-dark);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-news__section-description--light {
    color: rgba(255, 255, 255, 0.8);
}

/* Latest News Section */
.page-news__latest-news-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--bg-light);
}

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

.page-news__news-card {
    background: var(--text-light);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-news__news-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

.page-news__card-title {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__card-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: var(--primary-color);
}

.page-news__card-date {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

.page-news__card-excerpt {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.page-news__read-more-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-news__read-more-button:hover {
    background: var(--secondary-color);
}

.page-news__read-more-button--light {
    background: var(--text-light);
    color: var(--secondary-color);
}
.page-news__read-more-button--light:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Featured Article Section */
.page-news__featured-article-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-news__featured-article-section img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

.page-news__article-content h3 {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-news__article-content p {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--text-dark);
}

.page-news__article-content strong {
    color: var(--secondary-color);
}

.page-news__article-list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.page-news__article-list li {
    margin-bottom: 8px;
    font-size: 1.05em;
}

.page-news__article-list li strong {
    color: var(--secondary-color);
}

.page-news__cta-button--small {
    padding: 12px 30px;
    font-size: 1em;
    margin-top: 20px;
}

/* Promotions & Events Section */
.page-news__promotions-events-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background: var(--secondary-color); /* Dark background */
    color: var(--text-light); /* Light text */
}

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

.page-news__event-card {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.page-news__event-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.page-news__event-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-news__event-card-content {
    padding: 25px;
}

.page-news__event-card-title {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__event-card-title a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__event-card-title a:hover {
    color: var(--primary-color);
}

.page-news__event-card-excerpt {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

/* FAQ Section */
.page-news__faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--bg-light);
}

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,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 25px; /* Adjust padding for consistency */
  opacity: 0;
  background: var(--text-light);
  color: var(--text-dark);
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important, value large enough */
  padding: 20px 25px !important; /* Adjust padding for consistency */
  opacity: 1;
  background: var(--text-light);
  border-radius: 0 0 5px 5px;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Adjust padding for consistency */
  background: var(--text-light);
  border: 1px solid var(--border-color);
  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: #f5f5f5;
  border-color: #d0d0d0;
}

.page-news__faq-question:active {
  background: #eeeeee;
}

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

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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(--primary-color);
  transform: rotate(45deg); /* Visual cue for expanded state */
}

/* Call to Action Section */
.page-news__cta-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background: var(--primary-color); /* Brand primary color background */
    color: var(--text-light); /* Light text for contrast */
    text-align: center;
}

.page-news__cta-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__news-card img,
    .page-news__event-card img {
        
    }
}

@media (max-width: 768px) {
    /* Mobile header offset */
    .page-news__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-news__hero-title {
        font-size: 2.2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }

    .page-news__content-area {
        padding: 30px 15px;
    }

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

    .page-news__news-grid,
    .page-news__event-cards-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-news__news-card img,
    .page-news__event-card img {
        height: 200px; /* Maintain minimum image size */
    }

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

    .page-news__featured-article-section img {
        max-height: 300px;
    }
    .page-news__article-content h3 {
        font-size: 1.5em;
    }
    .page-news__article-content p,
    .page-news__article-list li {
        font-size: 0.95em;
    }

    /* FAQ Mobile Styles */
    .page-news__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-news__faq-question h3 {
        font-size: 1em;
        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;
    }

    /* CTA buttons mobile */
    .page-news__cta-buttons-wrapper {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .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; /* Add padding to prevent text touching edges */
      padding-right: 15px;
    }
    
    .page-news__cta-buttons-wrapper,
    .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;
    }

    /* Global image responsive rules for mobile */
    .page-news img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    .page-news__section,
    .page-news__card,
    .page-news__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}

/* Ensure images don't have filters */
.page-news img {
    filter: none !important;
}