/* style/news.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-button-color: #EA7C07;
    --background-color-default: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
}

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

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

.page-news__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}

.page-news__main-title,
.page-news__section-title {
    font-size: clamp(2em, 4vw, 3.2em);
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.2;
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    text-align: center;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-news__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 20px;
}

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

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

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-news__btn-primary {
    background-color: var(--login-button-color);
    color: var(--text-color-light);
    border: 2px solid var(--login-button-color);
}

.page-news__btn-primary:hover {
    background-color: darken(var(--login-button-color), 10%);
    border-color: darken(var(--login-button-color), 10%);
}

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

.page-news__hero-section .page-news__btn-secondary {
    color: var(--text-color-light);
    border-color: var(--text-color-light);
}

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

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

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

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

.page-news__news-highlights,
.page-news__categories,
.page-news__why-choose-us,
.page-news__cta-section,
.page-news__faq-section {
    padding: 60px 0;
}

/* News List */
.page-news__news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-news__news-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__news-card:hover {
    transform: translateY(-5px);
}

.page-news__news-card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

.page-news__news-card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-news__news-card-title a:hover {
    color: var(--primary-color);
}

.page-news__news-card-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.page-news__news-card-excerpt {
    font-size: 1em;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__news-card-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto;
}

.page-news__news-card-link:hover {
    text-decoration: underline;
}

.page-news__view-all-button-container {
    text-align: center;
}

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

.page-news__category-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-news__category-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.page-news__category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-news__category-text {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

/* Why Choose Us Section */
.page-news__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-news__benefit-item {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.page-news__benefit-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-news__benefit-text {
    font-size: 1em;
    color: #555;
}

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

.page-news__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.page-news__faq-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-color-dark);
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.page-news__faq-item[open] .page-news__faq-question {
    border-bottom: 1px solid #e0e0e0;
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg);
}

.page-news__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__main-title,
    .page-news__section-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
    .page-news__news-list,
    .page-news__category-grid,
    .page-news__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-news__hero-content {
        padding: 15px;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .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: 15px;
        padding-right: 15px;
    }

    .page-news__container {
        padding: 0 15px;
    }

    .page-news__news-highlights,
    .page-news__categories,
    .page-news__why-choose-us,
    .page-news__cta-section,
    .page-news__faq-section {
        padding: 40px 0;
    }

    .page-news__news-list,
    .page-news__category-grid,
    .page-news__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__category-item,
    .page-news__benefit-item,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__hero-image-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__news-highlights .page-news__container,
    .page-news__categories .page-news__container,
    .page-news__why-choose-us .page-news__container,
    .page-news__cta-section .page-news__container,
    .page-news__faq-section .page-news__container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-news__news-card,
    .page-news__category-item,
    .page-news__benefit-item,
    .page-news__faq-item {
        margin-left: 15px;
        margin-right: 15px;
        width: calc(100% - 30px) !important; /* Adjust for padding on container */
    }
}

@media (max-width: 480px) {
    .page-news__main-title,
    .page-news__section-title {
        font-size: clamp(1.5em, 6vw, 2.2em);
    }
    .page-news__hero-description,
    .page-news__section-description {
        font-size: 1em;
    }
    .page-news__news-card-title {
        font-size: 1.2em;
    }
    .page-news__faq-question {
        font-size: 1.1em;
    }
}