/* style/news-platform-updates.css */
:root {
    --primary-color: #0A2239;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-light: #f1f3f5;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --dark-bg-1: #1a1a1a; /* Assuming this is a dark background from shared.css */
}

.page-news-platform-updates {
    background-color: var(--dark-bg-1);
    color: var(--text-light); /* Default text color for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

/* Fixed header padding */
.page-news-platform-updates__hero-banner {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), #000000);
    text-align: center;
    position: relative;
    z-index: 1;
    /* Desktop padding-top for fixed nav */
    padding-top: 120px; 
}

.page-news-platform-updates__main-title {
    font-size: 3.2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-news-platform-updates__subtitle {
    font-size: 1.3em;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-news-platform-updates__subtitle a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news-platform-updates__subtitle a:hover {
    color: #ffd700;
    text-decoration: underline;
}

.page-news-platform-updates__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin: 60px 0 40px;
    font-weight: bold;
}

.page-news-platform-updates__text-content {
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-news-platform-updates__text-content a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-news-platform-updates__text-content a:hover {
    text-decoration: underline;
}

/* Latest News Section */
.page-news-platform-updates__latest-news-section,
.page-news-platform-updates__featured-articles-section,
.page-news-platform-updates__industry-trends-section,
.page-news-platform-updates__promotion-cta-section,
.page-news-platform-updates__responsible-gaming-section,
.page-news-platform-updates__faq-section {
    padding: 40px 0;
    background-color: var(--dark-bg-1); /* Consistent dark background */
    color: var(--text-light);
}

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

.page-news-platform-updates__news-card,
.page-news-platform-updates__article-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark); /* Dark text for light card background */
}

.page-news-platform-updates__news-card:hover,
.page-news-platform-updates__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news-platform-updates__news-image,
.page-news-platform-updates__article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-news-platform-updates__news-content,
.page-news-platform-updates__article-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news-platform-updates__news-title,
.page-news-platform-updates__article-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-news-platform-updates__news-title a,
.page-news-platform-updates__article-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news-platform-updates__news-title a:hover,
.page-news-platform-updates__article-title a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-news-platform-updates__news-date {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.page-news-platform-updates__news-excerpt,
.page-news-platform-updates__article-excerpt {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news-platform-updates__news-excerpt a,
.page-news-platform-updates__article-excerpt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-news-platform-updates__news-excerpt a:hover,
.page-news-platform-updates__article-excerpt a:hover {
    text-decoration: underline;
}

.page-news-platform-updates__read-more-btn,
.page-news-platform-updates__cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    align-self: flex-start;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-news-platform-updates__read-more-btn:hover,
.page-news-platform-updates__cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Promotion CTA Section */
.page-news-platform-updates__promotion-cta-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color), #0A2239);
}

.page-news-platform-updates__promotion-cta-section .page-news-platform-updates__section-title {
    color: var(--secondary-color);
    margin-top: 0;
}

.page-news-platform-updates__promotion-cta-section .page-news-platform-updates__text-content {
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-news-platform-updates__responsible-gaming-section {
    padding: 40px 0;
    text-align: center;
}

.page-news-platform-updates__responsible-gaming-section .page-news-platform-updates__section-title {
    color: var(--secondary-color);
}

/* FAQ Section */
.page-news-platform-updates__faq-section {
    padding: 40px 0;
}

.page-news-platform-updates__faq-section .page-news-platform-updates__section-title {
    color: var(--secondary-color);
}

.page-news-platform-updates__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-news-platform-updates__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 15px;
  opacity: 0;
  background: #2a2a2a; /* Slightly lighter dark background for answer */
  color: var(--text-light);
}

.page-news-platform-updates__faq-item.active .page-news-platform-updates__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

.page-news-platform-updates__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--primary-color);
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-news-platform-updates__faq-question:hover {
  background: #1e3a51;
  border-color: #4a4a4a;
}

.page-news-platform-updates__faq-question:active {
  background: #112a40;
}

.page-news-platform-updates__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-light);
}

.page-news-platform-updates__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-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-platform-updates__faq-item.active .page-news-platform-updates__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-news-platform-updates__main-title {
        font-size: 2.5em;
    }
    .page-news-platform-updates__subtitle {
        font-size: 1.1em;
    }
    .page-news-platform-updates__section-title {
        font-size: 2em;
    }
    .page-news-platform-updates__news-image,
    .page-news-platform-updates__article-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    /* Mobile padding-top for fixed nav */
    .page-news-platform-updates__hero-banner {
        padding-top: 100px !important; 
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-news-platform-updates__container {
        padding: 0 15px;
    }

    .page-news-platform-updates__main-title {
        font-size: 2em;
    }
    .page-news-platform-updates__subtitle {
        font-size: 1em;
    }
    .page-news-platform-updates__section-title {
        font-size: 1.8em;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .page-news-platform-updates__news-grid,
    .page-news-platform-updates__article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news-platform-updates__news-card,
    .page-news-platform-updates__article-card {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    }

    .page-news-platform-updates__news-image,
    .page-news-platform-updates__article-image {
        height: 160px;
    }

    .page-news-platform-updates__news-content,
    .page-news-platform-updates__article-content {
        padding: 15px;
    }

    .page-news-platform-updates__news-title,
    .page-news-platform-updates__article-title {
        font-size: 1.2em;
    }

    .page-news-platform-updates__news-date,
    .page-news-platform-updates__news-excerpt,
    .page-news-platform-updates__article-excerpt {
        font-size: 0.9em;
    }

    .page-news-platform-updates__read-more-btn,
    .page-news-platform-updates__cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    .page-news-platform-updates__promotion-cta-section {
        padding: 40px 15px;
    }
    
    .page-news-platform-updates__responsible-gaming-section {
        padding: 30px 15px;
    }
    
    .page-news-platform-updates__faq-section {
        padding: 30px 15px;
    }
    
    .page-news-platform-updates__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-news-platform-updates__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-news-platform-updates__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-news-platform-updates__faq-answer {
        padding: 0 15px;
    }
    
    .page-news-platform-updates__faq-item.active .page-news-platform-updates__faq-answer {
        padding: 15px !important;
    }
    
    /* Mobile image responsive adaptation */
    .page-news-platform-updates img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-news-platform-updates__section,
    .page-news-platform-updates__card,
    .page-news-platform-updates__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}