/* style/index-core-values.css */

/* --- General Styles --- */
.page-index-core-values {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #f8f9fa; /* Light background for the page content area */
}

.page-index-core-values__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-index-core-values__container--center {
    text-align: center;
}

.page-index-core-values__section {
    padding: 60px 0;
    margin-bottom: 20px;
    background-color: #ffffff; /* Default section background */
    border-bottom: 1px solid #e0e0e0;
}

.page-index-core-values__section:last-of-type {
    border-bottom: none;
}

.page-index-core-values__section-title {
    font-size: 36px;
    color: #007bff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-index-core-values__section-intro {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* --- Hero Section --- */
.page-index-core-values__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); /* Blue gradient background */
    color: #ffffff;
    overflow: hidden; /* Prevent image overflow */
}

.page-index-core-values__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-index-core-values__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.page-index-core-values__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-index-core-values__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    margin-top: -80px; /* Overlap with image slightly for visual appeal */
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-index-core-values__hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #ffc107; /* Secondary color for main title */
}

.page-index-core-values__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-index-core-values__hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-index-core-values__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.page-index-core-values__cta-button--primary {
    background: #ffc107;
    color: #000000;
    border-color: #ffc107;
}

.page-index-core-values__cta-button--primary:hover {
    background: #e0a800;
    border-color: #e0a800;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.page-index-core-values__cta-button--secondary {
    background: transparent;
    color: #ffc107;
    border-color: #ffc107;
}

.page-index-core-values__cta-button--secondary:hover {
    background: #ffc107;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* --- Vision & Mission Section --- */
.page-index-core-values__section--vision {
    background-color: #f8f9fa;
    padding-bottom: 80px;
}

.page-index-core-values__vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-core-values__vision-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-core-values__vision-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-index-core-values__vision-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    object-fit: cover;
}

.page-index-core-values__vision-heading {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-index-core-values__vision-text {
    font-size: 16px;
    color: #555555;
}

/* --- Core Values Section --- */
.page-index-core-values__section--values {
    background-color: #ffffff;
    padding-bottom: 80px;
}

.page-index-core-values__value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-core-values__value-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-core-values__value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-index-core-values__value-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    object-fit: cover;
}

.page-index-core-values__value-heading {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-index-core-values__value-text {
    font-size: 16px;
    color: #555555;
}

/* --- Responsible Gambling Section --- */
.page-index-core-values__section--responsible-gambling {
    background-color: #f8f9fa;
    padding-bottom: 80px;
}

.page-index-core-values__responsible-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-core-values__feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-core-values__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-index-core-values__feature-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    object-fit: cover;
}

.page-index-core-values__feature-heading {
    font-size: 22px;
    color: #007bff;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-index-core-values__feature-text {
    font-size: 15px;
    color: #555555;
}

/* --- FAQ Section --- */
.page-index-core-values__section--faq {
    background-color: #ffffff;
    padding-bottom: 80px;
}

.page-index-core-values__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-index-core-values__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index-core-values__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 15px;
    opacity: 0;
}

.page-index-core-values__faq-item.active .page-index-core-values__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-index-core-values__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-index-core-values__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-index-core-values__faq-question:active {
    background: #eeeeee;
}

.page-index-core-values__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #333333;
}

.page-index-core-values__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-index-core-values__faq-item.active .page-index-core-values__faq-toggle {
    color: #007bff; /* Use primary color when active */
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* --- Bottom CTA Section --- */
.page-index-core-values__section--cta-bottom {
    background-color: #007bff; /* Primary color background */
    color: #ffffff;
    padding: 80px 0;
}

.page-index-core-values__section--cta-bottom .page-index-core-values__section-title {
    color: #ffc107; /* Secondary color for title */
}

.page-index-core-values__section--cta-bottom .page-index-core-values__section-intro {
    color: #f0f0f0;
}

.page-index-core-values__section--cta-bottom .page-index-core-values__cta-group {
    margin-top: 40px;
}

/* --- Image specific styles (for min-width enforcement) --- */
.page-index-core-values img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Ensure all content images meet min size requirements */
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Maintain aspect ratio and cover space */
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .page-index-core-values__hero-title {
        font-size: 38px;
    }
    .page-index-core-values__hero-description {
        font-size: 18px;
    }
    .page-index-core-values__section-title {
        font-size: 30px;
    }
    .page-index-core-values__section-intro {
        font-size: 16px;
    }
    .page-index-core-values__hero-content {
        margin-top: -60px;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-index-core-values {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-index-core-values__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-index-core-values__hero-image img {
        border-radius: 4px;
    }
    .page-index-core-values__hero-content {
        margin-top: -40px;
        padding: 20px;
    }
    .page-index-core-values__hero-title {
        font-size: 30px;
        margin-bottom: 10px;
    }
    .page-index-core-values__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-index-core-values__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-index-core-values__hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-index-core-values__section {
        padding: 40px 0;
    }
    .page-index-core-values__section-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    .page-index-core-values__section-intro {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-index-core-values__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* All images responsive */
    .page-index-core-values img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Maintain min size */
        min-height: 200px !important; /* Maintain min size */
    }

    /* FAQ specific mobile styles */
    .page-index-core-values__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-index-core-values__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-index-core-values__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-index-core-values__faq-answer {
        padding: 0 15px;
    }
    .page-index-core-values__faq-item.active .page-index-core-values__faq-answer {
        padding: 15px !important;
    }

    /* Bottom CTA mobile styles */
    .page-index-core-values__section--cta-bottom {
        padding: 60px 0;
    }
    .page-index-core-values__section--cta-bottom .page-index-core-values__cta-group {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-index-core-values__hero-title {
        font-size: 26px;
    }
    .page-index-core-values__hero-description {
        font-size: 15px;
    }
    .page-index-core-values__section-title {
        font-size: 24px;
    }
    .page-index-core-values__vision-heading,
    .page-index-core-values__value-heading,
    .page-index-core-values__feature-heading {
        font-size: 20px;
    }
}