/* style/resources-security-guarantee.css */

.page-resources-security-guarantee {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: var(--secondary-color, #FFFFFF); /* Ensure background is white as per instructions */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
    overflow-x: hidden; /* Prevent horizontal scroll on wider elements */
}

/* Ensure the main container doesn't cause horizontal overflow */
.page-resources-security-guarantee__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-resources-security-guarantee__hero-section {
    background-color: #000000; /* Dark background for hero for contrast */
    color: #FFFFFF;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Prevent image overflow */
}

.page-resources-security-guarantee__hero-content {
    max-width: 800px;
    z-index: 1; /* Ensure content is above image if layered */
    position: relative;
}

.page-resources-security-guarantee__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
}

.page-resources-security-guarantee__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #E0E0E0;
}

.page-resources-security-guarantee__hero-cta-button {
    display: inline-block;
    background-color: #FCBC45; /* Login color for primary CTA */
    color: #000000;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    margin: 10px;
    min-width: 200px; /* Ensure buttons are not too small */
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping on button */
}

.page-resources-security-guarantee__hero-cta-button:hover {
    background-color: #e0a53b;
}

.page-resources-security-guarantee__hero-cta-button--secondary {
    background-color: #FFFFFF; /* Register color for secondary CTA */
    color: #000000;
}

.page-resources-security-guarantee__hero-cta-button--secondary:hover {
    background-color: #f0f0f0;
}

.page-resources-security-guarantee__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Background image */
}

.page-resources-security-guarantee__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make it a subtle background */
    display: block; /* Remove extra space below image */
    filter: none; /* Ensure no image filters are applied */
}

.page-resources-security-guarantee__introduction-section,
.page-resources-security-guarantee__feature-section,
.page-resources-security-guarantee__conclusion-section,
.page-resources-security-guarantee__return-link-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light background for content sections */
    color: #333333;
}

.page-resources-security-guarantee__feature-section--encryption,
.page-resources-security-guarantee__feature-section--regulation,
.page-resources-security-guarantee__feature-section--payments,
.page-resources-security-guarantee__feature-section--responsible-gaming,
.page-resources-security-guarantee__feature-section--account-protection {
    background-color: #f9f9f9; /* Slightly different background for alternating sections */
}

.page-resources-security-guarantee__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources-security-guarantee__sub-heading {
    font-size: 1.8em;
    color: #000000;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-resources-security-guarantee__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-resources-security-guarantee__link {
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
}

.page-resources-security-guarantee__link:hover {
    text-decoration: underline;
}

.page-resources-security-guarantee__feature-grid,
.page-resources-security-guarantee__payment-grid,
.page-resources-security-guarantee__responsible-gaming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-security-guarantee__feature-item,
.page-resources-security-guarantee__payment-item,
.page-resources-security-guarantee__responsible-gaming-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-resources-security-guarantee__feature-icon,
.page-resources-security-guarantee__payment-icon {
    width: 100%; /* Max width for images in cards */
    max-width: 400px; /* Ensure it's not too wide in a card */
    height: auto;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
    display: block; /* Remove extra space below image */
    margin-left: auto;
    margin-right: auto;
    filter: none; /* Ensure no image filters are applied */
}

.page-resources-security-guarantee__feature-heading {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 10px;
}

.page-resources-security-guarantee__image-center {
    display: block;
    margin: 30px auto;
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    filter: none; /* Ensure no image filters are applied */
}

.page-resources-security-guarantee__cta-group {
    text-align: center;
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* General CTA button style for consistency */
.page-resources-security-guarantee__cta-button {
    display: inline-block;
    background-color: #FCBC45;
    color: #000000;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    min-width: 200px;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping on button */
}

.page-resources-security-guarantee__cta-button:hover {
    background-color: #e0a53b;
}

.page-resources-security-guarantee__cta-button--secondary {
    background-color: #000000;
    color: #FFFFFF;
}

.page-resources-security-guarantee__cta-button--secondary:hover {
    background-color: #333333;
}

.page-resources-security-guarantee__return-link-section {
    text-align: center;
    padding-top: 30px;
    padding-bottom: 30px;
    background-color: #f0f0f0;
}

/* Responsive design */
@media (max-width: 768px) {
    .page-resources-security-guarantee {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }

    .page-resources-security-guarantee__hero-title {
        font-size: 2.2em;
    }

    .page-resources-security-guarantee__hero-description {
        font-size: 1em;
    }

    .page-resources-security-guarantee__section-title {
        font-size: 1.8em;
    }

    .page-resources-security-guarantee__sub-heading {
        font-size: 1.4em;
    }

    .page-resources-security-guarantee__feature-grid,
    .page-resources-security-guarantee__payment-grid,
    .page-resources-security-guarantee__responsible-gaming-grid {
        grid-template-columns: 1fr; /* Stack items on mobile */
    }

    /* Mobile content area prevention of overflow */
    .page-resources-security-guarantee__container {
        padding: 0 15px;
    }
    
    .page-resources-security-guarantee__hero-section,
    .page-resources-security-guarantee__introduction-section,
    .page-resources-security-guarantee__feature-section,
    .page-resources-security-guarantee__conclusion-section,
    .page-resources-security-guarantee__return-link-section {
        padding: 40px 0;
    }

    /* Ensure all images are responsive and don't overflow */
    .page-resources-security-guarantee img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure mobile images are still min 200px wide if they are content images */
        min-height: 200px; /* Ensure mobile images are still min 200px high if they are content images */
    }

    .page-resources-security-guarantee__hero-cta-button, .page-resources-security-guarantee__cta-button {
        width: 100%;
        max-width: 300px; /* Constrain button width on mobile */
        margin-left: auto;
        margin-right: auto;
    }
}

/* Ensure no image filters are used globally within the page content */
.page-resources-security-guarantee img {
    filter: none !important;
}