/* style/resources-tk88-security-responsible-gaming.css */

/* Global styles for this page scope */
.page-resources-tk88-security-responsible-gaming {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Default text color for dark body background */
    background-color: var(--dark-bg-1, #0d0d0d); /* Assuming shared.css defines a dark background */
}

.page-resources-tk88-security-responsible-gaming__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section (Module 1: H1 + CTA) */
.page-resources-tk88-security-responsible-gaming__hero-section {
    background: linear-gradient(135deg, var(--primary-color, #007bff), #0056b3);
    color: #ffffff;
    padding: 100px 20px;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    position: relative;
    overflow: hidden;
}

.page-resources-tk88-security-responsible-gaming__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-tk88-security-responsible-gaming__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.page-resources-tk88-security-responsible-gaming__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources-tk88-security-responsible-gaming__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%; /* Ensure button adapts to container */
}

.page-resources-tk88-security-responsible-gaming__cta-button--primary {
    background: var(--secondary-color, #FFD700);
    color: #000000; /* Dark text for yellow button */
}

.page-resources-tk88-security-responsible-gaming__cta-button--primary:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-tk88-security-responsible-gaming__cta-button--secondary {
    background: #ffffff;
    color: var(--primary-color, #007bff);
    border: 2px solid var(--primary-color, #007bff);
}

.page-resources-tk88-security-responsible-gaming__cta-button--secondary:hover {
    background: var(--primary-color, #007bff);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Content Section Styles */
.page-resources-tk88-security-responsible-gaming__content-section {
    padding: 80px 0;
    background-color: var(--dark-bg-2, #1a1a1a);
    color: #f0f0f0;
}

.page-resources-tk88-security-responsible-gaming__content-section:nth-of-type(even) {
    background-color: var(--dark-bg-3, #222222);
}

.page-resources-tk88-security-responsible-gaming__section-title {
    font-size: 2.5em;
    color: var(--secondary-color, #FFD700);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources-tk88-security-responsible-gaming__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #cccccc;
}

/* Security Measures Section */
.page-resources-tk88-security-responsible-gaming__security-measures {
    padding-bottom: 50px;
}

.page-resources-tk88-security-responsible-gaming__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-tk88-security-responsible-gaming__feature-item {
    background: var(--dark-bg-4, #2a2a2a);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-resources-tk88-security-responsible-gaming__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-tk88-security-responsible-gaming__feature-image {
    width: 100%;
    max-width: 400px; /* Example max-width for content images */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
}

.page-resources-tk88-security-responsible-gaming__feature-title {
    font-size: 1.5em;
    color: var(--secondary-color, #FFD700);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources-tk88-security-responsible-gaming__feature-text {
    font-size: 1em;
    color: #cccccc;
}

/* Responsible Gaming Section */
.page-resources-tk88-security-responsible-gaming__responsible-gaming {
    padding-top: 50px;
}

.page-resources-tk88-security-responsible-gaming__responsible-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-tk88-security-responsible-gaming__responsible-item {
    background: var(--dark-bg-4, #2a2a2a);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #f0f0f0;
}

.page-resources-tk88-security-responsible-gaming__responsible-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-tk88-security-responsible-gaming__responsible-title {
    font-size: 1.5em;
    color: var(--primary-color, #007bff);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources-tk88-security-responsible-gaming__responsible-text {
    font-size: 1em;
    color: #cccccc;
}

.page-resources-tk88-security-responsible-gaming__more-info {
    text-align: center;
    margin-top: 50px;
}

.page-resources-tk88-security-responsible-gaming__btn-contact {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color, #007bff);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-resources-tk88-security-responsible-gaming__btn-contact:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Module 2: FAQ Section */
.page-resources-tk88-security-responsible-gaming__faq-section {
    padding: 80px 0;
    background-color: var(--dark-bg-3, #222222);
    color: #f0f0f0;
}

.page-resources-tk88-security-responsible-gaming__faq-list {
    margin-top: 40px;
}

.page-resources-tk88-security-responsible-gaming__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--dark-bg-4, #2a2a2a);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-tk88-security-responsible-gaming__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--dark-bg-4, #2a2a2a);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    position: relative;
}

.page-resources-tk88-security-responsible-gaming__faq-question:hover {
    background: var(--dark-bg-5, #3a3a3a);
}

.page-resources-tk88-security-responsible-gaming__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-resources-tk88-security-responsible-gaming__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color, #FFD700);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-resources-tk88-security-responsible-gaming__faq-item.active .page-resources-tk88-security-responsible-gaming__faq-toggle {
    color: var(--primary-color, #007bff);
    transform: rotate(45deg); /* Change to X or rotate for active state */
}

.page-resources-tk88-security-responsible-gaming__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: var(--dark-bg-5, #3a3a3a);
    color: #cccccc;
    font-size: 1em;
}

.page-resources-tk88-security-responsible-gaming__faq-item.active .page-resources-tk88-security-responsible-gaming__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain any content */
    padding: 20px 25px !important;
    opacity: 1;
    border-radius: 0 0 8px 8px;
}

/* Module 3: Brand Section */
.page-resources-tk88-security-responsible-gaming__brand-section {
    padding: 80px 0;
    background-color: var(--dark-bg-1, #0d0d0d);
    color: #f0f0f0;
}

.page-resources-tk88-security-responsible-gaming__brand-content > p {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #cccccc;
}

.page-resources-tk88-security-responsible-gaming__brand-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-tk88-security-responsible-gaming__brand-item {
    background: var(--dark-bg-4, #2a2a2a);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #f0f0f0;
}

.page-resources-tk88-security-responsible-gaming__brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-tk88-security-responsible-gaming__brand-item-title {
    font-size: 1.5em;
    color: var(--secondary-color, #FFD700);
    margin-bottom: 15px;
    font-weight: bold;
}

/* Module 4: Blog Section */
.page-resources-tk88-security-responsible-gaming__blog-section {
    padding: 80px 0;
    background-color: var(--dark-bg-2, #1a1a1a);
    color: #f0f0f0;
}

.page-resources-tk88-security-responsible-gaming__blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-tk88-security-responsible-gaming__blog-item {
    background: var(--dark-bg-4, #2a2a2a);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-tk88-security-responsible-gaming__blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources-tk88-security-responsible-gaming__blog-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 25px;
}

.page-resources-tk88-security-responsible-gaming__blog-image {
    width: 100%;
    height: 200px; /* Fixed height for blog images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-resources-tk88-security-responsible-gaming__blog-item-title {
    font-size: 1.3em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources-tk88-security-responsible-gaming__blog-item-excerpt {
    font-size: 0.95em;
    color: #cccccc;
    margin-bottom: 15px;
}

.page-resources-tk88-security-responsible-gaming__blog-item-date {
    font-size: 0.85em;
    color: #999999;
}

.page-resources-tk88-security-responsible-gaming__view-all {
    text-align: center;
    margin-top: 50px;
}

.page-resources-tk88-security-responsible-gaming__btn-view-all {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color, #007bff);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-resources-tk88-security-responsible-gaming__btn-view-all:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-tk88-security-responsible-gaming__main-title {
        font-size: 2.8em;
    }
    .page-resources-tk88-security-responsible-gaming__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources-tk88-security-responsible-gaming {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources-tk88-security-responsible-gaming__container {
        padding: 0 15px;
    }

    .page-resources-tk88-security-responsible-gaming__hero-section {
        padding: 80px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources-tk88-security-responsible-gaming__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-resources-tk88-security-responsible-gaming__description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-resources-tk88-security-responsible-gaming__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent buttons from touching edges */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-resources-tk88-security-responsible-gaming__cta-button {
        width: 100% !important; /* Ensure buttons take full width */
        max-width: 100% !important;
        padding: 12px 25px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-resources-tk88-security-responsible-gaming__content-section {
        padding: 50px 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources-tk88-security-responsible-gaming__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-resources-tk88-security-responsible-gaming__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-resources-tk88-security-responsible-gaming__features-grid,
    .page-resources-tk88-security-responsible-gaming__responsible-features,
    .page-resources-tk88-security-responsible-gaming__brand-highlights,
    .page-resources-tk88-security-responsible-gaming__blog-list {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .page-resources-tk88-security-responsible-gaming__feature-item,
    .page-resources-tk88-security-responsible-gaming__responsible-item,
    .page-resources-tk88-security-responsible-gaming__brand-item,
    .page-resources-tk88-security-responsible-gaming__blog-item {
        padding: 25px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-resources-tk88-security-responsible-gaming__feature-image,
    .page-resources-tk88-security-responsible-gaming__blog-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Important for responsive images */
        object-fit: cover;
    }

    .page-resources-tk88-security-responsible-gaming__feature-title,
    .page-resources-tk88-security-responsible-gaming__responsible-title,
    .page-resources-tk88-security-responsible-gaming__brand-item-title {
        font-size: 1.3em;
    }

    .page-resources-tk88-security-responsible-gaming__btn-contact,
    .page-resources-tk88-security-responsible-gaming__btn-view-all {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* FAQ specific mobile styles */
    .page-resources-tk88-security-responsible-gaming__faq-section {
        padding: 50px 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources-tk88-security-responsible-gaming__faq-question {
        padding: 15px 20px;
    }

    .page-resources-tk88-security-responsible-gaming__faq-question h3 {
        font-size: 1em;
    }

    .page-resources-tk88-security-responsible-gaming__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
        margin-left: 15px;
    }

    .page-resources-tk88-security-responsible-gaming__faq-answer {
        padding: 0 20px;
    }

    .page-resources-tk88-security-responsible-gaming__faq-item.active .page-resources-tk88-security-responsible-gaming__faq-answer {
        padding: 15px 20px !important;
    }
}

/* Ensure all images are responsive and don't overflow */
.page-resources-tk88-security-responsible-gaming img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure all video elements are responsive and don't overflow */
.page-resources-tk88-security-responsible-gaming video {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .page-resources-tk88-security-responsible-gaming img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources-tk88-security-responsible-gaming video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources-tk88-security-responsible-gaming__section,
    .page-resources-tk88-security-responsible-gaming__card,
    .page-resources-tk88-security-responsible-gaming__container,
    .page-resources-tk88-security-responsible-gaming__features-grid,
    .page-resources-tk88-security-responsible-gaming__responsible-features,
    .page-resources-tk88-security-responsible-gaming__brand-highlights,
    .page-resources-tk88-security-responsible-gaming__blog-list,
    .page-resources-tk88-security-responsible-gaming__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Special handling for sections that might have zero horizontal padding by default */
    .page-resources-tk88-security-responsible-gaming__hero-section,
    .page-resources-tk88-security-responsible-gaming__content-section,
    .page-resources-tk88-security-responsible-gaming__faq-section,
    .page-resources-tk88-security-responsible-gaming__brand-section,
    .page-resources-tk88-security-responsible-gaming__blog-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }
}