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

/* --- General Page Styles --- */
.page-news-platform-update {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css (#121212) */
}

.page-news-platform-update__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-news-platform-update__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-news-platform-update__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-news-platform-update a {
    color: #FFFF00; /* Yellow for links to ensure visibility on dark background */
    text-decoration: underline;
}

.page-news-platform-update a:hover {
    color: #fff;
    text-decoration: none;
}

/* --- Hero Section --- */
.page-news-platform-update__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px; /* Adjust as needed */
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #017439; /* Brand color as fallback */
}

.page-news-platform-update__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.7; /* Slightly dim image for text readability */
}

.page-news-platform-update__hero-section .page-news-platform-update__container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 8px;
}

.page-news-platform-update__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.1;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-news-platform-update__intro-text {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* --- CTA Buttons --- */
.page-news-platform-update__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-news-platform-update__btn-primary,
.page-news-platform-update__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-news-platform-update__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

.page-news-platform-update__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
    color: #fff;
}

.page-news-platform-update__btn-secondary {
    background-color: #017439; /* Brand color */
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-news-platform-update__btn-secondary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
    color: #fff;
}

/* --- Content Sections --- */
.page-news-platform-update__content-section {
    padding: 80px 0;
}

.page-news-platform-update__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter than body background for contrast */
    color: #ffffff;
}

.page-news-platform-update__light-bg {
    background-color: #f8f8f8; /* Light background for contrast */
    color: #333333;
}

.page-news-platform-update__light-bg .page-news-platform-update__section-title,
.page-news-platform-update__light-bg .page-news-platform-update__paragraph {
    color: #333333;
}

.page-news-platform-update__light-bg a {
    color: #017439; /* Brand color for links on light background */
}

.page-news-platform-update__light-bg a:hover {
    color: #005a2e;
}


/* --- Features Section --- */
.page-news-platform-update__features-section {
    padding: 80px 0;
    background-color: #121212; /* Match body background */
}

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

.page-news-platform-update__feature-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-news-platform-update__feature-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-news-platform-update__feature-icon {
    width: 250px; /* Minimum size requirement for images */
    height: 187px; /* Maintain aspect ratio (4:3 for 800x600) */
    object-fit: cover;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news-platform-update__feature-title {
    font-size: 1.5em;
    color: #FFFF00; /* Yellow for titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news-platform-update__feature-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* --- Benefits Section --- */
.page-news-platform-update__benefits-section {
    padding: 80px 0;
    background-color: #017439; /* Brand color */
    color: #ffffff;
}

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

.page-news-platform-update__benefit-item {
    background-color: rgba(0, 0, 0, 0.3); /* Darker background for contrast on brand color */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.page-news-platform-update__benefit-item:hover {
    transform: translateY(-8px);
    background-color: rgba(0, 0, 0, 0.4);
}

.page-news-platform-update__benefit-title {
    font-size: 1.6em;
    color: #FFFF00; /* Yellow for titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news-platform-update__benefit-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* --- FAQ Section --- */
.page-news-platform-update__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter than body background for contrast */
    color: #ffffff;
}

.page-news-platform-update__faq-list {
    max-width: 900px;
    margin: 50px auto 0;
}

.page-news-platform-update__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news-platform-update__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #017439; /* Brand color for question background */
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.page-news-platform-update__faq-question:hover {
    background-color: #005a2e;
}

.page-news-platform-update__faq-question h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2em;
}

.page-news-platform-update__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-news-platform-update__faq-item.active .page-news-platform-update__faq-toggle {
    transform: rotate(45deg);
}

.page-news-platform-update__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.03); /* Lighter background for answer */
    color: #f0f0f0;
}

.page-news-platform-update__faq-item.active .page-news-platform-update__faq-answer {
    max-height: 1000px !important; /* Important for JS functionality */
    padding: 20px 25px;
}

.page-news-platform-update__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-news-platform-update__main-title {
        font-size: 3em;
    }
    .page-news-platform-update__intro-text {
        font-size: 1.2em;
    }
    .page-news-platform-update__section-title {
        font-size: 2em;
    }
    .page-news-platform-update__feature-icon {
        width: 200px; /* Adjust for smaller screens */
        height: 150px;
    }
}

@media (max-width: 768px) {
    .page-news-platform-update__hero-section {
        height: 500px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }

    .page-news-platform-update__main-title {
        font-size: 2.5em;
        margin-bottom: 15px;
    }

    .page-news-platform-update__intro-text {
        font-size: 1.1em;
        margin-bottom: 25px;
    }

    .page-news-platform-update__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-news-platform-update__btn-primary,
    .page-news-platform-update__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-news-platform-update__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to container */
        overflow: hidden !important;
    }

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

    .page-news-platform-update__content-section,
    .page-news-platform-update__features-section,
    .page-news-platform-update__benefits-section,
    .page-news-platform-update__cta-section,
    .page-news-platform-update__faq-section {
        padding: 50px 0;
    }

    .page-news-platform-update__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Image responsive handling */
    .page-news-platform-update img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure content area images are not too small */
    .page-news-platform-update__feature-icon {
        width: 100% !important; /* Take full width of card */
        height: auto !important; /* Maintain aspect ratio */
        min-height: 200px; /* Enforce minimum height if image is very wide and short */
        object-fit: cover;
    }

    /* FAQ specific adjustments */
    .page-news-platform-update__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-news-platform-update__faq-question h3 {
        font-size: 1.1em;
    }
    .page-news-platform-update__faq-answer {
        padding: 0 20px;
    }
    .page-news-platform-update__faq-item.active .page-news-platform-update__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-news-platform-update__main-title {
        font-size: 2em;
    }
    .page-news-platform-update__intro-text {
        font-size: 1em;
    }
    .page-news-platform-update__section-title {
        font-size: 1.5em;
    }
}