/* style/news.css */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #e44d26;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #0a0a0a;
    --bg-light: #f5f5f5;
    --border-color: #333333;
    --card-bg-dark: rgba(255, 255, 255, 0.08);
    --card-bg-light: #ffffff;
}

.page-news {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Body background is dark, so text is light */
    background-color: var(--bg-dark);
    line-height: 1.6;
    padding-top: var(--header-offset, 120px);
}

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

.page-news__section-title {
    font-size: 38px;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-news__section-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-news__hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero:1920x1080:mcw77,news_hero,dynamic_background]') center/cover no-repeat;
    padding: 80px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-news__hero-container {
    max-width: 900px;
    color: var(--text-light);
}

.page-news__main-title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

.page-news__cta-button {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-news__btn-primary {
    background: var(--secondary-color);
    color: var(--text-light);
}

.page-news__btn-primary:hover {
    background: darken(var(--secondary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-news__btn-secondary:hover {
    background: rgba(228, 77, 38, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Latest News Section */
.page-news__dark-section {
    background-color: var(--primary-color);
    padding: 60px 0;
}

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

.page-news__article-card {
    background: var(--card-bg-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

.page-news__article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-news__article-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__article-excerpt {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-news__article-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
    display: block;
}

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

.page-news__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    text-align: center;
}

.page-news__category-card {
    background: var(--card-bg-dark);
    border-radius: 12px;
    padding: 25px 15px;
    text-decoration: none;
    color: var(--text-light);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__category-card:hover {
    transform: translateY(-5px);
    background-color: rgba(228, 77, 38, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__category-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: brightness(1.2);
}

.page-news__category-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 0;
}

/* Platform Highlights Section */
.page-news__article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-news__list-item {
    background: var(--card-bg-dark);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__list-link {
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.page-news__list-image {
    width: 200px;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 25px;
    flex-shrink: 0;
}

.page-news__list-content {
    flex-grow: 1;
}

.page-news__list-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.page-news__list-excerpt {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.page-news__list-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    display: block;
}

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

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

.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: var(--card-bg-dark);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    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.1);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.page-news__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-news__faq-item.active .page-news__faq-toggle {
    color: var(--text-light);
    transform: rotate(45deg); /* Use rotate for '-' effect */
}

.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;
    opacity: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 10px 10px;
}

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

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

/* Call to Action Bottom */
.page-news__cta-bottom {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('[GALLERY:bg:1920x1080:mcw77,cta_background,dynamic_pattern]') center/cover no-repeat;
}

.page-news__cta-bottom .page-news__section-title {
    color: var(--secondary-color);
}

.page-news__cta-bottom .page-news__section-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__section-title {
        font-size: 34px;
    }
    .page-news__hero-description {
        font-size: 18px;
    }
    .page-news__main-title {
        font-size: 44px;
    }
    .page-news__list-link {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-news__list-image {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-news {
        padding-top: var(--header-offset, 120px) !important;
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-news__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-news__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-news__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }

    .page-news__main-title {
        font-size: 36px;
    }

    .page-news__hero-description {
        font-size: 16px;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-news__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 25px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news__dark-section {
        padding: 40px 0;
    }

    .page-news__article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__article-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__article-image {
        height: 180px;
    }

    .page-news__article-content {
        padding: 20px;
    }

    .page-news__article-title {
        font-size: 20px;
    }

    .page-news__article-excerpt {
        font-size: 15px;
    }

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

    .page-news__category-card {
        padding: 20px 10px;
    }

    .page-news__category-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .page-news__category-title {
        font-size: 16px;
    }

    .page-news__list-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__list-link {
        padding: 15px;
    }

    .page-news__list-image {
        width: 100% !important;
        height: 160px;
        margin-bottom: 15px;
        margin-right: 0;
    }

    .page-news__list-title {
        font-size: 18px;
    }

    .page-news__list-excerpt {
        font-size: 15px;
    }

    .page-news__faq-list {
        max-width: 100%;
    }

    .page-news__faq-question {
        padding: 15px 20px;
    }

    .page-news__faq-question h3 {
        font-size: 16px;
    }

    .page-news__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
        margin-left: 15px;
    }

    .page-news__faq-answer {
        padding: 0 20px;
        font-size: 15px;
    }

    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px 20px !important;
    }

    .page-news__cta-bottom {
        padding: 60px 15px;
    }

    /* Image responsive rules */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__article-card img,
    .page-news__list-item img,
    .page-news__category-card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-news__article-card,
    .page-news__list-item,
    .page-news__category-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 30px;
    }
    .page-news__hero-description {
        font-size: 15px;
    }
    .page-news__section-title {
        font-size: 24px;
    }
    .page-news__article-title {
        font-size: 18px;
    }
    .page-news__list-title {
        font-size: 16px;
    }
    .page-news__category-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}