/* style/about.css */

/* Base Styles & Page-specific Variables */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--bg-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

/* Dark Background Sections */
.page-about__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff; /* White text for contrast */
}

.page-about__light-bg {
    background-color: #ffffff; /* Auxiliary color */
    color: #333333; /* Dark text for contrast */
}

/* Hero Section */
.page-about__hero-section {
    padding: 100px 0 60px; 
    text-align: center;
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-about__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* CTA Buttons */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-about__btn-primary,
.page-about__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; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-about__btn-primary {
    background-color: #EA7C07; /* Login color for primary CTA */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-about__btn-primary:hover {
    background-color: #d46f06;
    border-color: #d46f06;
}

.page-about__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #ffffff;
}

.page-about__btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

.page-about__btn-large {
    min-width: 200px; /* Ensure button is large enough */
}

/* Section Titles & Descriptions */
.page-about__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #26A9E0; /* Brand primary color */
    font-weight: bold;
}

.page-about__dark-bg .page-about__section-title {
    color: #ffffff;
}

.page-about__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #555555;
}

.page-about__dark-bg .page-about__section-description {
    color: #f0f0f0;
}

/* Introduction Section */
.page-about__introduction-section {
    padding: 80px 0;
}

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

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #333333;
}

.page-about__image-wrapper {
    text-align: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block; /* Important for proper spacing and max-width */
    margin: 0 auto;
}

/* Values Section */
.page-about__values-section {
    padding: 80px 0;
}

.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); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

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

.page-about__value-card p {
    font-size: 1em;
    color: #f0f0f0;
}

/* Game Offerings Section */
.page-about__game-offerings {
    padding: 80px 0;
}

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

.page-about__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #333333;
}

.page-about__game-card:hover {
    transform: translateY(-10px);
}

.page-about__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-about__game-card .page-about__card-title {
    font-size: 1.4em;
    margin: 20px 20px 10px;
    color: #26A9E0;
    font-weight: bold;
}

.page-about__game-card .page-about__card-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__game-card .page-about__card-title a:hover {
    color: #EA7C07;
}

.page-about__game-card p {
    font-size: 0.95em;
    padding: 0 20px 20px;
    color: #555555;
    flex-grow: 1; /* Make paragraphs take available space */
}

/* Commitment Section */
.page-about__commitment-section {
    padding: 80px 0;
    text-align: center;
}

.page-about__commitment-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-about__commitment-list li {
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: #f0f0f0;
}

.page-about__commitment-list li strong {
    color: #ffffff;
}

.page-about__commitment-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #ffffff;
}

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

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    background-color: #ffffff;
    color: #26A9E0;
    transition: background-color 0.3s ease;
    user-select: none;
    list-style: none; /* For details/summary */
}

.page-about__faq-item[open] .page-about__faq-question {
    background-color: #eaf7fc; /* Lighter shade of primary color */
}

.page-about__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    margin-left: 10px;
}

.page-about__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
    max-height: 500px; /* Adjust as needed */
    padding-top: 10px;
}

.page-about__faq-answer p {
    margin-bottom: 10px;
}

.page-about__faq-answer .page-about__link-text {
    color: #26A9E0;
    text-decoration: underline;
}

/* Video Section */
.page-about__video-section {
    padding: 80px 0;
    text-align: center;
    position: relative; /* For the video wrapper */
}

.page-about__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9 / 16 * 100%) */
    height: 0;
    overflow: hidden;
    max-width: 1000px; /* Max width for video */
    margin: 40px auto 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer; /* Indicate clickable */
}

.page-about__video-link {
    display: block; /* Make the whole area clickable */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-about__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Ensure no extra space below video */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }

    .page-about__section-title {
        font-size: 2em;
    }

    .page-about__content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile Fixed Header Offset (if not handled by shared.css body) */
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-about__hero-title {
        font-size: 2.2em;
    }

    .page-about__hero-description {
        font-size: 1em;
    }

    .page-about__section-title {
        font-size: 1.8em;
    }

    .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__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-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }

    /* Images responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__image-wrapper,
    .page-about__game-card,
    .page-about__value-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__introduction-section .page-about__container,
    .page-about__values-section .page-about__container,
    .page-about__game-offerings .page-about__container,
    .page-about__commitment-section .page-about__container,
    .page-about__faq-section .page-about__container,
    .page-about__video-section .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        max-width: 100%;
        width: 100%;
    }

    /* Video responsive */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Adjust padding for sections on mobile */
    .page-about__introduction-section,
    .page-about__values-section,
    .page-about__game-offerings,
    .page-about__commitment-section,
    .page-about__faq-section,
    .page-about__video-section {
        padding: 40px 0;
    }

    .page-about__hero-section {
        padding: 80px 0 40px;
    }
    .page-about__video-wrapper {
        margin-left: 0;
        margin-right: 0;
        max-width: unset; /* Remove explicit max-width to allow full container width */
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }

    .page-about__section-title {
        font-size: 1.5em;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
}

/* Ensure images and videos do not use filter property */
.page-about img,
.page-about video {
    filter: none !important; /* Ensure no filter is applied */
}

/* Text contrast fixes if needed (example) */
.page-about__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-about__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}