/* style/news-platform-updates.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-dark: #000000;
    --bg-light: #f8f9fa;
    --border-light: #e0e0e0;
}

.page-news-platform-updates {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Inherited from body */
}

/* Ensure main content has top padding to avoid fixed header overlap */
.page-news-platform-updates__hero-banner {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    overflow: hidden;
}

.page-news-platform-updates__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 30px;
}

.page-news-platform-updates__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-news-platform-updates__subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--text-light);
}

.page-news-platform-updates__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-news-platform-updates__cta-button:hover {
    background: darken(var(--secondary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-news-platform-updates__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1;
    opacity: 0.2;
}

.page-news-platform-updates__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-news-platform-updates__updates-overview {
    padding: 60px 20px;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

.page-news-platform-updates__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.page-news-platform-updates__section-title--white {
    color: var(--text-light);
}

.page-news-platform-updates__description-text {
    font-size: 18px;
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--text-dark);
}

.page-news-platform-updates__description-text--white {
    color: var(--text-light);
}

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

.page-news-platform-updates__update-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.page-news-platform-updates__update-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-news-platform-updates__card-icon {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-news-platform-updates__card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-news-platform-updates__card-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
}

.page-news-platform-updates__detail-updates {
    padding: 60px 20px;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-news-platform-updates__feature-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.page-news-platform-updates__feature-item {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.page-news-platform-updates__feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

.page-news-platform-updates__feature-image {
    width: 350px;
    height: auto;
    border-radius: 8px;
    margin-right: 30px;
    flex-shrink: 0;
    object-fit: cover;
}

.page-news-platform-updates__feature-item:nth-child(even) .page-news-platform-updates__feature-image {
    margin-right: 0;
    margin-left: 30px;
}

.page-news-platform-updates__feature-content {
    flex-grow: 1;
}

.page-news-platform-updates__feature-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-news-platform-updates__feature-description {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-news-platform-updates__secondary-cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-news-platform-updates__secondary-cta-button:hover {
    background: darken(var(--primary-color), 10%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-news-platform-updates__faq-section {
    padding: 60px 20px;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

.page-news-platform-updates__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-news-platform-updates__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
}

.page-news-platform-updates__faq-item.active .page-news-platform-updates__faq-answer {
    max-height: 2000px !important; /* Sufficiently large value */
    padding: 20px !important;
    opacity: 1;
    background: #f0f0f0;
    border-radius: 0 0 8px 8px;
}

.page-news-platform-updates__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-news-platform-updates__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-news-platform-updates__faq-question:active {
    background: #eeeeee;
}

.page-news-platform-updates__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-dark);
}

.page-news-platform-updates__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-news-platform-updates__faq-item.active .page-news-platform-updates__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg);
}

.page-news-platform-updates__faq-answer p {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
}

.page-news-platform-updates__faq-answer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-news-platform-updates__faq-answer a:hover {
    text-decoration: underline;
}

.page-news-platform-updates__cta-section {
    padding: 60px 20px;
    background-color: var(--bg-dark);
    text-align: center;
    color: var(--text-light);
}

.page-news-platform-updates__cta-container {
    max-width: 900px;
}

.page-news-platform-updates__cta-title {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-news-platform-updates__cta-description {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 40px;
    color: var(--text-light);
}

.page-news-platform-updates__cta-button--large {
    padding: 18px 50px;
    font-size: 20px;
    border-radius: 10px;
    background: var(--secondary-color);
    color: var(--text-light);
}

.page-news-platform-updates__cta-button--large:hover {
    background: darken(var(--secondary-color), 10%);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news-platform-updates__feature-item {
        flex-direction: column;
        text-align: center;
    }

    .page-news-platform-updates__feature-item:nth-child(even) {
        flex-direction: column;
    }

    .page-news-platform-updates__feature-image {
        margin-right: 0;
        margin-bottom: 20px;
        width: 100%;
        max-width: 500px;
    }

    .page-news-platform-updates__feature-item:nth-child(even) .page-news-platform-updates__feature-image {
        margin-left: 0;
    }
}

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

    .page-news-platform-updates__hero-banner {
        padding-top: 140px !important; /* Mobile: Adjust based on fixed header height */
        padding-bottom: 40px;
    }

    .page-news-platform-updates__main-title {
        font-size: 36px;
    }

    .page-news-platform-updates__subtitle {
        font-size: 18px;
    }

    .page-news-platform-updates__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .page-news-platform-updates__section-title {
        font-size: 28px;
    }

    .page-news-platform-updates__description-text {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-news-platform-updates__updates-overview,
    .page-news-platform-updates__detail-updates,
    .page-news-platform-updates__faq-section,
    .page-news-platform-updates__cta-section {
        padding: 40px 15px;
    }

    .page-news-platform-updates__update-card {
        padding: 25px;
    }

    .page-news-platform-updates__card-icon {
        width: 80px;
    }

    .page-news-platform-updates__card-title {
        font-size: 20px;
    }

    .page-news-platform-updates__feature-item {
        padding: 20px;
    }

    .page-news-platform-updates__feature-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin-bottom: 15px;
    }

    .page-news-platform-updates__feature-item:nth-child(even) .page-news-platform-updates__feature-image {
        margin-left: 0;
    }

    .page-news-platform-updates__feature-title {
        font-size: 24px;
    }

    .page-news-platform-updates__feature-description {
        font-size: 15px;
    }

    .page-news-platform-updates__secondary-cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .page-news-platform-updates__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-news-platform-updates__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-news-platform-updates__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .page-news-platform-updates__faq-answer {
        padding: 0 15px;
    }
    
    .page-news-platform-updates__faq-item.active .page-news-platform-updates__faq-answer {
        padding: 15px !important;
    }

    .page-news-platform-updates__cta-title {
        font-size: 32px;
    }

    .page-news-platform-updates__cta-description {
        font-size: 18px;
    }

    .page-news-platform-updates__cta-button--large {
        padding: 15px 35px;
        font-size: 18px;
    }
    
    .page-news-platform-updates img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    .page-news-platform-updates__hero-banner,
    .page-news-platform-updates__updates-overview,
    .page-news-platform-updates__detail-updates,
    .page-news-platform-updates__faq-section,
    .page-news-platform-updates__cta-section,
    .page-news-platform-updates__container,
    .page-news-platform-updates__update-card,
    .page-news-platform-updates__feature-item,
    .page-news-platform-updates__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-news-platform-updates__main-title {
        font-size: 28px;
    }

    .page-news-platform-updates__subtitle {
        font-size: 16px;
    }

    .page-news-platform-updates__section-title {
        font-size: 24px;
    }

    .page-news-platform-updates__card-title {
        font-size: 18px;
    }

    .page-news-platform-updates__feature-title {
        font-size: 20px;
    }

    .page-news-platform-updates__cta-title {
        font-size: 28px;
    }

    .page-news-platform-updates__cta-description {
        font-size: 16px;
    }
    
    .page-news-platform-updates__faq-question h3 {
        font-size: 15px;
    }
    
    .page-news-platform-updates__faq-toggle {
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
}