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

/* Base Styles */
.page-resources-security-fairness {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-resources-security-fairness__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* Hero Section */
.page-resources-security-fairness__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
}

.page-resources-security-fairness__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-resources-security-fairness__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

.page-resources-security-fairness__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

.page-resources-security-fairness__hero-title {
    font-size: 3.5em;
    color: #FFD700;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.1;
}

.page-resources-security-fairness__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
}

.page-resources-security-fairness__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-resources-security-fairness__btn-primary,
.page-resources-security-fairness__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Break long words */
}

.page-resources-security-fairness__btn-primary {
    background-color: #FFD700; /* Gold background */
    color: #1A202C; /* Dark text for contrast */
    border: 2px solid #FFD700;
}

.page-resources-security-fairness__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-resources-security-fairness__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-resources-security-fairness__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A202C;
}

/* Intro Section */
.page-resources-security-fairness__intro-section {
    padding: 80px 0;
}

.page-resources-security-fairness__dark-bg {
    background-color: #1A202C; /* Main brand dark color */
    color: #ffffff;
}

.page-resources-security-fairness__light-bg {
    background-color: #0a0a0a; /* Slightly lighter than body, but still dark, using body color for consistency */
    color: #ffffff;
}

/* Grid Layout for Features */
.page-resources-security-fairness__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-security-fairness__card {
    background-color: #1A202C; /* Dark card background */
    color: #ffffff; /* Light text for dark card */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards in a row have same height */
}

.page-resources-security-fairness__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-resources-security-fairness__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 2px solid #FFD700;
}

.page-resources-security-fairness__card-title {
    font-size: 1.5em;
    color: #FFD700;
    margin: 20px 20px 10px;
    font-weight: bold;
}

.page-resources-security-fairness__card-description {
    font-size: 1em;
    color: #f0f0f0;
    padding: 0 20px 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* Specific sections */
.page-resources-security-fairness__security-measures,
.page-resources-security-fairness__fair-play,
.page-resources-security-fairness__responsible-gaming,
.page-resources-security-fairness__transactions,
.page-resources-security-fairness__licensing,
.page-resources-security-fairness__commitment {
    padding: 80px 0;
}

.page-resources-security-fairness__cta-bottom {
    margin-top: 50px;
    text-align: center;
}

.page-resources-security-fairness__cta-bottom--center {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* FAQ Section */
.page-resources-security-fairness__faq-section {
    padding: 80px 0;
}

.page-resources-security-fairness__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-resources-security-fairness__faq-item {
    background-color: #1A202C; /* Dark background for FAQ item */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-security-fairness__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700; /* Gold for question text */
    cursor: pointer;
    background-color: #1A202C; /* Ensure question background is dark */
    transition: background-color 0.3s ease;
}

.page-resources-security-fairness__faq-question:hover {
    background-color: #2c3547; /* Slightly lighter on hover */
}

.page-resources-security-fairness__faq-question-text {
    flex-grow: 1;
}

.page-resources-security-fairness__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-resources-security-fairness__faq-item.active .page-resources-security-fairness__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-security-fairness__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0; /* Light text for answer */
    background-color: #2c3547; /* Slightly different dark background for answer */
}

.page-resources-security-fairness__faq-item.active .page-resources-security-fairness__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px !important;
}

.page-resources-security-fairness__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-security-fairness__hero-title {
        font-size: 3em;
    }
    .page-resources-security-fairness__hero-description {
        font-size: 1.1em;
    }
    .page-resources-security-fairness__section-title {
        font-size: 2em;
    }
    .page-resources-security-fairness__card-title {
        font-size: 1.3em;
    }
}

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

    .page-resources-security-fairness__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure video/hero section is not covered on mobile */
    }

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

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

    .page-resources-security-fairness__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-security-fairness__btn-primary,
    .page-resources-security-fairness__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-resources-security-fairness__grid {
        grid-template-columns: 1fr;
    }

    .page-resources-security-fairness__card-image {
        height: 200px;
    }

    .page-resources-security-fairness__card,
    .page-resources-security-fairness__faq-item {
        margin-left: 15px;
        margin-right: 15px;
    }

    /* Images responsiveness */
    .page-resources-security-fairness img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources-security-fairness__section,
    .page-resources-security-fairness__card,
    .page-resources-security-fairness__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources-security-fairness__cta-bottom--center {
      flex-direction: column;
      gap: 15px;
      padding: 0 15px;
    }
}

/* Ensure content area images are not too small */
.page-resources-security-fairness__security-measures img,
.page-resources-security-fairness__fair-play img,
.page-resources-security-fairness__responsible-gaming img,
.page-resources-security-fairness__transactions img,
.page-resources-security-fairness__licensing img {
  min-width: 200px;
  min-height: 200px;
}