/* style/resources-sunwin-platform-advantages.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --btn-login: #EA7C07;
}

.page-resources-sunwin-platform-advantages {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--secondary-color); /* Default body background is white */
}

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

.page-resources-sunwin-platform-advantages__section {
    padding: 60px 0;
    text-align: center;
}

.page-resources-sunwin-platform-advantages__section:nth-of-type(even) {
    background-color: var(--bg-light);
}

.page-resources-sunwin-platform-advantages__section-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.page-resources-sunwin-platform-advantages__section-description {
    font-size: 18px;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* HERO Section */
.page-resources-sunwin-platform-advantages__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, #007bff 100%); /* Example gradient */
}

.page-resources-sunwin-platform-advantages__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.page-resources-sunwin-platform-advantages__hero-image {
    width: 100%;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.page-resources-sunwin-platform-advantages__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-resources-sunwin-platform-advantages__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--text-light);
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 12px;
}

.page-resources-sunwin-platform-advantages__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-sunwin-platform-advantages__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--secondary-color);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-resources-sunwin-platform-advantages__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-resources-sunwin-platform-advantages__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-resources-sunwin-platform-advantages__btn-primary {
    background: var(--btn-login); /* Use login color for primary CTA */
    color: var(--text-light);
    border: 2px solid var(--btn-login);
}

.page-resources-sunwin-platform-advantages__btn-primary:hover {
    background: darken(var(--btn-login), 10%);
    border-color: darken(var(--btn-login), 10%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-sunwin-platform-advantages__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-resources-sunwin-platform-advantages__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Advantages Overview Section */
.page-resources-sunwin-platform-advantages__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-resources-sunwin-platform-advantages__advantage-item {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-resources-sunwin-platform-advantages__advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-sunwin-platform-advantages__advantage-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    display: block;
}

.page-resources-sunwin-platform-advantages__advantage-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources-sunwin-platform-advantages__advantage-text {
    font-size: 16px;
    color: var(--text-dark);
}

/* Deep Dive Section */
.page-resources-sunwin-platform-advantages__deep-dive .page-resources-sunwin-platform-advantages__section-description {
    margin-bottom: 60px;
}

.page-resources-sunwin-platform-advantages__content-block {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.page-resources-sunwin-platform-advantages__content-block-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources-sunwin-platform-advantages__content-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    display: block;
}

/* Game Showcase Section */
.page-resources-sunwin-platform-advantages__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-resources-sunwin-platform-advantages__game-card {
    background: var(--secondary-color);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-resources-sunwin-platform-advantages__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-resources-sunwin-platform-advantages__game-image {
    width: 100%;
    height: 180px; /* Fixed height for game images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-resources-sunwin-platform-advantages__game-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-resources-sunwin-platform-advantages__game-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources-sunwin-platform-advantages__game-link:hover {
    text-decoration: underline;
    color: darken(var(--primary-color), 10%);
}

.page-resources-sunwin-platform-advantages__game-text {
    font-size: 15px;
    color: var(--text-dark);
}

/* FAQ Section */
.page-resources-sunwin-platform-advantages__faq-section {
    background-color: var(--bg-light);
}

.page-resources-sunwin-platform-advantages__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    text-align: left;
}

.page-resources-sunwin-platform-advantages__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-resources-sunwin-platform-advantages__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

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

.page-resources-sunwin-platform-advantages__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-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-resources-sunwin-platform-advantages__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 25px;
    opacity: 0;
}

.page-resources-sunwin-platform-advantages__faq-item.active .page-resources-sunwin-platform-advantages__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    background: #fdfdfd;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
}

.page-resources-sunwin-platform-advantages__faq-item.active .page-resources-sunwin-platform-advantages__faq-toggle {
    color: var(--text-dark);
    transform: rotate(0deg); /* No rotation, just change text */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-sunwin-platform-advantages__hero-title {
        font-size: 42px;
    }
    .page-resources-sunwin-platform-advantages__hero-description {
        font-size: 18px;
    }
    .page-resources-sunwin-platform-advantages__section-title {
        font-size: 32px;
    }
    .page-resources-sunwin-platform-advantages__section-description {
        font-size: 16px;
    }
    .page-resources-sunwin-platform-advantages__advantages-grid,
    .page-resources-sunwin-platform-advantages__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources-sunwin-platform-advantages__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-sunwin-platform-advantages__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-resources-sunwin-platform-advantages__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-resources-sunwin-platform-advantages__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-sunwin-platform-advantages__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-resources-sunwin-platform-advantages__section {
        padding: 40px 0;
    }
    .page-resources-sunwin-platform-advantages__section-title {
        font-size: 28px;
    }
    .page-resources-sunwin-platform-advantages__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-resources-sunwin-platform-advantages__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-resources-sunwin-platform-advantages img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }
    .page-resources-sunwin-platform-advantages__advantage-item,
    .page-resources-sunwin-platform-advantages__content-block,
    .page-resources-sunwin-platform-advantages__game-card {
        padding: 20px;
    }
    .page-resources-sunwin-platform-advantages__advantage-title {
        font-size: 20px;
    }
    .page-resources-sunwin-platform-advantages__content-block-title {
        font-size: 24px;
    }
    .page-resources-sunwin-platform-advantages__game-title {
        font-size: 18px;
    }
    .page-resources-sunwin-platform-advantages__faq-question {
        padding: 15px 20px;
    }
    .page-resources-sunwin-platform-advantages__faq-question h3 {
        font-size: 16px;
    }
    .page-resources-sunwin-platform-advantages__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-resources-sunwin-platform-advantages__faq-answer {
        padding: 0 20px;
    }
    .page-resources-sunwin-platform-advantages__faq-item.active .page-resources-sunwin-platform-advantages__faq-answer {
        padding: 15px 20px !important;
    }
}

@media (max-width: 480px) {
    .page-resources-sunwin-platform-advantages__hero-title {
        font-size: 28px;
    }
    .page-resources-sunwin-platform-advantages__hero-description {
        font-size: 15px;
    }
    .page-resources-sunwin-platform-advantages__section-title {
        font-size: 24px;
    }
    .page-resources-sunwin-platform-advantages__section-description {
        font-size: 14px;
    }
    .page-resources-sunwin-platform-advantages__cta-button {
        font-size: 15px;
    }
}