:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    --card-bg: #17191F;
    --body-bg: #0D0E12;
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
}

.page-news {
    background-color: var(--body-bg);
    color: var(--text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* General container for content width */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Sections padding */
.page-news__hero-section,
.page-news__latest-section,
.page-news__featured-section,
.page-news__game-news-section,
.page-news__promotions-section,
.page-news__faq-section,
.page-news__cta-section {
    padding: 60px 0;
}

/* Specific small padding-top for hero as body handles header offset */
.page-news__hero-section {
    padding-top: 10px; /* Small top padding as body handles --header-offset */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-news__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any potential background layers */
}

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

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

.page-news__main-title {
    font-size: clamp(2em, 3vw, 2.5em); /* Using clamp for responsive H1 size */
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-news__hero-description {
    font-size: 1.1em;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-news__cta-button--secondary {
    background: var(--card-bg); /* Use card background for secondary button */
    border: 2px solid var(--border-color);
    color: var(--text-main);
}

.page-news__cta-button--secondary:hover {
    background: var(--deep-orange);
    color: #ffffff;
}

.page-news__section-title {
    font-size: 2.2em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 165, 58, 0.5);
}

/* News Grid */
.page-news__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__news-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__news-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-news__news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-news__news-card:hover .page-news__news-image-wrapper img {
    transform: scale(1.05);
}

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

.page-news__news-date {
    font-size: 0.9em;
    color: #aaaaaa;
    margin-bottom: 10px;
}

.page-news__news-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

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

.page-news__news-excerpt {
    font-size: 1em;
    color: var(--text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.page-news__read-more:hover {
    color: var(--deep-orange);
}

/* Featured Section */
.page-news__featured-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.page-news__featured-image-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-news__featured-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-news__featured-text {
    flex: 2;
    min-width: 300px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-news__featured-subtitle {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-news__featured-text p {
    margin-bottom: 15px;
    color: var(--text-main);
}

/* Game News Section */
.page-news__game-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__game-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px; /* Space for button */
}

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

.page-news__game-card img {
    width: 100%;
     /* Fixed height for game images */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-news__game-card-title {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin: 0 15px 10px;
    line-height: 1.3;
}

.page-news__game-card p {
    font-size: 0.95em;
    color: var(--text-main);
    margin: 0 15px 20px;
    flex-grow: 1;
}

.page-news__game-card .page-news__read-more {
    margin: 0 15px;
    align-self: flex-start;
}

/* Promotions Section */
.page-news__promotions-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__promo-item {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__promo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-news__promo-item img {
    width: 100%;
    height: 200px; /* Fixed height for promo images */
    object-fit: cover;
}

.page-news__promo-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin: 20px 20px 10px;
    line-height: 1.3;
}

.page-news__promo-item p {
    font-size: 1em;
    color: var(--text-main);
    margin: 0 20px 20px;
    flex-grow: 1;
}

.page-news__cta-button--small {
    padding: 10px 25px;
    font-size: 16px;
    margin: 0 20px 20px;
    align-self: flex-start;
}

/* FAQ Section */
.page-news__faq-list {
    margin-top: 40px;
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--secondary-color);
  font-weight: bold;
}
details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
  display: none;
}
details.page-news__faq-item summary.page-news__faq-question:hover {
  background: rgba(var(--primary-color), 0.1); /* Slightly lighter hover on dark background */
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: var(--body-bg); /* Slightly different background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-main);
}
.page-news__faq-answer p {
    margin-bottom: 10px;
}

/* CTA Section at bottom */
.page-news__cta-section {
    text-align: center;
    background: var(--deep-orange);
    padding: 80px 0;
    margin-top: 60px;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__cta-section .page-news__section-title {
    color: #ffffff;
    text-shadow: none;
    margin-bottom: 20px;
}

.page-news__cta-description {
    font-size: 1.2em;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-news__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-section,
    .page-news__latest-section,
    .page-news__featured-section,
    .page-news__game-news-section,
    .page-news__promotions-section,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 40px 0;
    }

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

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

    .page-news__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .page-news__news-grid,
    .page-news__game-news-grid,
    .page-news__promotions-content {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-news__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__hero-section {
        padding-top: 10px !important; /* Ensure small padding-top */
        padding-bottom: 30px;
    }

    .page-news__hero-image img,
    .page-news__news-image-wrapper img,
    .page-news__featured-image-wrapper img,
    .page-news__game-card img,
    .page-news__promo-item img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__news-image-wrapper,
    .page-news__game-card img,
    .page-news__promo-item img {
         /* Maintain aspect ratio or specific height for cards */
    }

    .page-news__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em);
    }

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

    .page-news__featured-content {
        flex-direction: column;
    }

    .page-news__featured-image-wrapper,
    .page-news__featured-text {
        min-width: unset;
        width: 100%;
    }

    .page-news__button-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-news__cta-button,
    .page-news__cta-button--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;
    }

    details.page-news__faq-item summary.page-news__faq-question {
        padding: 15px;
    }
    .page-news__faq-qtext {
        font-size: 1em;
    }
    .page-news__faq-toggle {
        font-size: 20px;
        width: 24px;
    }
    details.page-news__faq-item .page-news__faq-answer {
        padding: 0 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-section,
    .page-news__latest-section,
    .page-news__featured-section,
    .page-news__game-news-section,
    .page-news__promotions-section,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 30px 0;
    }

    .page-news__main-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }

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

    .page-news__news-content,
    .page-news__game-card,
    .page-news__promo-item {
        padding: 15px;
    }
}