/* style/news.css */
.page-news {
    color: #ffffff; /* Body background is dark, so text should be light */
}

.page-news__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
    box-sizing: border-box;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-news__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-news__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-news__main-title {
    font-size: 3.5em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-news__description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-news__btn-primary {
    display: inline-block;
    background: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-news__btn-primary:hover {
    background-color: #a30606;
}

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

.page-news__featured-news, .page-news__game-reviews {
    background-color: #0d0d0d; /* Darker background for content sections */
    color: #ffffff;
}

.page-news__expert-guides {
    background-color: #1a1a1a;
    color: #ffffff;
}

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

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

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

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

.page-news__news-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: 10px;
    line-height: 1.4;
}

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

.page-news__card-title a:hover {
    color: #00b34e;
}

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

.page-news__card-summary {
    font-size: 1em;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-flex;
    align-items: center;
    color: #FFFF00;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: #C30808;
}

.page-news__arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.page-news__read-more:hover .page-news__arrow {
    transform: translateX(5px);
}

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

.page-news__guide-item {
    background: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

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

.page-news__guide-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__guide-title a:hover {
    color: #00b34e;
}

.page-news__guide-text {
    font-size: 0.95em;
    color: #e0e0e0;
    line-height: 1.6;
}

.page-news__faq-section {
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.page-news__faq-item {
    background: #2a2a2a;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #017439;
    background: #3a3a3a;
    border-bottom: 1px solid #444;
    list-style: none; /* For details/summary */
}

.page-news__faq-question::-webkit-details-marker {
    display: none; /* For details/summary */
}

.page-news__faq-qtext {
    flex-grow: 1;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #FFFF00;
}

.page-news__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #e0e0e0;
    line-height: 1.6;
    border-top: 1px solid #444;
}

.page-news__cta-section {
    background-color: #017439;
    text-align: center;
    padding: 80px 0;
}

.page-news__cta-content {
    max-width: 800px;
    margin: 0 auto;
    color: #ffffff;
}

.page-news__cta-title {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: bold;
}

.page-news__cta-text {
    font-size: 1.1em;
    color: #f0f0f0;
    line-height: 1.7;
    margin-bottom: 40px;
}

.page-news__cta-button {
    font-size: 1.1em;
    padding: 18px 35px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 3em;
    }
    .page-news__description {
        font-size: 1.1em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        height: 450px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-news__hero-content {
        padding: 15px;
    }
    .page-news__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-news__description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-news__btn-primary {
        padding: 12px 25px;
    }
    .page-news__section {
        padding: 40px 0;
    }
    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-news__news-grid {
        grid-template-columns: 1fr;
    }
    .page-news__guide-list {
        grid-template-columns: 1fr;
    }
    .page-news__card-title {
        font-size: 1.3em;
    }
    .page-news__cta-section {
        padding: 60px 0;
    }
    .page-news__cta-title {
        font-size: 1.8em;
    }
    .page-news__cta-text {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-news__cta-button {
        font-size: 1em;
        padding: 15px 30px;
    }
    .page-news__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-news__faq-answer {
        padding: 15px 20px;
    }

    /* Mobile image, video, button adaptations */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__section,
    .page-news__container,
    .page-news__news-card,
    .page-news__guide-item,
    .page-news__faq-item,
    .page-news__cta-section,
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-news__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-news__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .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 and right handled by parent container */
    }
    .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__cta-buttons {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
    .page-news__cta-title {
        font-size: 1.6em;
    }
    .page-news__hero-section {
        height: 350px;
    }
}