/* style/index-sunwin-platform-features.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #EA7C07;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --background-light: #FFFFFF;
    --background-dark: #26A9E0;
    --border-color: #e0e0e0;
}

.page-index-sunwin-platform-features {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default to dark text on light body background */
    background: var(--background-light);
}

.page-index-sunwin-platform-features__section {
    padding: 60px 20px;
    text-align: center;
}

.page-index-sunwin-platform-features__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-index-sunwin-platform-features__section-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-index-sunwin-platform-features__section-description {
    font-size: 18px;
    color: #555555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* HERO Section */
.page-index-sunwin-platform-features__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); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, #aed6f1 100%);
    color: var(--text-light);
    overflow: hidden;
}

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

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

.page-index-sunwin-platform-features__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.page-index-sunwin-platform-features__hero-image img:hover {
    transform: scale(1.03);
}

.page-index-sunwin-platform-features__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-index-sunwin-platform-features__hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-index-sunwin-platform-features__hero-description {
    font-size: 22px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-index-sunwin-platform-features__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--secondary-color); /* Login color */
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index-sunwin-platform-features__cta-button:hover {
    background: darken(var(--secondary-color), 10%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* General Buttons */
.page-index-sunwin-platform-features__btn-primary,
.page-index-sunwin-platform-features__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 10px;
    cursor: pointer;
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index-sunwin-platform-features__btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-index-sunwin-platform-features__btn-primary:hover {
    background: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
}

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

.page-index-sunwin-platform-features__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.page-index-sunwin-platform-features__center-button {
    margin-top: 40px;
    text-align: center;
}

/* Dark sections */
.page-index-sunwin-platform-features__dark-section {
    background: var(--background-dark);
    color: var(--text-light);
}

.page-index-sunwin-platform-features__dark-section .page-index-sunwin-platform-features__section-title {
    color: var(--text-light);
}

.page-index-sunwin-platform-features__dark-section .page-index-sunwin-platform-features__section-description {
    color: rgba(255, 255, 255, 0.9);
}

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

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

.page-index-sunwin-platform-features__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index-sunwin-platform-features__feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%;
    display: block;
}

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

.page-index-sunwin-platform-features__card-text {
    font-size: 16px;
    color: #666666;
}

/* Button Group */
.page-index-sunwin-platform-features__button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-index-sunwin-platform-features__game-card {
    background: var(--background-light);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.page-index-sunwin-platform-features__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index-sunwin-platform-features__game-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    max-width: 100%;
}

.page-index-sunwin-platform-features__game-card .page-index-sunwin-platform-features__card-title {
    padding: 20px 20px 0;
    font-size: 22px;
}

.page-index-sunwin-platform-features__game-card .page-index-sunwin-platform-features__card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index-sunwin-platform-features__game-card .page-index-sunwin-platform-features__card-title a:hover {
    color: darken(var(--primary-color), 10%);
}

.page-index-sunwin-platform-features__game-card .page-index-sunwin-platform-features__card-text {
    padding: 0 20px 20px;
    font-size: 15px;
}

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

.page-index-sunwin-platform-features__promo-card {
    background: var(--background-light);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.page-index-sunwin-platform-features__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index-sunwin-platform-features__promo-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    max-width: 100%;
}

.page-index-sunwin-platform-features__promo-card .page-index-sunwin-platform-features__card-title {
    padding: 20px 20px 0;
    font-size: 22px;
    color: var(--primary-color);
}

.page-index-sunwin-platform-features__promo-card .page-index-sunwin-platform-features__card-text {
    padding: 0 20px 20px;
    font-size: 15px;
}

/* Security Grid */
.page-index-sunwin-platform-features__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-index-sunwin-platform-features__security-item {
    background: var(--background-light);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

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

.page-index-sunwin-platform-features__security-item .page-index-sunwin-platform-features__card-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-index-sunwin-platform-features__security-item .page-index-sunwin-platform-features__card-text {
    font-size: 15px;
    color: #666666;
}

/* FAQ Section */
.page-index-sunwin-platform-features__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-sunwin-platform-features__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--background-light);
    color: var(--text-dark);
}

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

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

.page-index-sunwin-platform-features__faq-question:active {
    background: #eeeeee;
}

.page-index-sunwin-platform-features__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: var(--text-dark);
}

