/* style/about.css */

/* Base styles for the about page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css, which is #000000 */
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-about__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    font-weight: bold;
}

.page-about__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.page-about__btn-primary {
    display: inline-block;
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid #26A9E0;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-about__btn-primary:hover {
    background-color: #1f8ac7;
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #26A9E0; /* Primary brand color for text */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: 2px solid #26A9E0;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-about__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Section specific styles */
.page-about__dark-bg {
    background-color: #0d0d0d; /* Slightly lighter dark background than body for contrast */
    color: #ffffff;
}

.page-about__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-about__dark-section {
    background-color: #26A9E0; /* Brand color as background */
    color: #ffffff;
    padding: 60px 0;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Ensure sufficient height */
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    text-align: center;
    background-color: #000000; /* Ensure hero background is dark */
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4; /* Make image subtle */
}

.page-about__hero-section .page-about__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    padding: 40px 20px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-about__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Story Section */
.page-about__story-section {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__story-section .page-about__section-title {
    color: #26A9E0;
}

.page-about__story-section .page-about__text-block {
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-about__image-content {
    display: block;
    margin: 30px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Values Section */
.page-about__values-section {
    padding: 60px 0;
    text-align: center;
}

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

.page-about__value-card {
    background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white on brand color */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
    height: 100%; /* Ensure cards are same height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #ffffff;
}

.page-about__value-card .page-about__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: bold;
}

.page-about__value-card .page-about__card-text {
    font-size: 1em;
    line-height: 1.7;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-about__why-choose-us-section .page-about__section-title {
    color: #26A9E0;
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-about__content-grid .page-about__text-content {
    text-align: justify;
}

.page-about__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

/* Technology & Security Section */
.page-about__tech-security-section {
    padding: 60px 0;
    text-align: center;
}

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

.page-about__tech-card {
    background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white on brand color */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-about__tech-card .page-about__tech-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-about__tech-card .page-about__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: bold;
}

.page-about__tech-card .page-about__card-text {
    font-size: 1em;
    line-height: 1.7;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-about__responsible-gaming-section .page-about__section-title {
    color: #26A9E0;
}

/* Future Vision Section */
.page-about__future-vision-section {
    padding: 60px 0;
    text-align: center;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-about__faq-section .page-about__section-title {
    color: #26A9E0;
}

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

.page-about__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #f0f0f0;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #e5e5e5;
}

.page-about__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #333333;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Change to X or rotate for active */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #555555;
}

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

/* CTA Section */
.page-about__cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-about__cta-section .page-about__text-block {
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__hero-description {
        font-size: 1.2em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__content-grid {
        grid-template-columns: 1fr;
    }
    .page-about__video-wrapper {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile hero */
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about 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-about__hero-buttons,
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__values-grid,
    .page-about__tech-grid {
        grid-template-columns: 1fr;
    }
    .page-about__content-grid {
        grid-template-columns: 1fr;
    }
    .page-about__image-content,
    .page-about__tech-icon {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-about__story-section,
    .page-about__values-section,
    .page-about__why-choose-us-section,
    .page-about__tech-security-section,
    .page-about__responsible-gaming-section,
    .page-about__future-vision-section,
    .page-about__faq-section,
    .page-about__cta-section {
        padding: 40px 0;
    }
    .page-about__video-wrapper {
        margin-top: 30px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* The video-section class is not directly used in HTML, but for consistency if it were */
    .page-about__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-about__faq-item,
    .page-about__faq-question,
    .page-about__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important; /* Adjust padding for mobile */
    }
}