/* style/about.css */

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

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-about__hero-title {
    font-size: 3.2em;
    font-weight: bold;
    color: #26A9E0; /* Brand color for main title */
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-about__hero-image-wrapper {
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styling */
.page-about__section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__section:last-of-type {
    border-bottom: none;
}

.page-about__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: justify;
}

/* Image Content Block */
.page-about__image-content-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-about__image-content-block--reverse {
    flex-direction: row-reverse;
}

.page-about__content-image {
    width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__text-block-group {
    flex: 1;
}

/* Grid Layout for Games */
.page-about__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__card {
    background: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Light text for card */
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__card-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-about__card-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Feature List */
.page-about__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__feature-item {
    background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for features */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    text-align: left;
}

.page-about__feature-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__feature-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* CTA Section */
.page-about__cta-section {
    display: flex;
    align-items: center;
    gap: 40px;
    background: rgba(38, 169, 224, 0.1); /* Light blue tint background */
    border-radius: 10px;
    padding: 40px;
    margin-top: 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-about__cta-image {
    width: 40%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.page-about__cta-content {
    flex: 1;
    text-align: left;
}

.page-about__cta-title {
    font-size: 2em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__cta-description {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

/* Buttons */
.page-about__btn-primary {
    display: inline-block;
    background-color: #26A9E0;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
    box-sizing: border-box;
}

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

.page-about__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
}

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

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08); /* Slightly darker for question header */
    color: #26A9E0;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.page-about__faq-heading {
    margin: 0;
    color: #26A9E0; /* Ensure heading color is visible */
    font-size: 1em; /* Adjust to fit parent font size */
}

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg);
    color: #26A9E0;
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 20px 25px;
}

.page-about__faq-answer .page-about__text-block {
    margin-bottom: 0;
    font-size: 1em;
    color: #f0f0f0;
}

/* Color Contrast Enforcement */
.page-about__dark-bg {
    background-color: transparent; /* Rely on body background from shared.css */
    color: #ffffff; /* Light text for dark body background */
}

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

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

    .page-about__image-content-block,
    .page-about__image-content-block--reverse {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__content-image {
        width: 100%;
    }

    .page-about__cta-section {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .page-about__cta-image {
        width: 80%;
    }

    .page-about__cta-content {
        text-align: center;
    }

    .page-about__cta-buttons {
        flex-direction: column;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100%;
        max-width: 300px; /* Constrain button width on smaller screens */
    }
}

@media (max-width: 768px) {
    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile video responsiveness (if any, though none currently) */
    .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;
    }

    .page-about__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Mobile button responsiveness */
    .page-about__cta-button,
    .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-wrap: wrap !important;
        gap: 10px;
    }
    .page-about__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    .page-about__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    }

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

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

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

    .page-about__text-block {
        font-size: 1em;
    }

    .page-about__card {
        padding: 20px;
    }

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

    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-about__faq-answer {
        padding: 0 20px;
    }

    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px;
    }

    /* Content area image size enforcement */
    .page-about__container,
    .page-about__section,
    .page-about__card,
    .page-about__image-content-block,
    .page-about__cta-section,
    .page-about__faq-list,
    .page-about__faq-item,
    .page-about__feature-item {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px; /* Add padding to prevent content touching edges */
      padding-right: 15px;
    }

    /* Override for specific elements if needed, ensuring min size */
    .page-about__card-image,
    .page-about__content-image,
    .page-about__cta-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}