/* style/resources-tk88-bet-game-guide.css */

/* Base styles for the page content */
.page-resources-tk88-bet-game-guide {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background #f0f2f5 */
    background-color: #f0f2f5;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources-tk88-bet-game-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-resources-tk88-bet-game-guide__hero-section {
    position: relative;
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
}

.page-resources-tk88-bet-game-guide__hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.page-resources-tk88-bet-game-guide__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-resources-tk88-bet-game-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources-tk88-bet-game-guide__hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-resources-tk88-bet-game-guide__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 400px; /* Ensure image wrapper has a decent size */
}

.page-resources-tk88-bet-game-guide__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce minimum size for images */
    min-height: 200px;
}

/* Section titles */
.page-resources-tk88-bet-game-guide__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    position: relative;
}

.page-resources-tk88-bet-game-guide__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-resources-tk88-bet-game-guide__dark-bg {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-resources-tk88-bet-game-guide__dark-bg .page-resources-tk88-bet-game-guide__section-title {
    color: #FFFFFF;
}
.page-resources-tk88-bet-game-guide__dark-bg .page-resources-tk88-bet-game-guide__section-title::after {
    background-color: #FFFFFF;
}

.page-resources-tk88-bet-game-guide__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-resources-tk88-bet-game-guide__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-resources-tk88-bet-game-guide__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size for images */
    min-height: 200px;
}

/* Buttons */
.page-resources-tk88-bet-game-guide__btn-primary,
.page-resources-tk88-bet-game-guide__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    min-width: 150px; /* Ensure buttons have a reasonable minimum width */
    font-size: 1em; /* Ensure button text is readable */
}

.page-resources-tk88-bet-game-guide__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-resources-tk88-bet-game-guide__btn-primary:hover {
    background-color: #1a8cc7;
    border-color: #1a8cc7;
    transform: translateY(-2px);
}

.page-resources-tk88-bet-game-guide__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-resources-tk88-bet-game-guide__btn-secondary:hover {
    background-color: #f0f2f5;
    color: #1a8cc7;
    border-color: #1a8cc7;
    transform: translateY(-2px);
}

/* Getting Started Section */
.page-resources-tk88-bet-game-guide__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-tk88-bet-game-guide__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-resources-tk88-bet-game-guide__step-card .page-resources-tk88-bet-game-guide__card-title {
    color: #FFFFFF;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-resources-tk88-bet-game-guide__step-card .page-resources-tk88-bet-game-guide__card-text {
    color: #f0f0f0;
    margin-bottom: 25px;
}

/* Game Categories Section */
.page-resources-tk88-bet-game-guide__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-tk88-bet-game-guide__game-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources-tk88-bet-game-guide__game-card:hover {
    transform: translateY(-5px);
}

.page-resources-tk88-bet-game-guide__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce minimum size for images */
    min-height: 200px;
}

.page-resources-tk88-bet-game-guide__game-card .page-resources-tk88-bet-game-guide__card-title {
    font-size: 1.4em;
    margin: 20px 15px 10px;
    color: #26A9E0;
}
.page-resources-tk88-bet-game-guide__game-card .page-resources-tk88-bet-game-guide__card-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}
.page-resources-tk88-bet-game-guide__game-card .page-resources-tk88-bet-game-guide__card-title a:hover {
    color: #1a8cc7;
}

.page-resources-tk88-bet-game-guide__game-card .page-resources-tk88-bet-game-guide__card-text {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px 20px;
    flex-grow: 1; /* Allow text to grow */
}

.page-resources-tk88-bet-game-guide__game-card .page-resources-tk88-bet-game-guide__btn-primary {
    margin: 0 15px 20px;
    width: calc(100% - 30px);
}

/* Detailed Guide Section */
.page-resources-tk88-bet-game-guide__guide-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-tk88-bet-game-guide__guide-title {
    font-size: 1.6em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.page-resources-tk88-bet-game-guide__guide-text {
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-resources-tk88-bet-game-guide__guide-item .page-resources-tk88-bet-game-guide__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border-color: #FFFFFF;
}
.page-resources-tk88-bet-game-guide__guide-item .page-resources-tk88-bet-game-guide__btn-secondary:hover {
    background-color: #f0f2f5;
    color: #1a8cc7;
    border-color: #f0f2f5;
}


/* Security and Support Section */
.page-resources-tk88-bet-game-guide__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-tk88-bet-game-guide__feature-card {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources-tk88-bet-game-guide__feature-card .page-resources-tk88-bet-game-guide__card-title {
    color: #26A9E0;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-resources-tk88-bet-game-guide__feature-card .page-resources-tk88-bet-game-guide__card-text {
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* FAQ Section */
.page-resources-tk88-bet-game-guide__faq-list {
    margin-top: 40px;
}

.page-resources-tk88-bet-game-guide__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-tk88-bet-game-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFFFF;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-resources-tk88-bet-game-guide__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-resources-tk88-bet-game-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-resources-tk88-bet-game-guide__faq-item.active .page-resources-tk88-bet-game-guide__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-tk88-bet-game-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-resources-tk88-bet-game-guide__faq-item.active .page-resources-tk88-bet-game-guide__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure it overrides other styles */
    padding: 20px 30px;
}

.page-resources-tk88-bet-game-guide__faq-answer p {
    margin-bottom: 10px;
}

/* Conclusion Section */
.page-resources-tk88-bet-game-guide__conclusion-section {
    padding-bottom: 80px;
}

.page-resources-tk88-bet-game-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources-tk88-bet-game-guide__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }

    .page-resources-tk88-bet-game-guide__hero-content {
        max-width: 100%;
    }

    .page-resources-tk88-bet-game-guide__hero-image-wrapper {
        justify-content: center;
        margin-top: 40px;
    }

    .page-resources-tk88-bet-game-guide__hero-title {
        font-size: 2.5em;
    }

    .page-resources-tk88-bet-game-guide__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* Mobile specific padding for content sections */
    .page-resources-tk88-bet-game-guide__container {
        padding: 15px;
    }

    .page-resources-tk88-bet-game-guide__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure it's not covered */
    }

    .page-resources-tk88-bet-game-guide__hero-title {
        font-size: 2em;
    }

    .page-resources-tk88-bet-game-guide__hero-description {
        font-size: 1em;
    }

    .page-resources-tk88-bet-game-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding-top: 30px;
    }

    /* Images responsive rules */
    .page-resources-tk88-bet-game-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources-tk88-bet-game-guide__hero-image-wrapper,
    .page-resources-tk88-bet-game-guide__image-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }

    /* Buttons responsive rules */
    .page-resources-tk88-bet-game-guide__btn-primary,
    .page-resources-tk88-bet-game-guide__btn-secondary,
    .page-resources-tk88-bet-game-guide a[class*="button"],
    .page-resources-tk88-bet-game-guide 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-resources-tk88-bet-game-guide__hero-cta,
    .page-resources-tk88-bet-game-guide__cta-buttons,
    .page-resources-tk88-bet-game-guide__button-group,
    .page-resources-tk88-bet-game-guide__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important;
        gap: 10px;
        overflow: hidden !important;
    }

    /* FAQ responsive padding */
    .page-resources-tk88-bet-game-guide__faq-question,
    .page-resources-tk88-bet-game-guide__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* General content containers for mobile */
    .page-resources-tk88-bet-game-guide__section,
    .page-resources-tk88-bet-game-guide__card,
    .page-resources-tk88-bet-game-guide__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-resources-tk88-bet-game-guide__hero-title {
        font-size: 1.8em;
    }

    .page-resources-tk88-bet-game-guide__section-title {
        font-size: 1.6em;
    }
}