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

/* Custom properties from color palette */
:root {
    --nw88-primary: #11A84E;
    --nw88-secondary: #22C768;
    --nw88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --nw88-card-bg: #11271B;
    --nw88-background: #08160F;
    --nw88-text-main: #F2FFF6;
    --nw88-text-secondary: #A7D9B8;
    --nw88-border: #2E7A4E;
    --nw88-glow: #57E38D;
    --nw88-gold: #F2C14E;
    --nw88-divider: #1E3A2A;
    --nw88-deep-green: #0A4B2C;
    /* Body background is assumed to be dark from shared.css, so text will be light */
    --text-color-default: var(--nw88-text-main);
    --text-color-secondary-default: var(--nw88-text-secondary);
}

.page-news-platform-updates {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-default);
    background-color: var(--nw88-background);
    line-height: 1.6;
    padding-bottom: 50px;
}

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

/* Hero Section */
.page-news-platform-updates__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 60px;
    background-color: var(--nw88-deep-green);
    overflow: hidden;
}

.page-news-platform-updates__hero-image-wrapper {
    width: 100%;
    max-width: 1920px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news-platform-updates__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

.page-news-platform-updates__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.page-news-platform-updates__main-title {
    color: var(--nw88-gold);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news-platform-updates__description {
    color: var(--nw88-text-main);
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styling */
.page-news-platform-updates__intro-section,
.page-news-platform-updates__updates-overview,
.page-news-platform-updates__detailed-announcements,
.page-news-platform-updates__guide-section,
.page-news-platform-updates__faq-section,
.page-news-platform-updates__cta-final-section {
    padding: 60px 0;
}

.page-news-platform-updates__section-title {
    color: var(--nw88-gold);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-news-platform-updates__text-block {
    color: var(--nw88-text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-news-platform-updates__btn-primary,
.page-news-platform-updates__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news-platform-updates__btn-primary {
    background: var(--nw88-button-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news-platform-updates__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-news-platform-updates__btn-secondary {
    background-color: transparent;
    color: var(--nw88-primary);
    border-color: var(--nw88-primary);
    margin-left: 20px;
}

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

.page-news-platform-updates__cta-section {
    text-align: center;
    margin-top: 40px;
}

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

/* Grid for Updates Overview */
.page-news-platform-updates__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news-platform-updates__update-card {
    background-color: var(--nw88-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--nw88-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news-platform-updates__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-news-platform-updates__card-title {
    color: var(--nw88-gold);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 20px 20px 10px;
    line-height: 1.3;
}

.page-news-platform-updates__card-text {
    color: var(--nw88-text-secondary);
    font-size: 0.95rem;
    padding: 0 20px 20px;
    flex-grow: 1;
}

/* Detailed Announcements List */
.page-news-platform-updates__announcement-card-list {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.page-news-platform-updates__announcement-card {
    background-color: var(--nw88-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--nw88-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news-platform-updates__announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-news-platform-updates__announcement-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-news-platform-updates__announcement-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-news-platform-updates__announcement-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

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

.page-news-platform-updates__announcement-date {
    color: var(--nw88-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.page-news-platform-updates__announcement-excerpt {
    color: var(--nw88-text-main);
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news-platform-updates__read-more {
    color: var(--nw88-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: auto;
}

.page-news-platform-updates__read-more:hover {
    color: var(--nw88-gold);
    text-decoration: underline;
}

/* Guide Section */
.page-news-platform-updates__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news-platform-updates__list-item {
    background-color: var(--nw88-card-bg);
    border: 1px solid var(--nw88-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    color: var(--nw88-text-main);
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-news-platform-updates__list-item strong {
    color: var(--nw88-gold);
}

.page-news-platform-updates__list-item .page-news-platform-updates__link {
    color: var(--nw88-secondary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-news-platform-updates__list-item .page-news-platform-updates__link:hover {
    color: var(--nw88-gold);
}

/* FAQ Section */
.page-news-platform-updates__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news-platform-updates__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--nw88-gold);
    cursor: pointer;
    background-color: var(--nw88-deep-green);
    transition: background-color 0.3s ease;
    list-style: none;
}

.page-news-platform-updates__faq-question::-webkit-details-marker {
    display: none;
}

.page-news-platform-updates__faq-question:hover {
    background-color: color-mix(in srgb, var(--nw88-deep-green) 80%, black);
}

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

.page-news-platform-updates__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--nw88-secondary);
}

.page-news-platform-updates__faq-answer {
    padding: 0 20px 20px;
    color: var(--nw88-text-main);
    font-size: 1rem;
    line-height: 1.7;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    overflow: hidden;
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-news-platform-updates__announcement-card {
        flex-direction: row;
    }

    .page-news-platform-updates__announcement-image {
        width: 350px;
        height: auto;
        flex-shrink: 0;
    }
    .page-news-platform-updates__announcement-content {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .page-news-platform-updates__hero-section {
        padding-bottom: 40px;
    }

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

    .page-news-platform-updates__description {
        font-size: 1rem;
    }

    .page-news-platform-updates__btn-primary,
    .page-news-platform-updates__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        margin-left: 0 !important;
        margin-bottom: 15px;
    }

    .page-news-platform-updates__button-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-news-platform-updates__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }

    .page-news-platform-updates__text-block {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    .page-news-platform-updates__update-card,
    .page-news-platform-updates__announcement-card,
    .page-news-platform-updates__faq-item,
    .page-news-platform-updates__list-item {
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-news-platform-updates img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .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__container {
        padding: 0 15px;
    }

    .page-news-platform-updates__card-image,
    .page-news-platform-updates__announcement-image {
        height: auto;
        max-height: 250px;
    }
    
    .page-news-platform-updates__detailed-announcements .page-news-platform-updates__announcement-card {
        flex-direction: column;
    }
    .page-news-platform-updates__announcement-image {
        width: 100%;
    }
}