/* style/about.css */

/* Variables from custom color scheme */
:root {
    --page-about-primary-color: #11A84E;
    --page-about-secondary-color: #22C768;
    --page-about-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-about-card-bg: #11271B;
    --page-about-background: #08160F;
    --page-about-text-main: #F2FFF6;
    --page-about-text-secondary: #A7D9B8;
    --page-about-border: #2E7A4E;
    --page-about-glow: #57E38D;
    --page-about-gold: #F2C14E;
    --page-about-divider: #1E3A2A;
    --page-about-deep-green: #0A4B2C;
}

.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-about-text-main); /* Default text color for dark background */
    background-color: var(--page-about-background); /* Default background for the page content */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 40px;
}

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

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    color: var(--page-about-text-main);
}

.page-about__main-title {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--page-about-text-main);
    max-width: 100%; /* Ensure H1 doesn't overflow */
    font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
}

.page-about__description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--page-about-text-secondary);
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-about__btn-primary {
    background: var(--page-about-button-gradient);
    color: #ffffff; /* White text for primary button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--page-about-primary-color);
    border: 2px solid var(--page-about-primary-color);
}

.page-about__btn-secondary:hover {
    background: var(--page-about-primary-color);
    color: #ffffff;
}

/* General Section Styling */
.page-about__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--page-about-text-main);
}

.page-about__sub-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 20px;
    color: var(--page-about-text-main);
}

.page-about__dark-section {
    background-color: var(--page-about-background);
    color: var(--page-about-text-main);
}

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

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__sub-title,
.page-about__light-bg .page-about__card-title,
.page-about__light-bg p,
.page-about__light-bg li,
.page-about__light-bg a {
    color: #333333;
}

.page-about__light-bg .page-about__btn-secondary {
    color: var(--page-about-primary-color);
    border-color: var(--page-about-primary-color);
}

.page-about__light-bg .page-about__btn-secondary:hover {
    background: var(--page-about-primary-color);
    color: #ffffff;
}

/* Content Section */
.page-about__content-section,
.page-about__commitment-section,
.page-about__future-section {
    padding: 80px 0;
}

.page-about__grid-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.page-about__text-block a {
    text-decoration: underline;
    color: var(--page-about-primary-color);
}

.page-about__text-block a:hover {
    color: var(--page-about-secondary-color);
}

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

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

.page-about__value-card {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--page-about-card-bg);
    color: var(--page-about-text-main);
    border: 1px solid var(--page-about-border);
}

.page-about__value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.page-about__card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--page-about-text-main);
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    padding: 80px 0;
}

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

.page-about__feature-card {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-about__card-light .page-about__card-title,
.page-about__card-light p,
.page-about__card-light li,
.page-about__card-light a {
    color: #333333;
}

.page-about__feature-icon {
    width: 100%;
    height: auto;
    max-width: 400px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
}

.page-about__game-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
}

.page-about__game-list li {
    margin-bottom: 8px;
    font-size: 1rem;
    position: relative;
    padding-left: 20px;
}

.page-about__game-list li::before {
    content: '•';
    color: var(--page-about-primary-color);
    position: absolute;
    left: 0;
}

.page-about__game-list a {
    color: var(--page-about-primary-color);
    text-decoration: none;
}

.page-about__game-list a:hover {
    text-decoration: underline;
}

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

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

.page-about__team-member {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-about__member-photo {
    width: 100%;
    height: auto;
    max-width: 300px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-about__member-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333333;
}

.page-about__member-role {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 15px;
}

.page-about__member-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444444;
}

.page-about__work-culture {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
    text-align: left;
}

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

.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    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;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    color: #333333;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* For details/summary */
}

.page-about__faq-item summary::-webkit-details-marker {
    display: none;
}

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

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

.page-about__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--page-about-primary-color);
    margin-left: 15px;
}

.page-about__faq-answer {
    padding: 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: #555555;
    background-color: #ffffff;
}

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

.page-about__faq-answer a {
    color: var(--page-about-primary-color);
    text-decoration: underline;
}

.page-about__faq-answer a:hover {
    color: var(--page-about-secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__grid-item {
        grid-template-columns: 1fr;
    }
    .page-about__hero-content {
        padding: 0 20px;
    }
    .page-about__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-image-wrapper {
        max-height: 450px;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__container,
    .page-about__hero-section,
    .page-about__content-section,
    .page-about__value-section,
    .page-about__why-choose-us,
    .page-about__commitment-section,
    .page-about__team-section,
    .page-about__future-section,
    .page-about__faq-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 40px;
    }

    .page-about__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-about__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-about__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .page-about__sub-title {
        font-size: 1.5rem;
        margin-top: 20px;
        margin-bottom: 15px;
    }

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

    .page-about__values-grid,
    .page-about__features-grid,
    .page-about__team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100% !important;
        display: block;
        margin-bottom: 15px; /* Add space between stacked buttons */
    }

    .page-about__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 30px;
    }
    
    /* Images responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-about__value-card,
    .page-about__feature-card,
    .page-about__team-member {
        padding: 25px;
    }

    .page-about__faq-question {
        font-size: 1rem;
        padding: 15px;
    }

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

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
    }

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