/* style/news.css */

:root {
    --primary-color: #FFD700;
    --secondary-color: #DC143C;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --card-bg-dark: rgba(255, 255, 255, 0.08);
    --card-bg-light: #ffffff;
    --border-color: #444;
    --button-padding: 15px 40px;
    --button-font-size: 18px;
    --border-radius-default: 8px;
}

.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark); /* Default text color for dark body background */
    background-color: transparent; /* Inherit from body */
}

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

.page-news__dark-bg {
    background-color: #333;
    color: var(--text-on-dark);
}

.page-news__light-bg {
    background-color: #f0f0f0;
    color: var(--text-on-light);
}

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

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

.page-news__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: inherit;
}

/* Hero Section */
.page-news__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, #2a2a2a, #000000);
    color: var(--text-on-dark);
}

.page-news__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.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: var(--border-radius-default);
    object-fit: cover;
}

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

.page-news__main-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

.page-news__intro-text {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-on-dark);
}

.page-news__cta-button {
    display: inline-block;
    padding: var(--button-padding);
    background: var(--primary-color);
    color: var(--text-on-dark);
    text-decoration: none;
    border-radius: 50px;
    font-size: var(--button-font-size);
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

/* Featured News */
.page-news__featured-news .page-news__section-title {
    color: var(--secondary-color);
}

.page-news__featured-news .page-news__section-description {
    color: var(--text-on-light);
}

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

.page-news__news-card {
    background: var(--card-bg-light);
    border-radius: var(--border-radius-default);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-on-light);
}

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

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

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

.page-news__card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}

.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-excerpt {
    font-size: 16px;
    color: var(--text-on-light);
    margin-bottom: 20px;
}

.page-news__read-more-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* Latest News */
.page-news__latest-news .page-news__section-title {
    color: var(--primary-color);
}

.page-news__latest-news .page-news__section-description {
    color: var(--text-on-dark);
}

.page-news__news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-news__list-item {
    background: var(--card-bg-dark);
    border-radius: var(--border-radius-default);
    margin-bottom: 20px;
    padding: 25px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    color: var(--text-on-dark);
}

.page-news__list-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.page-news__item-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

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

.page-news__item-title a:hover {
    color: var(--secondary-color);
}

.page-news__item-date {
    display: block;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 15px;
}

.page-news__item-excerpt {
    font-size: 16px;
    color: var(--text-on-dark);
}

.page-news__button-group {
    text-align: center;
    margin-top: 40px;
}

.page-news__btn-secondary {
    display: inline-block;
    padding: var(--button-padding);
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: var(--button-font-size);
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-on-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Categories */
.page-news__categories .page-news__section-title {
    color: var(--secondary-color);
}

.page-news__categories .page-news__section-description {
    color: var(--text-on-light);
}

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

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

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

.page-news__category-card img {
    
    
    object-fit: contain;
    margin-bottom: 20px;
}

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

/* Call to Action */
.page-news__call-to-action {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-on-dark);
}

.page-news__call-to-action .page-news__section-title {
    color: var(--text-on-dark);
}

.page-news__call-to-action .page-news__section-description {
    color: var(--text-on-dark);
}

.page-news__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-news__cta-content .page-news__cta-button:first-of-type {
    margin-right: 20px;
}

.page-news__cta-content .page-news__cta-button:last-of-type {
    background: var(--text-on-dark);
    color: var(--secondary-color);
    border: 2px solid var(--text-on-dark);
}

.page-news__cta-content .page-news__cta-button:last-of-type:hover {
    background: var(--primary-color);
    color: var(--text-on-dark);
}

/* FAQ Section */
.page-news__faq-section .page-news__section-title {
    color: var(--secondary-color);
}

.page-news__faq-section .page-news__section-description {
    color: var(--text-on-light);
}

.page-news__faq-list {
    margin-top: 40px;
}

.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius-default);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--card-bg-light);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-default);
    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: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-on-light);
}

.page-news__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-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: 32px;
    height: 32px;
}

.page-news__faq-item.active .page-news__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(180deg);
}

.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 20px;
    opacity: 0;
    background: #f9f9f9;
    color: var(--text-on-light);
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
    border-radius: 0 0 var(--border-radius-default) var(--border-radius-default);
}

.page-news__faq-answer p {
    margin: 0;
    font-size: 16px;
    color: var(--text-on-light);
}

/* Global image reset for responsive behavior */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__section-title {
        font-size: 32px;
    }
    .page-news__main-title {
        font-size: 40px;
    }
    .page-news__intro-text {
        font-size: 18px;
    }
    .page-news__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-news__news-card img {
        height: 200px;
    }
    .page-news__card-title {
        font-size: 20px;
    }
    .page-news__item-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__container {
        padding: 0 15px;
    }
    .page-news__section {
        padding: 40px 0;
    }
    .page-news__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-news__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-news__main-title {
        font-size: 32px;
    }
    .page-news__intro-text {
        font-size: 16px;
    }
    .page-news__cta-button {
        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;
    }
    .page-news__cta-content .page-news__cta-button:first-of-type {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .page-news__grid {
        grid-template-columns: 1fr;
    }
    .page-news__news-card img {
        
    }
    .page-news__card-content {
        padding: 20px;
    }
    .page-news__card-title {
        font-size: 18px;
    }
    .page-news__card-excerpt {
        font-size: 15px;
    }
    .page-news__list-item {
        padding: 20px;
    }
    .page-news__item-title {
        font-size: 17px;
    }
    .page-news__item-date {
        font-size: 13px;
    }
    .page-news__item-excerpt {
        font-size: 15px;
    }
    .page-news__button-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-news__category-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 20px;
    }
    .page-news__category-card {
        padding: 20px 10px;
    }
    .page-news__category-card img {
        
        
        margin-bottom: 15px;
    }
    .page-news__category-card h3 {
        font-size: 16px;
    }
    .page-news__faq-question {
        padding: 15px;
    }
    .page-news__faq-question h3 {
        font-size: 16px;
    }
    .page-news__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-news__faq-answer {
        padding: 0 15px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px !important;
    }
    /* Mobile image responsive optimization */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-section,
    .page-news__cta-content,
    .page-news__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 28px;
    }
    .page-news__intro-text {
        font-size: 15px;
    }
    .page-news__section-title {
        font-size: 24px;
    }
    .page-news__category-grid {
        grid-template-columns: 1fr;
    }
}