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

/* Base styles for the page content */
.page-news-platform-activities {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default background for the page */
}

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

/* Section titles */
.page-news-platform-activities__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

/* Subtitles for content blocks */
.page-news-platform-activities__subtitle {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Text blocks */
.page-news-platform-activities__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-news-platform-activities__text-block--full-width {
    text-align: center;
    max-width: 800px;
    margin: 30px auto;
}

/* Lists */
.page-news-platform-activities__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    padding-left: 0;
}

.page-news-platform-activities__list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.6;
}

.page-news-platform-activities__list--checklist {
    list-style: none;
    padding-left: 0;
}

.page-news-platform-activities__list--checklist li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.page-news-platform-activities__list--checklist li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #26A9E0;
    font-size: 1.2em;
}

/* Buttons */
.page-news-platform-activities__btn-primary,
.page-news-platform-activities__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.page-news-platform-activities__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-news-platform-activities__btn-primary:hover {
    background-color: #1e8dc2;
    border-color: #1e8dc2;
}

.page-news-platform-activities__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Brand primary color */
    border: 2px solid #26A9E0;
}

.page-news-platform-activities__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1e8dc2;
    border-color: #1e8dc2;
}

/* Hero Section */
.page-news-platform-activities__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.page-news-platform-activities__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* No CSS filters allowed */
}

.page-news-platform-activities__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-news-platform-activities__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

.page-news-platform-activities__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #ffffff;
}

.page-news-platform-activities__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #ffffff;
}

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

/* Intro Section */
.page-news-platform-activities__intro-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for contrast */
}

/* Events & Promotions Section */
.page-news-platform-activities__events-promotions-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Dark background (brand primary) */
    color: #ffffff; /* Light text for contrast */
}

.page-news-platform-activities__events-promotions-section .page-news-platform-activities__section-title {
    color: #ffffff; /* Title color for dark background */
}

/* Updates Section */
.page-news-platform-activities__updates-section {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light background */
    color: #333333; /* Dark text for contrast */
}

/* Guide Section */
.page-news-platform-activities__guide-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for contrast */
}

/* CTA Section */
.page-news-platform-activities__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #f0faff; /* Very light blue background */
    color: #333333; /* Dark text for contrast */
}

.page-news-platform-activities__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

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

.page-news-platform-activities__grid--2-cols {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

/* Card Styles */
.page-news-platform-activities__card {
    background-color: #ffffff; /* Card background for light text */
    color: #333333; /* Card text color */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.page-news-platform-activities__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    /* No CSS filters allowed */
}

.page-news-platform-activities__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news-platform-activities__card-description {
    font-size: 1em;
    line-height: 1.7;
    flex-grow: 1; /* Allow description to take available space */
    margin-bottom: 20px;
}

.page-news-platform-activities__card .page-news-platform-activities__btn-primary,
.page-news-platform-activities__card .page-news-platform-activities__btn-secondary {
    margin-top: auto; /* Push button to the bottom */
    width: 100%; /* Make button full width in card */
}

.page-news-platform-activities__content-block {
    padding-right: 20px;
}

.page-news-platform-activities__image-block {
    text-align: center;
}

.page-news-platform-activities__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* No CSS filters allowed */
}

/* FAQ Section */
.page-news-platform-activities__faq-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Brand primary color background */
    color: #ffffff; /* Light text for contrast */
}

.page-news-platform-activities__faq-section .page-news-platform-activities__section-title {
    color: #ffffff; /* Title color for dark background */
}

.page-news-platform-activities__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.page-news-platform-activities__faq-item {
    background-color: #ffffff;
    color: #333333;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

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

.page-news-platform-activities__faq-question:hover {
    background-color: #f0faff;
}

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

.page-news-platform-activities__faq-item.active .page-news-platform-activities__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'x' or simply '-' */
}

.page-news-platform-activities__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Adjust padding for consistency */
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1em;
    line-height: 1.7;
    color: #555555; /* Answer text color */
}

.page-news-platform-activities__faq-item.active .page-news-platform-activities__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 15px 25px 20px; /* Adjust padding when active */
}

.page-news-platform-activities__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* Color Contrast Safeguards */
.page-news-platform-activities__dark-bg {
    background-color: #26A9E0;
    color: #ffffff; /* Light text on dark background */
}

.page-news-platform-activities__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text on light background */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news-platform-activities__hero-title {
        font-size: 3em;
    }
    .page-news-platform-activities__hero-description {
        font-size: 1.2em;
    }
    .page-news-platform-activities__section-title {
        font-size: 2em;
    }
    .page-news-platform-activities__card-title {
        font-size: 1.3em;
    }
    .page-news-platform-activities__grid--2-cols {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
    .page-news-platform-activities__content-block {
        padding-right: 0; /* Remove right padding when stacked */
    }
}

@media (max-width: 768px) {
    .page-news-platform-activities {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news-platform-activities__container {
        padding: 15px;
    }
    .page-news-platform-activities__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-news-platform-activities__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-news-platform-activities__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-news-platform-activities__hero-buttons,
    .page-news-platform-activities__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news-platform-activities__btn-primary,
    .page-news-platform-activities__btn-secondary {
        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;
    }

    /* Images responsiveness */
    .page-news-platform-activities img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news-platform-activities__section,
    .page-news-platform-activities__card,
    .page-news-platform-activities__container,
    .page-news-platform-activities__image-block {
        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-platform-activities__card-image {
        height: auto; /* Allow image height to adjust */
    }

    .page-news-platform-activities__section-title {
        font-size: 1.8em;
    }
    .page-news-platform-activities__subtitle {
        font-size: 1.5em;
    }
    .page-news-platform-activities__card {
        padding: 20px;
    }
    .page-news-platform-activities__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-news-platform-activities__faq-answer {
        padding: 0 20px;
    }
    .page-news-platform-activities__faq-item.active .page-news-platform-activities__faq-answer {
        padding: 10px 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-news-platform-activities__hero-section {
        height: 400px;
    }
    .page-news-platform-activities__hero-title {
        font-size: 1.8em;
    }
    .page-news-platform-activities__hero-description {
        font-size: 0.9em;
    }
    .page-news-platform-activities__section-title {
        font-size: 1.5em;
    }
    .page-news-platform-activities__subtitle {
        font-size: 1.3em;
    }
    .page-news-platform-activities__grid {
        gap: 20px;
    }
}