/* style/news.css */
:root {
    --primary-color: #0A2463;
    --secondary-color: #FFD700;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f7fa;
    --bg-dark: #0A2463;
    --card-bg-light: #ffffff;
    --border-color: #e0e0e0;
}

.page-news {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
    background-color: var(--bg-dark);
    color: var(--text-light);
}

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

.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;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

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

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

.page-news__intro-text {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-news__section {
    padding: 80px 0;
}

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

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

.page-news__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555555;
}

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

.page-news__dark-bg .page-news__section-title {
    color: var(--secondary-color);
}

.page-news__dark-bg .page-news__section-description {
    color: #f0f0f0;
}

/* Article Grid */
.page-news__article-grid,
.page-news__event-grid,
.page-news__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-news__article-card,
.page-news__event-card,
.page-news__tip-card {
    background-color: var(--card-bg-light);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__article-image,
.page-news__event-image,
.page-news__tip-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

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

.page-news__article-title,
.page-news__event-title,
.page-news__tip-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 700;
}

.page-news__article-title a,
.page-news__event-title a,
.page-news__tip-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover,
.page-news__event-title a:hover,
.page-news__tip-title a:hover {
    color: var(--secondary-color);
}

.page-news__article-excerpt,
.page-news__event-description,
.page-news__tip-description {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 600;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-news__read-more-button:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* Button Group */
.page-news__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.page-news__btn-primary:hover {
    background: #071a4f;
    border-color: #071a4f;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-news__btn-secondary:hover {
    background: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Security & Support */
.page-news__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 40px;
}

.page-news__security-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.page-news__security-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-news__security-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: invert(100%) saturate(100%) hue-rotate(240deg) brightness(150%); /* Adjust icon color for dark background */
}

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

.page-news__security-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-news__faq-area {
    background-color: var(--bg-light);
}

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

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

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

.page-news__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1;
    color: #666;
    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 25px;
    opacity: 0;
    background: #f9f9f9;
    color: #555;
    border-radius: 0 0 8px 8px;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
}

.page-news__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.7;
}

/* Call to Action Section */
.page-news__call-to-action {
    padding: 100px 0;
    text-align: center;
}

.page-news__call-to-action .page-news__container {
    background-color: var(--bg-dark);
    border-radius: 15px;
    padding: 60px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-news__call-to-action .page-news__section-title {
    color: var(--secondary-color);
    font-size: 2.8em;
    margin-bottom: 25px;
}

.page-news__call-to-action .page-news__section-description {
    color: #f0f0f0;
    font-size: 1.2em;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 2.8em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__article-title, .page-news__event-title, .page-news__tip-title {
        font-size: 1.2em;
    }
    .page-news__hero-image img {
        max-width: 100%;
    }
    .page-news__security-icon {
        width: 80px;
        height: 80px;
    }
}

@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__hero-image {
        margin-bottom: 20px;
    }
    .page-news__hero-image img,
    .page-news__article-image,
    .page-news__event-image,
    .page-news__tip-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-news__main-title {
        font-size: 2em;
    }
    .page-news__intro-text {
        font-size: 1em;
    }
    .page-news__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-news__section {
        padding: 50px 0;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-news__article-grid, .page-news__event-grid, .page-news__tips-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-news__article-card, .page-news__event-card, .page-news__tip-card {
        margin: 0 auto;
        max-width: 400px;
    }
    .page-news__button-group {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }
    .page-news__btn-primary,
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__security-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-news__security-item {
        padding: 25px;
    }
    .page-news__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-news__faq-question h3 {
        font-size: 1em;
        width: calc(100% - 40px);
    }
    .page-news__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 1.5em;
    }
    .page-news__faq-answer {
        padding: 0 15px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px !important;
    }
    .page-news__call-to-action .page-news__container {
        padding: 40px 20px;
    }
    .page-news__call-to-action .page-news__section-title {
        font-size: 2em;
    }
    .page-news__call-to-action .page-news__section-description {
        font-size: 1em;
    }
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__security-icon {
        filter: invert(100%) saturate(100%) hue-rotate(240deg) brightness(150%); /* Ensure icon color is visible on dark background */
    }
}