/* style/news.css */
:root {
    --primary-color: #E44D26; /* Vibrant Orange */
    --secondary-color: #F7B731; /* Golden Yellow */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #000000;
    --bg-light: #f8f9fa;
    --card-bg-dark: rgba(255, 255, 255, 0.1);
    --border-color-dark: rgba(255, 255, 255, 0.2);
}

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

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

.page-news__hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--text-light);
    border-bottom: 5px solid rgba(255, 255, 255, 0.2);
}

.page-news__hero-container {
    padding-top: 0; /* Hero section itself has padding, no need for extra top padding */
}

.page-news__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
}

.page-news__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.page-news__link-text {
    color: var(--secondary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-news__link-text:hover {
    color: #fff;
}

.page-news__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-news__cta-button--primary {
    background: var(--text-light);
    color: var(--primary-color);
}

.page-news__cta-button--primary:hover {
    background: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button--secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.page-news__cta-button--secondary:hover {
    background: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin: 60px 0 20px 0;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-news__section-description {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.page-news__featured-news-section,
.page-news__latest-news-section,
.page-news__faq-section,
.page-news__about-us-section {
    padding: 40px 0;
}

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

.page-news__news-card {
    background: var(--card-bg-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color-dark);
}

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

.page-news__news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.page-news__news-card-content {
    padding: 25px;
    color: var(--text-light);
}

.page-news__news-card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-news__news-card-excerpt {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-news__news-card-date {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 10px;
}

.page-news__news-card-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.page-news__news-card-read-more:hover {
    color: var(--secondary-color);
}

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

.page-news__news-card-link:hover .page-news__arrow {
    transform: translateX(5px);
}

.page-news__news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-news__news-item {
    background: var(--card-bg-dark);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color-dark);
}

.page-news__news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-news__news-item-link {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.page-news__news-item-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-news__news-item-excerpt {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    line-height: 1.6;
}

.page-news__news-item-date {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
}

.page-news__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 10px;
}

.page-news__pagination-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg-dark);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 1px solid var(--border-color-dark);
}

.page-news__pagination-link:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.page-news__pagination-link--active {
    background: var(--primary-color);
    color: var(--text-light);
    pointer-events: none;
    border-color: var(--primary-color);
}

/* FAQ Section */
.page-news__faq-section {
    background-color: rgba(0, 0, 0, 0.6);
    border-top: 1px solid var(--border-color-dark);
    border-bottom: 1px solid var(--border-color-dark);
}

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

.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color-dark);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--card-bg-dark);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    position: relative;
}

.page-news__faq-question:hover {
    background: rgba(255, 255, 255, 0.15);
}

.page-news__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--secondary-color);
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.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; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-news__faq-item.active .page-news__faq-toggle {
    color: var(--text-light);
    transform: rotate(45deg); /* Plus to X, or just change text content */
}

.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.75);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 8px 8px;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain any content */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-news__faq-answer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
}

/* About Us Section */
.page-news__about-us-section {
    background: linear-gradient(45deg, var(--bg-dark) 0%, rgba(228, 77, 38, 0.2) 100%);
    padding-bottom: 80px;
}

/* General image styling */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 2.8em;
    }
    .page-news__section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-news {
        padding-top: 100px !important; /* Mobile header adjustment */
        font-size: 15px;
    }

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

    .page-news__hero-section {
        padding: 60px 0;
    }

    .page-news__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-news__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-news__cta-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

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

    .page-news__section-title {
        font-size: 1.8em;
        margin: 40px 0 15px 0;
    }

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

    .page-news__news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-news__news-card-image {
        height: 180px;
    }

    .page-news__news-card-content {
        padding: 20px;
    }

    .page-news__news-card-title {
        font-size: 1.3em;
        margin-bottom: 10px;
    }

    .page-news__news-card-excerpt {
        font-size: 0.9em;
        margin-bottom: 15px;
    }

    .page-news__news-item-link {
        padding: 15px;
    }

    .page-news__news-item-title {
        font-size: 1.1em;
    }

    .page-news__news-item-excerpt {
        font-size: 0.85em;
    }

    .page-news__pagination {
        margin-top: 30px;
        gap: 8px;
    }

    .page-news__pagination-link {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }

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

    .page-news__faq-question h3 {
        font-size: 1.1em;
    }

    .page-news__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }

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

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

    /* Images responsive */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__news-card,
    .page-news__news-item,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    .page-news__hero-container {
        padding-left: 15px;
        padding-right: 15px;
    }

}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 1.8em;
    }

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

    .page-news__news-card-title {
        font-size: 1.2em;
    }

    .page-news__news-card-image {
        height: 150px;
    }
}