/* style/news.css */

/* Custom Properties for Colors */
:root {
    --page-news-bg-color: #08160F;
    --page-news-card-bg: #11271B;
    --page-news-text-main: #F2FFF6;
    --page-news-text-secondary: #A7D9B8;
    --page-news-border-color: #2E7A4E;
    --page-news-glow-color: #57E38D;
    --page-news-gold-color: #F2C14E;
    --page-news-divider-color: #1E3A2A;
    --page-news-deep-green: #0A4B2C;
    --page-news-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-news-primary-color: #11A84E;
    --page-news-secondary-color: #22C768;
}

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

.page-news__section {
    padding: 60px 0;
    position: relative;
}

.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;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6);
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.4); /* Slightly darker overlay for text readability */
    border-radius: 10px;
    box-sizing: border-box;
}

.page-news__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: var(--page-news-text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.2em;
    color: var(--page-news-text-secondary);
    margin-bottom: 30px;
}

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

.page-news__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-news__btn-primary {
    background: var(--page-news-btn-gradient);
    color: #ffffff; /* White text for primary button */
    border: 2px solid transparent;
}

.page-news__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-news__btn-secondary:hover {
    background: var(--page-news-primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* General Section Styling */
.page-news__section-title {
    font-size: 2.5em;
    color: var(--page-news-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-news__content-block {
    margin-bottom: 40px;
}

.page-news__content-block p {
    color: var(--page-news-text-secondary);
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-news__content-block h3 {
    color: var(--page-news-text-main);
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-news__content-block ul {
    list-style: disc;
    margin-left: 20px;
    color: var(--page-news-text-secondary);
}

.page-news__content-block li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-news__image-responsive {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

/* Dark Section */
.page-news__dark-section {
    background-color: var(--page-news-card-bg);
}

/* Introduction Section */
.page-news__introduction-section .page-news__content-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-news__introduction-section .page-news__content-block img {
    flex: 1 1 400px;
    max-width: 500px;
    margin: 0;
}

.page-news__introduction-section .page-news__content-block div {
    flex: 2 1 600px;
}

/* Benefits Section */
.page-news__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__benefit-item {
    background-color: var(--page-news-bg-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-news-border-color);
    transition: transform 0.3s ease;
}

.page-news__benefit-item:hover {
    transform: translateY(-5px);
}

.page-news__benefit-item img {
    width: 100%;
    max-width: 200px; /* Ensure images are not too small, but fit in card */
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-news__benefit-title {
    font-size: 1.5em;
    color: var(--page-news-text-main);
    margin-bottom: 15px;
}

.page-news__benefit-item p {
    color: var(--page-news-text-secondary);
    font-size: 1em;
}

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

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

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

.page-news__category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-news__category-card h3 {
    font-size: 1.5em;
    color: var(--page-news-text-main);
    padding: 20px;
    margin: 0;
}

.page-news__category-card p {
    color: var(--page-news-text-secondary);
    padding: 0 20px 20px;
    flex-grow: 1;
}

.page-news__btn-text {
    color: var(--page-news-gold-color);
    text-decoration: none;
    padding: 15px 20px;
    text-align: right;
    display: block;
    border-top: 1px solid var(--page-news-divider-color);
    transition: color 0.3s ease;
}

.page-news__btn-text:hover {
    color: #ffffff;
}

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

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

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

.page-news__news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

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

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

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

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

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

.page-news__news-excerpt {
    color: var(--page-news-text-secondary);
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__btn-read-more {
    display: inline-block;
    background: var(--page-news-deep-green);
    color: var(--page-news-text-main);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
}

.page-news__btn-read-more:hover {
    background-color: var(--page-news-primary-color);
}

/* Video Section */
.page-news__video-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;
}

.page-news__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.page-news__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    cursor: pointer;
}

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

.page-news__faq-item {
    background-color: var(--page-news-card-bg);
    border: 1px solid var(--page-news-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-news__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--page-news-text-main);
    cursor: pointer;
    list-style: none; /* Remove default marker */
}

.page-news__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

.page-news__faq-toggle {
    font-size: 1.5em;
    color: var(--page-news-gold-color);
    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: 0 20px 20px;
    color: var(--page-news-text-secondary);
    font-size: 1.05em;
}

.page-news__faq-answer p {
    margin-bottom: 10px;
}

.page-news__faq-answer a {
    color: var(--page-news-gold-color);
    text-decoration: none;
}

.page-news__faq-answer a:hover {
    text-decoration: underline;
}

/* Final CTA Section */
.page-news__cta-final-section .page-news__cta-content {
    text-align: center;
    padding: 60px 20px;
}

.page-news__cta-final-section .page-news__section-title {
    margin-bottom: 20px;
}

.page-news__cta-final-section .page-news__section-description {
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-news__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-news__hero-content {
        padding: 30px 15px;
    }

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

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

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

    .page-news__btn {
        width: 100% !important; /* Ensure buttons take full width */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news__section {
        padding: 40px 0;
    }

    .page-news__container {
        padding: 0 15px !important; /* Add padding for mobile containers */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

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

    .page-news__content-block p,
    .page-news__content-block li {
        font-size: 0.95em;
    }

    .page-news__content-block h3 {
        font-size: 1.5em;
    }

    .page-news__introduction-section .page-news__content-block {
        flex-direction: column;
        gap: 30px;
    }

    .page-news__introduction-section .page-news__content-block img {
        max-width: 100%;
    }

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

    .page-news__benefit-item img {
        
    }

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

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

    .page-news__faq-item summary {
        font-size: 1.1em;
        padding: 15px;
    }

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

    /* Image responsive for mobile */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Video responsive for mobile */
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-news__video-section,
    .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-section {
      padding-top: 10px !important; /* Small top padding for mobile */
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: clamp(1.6em, 8vw, 2.2em);
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
    .page-news__hero-content {
        padding: 20px 10px;
    }
    .page-news__btn {
        font-size: 0.9em;
    }
    .page-news__news-image {
        height: 150px;
    }
}