/* style/news-platform-updates.css */

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

/* Base styles for the page content, assuming body background is dark from shared.css */
.page-news-platform-updates {
    background-color: var(--background-color); /* Dark background */
    color: var(--text-main); /* Light text for readability */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Ensure headings maintain good contrast */
.page-news-platform-updates h1,
.page-news-platform-updates h2,
.page-news-platform-updates h3,
.page-news-platform-updates h4 {
    color: var(--text-main);
    margin-bottom: 15px;
}

/* H1 specific style - no fixed large font-size */
.page-news-platform-updates__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 900px; /* Constrain width for readability */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    /* Use clamp for responsive font size if absolutely necessary, but prioritize other properties */
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Example clamp, ensuring it's not excessively large */
}


/* Hero Section */
.page-news-platform-updates__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above, text below */
    align-items: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
    box-sizing: border-box;
}

.page-news-platform-updates__hero-image {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px; /* Space between image and content */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news-platform-updates__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* CTA Buttons in Hero */
.page-news-platform-updates__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-news-platform-updates__btn-primary,
.page-news-platform-updates__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: inline-block; /* Ensure padding works */
    text-align: center;
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-news-platform-updates__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

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

.page-news-platform-updates__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* General Container */
.page-news-platform-updates__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

/* Text Blocks */
.page-news-platform-updates__text-block {
    color: var(--text-secondary);
    font-size: 1.05em;
    margin-bottom: 30px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Updates Overview Section */
.page-news-platform-updates__updates-overview {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

.page-news-platform-updates__card {
    background-color: var(--card-bg); /* Darker green for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height in a row */
}

.page-news-platform-updates__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news-platform-updates__card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistent card images */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-news-platform-updates__card-content {
    padding: 25px;
    flex-grow: 1; /* Allow content to grow and push link to bottom */
    display: flex;
    flex-direction: column;
}

.page-news-platform-updates__card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
}

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

.page-news-platform-updates__card-title a:hover {
    color: var(--secondary-color);
}

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

.page-news-platform-updates__card-description {
    color: var(--text-secondary);
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take up available space */
}

.page-news-platform-updates__card-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start; /* Align to bottom left */
    transition: color 0.3s ease;
}

.page-news-platform-updates__card-link:hover {
    color: var(--glow-color);
    text-decoration: underline;
}

.page-news-platform-updates__view-all-button-container {
    text-align: center;
    margin-top: 50px;
}

/* Features Section */
.page-news-platform-updates__features-section {
    padding: 60px 0;
    background-color: var(--deep-green); /* Slightly different dark green */
}

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

.page-news-platform-updates__feature-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news-platform-updates__feature-icon {
    width: 100%;
    max-width: 250px; /* Example size for feature icons */
    height: auto;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    border-radius: 8px;
    object-fit: cover;
}

.page-news-platform-updates__feature-title {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 10px;
}

.page-news-platform-updates__feature-description {
    color: var(--text-secondary);
    font-size: 0.95em;
}

/* CTA Section */
.page-news-platform-updates__cta-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Use primary color for strong CTA */
    text-align: center;
}

.page-news-platform-updates__cta-section .page-news-platform-updates__section-title {
    color: #ffffff; /* White text on primary background */
}

.page-news-platform-updates__cta-section .page-news-platform-updates__text-block {
    color: #ffffff; /* White text on primary background */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news-platform-updates__cta-section .page-news-platform-updates__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border-color: #ffffff;
}

.page-news-platform-updates__cta-section .page-news-platform-updates__btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.page-news-platform-updates__cta-section .page-news-platform-updates__btn-secondary:hover {
    background: #ffffff;
    color: var(--primary-color);
}

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

.page-news-platform-updates__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news-platform-updates__faq-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.page-news-platform-updates__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--text-main);
    list-style: none; /* Remove default marker */
    border-bottom: 1px solid var(--divider-color);
}

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

.page-news-platform-updates__faq-qtext {
    flex-grow: 1;
}

.page-news-platform-updates__faq-toggle {
    font-size: 1.5em;
    font-weight: lighter;
    margin-left: 15px;
    color: var(--secondary-color);
}

.page-news-platform-updates__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: var(--text-secondary);
    border-top: 1px solid var(--divider-color);
    margin-top: -1px; /* Overlap border with summary for seamless look */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news-platform-updates__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-news-platform-updates__section-title {
        font-size: 2em;
    }
    .page-news-platform-updates__card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    /* General mobile adjustments */
    .page-news-platform-updates {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news-platform-updates__hero-section {
        padding: 10px 15px 40px;
    }

    .page-news-platform-updates__hero-image {
        margin-bottom: 20px;
    }

    .page-news-platform-updates__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-news-platform-updates__hero-description {
        font-size: 1em;
    }

    /* Buttons responsive */
    .page-news-platform-updates__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .page-news-platform-updates__btn-primary,
    .page-news-platform-updates__btn-secondary,
    .page-news-platform-updates a[class*="button"],
    .page-news-platform-updates 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;
    }
    
    /* Ensure button containers also adapt */
    .page-news-platform-updates__cta-buttons,
    .page-news-platform-updates__button-group,
    .page-news-platform-updates__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important; /* Important for multiple buttons side-by-side */
      gap: 10px;
    }

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

    .page-news-platform-updates__text-block {
        font-size: 0.95em;
    }

    .page-news-platform-updates__cards-grid,
    .page-news-platform-updates__feature-list {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-news-platform-updates__card-image,
    .page-news-platform-updates__feature-icon {
        height: auto; /* Allow height to adjust */
        min-height: 200px; /* Maintain minimum size */
        min-width: 200px;
    }

    .page-news-platform-updates__card-content {
        padding: 20px;
    }

    .page-news-platform-updates__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-news-platform-updates__faq-answer {
        padding: 10px 20px 15px;
    }

    /* Images responsive */
    .page-news-platform-updates img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news-platform-updates__section,
    .page-news-platform-updates__card,
    .page-news-platform-updates__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-news-platform-updates__video-section {
        padding-top: 10px !important; /* body has --header-offset, this is decorative */
    }

    /* Video responsive - if any */
    .page-news-platform-updates video,
    .page-news-platform-updates__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news-platform-updates__video-section,
    .page-news-platform-updates__video-container,
    .page-news-platform-updates__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-platform-updates__video-section {
        padding-top: 10px !important;
    }
    
    .page-news-platform-updates__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-news-platform-updates__btn-primary,
    .page-news-platform-updates__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
}