/* style/resources-how-to-play-sin88-s-safely.css */

:root {
    --primary-color: #FFD700;
    --secondary-color: #1A1A1A;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-card-dark: rgba(255, 255, 255, 0.1);
    --border-color: #e0e0e0;
}

.page-resources-how-to-play-sin88-s-safely {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Matches body background from shared.css */
}

.page-resources-how-to-play-sin88-s-safely__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px);
    background-color: var(--secondary-color);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-resources-how-to-play-sin88-s-safely__hero-content {
    max-width: 900px;
    padding: 40px 20px;
    z-index: 10;
}

.page-resources-how-to-play-sin88-s-safely__hero-title {
    font-size: 3.2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-resources-how-to-play-sin88-s-safely__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-resources-how-to-play-sin88-s-safely__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources-how-to-play-sin88-s-safely__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-resources-how-to-play-sin88-s-safely__content-section {
    padding: 60px 0;
    background-color: var(--text-light);
    color: var(--text-dark);
}

.page-resources-how-to-play-sin88-s-safely__dark-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.page-resources-how-to-play-sin88-s-safely__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-resources-how-to-play-sin88-s-safely__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources-how-to-play-sin88-s-safely__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-resources-how-to-play-sin88-s-safely__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-how-to-play-sin88-s-safely__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-resources-how-to-play-sin88-s-safely__card--dark {
    background-color: var(--background-card-dark);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-how-to-play-sin88-s-safely__card-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-resources-how-to-play-sin88-s-safely__card--dark .page-resources-how-to-play-sin88-s-safely__card-title {
    color: var(--primary-color);
}

.page-resources-how-to-play-sin88-s-safely__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-resources-how-to-play-sin88-s-safely__list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 0;
}

.page-resources-how-to-play-sin88-s-safely__list-item {
    margin-bottom: 10px;
    font-size: 1em;
}

.page-resources-how-to-play-sin88-s-safely__benefits-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.page-resources-how-to-play-sin88-s-safely__benefits-list .page-resources-how-to-play-sin88-s-safely__list-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-resources-how-to-play-sin88-s-safely__benefits-list .page-resources-how-to-play-sin88-s-safely__list-title {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-resources-how-to-play-sin88-s-safely__video-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-align: center;
}

.page-resources-how-to-play-sin88-s-safely__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: var(--secondary-color);
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-how-to-play-sin88-s-safely__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.page-resources-how-to-play-sin88-s-safely__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: cover;
}

.page-resources-how-to-play-sin88-s-safely__faq-section {
    padding: 60px 0;
    background-color: var(--text-light);
    color: var(--text-dark);
}

.page-resources-how-to-play-sin88-s-safely__faq-list {
    margin-top: 40px;
}

.page-resources-how-to-play-sin88-s-safely__faq-item {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-resources-how-to-play-sin88-s-safely__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.page-resources-how-to-play-sin88-s-safely__faq-question:hover {
    background-color: #f0f0f0;
}

.page-resources-how-to-play-sin88-s-safely__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.page-resources-how-to-play-sin88-s-safely__faq-item.active .page-resources-how-to-play-sin88-s-safely__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-how-to-play-sin88-s-safely__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: var(--text-dark);
}

.page-resources-how-to-play-sin88-s-safely__faq-item.active .page-resources-how-to-play-sin88-s-safely__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px;
}

.page-resources-how-to-play-sin88-s-safely__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.page-resources-how-to-play-sin88-s-safely__cta-container {
    max-width: 900px;
    position: relative;
}

.page-resources-how-to-play-sin88-s-safely__cta-title {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.page-resources-how-to-play-sin88-s-safely__cta-description {
    font-size: 1.15em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-how-to-play-sin88-s-safely__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.page-resources-how-to-play-sin88-s-safely__btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.page-resources-how-to-play-sin88-s-safely__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    color: var(--text-light);
    border-color: darken(var(--primary-color), 10%);
}

.page-resources-how-to-play-sin88-s-safely__cta-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-how-to-play-sin88-s-safely__hero-title {
        font-size: 2.8em;
    }
    .page-resources-how-to-play-sin88-s-safely__section-title {
        font-size: 2em;
    }
    .page-resources-how-to-play-sin88-s-safely__card-title {
        font-size: 1.5em;
    }
    .page-resources-how-to-play-sin88-s-safely__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-resources-how-to-play-sin88-s-safely {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources-how-to-play-sin88-s-safely__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources-how-to-play-sin88-s-safely__hero-title {
        font-size: 2.2em;
    }
    .page-resources-how-to-play-sin88-s-safely__hero-description {
        font-size: 1em;
    }
    .page-resources-how-to-play-sin88-s-safely__section-title {
        font-size: 1.8em;
    }
    .page-resources-how-to-play-sin88-s-safely__section-intro {
        font-size: 1em;
    }
    .page-resources-how-to-play-sin88-s-safely__card-grid {
        grid-template-columns: 1fr;
    }
    .page-resources-how-to-play-sin88-s-safely__card {
        padding: 20px;
    }
    .page-resources-how-to-play-sin88-s-safely__card-image {
        height: auto;
        max-height: 200px;
    }
    .page-resources-how-to-play-sin88-s-safely__benefits-list {
        padding: 0 15px;
    }
    .page-resources-how-to-play-sin88-s-safely__benefits-list .page-resources-how-to-play-sin88-s-safely__list-item {
        padding: 20px;
    }
    .page-resources-how-to-play-sin88-s-safely__cta-title {
        font-size: 1.8em;
    }
    .page-resources-how-to-play-sin88-s-safely__cta-description {
        font-size: 1em;
    }
    .page-resources-how-to-play-sin88-s-safely__cta-button {
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Images responsive */
    .page-resources-how-to-play-sin88-s-safely img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-how-to-play-sin88-s-safely__section,
    .page-resources-how-to-play-sin88-s-safely__card,
    .page-resources-how-to-play-sin88-s-safely__container,
    .page-resources-how-to-play-sin88-s-safely__hero-image-wrapper,
    .page-resources-how-to-play-sin88-s-safely__video-wrapper,
    .page-resources-how-to-play-sin88-s-safely__cta-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Videos responsive */
    .page-resources-how-to-play-sin88-s-safely video,
    .page-resources-how-to-play-sin88-s-safely__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-how-to-play-sin88-s-safely__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* FAQ styling for mobile */
    .page-resources-how-to-play-sin88-s-safely__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-resources-how-to-play-sin88-s-safely__faq-answer {
        padding: 0 20px;
    }
    .page-resources-how-to-play-sin88-s-safely__faq-item.active .page-resources-how-to-play-sin88-s-safely__faq-answer {
        padding: 15px 20px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-resources-how-to-play-sin88-s-safely__hero-title {
        font-size: 1.8em;
    }
    .page-resources-how-to-play-sin88-s-safely__section-title {
        font-size: 1.5em;
    }
    .page-resources-how-to-play-sin88-s-safely__cta-title {
        font-size: 1.6em;
    }
}