.page-index-sunwin-platform-features__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; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-index-sunwin-platform-features__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 25px;
    opacity: 0;
    background: #f9f9f9;
    color: #444444;
}

.page-index-sunwin-platform-features__faq-item.active .page-index-sunwin-platform-features__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 25px !important;
    opacity: 1;
    border-top: 1px solid var(--border-color);
}

.page-index-sunwin-platform-features__faq-item.active .page-index-sunwin-platform-features__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(180deg);
}

.page-index-sunwin-platform-features__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* Blog Section */
.page-index-sunwin-platform-features__blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-sunwin-platform-features__blog-card {
    background: var(--background-light);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.page-index-sunwin-platform-features__blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index-sunwin-platform-features__blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    max-width: 100%;
}

.page-index-sunwin-platform-features__blog-content {
    padding: 20px;
}

.page-index-sunwin-platform-features__blog-content .page-index-sunwin-platform-features__card-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.page-index-sunwin-platform-features__blog-content .page-index-sunwin-platform-features__card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index-sunwin-platform-features__blog-content .page-index-sunwin-platform-features__card-title a:hover {
    color: darken(var(--primary-color), 10%);
}

.page-index-sunwin-platform-features__blog-content .page-index-sunwin-platform-features__card-text {
    font-size: 14px;
    color: #666666;
    margin-bottom: 15px;
}

.page-index-sunwin-platform-features__read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-index-sunwin-platform-features__read-more:hover {
    color: darken(var(--primary-color), 10%);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-sunwin-platform-features__hero-title {
        font-size: 42px;
    }

    .page-index-sunwin-platform-features__hero-description {
        font-size: 20px;
    }

    .page-index-sunwin-platform-features__section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-index-sunwin-platform-features__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-index-sunwin-platform-features__hero-image {
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .page-index-sunwin-platform-features__hero-title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .page-index-sunwin-platform-features__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-index-sunwin-platform-features__cta-button {
        padding: 15px 30px;
        font-size: 18px;
        margin-top: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-index-sunwin-platform-features__section {
        padding: 40px 15px;
    }

    .page-index-sunwin-platform-features__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-index-sunwin-platform-features__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-index-sunwin-platform-features__feature-grid,
    .page-index-sunwin-platform-features__game-grid,
    .page-index-sunwin-platform-features__promo-grid,
    .page-index-sunwin-platform-features__security-grid,
    .page-index-sunwin-platform-features__blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-index-sunwin-platform-features__feature-card,
    .page-index-sunwin-platform-features__game-card,
    .page-index-sunwin-platform-features__promo-card,
    .page-index-sunwin-platform-features__security-item,
    .page-index-sunwin-platform-features__blog-card {
        padding: 20px;
        border-radius: 8px;
    }

    .page-index-sunwin-platform-features__feature-card img,
    .page-index-sunwin-platform-features__game-card img,
    .page-index-sunwin-platform-features__promo-card img,
    .page-index-sunwin-platform-features__blog-card img {
        
        border-radius: 6px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-index-sunwin-platform-features__card-title {
        font-size: 20px;
    }

    .page-index-sunwin-platform-features__card-text {
        font-size: 14px;
    }

    .page-index-sunwin-platform-features__btn-primary,
    .page-index-sunwin-platform-features__btn-secondary {
        padding: 12px 20px;
        font-size: 15px;
        margin: 5px 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-index-sunwin-platform-features__button-group {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px; /* Add padding to button group on mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-index-sunwin-platform-features__faq-question {
        padding: 15px 20px;
    }

    .page-index-sunwin-platform-features__faq-question h3 {
        font-size: 16px;
    }

    .page-index-sunwin-platform-features__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }

    .page-index-sunwin-platform-features__faq-answer {
        padding: 0 20px;
    }

    .page-index-sunwin-platform-features__faq-item.active .page-index-sunwin-platform-features__faq-answer {
        padding: 15px 20px !important;
    }

    .page-index-sunwin-platform-features p,
    .page-index-sunwin-platform-features li {
        font-size: 15px;
    }

    .page-index-sunwin-platform-features__container {
        padding: 0;
    }
    .page-index-sunwin-platform-features__section, .page-index-sunwin-platform-features__card, .page-index-sunwin-platform-features__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}