/* style/about.css */

/* --- Base Styles --- */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Body background is white */
}

/* --- Sections --- */
.page-about__section {
    padding: 60px 20px;
    text-align: center;
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Added for mobile safety */
    box-sizing: border-box;
}

/* Fixed header offset for the first content section */
.page-about__hero-section {
    padding-top: var(--header-offset, 120px);
    position: relative;
    overflow: hidden; /* Ensure image doesn't overflow */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Minimum height for hero */
}

.page-about__dark-bg {
    background-color: #017439; /* Brand green */
    color: #ffffff;
}

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

/* --- Headings --- */
.page-about__heading {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #017439; /* Brand green for main headings */
}

.page-about__heading--white {
    color: #ffffff;
}

.page-about__card-title {
    font-size: 1.5em;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #017439; /* Brand green */
}

.page-about__card-title a {
    color: #017439; /* Brand green for link in card title */
    text-decoration: none;
}

.page-about__card-title a:hover {
    text-decoration: underline;
}

/* --- Paragraphs --- */
.page-about__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__paragraph--white {
    color: #ffffff;
}

/* --- Buttons --- */
.page-about__hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Added for mobile */
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-about__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-about__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand green */
    border: 2px solid #017439;
}

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

.page-about__btn-large {
    padding: 18px 35px;
    font-size: 1.2em;
}

/* --- Images --- */
.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.5); /* Darken hero image for text readability */
}

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

.page-about__image-responsive {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
}

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

.page-about__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 40px;
}

/* --- Grids and Cards --- */
.page-about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Ensure cards are same height in a row */
}

.page-about__game-card {
    padding: 0;
    text-align: center;
    overflow: hidden;
}

.page-about__game-card .page-about__card-title,
.page-about__game-card .page-about__card-description {
    padding: 0 20px;
}

.page-about__game-card .page-about__card-description {
    margin-bottom: 20px;
}

/* --- Lists --- */
.page-about__list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
}

.page-about__list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 1.05em;
    color: #333333;
}

.page-about__list li strong {
    color: #017439; /* Brand green */
}

.page-about__list li::before {
    content: '✓';
    color: #017439; /* Brand green checkmark */
    position: absolute;
    left: 0;
    font-weight: bold;
}

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

.page-about__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.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: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439; /* Brand green */
    cursor: pointer;
    background-color: #e6f4ea; /* Lighter green for question background */
    border-bottom: 1px solid #e0e0e0;
}

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

.page-about__faq-qtext {
    flex-grow: 1;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    content: '−';
}

.page-about__faq-answer {
    padding: 20px 25px;
    font-size: 1.05em;
    color: #333333;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0; /* Add border for separation */
}

.page-about__faq-answer p {
    margin: 0;
}

/* For details tag, hide default marker */
.page-about__faq-item summary {
    list-style: none;
}
.page-about__faq-item summary::-webkit-details-marker {
    display: none;
}


/* --- Call to Action Section --- */
.page-about__cta-section {
    padding: 80px 20px;
    background-color: #017439; /* Brand green */
    color: #ffffff;
}

.page-about__cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__heading {
        font-size: 2em;
    }
    .page-about__paragraph {
        font-size: 1em;
    }
    .page-about__card-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 15px;
    }

    .page-about__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

    .page-about__hero-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

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

    .page-about__hero-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        margin: 0 auto; /* Center buttons */
    }

    .page-about__heading {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-about__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__card {
        padding: 20px;
    }

    .page-about__card-image {
        height: 180px;
    }

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

    .page-about__faq-answer {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-about__cta-section {
        padding: 50px 15px;
    }

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile container responsiveness */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-container,
    .page-about__cta-container,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Specific for hero container to ensure text is visible */
    .page-about__hero-container {
        position: relative;
        z-index: 1;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Video responsiveness (if any, though none in this page yet) */
    .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;
    }
}

@media (max-width: 480px) {
    .page-about__heading {
        font-size: 1.5em;
    }
    .page-about__hero-title {
        font-size: 1.5em;
    }
    .page-about__card-title {
        font-size: 1.2em;
    }
    .page-about__faq-question {
        font-size: 1em;
        padding: 12px 15px;
    }
    .page-about__faq-answer {
        padding: 12px 15px;
    }
}