/* style/news.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --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;
}

.page-news {
    color: var(--color-text-main); /* Default text color for the page */
    background-color: var(--color-background); /* Overall page background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--color-deep-green);
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

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

.page-news__hero-content-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.page-news__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-news__description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
.page-news__latest-news-section,
.page-news__categories-section,
.page-news__highlights-section,
.page-news__cta-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--color-divider);
}

.page-news__latest-news-section {
    background-color: var(--color-background);
}

.page-news__categories-section {
    background-color: var(--color-deep-green);
}

.page-news__highlights-section {
    background-color: var(--color-background);
}

.page-news__cta-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-deep-green));
    text-align: center;
    padding: 80px 0;
    border-bottom: none;
}

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

.page-news__section-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__news-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

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

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

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

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

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

.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-excerpt {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__card-link {
    display: inline-block;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    align-self: flex-start;
}

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

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

/* Category List */
.page-news__category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-news__category-item {
    display: inline-block;
    background-color: var(--color-card-bg);
    color: var(--color-text-main);
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

.page-news__category-item:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(87, 227, 141, 0.4);
}

/* Highlights */
.page-news__highlight-item {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__highlight-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.page-news__highlight-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

/* CTA Section */
.page-news__cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(87, 227, 141, 0.6);
}

.page-news__cta-description {
    font-size: 1.2rem;
    color: var(--color-text-main);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-news__btn-primary:hover {
    background: linear-gradient(180deg, var(--color-button-gradient-end) 0%, var(--color-button-gradient-start) 100%);
    box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
    transform: translateY(-2px);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.2);
}

.page-news__btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(17, 168, 78, 0.4);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }
    .page-news__section-title {
        font-size: 2.2rem;
    }
    .page-news__cta-title {
        font-size: 2.5rem;
    }
    .page-news__news-card {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-news__container {
        padding: 0 15px !important;
    }
    .page-news__hero-section {
        padding-bottom: 40px;
    }
    .page-news__latest-news-section,
    .page-news__categories-section,
    .page-news__highlights-section,
    .page-news__cta-section {
        padding: 40px 0;
    }

    .page-news__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-news__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-news__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-news__section-title {
        font-size: 2rem;
    }
    .page-news__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .page-news__card-title {
        font-size: 1.2rem;
    }
    .page-news__card-excerpt {
        font-size: 0.95rem;
    }
    .page-news__highlight-title {
        font-size: 1.4rem;
    }
    .page-news__highlight-text {
        font-size: 0.95rem;
    }
    .page-news__cta-title {
        font-size: 2rem;
    }
    .page-news__cta-description {
        font-size: 1.1rem;
    }

    /* Mobile responsive for images */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__hero-image-wrapper,
    .page-news__news-card,
    .page-news__highlight-item,
    .page-news__category-list,
    .page-news__view-all-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Mobile responsive for buttons */
    .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;
        margin-bottom: 15px; /* Add some spacing between stacked buttons */
    }

    .page-news__view-all-button {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .page-news__cta-section .page-news__btn-primary {
        margin-bottom: 0;
    }

    .page-news__category-list {
        flex-direction: column;
        align-items: center;
    }

    .page-news__category-item {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .page-news__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

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

    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .page-news__news-grid {
        grid-template-columns: 1fr;
    }
    .page-news__main-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
    }
    .page-news__section-title {
        font-size: 1.8rem;
    }
    .page-news__cta-title {
        font-size: 1.8rem;
    }
}