/* style/news.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --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 {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Main text color for the page, suitable for dark background */
    background-color: var(--color-background); /* Page background from custom colors */
    line-height: 1.6;
}

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

.page-news__section-title {
    font-size: clamp(28px, 3.5vw, 42px); /* H1/H2 font-size using clamp */
    color: var(--color-gold); /* Gold color for main titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-news__main-title {
    font-size: clamp(32px, 4.5vw, 56px); /* H1 font-size for hero section */
    color: var(--color-gold); /* Gold color for main titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: 0.8px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-news__text-block {
    font-size: 18px;
    color: var(--color-text-secondary); /* Secondary text color */
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-news__hero-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 1;
    margin-bottom: 30px; /* Space between image and content */
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Limit height to maintain aspect ratio */
    border-radius: 10px;
}

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

.page-news__description {
    font-size: 20px;
    color: var(--color-text-main);
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-news__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box;
    min-width: 180px; /* Ensure minimum width for buttons */
    text-align: center;
}

.page-news__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main); /* White text on dark button */
    border: 2px solid var(--color-deep-green);
}

.page-news__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--color-glow);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--color-gold); /* Gold text on transparent/dark background */
    border: 2px solid var(--color-gold);
}

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

/* Latest Articles Section */
.page-news__latest-articles-section {
    padding: 60px 0;
    background-color: var(--color-deep-green);
}

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

.page-news__article-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;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 10px var(--color-secondary);
}

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

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

.page-news__article-title {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
}

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

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

.page-news__article-meta {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

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

.page-news__read-more-btn {
    display: inline-block;
    color: var(--color-gold);
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
    align-self: flex-start; /* Align to the start of the flex container */
}

.page-news__read-more-btn:hover {
    color: var(--color-secondary);
}

.page-news__view-all-btn-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* Categories Section */
.page-news__categories-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

.page-news__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.page-news__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 10px var(--color-primary);
}

.page-news__category-title {
    font-size: 22px;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__category-description {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.page-news__category-link {
    display: inline-block;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
}

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

/* Why Follow Section */
.page-news__why-follow-section {
    padding: 60px 0;
    background-color: var(--color-deep-green);
}

.page-news__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-news__feature-item {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
}

.page-news__feature-title {
    font-size: 22px;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-news__feature-description {
    font-size: 16px;
    color: var(--color-text-secondary);
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

.page-news__faq-list {
    margin-top: 40px;
}

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: bold;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-deep-green);
    border-bottom: 1px solid var(--color-divider);
    list-style: none; /* For details/summary */
}

/* Hide default marker for <details> */
.page-news__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-news__faq-item summary::marker {
    display: none;
}

.page-news__faq-toggle {
    font-size: 24px;
    font-weight: normal;
    color: var(--color-gold);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-news__faq-answer {
    padding: 20px 25px;
    font-size: 16px;
    color: var(--color-text-secondary);
    background-color: var(--color-card-bg);
}

.page-news__faq-answer p {
    margin: 0;
    color: var(--color-text-secondary);
}

/* CTA Section */
.page-news__cta-section {
    padding: 60px 0;
    background-color: var(--color-deep-green);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-content {
        padding: 0 15px;
    }

    .page-news__articles-grid,
    .page-news__categories-grid,
    .page-news__feature-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news__container {
        padding: 0 15px;
    }

    .page-news__section-title {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 30px;
    }

    .page-news__main-title {
        font-size: clamp(28px, 7vw, 48px);
        margin-bottom: 15px;
    }

    .page-news__description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-news__text-block {
        font-size: 16px;
    }

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

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

    /* Images responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Video responsiveness (if any, though none explicitly added yet, but for future proofing) */
    .page-news video,
    .page-news__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* Image and Video containers responsiveness */
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-image-wrapper,
    .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; /* Prevent horizontal scroll */
    }

    .page-news__video-section {
        padding-top: 10px !important; /* Small top padding for video section */
    }

    /* Button responsiveness */
    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 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: 12px 20px;
        font-size: 16px;
    }

    .page-news__articles-grid,
    .page-news__categories-grid,
    .page-news__feature-list {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .page-news__article-image {
        height: 200px; /* Adjust height for mobile */
    }

    .page-news__article-title {
        font-size: 20px;
    }

    .page-news__category-title,
    .page-news__feature-title {
        font-size: 20px;
    }

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

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