/* style/about.css */

/* Base styles for the about page content */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Inherited from shared, but explicitly setting for context */
}

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

.page-about__section-title {
    font-size: 2.8em;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__sub-title {
    font-size: 2em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__paragraph,
.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Slightly off-white for better readability on dark background */
}

.page-about__text-block a {
    color: #017439;
    text-decoration: underline;
}

.page-about__text-block a:hover {
    color: #00a000; /* Slightly darker green on hover */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

.page-about__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-about__main-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.1;
}

.page-about__intro-text {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap 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: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
}

.page-about__btn-primary {
    background-color: #C30808; /* Red for primary action */
    color: #FFFF00; /* Yellow for text on red */
    border: 2px solid #C30808;
}

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

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

.page-about__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

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

/* Video Section */
.page-about__video-section {
    background-color: #1a1a1a; /* Darker background for video section */
    padding: 80px 20px;
    text-align: center;
    padding-top: 40px; /* Adjust if hero has padding-top var, otherwise this section might need it too */
}

.page-about__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
}

.page-about__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer; /* Indicate it's clickable */
}

.page-about__video-caption {
    font-style: italic;
    color: #aaaaaa;
    margin-top: 10px;
}

/* Content Grids (Mission, History, Security, Team) */
.page-about__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.page-about__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-about__text-content {
    flex: 1;
}

.page-about__image-container {
    flex: 1;
    text-align: center;
}

.page-about__image-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Mission & Values Section */
.page-about__mission-values {
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
    padding: 80px 20px;
}

.page-about__mission-values .page-about__section-title,
.page-about__mission-values .page-about__sub-title {
    color: #017439;
}

.page-about__mission-values .page-about__paragraph {
    color: #333333;
}

.page-about__value-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-about__value-item {
    background-color: #f8f8f8;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid #017439;
    border-radius: 5px;
    font-size: 1.1em;
    color: #333333;
}

.page-about__value-item strong {
    color: #017439;
}

/* History Section */
.page-about__history {
    background-color: #121212; /* Dark background */
    padding: 80px 20px;
}

/* Game Offerings Section */
.page-about__game-offerings {
    background-color: #f0f0f0; /* Light background */
    color: #333333; /* Dark text for light background */
    padding: 80px 20px;
}

.page-about__game-offerings .page-about__section-title {
    color: #017439;
}

.page-about__game-offerings .page-about__text-block {
    color: #333333;
}

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

.page-about__game-card.page-about__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-about__game-card.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

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

.page-about__card-title a {
    color: #017439;
    text-decoration: none;
}

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

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

.page-about__card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-about__card-link {
    display: inline-block;
    background-color: #017439;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-about__card-link:hover {
    background-color: #00a000;
}

/* Security Section */
.page-about__security {
    background-color: #1a1a1a; /* Darker background */
    padding: 80px 20px;
}

/* Why Choose Us Section */
.page-about__why-choose {
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
    padding: 80px 20px;
}

.page-about__why-choose .page-about__section-title {
    color: #017439;
}

.page-about__why-choose .page-about__text-block {
    color: #333333;
}

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

.page-about__feature-card.page-about__card {
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    color: #333333;
    transition: transform 0.3s ease;
}

.page-about__feature-card.page-about__card:hover {
    transform: translateY(-3px);
}

.page-about__feature-card .page-about__card-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-about__feature-card .page-about__card-description {
    color: #555555;
}

.page-about__cta-section {
    text-align: center;
    margin-top: 60px;
}

/* Team Section */
.page-about__team {
    background-color: #121212; /* Dark background */
    padding: 80px 20px;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: #f0f0f0; /* Light background */
    color: #333333; /* Dark text for light background */
    padding: 80px 20px;
}

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

.page-about__faq-section .page-about__text-block {
    color: #333333;
}

.page-about__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

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

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

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

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    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: 15px 25px 25px;
}

.page-about__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
    color: #555555;
}

.page-about__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

.page-about__faq-answer a:hover {
    color: #00a000;
}

/* Final CTA Section */
.page-about__cta-final {
    background-color: #017439; /* Brand primary color background */
    color: #ffffff; /* White text */
    padding: 80px 20px;
    text-align: center;
}

.page-about__cta-final .page-about__section-title {
    color: #ffffff;
}

.page-about__cta-final .page-about__text-block {
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-final .page-about__btn-primary {
    background-color: #C30808; /* Red for primary action */
    color: #FFFF00; /* Yellow text */
    border-color: #C30808;
}

.page-about__cta-final .page-about__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-about__cta-final .page-about__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border-color: #ffffff;
    margin-left: 20px;
}

.page-about__cta-final .page-about__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #017439;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-section {
        height: 500px;
    }
    .page-about__main-title {
        font-size: 3em;
    }
    .page-about__intro-text {
        font-size: 1.3em;
    }
    .page-about__section-title {
        font-size: 2.2em;
    }
    .page-about__sub-title {
        font-size: 1.8em;
    }
    .page-about__content-grid {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__content-grid--reverse {
        flex-direction: column-reverse;
    }
    .page-about__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-about__feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
    }
}