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

.page-blog-sunwim-latest-news {
    font-family: Arial, sans-serif;
    color: var(--text-main-color); /* Body text color, assuming dark background from shared.css */
    background-color: var(--background-color);
    line-height: 1.6;
}

.page-blog-sunwim-latest-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-blog-sunwim-latest-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-main-color);
    overflow: hidden;
    padding-bottom: 50px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-blog-sunwim-latest-news__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-blog-sunwim-latest-news__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly dim the image for text readability */
}

.page-blog-sunwim-latest-news__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 80px 20px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 15px;
    margin-top: 50px; /* Push content down slightly from hero image */
}

.page-blog-sunwim-latest-news__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-blog-sunwim-latest-news__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-secondary-color);
}

.page-blog-sunwim-latest-news__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-blog-sunwim-latest-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog-sunwim-latest-news__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-blog-sunwim-latest-news__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
    transform: translateY(-2px);
}

.page-blog-sunwim-latest-news__btn-secondary {
    background: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-blog-sunwim-latest-news__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-blog-sunwim-latest-news__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
    line-height: 1.3;
}

.page-blog-sunwim-latest-news__section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary-color);
    text-align: center;
    margin-bottom: 40px;
}

.page-blog-sunwim-latest-news__section-text {
    font-size: 1rem;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    text-align: justify;
}

.page-blog-sunwim-latest-news__introduction-section,
.page-blog-sunwim-latest-news__features-section,
.page-blog-sunwim-latest-news__blog-section,
.page-blog-sunwim-latest-news__promotions-section,
.page-blog-sunwim-latest-news__register-section,
.page-blog-sunwim-latest-news__faq-section,
.page-blog-sunwim-latest-news__conclusion-section {
    padding: 60px 0;
    border-top: 1px solid var(--divider-color);
}

.page-blog-sunwim-latest-news__features-section .page-blog-sunwim-latest-news__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-blog-sunwim-latest-news__feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog-sunwim-latest-news__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-blog-sunwim-latest-news__feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-blog-sunwim-latest-news__feature-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-blog-sunwim-latest-news__feature-description {
    font-size: 0.95rem;
    color: var(--text-secondary-color);
}

.page-blog-sunwim-latest-news__blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-blog-sunwim-latest-news__blog-card,
.page-blog-sunwim-latest-news__promotion-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-blog-sunwim-latest-news__blog-card:hover,
.page-blog-sunwim-latest-news__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-blog-sunwim-latest-news__blog-image,
.page-blog-sunwim-latest-news__promotion-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-blog-sunwim-latest-news__blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-blog-sunwim-latest-news__blog-title,
.page-blog-sunwim-latest-news__promotion-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-blog-sunwim-latest-news__blog-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog-sunwim-latest-news__blog-title a:hover {
    color: var(--gold-color);
}

.page-blog-sunwim-latest-news__blog-date {
    font-size: 0.85rem;
    color: var(--text-secondary-color);
    margin-bottom: 15px;
}

.page-blog-sunwim-latest-news__blog-excerpt,
.page-blog-sunwim-latest-news__promotion-description {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog-sunwim-latest-news__blog-readmore {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.page-blog-sunwim-latest-news__blog-readmore:hover {
    color: var(--gold-color);
}

.page-blog-sunwim-latest-news__view-all-button-wrapper,
.page-blog-sunwim-latest-news__cta-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-blog-sunwim-latest-news__promotion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-blog-sunwim-latest-news__promotion-card .page-blog-sunwim-latest-news__promotion-title {
    color: var(--primary-color);
    text-align: center;
    padding: 20px 20px 0;
}

.page-blog-sunwim-latest-news__promotion-card .page-blog-sunwim-latest-news__promotion-description {
    text-align: center;
    padding: 0 20px 20px;
}

.page-blog-sunwim-latest-news__faq-items {
    margin-top: 40px;
}

.page-blog-sunwim-latest-news__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-blog-sunwim-latest-news__faq-item[open] {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-blog-sunwim-latest-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none; /* For details tag */
}

.page-blog-sunwim-latest-news__faq-question::-webkit-details-marker {
    display: none; /* For details tag */
}

.page-blog-sunwim-latest-news__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
}

.page-blog-sunwim-latest-news__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95rem;
    color: var(--text-secondary-color);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-blog-sunwim-latest-news__faq-item[open] .page-blog-sunwim-latest-news__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 10px;
    transition: max-height 0.5s ease-in, padding 0.3s ease-in;
}

.page-blog-sunwim-latest-news__conclusion-section .page-blog-sunwim-latest-news__cta-wrapper {
    margin-top: 30px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-blog-sunwim-latest-news__hero-content {
        padding: 60px 20px;
    }
    .page-blog-sunwim-latest-news__hero-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-blog-sunwim-latest-news__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    }
}

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

    .page-blog-sunwim-latest-news__hero-section {
        padding-bottom: 30px;
    }

    .page-blog-sunwim-latest-news__hero-content {
        padding: 40px 15px;
        margin-top: 30px;
    }

    .page-blog-sunwim-latest-news__hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-blog-sunwim-latest-news__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-blog-sunwim-latest-news__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-blog-sunwim-latest-news__cta-button,
    .page-blog-sunwim-latest-news__btn-primary,
    .page-blog-sunwim-latest-news__btn-secondary,
    .page-blog-sunwim-latest-news a[class*="button"],
    .page-blog-sunwim-latest-news 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;
    }
    
    .page-blog-sunwim-latest-news__hero-cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog-sunwim-latest-news__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 20px;
    }

    .page-blog-sunwim-latest-news__section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-blog-sunwim-latest-news__introduction-section,
    .page-blog-sunwim-latest-news__features-section,
    .page-blog-sunwim-latest-news__blog-section,
    .page-blog-sunwim-latest-news__promotions-section,
    .page-blog-sunwim-latest-news__register-section,
    .page-blog-sunwim-latest-news__faq-section,
    .page-blog-sunwim-latest-news__conclusion-section {
        padding: 40px 0;
    }

    .page-blog-sunwim-latest-news__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-blog-sunwim-latest-news__feature-grid,
    .page-blog-sunwim-latest-news__blog-list,
    .page-blog-sunwim-latest-news__promotion-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-blog-sunwim-latest-news__feature-card,
    .page-blog-sunwim-latest-news__blog-card,
    .page-blog-sunwim-latest-news__promotion-card {
        padding: 20px;
    }

    .page-blog-sunwim-latest-news__feature-image,
    .page-blog-sunwim-latest-news__blog-image,
    .page-blog-sunwim-latest-news__promotion-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px;
        min-height: 150px;
    }

    .page-blog-sunwim-latest-news__feature-title {
        font-size: 1.3rem;
    }

    .page-blog-sunwim-latest-news__blog-title,
    .page-blog-sunwim-latest-news__promotion-title {
        font-size: 1.2rem;
    }

    .page-blog-sunwim-latest-news__blog-content {
        padding: 15px;
    }

    .page-blog-sunwim-latest-news__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-blog-sunwim-latest-news__faq-answer {
        padding: 0 20px 15px;
    }

    .page-blog-sunwim-latest-news__video-section {
        padding-top: 10px !important;
    }
}

/* Contrast Fixes */
.page-blog-sunwim-latest-news__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}