:root {
    --color-primary: #11A84E; /* Main color */
    --color-secondary: #22C768; /* Auxiliary color */
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;

    /* Text colors based on body background (assuming dark background from --color-background) */
    --text-on-dark: var(--color-text-main);
    --text-on-light: #333333;
}

.page-news {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-on-dark); /* Default text color for dark background */
    background-color: var(--color-background);
    line-height: 1.6;
    font-size: 1rem;
}

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

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 70vh;
    z-index: 1;
    min-width: 200px;
    min-height: 200px;
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 30px 20px;
    background: linear-gradient(180deg, rgba(17, 47, 27, 0.9) 0%, rgba(8, 22, 15, 0.95) 100%);
    border-radius: 10px;
    margin-top: -80px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    box-sizing: border-box;
}

.page-news__main-title {
    color: var(--color-gold);
    font-size: clamp(2em, 5vw, 3.2em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.page-news__hero-description {
    color: var(--color-text-secondary);
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.page-news__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
}

.page-news__btn-primary {
    background: var(--color-button-gradient-start);
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-news__btn-secondary {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(242, 193, 78, 0.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section Titles */
.page-news__section-title {
    color: var(--color-gold);
    font-size: clamp(1.8em, 4vw, 2.8em);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
    font-weight: 700;
    position: relative;
}

.page-news__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-gold);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Latest News Grid */
.page-news__latest-news-section,
.page-news__industry-updates-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.page-news__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    box-sizing: border-box;
    width: 100%;
}

.page-news__news-card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
}

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

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

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

.page-news__card-title {
    font-size: 1.4em;
    color: var(--color-text-main);
    margin-bottom: 10px;
    line-height: 1.4;
    flex-grow: 1;
}

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

.page-news__card-title a:hover {
    color: var(--color-gold);
}

.page-news__card-date {
    font-size: 0.9em;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

.page-news__card-description {
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-news__card-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
    padding: 8px 15px;
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__card-link:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* View All Button Container */
.page-news__view-all-container {
    text-align: center;
    margin-top: 30px;
    box-sizing: border-box;
    width: 100%;
}

/* Industry Updates List */
.page-news__update-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
    box-sizing: border-box;
    width: 100%;
}

.page-news__update-item {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

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

.page-news__update-image {
    width: 250px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 25px;
    flex-shrink: 0;
    min-width: 200px;
    min-height: 150px; /* Adjust min-height to allow for width:250px but still >200px */
}

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

.page-news__update-title {
    font-size: 1.3em;
    color: var(--color-text-main);
    margin-bottom: 8px;
}

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

.page-news__update-title a:hover {
    color: var(--color-gold);
}

.page-news__update-date {
    font-size: 0.85em;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.page-news__update-description {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* CTA Banner */
.page-news__cta-banner {
    background: linear-gradient(90deg, var(--color-deep-green) 0%, var(--color-primary) 100%);
    padding: 80px 20px;
    text-align: center;
    margin-top: 60px;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.2), inset 0 -5px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    width: 100%;
}

.page-news__cta-content {
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.page-news__cta-title {
    color: var(--color-text-main);
    font-size: clamp(1.8em, 4vw, 2.8em);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-news__cta-description {
    color: var(--color-text-secondary);
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.page-news__faq-list {
    margin-top: 30px;
    box-sizing: border-box;
    width: 100%;
}

.page-news__faq-item {
    background-color: var(--color-card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    width: 100%;
}

.page-news__faq-item summary {
    list-style: none;
}

.page-news__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    color: var(--color-text-main);
    font-weight: 600;
    cursor: pointer;
    background-color: var(--color-deep-green);
    border-bottom: 1px solid var(--color-divider);
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: var(--color-primary);
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-gold);
}

.page-news__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.6;
    background-color: var(--color-card-bg);
    border-top: 1px solid var(--color-divider);
}

/* Ensure all images meet minimum size requirements */
.page-news img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure images fill their space without distortion */
}

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

    .page-news__hero-section {
        padding-bottom: 40px;
    }

    .page-news__hero-content {
        margin-top: -50px;
        padding: 20px 15px;
        max-width: 95%;
        width: 100%;
    }

    .page-news__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

    .page-news__hero-description,
    .page-news__cta-description {
        font-size: 1em;
    }

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

    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-news__section-title {
        font-size: clamp(1.6em, 7vw, 2.2em);
        padding-top: 40px;
    }

    .page-news__latest-news-section,
    .page-news__industry-updates-section,
    .page-news__cta-banner,
    .page-news__faq-section {
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-news__news-card {
        max-width: 100% !important;
        width: 100% !important;
    }

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

    .page-news__update-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-news__update-image {
        width: 100%;
        height: 180px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .page-news__cta-banner {
        padding: 50px 15px;
    }

    .page-news__cta-title {
        font-size: clamp(1.6em, 7vw, 2.2em);
    }

    .page-news__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

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

    /* Image responsiveness for all images */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* All containers that might hold images/videos/buttons */
    .page-news__hero-section,
    .page-news__hero-content,
    .page-news__latest-news-section,
    .page-news__news-grid,
    .page-news__news-card,
    .page-news__card-content,
    .page-news__view-all-container,
    .page-news__industry-updates-section,
    .page-news__update-list,
    .page-news__update-item,
    .page-news__update-content,
    .page-news__cta-banner,
    .page-news__cta-content,
    .page-news__faq-section,
    .page-news__faq-list,
    .page-news__faq-item,
    .page-news__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Remove explicit horizontal padding from sections already handled by global rule */
    .page-news__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* Specific override for hero-content for padding */
    .page-news__hero-content {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    /* News grid and update list are already full width, adjust padding inside */
    .page-news__news-grid,
    .page-news__update-list {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}