/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    background-color: var(--background-color, #08160F); /* Custom background color */
    color: var(--text-main, #F2FFF6); /* Main text color for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add padding for footer */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    max-height: 675px; /* Limit max height for large screens */
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 12px;
}

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above any background effects */
}

.page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-about__description {
    font-size: 1.15rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
    text-align: center;
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
    color: var(--text-main, #F2FFF6); /* Light text on dark button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--glow, #57E38D); /* Glow color for secondary text */
    border: 2px solid var(--glow, #57E38D);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__btn-secondary:hover {
    background: var(--glow, #57E38D);
    color: #08160F; /* Dark text on light button */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.page-about__btn-link {
    background: transparent;
    color: var(--glow, #57E38D);
    border: 1px solid var(--border, #2E7A4E);
    padding: 10px 20px;
    font-size: 0.9rem;
}

.page-about__btn-link:hover {
    background: var(--deep-green, #0A4B2C);
    border-color: var(--glow, #57E38D);
}

.page-about__btn-full {
    width: 100%;
    max-width: 400px; /* Limit width for full-width button on large screens */
    margin-top: 30px;
}

/* Section common styles */
.page-about__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--divider, #1E3A2A);
}

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

.page-about__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-main, #F2FFF6);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-about__text-block {
    font-size: 1.05rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    text-align: justify;
}

.page-about__text-block a {
    color: var(--glow, #57E38D);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__text-block a:hover {
    color: var(--gold, #F2C14E);
    text-decoration: underline;
}

/* Values Section */
.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: var(--card-bg, #11271B); /* Custom card background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main, #F2FFF6);
}

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

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

.page-about__value-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--glow, #57E38D);
    margin-bottom: 15px;
}

.page-about__value-text {
    font-size: 0.95rem;
    color: var(--text-secondary, #A7D9B8);
}

/* Ecosystem Section */
.page-about__game-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__feature-item {
    background-color: var(--card-bg, #11271B);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main, #F2FFF6);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-about__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__feature-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement, though object-fit covers */
}

.page-about__feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--glow, #57E38D);
    margin-bottom: 10px;
}

.page-about__feature-text {
    font-size: 0.95rem;
    color: var(--text-secondary, #A7D9B8);
    flex-grow: 1; /* Push button to bottom */
    margin-bottom: 20px;
}

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

.page-about__commitment-item {
    background-color: var(--card-bg, #11271B);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main, #F2FFF6);
}

.page-about__commitment-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__commitment-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold, #F2C14E);
    margin-bottom: 15px;
}

.page-about__commitment-text {
    font-size: 0.95rem;
    color: var(--text-secondary, #A7D9B8);
}

/* Future Vision Section */
.page-about__vision-image {
    width: 100%;
    height: auto;
    max-height: 533px;
    object-fit: cover;
    display: block;
    margin: 40px auto 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
}

.page-about__faq-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--border, #2E7A4E);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--text-main, #F2FFF6);
}

.page-about__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main, #F2FFF6);
    outline: none;
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-about__faq-item summary:hover {
    background-color: var(--deep-green, #0A4B2C);
}

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

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

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow, #57E38D);
}

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95rem;
    color: var(--text-secondary, #A7D9B8);
    border-top: 1px solid var(--divider, #1E3A2A);
    margin-top: 10px;
}

.page-about__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
}

.page-about__faq-answer a {
    color: var(--gold, #F2C14E);
    text-decoration: none;
}

.page-about__faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-image {
        max-height: 500px;
    }
    .page-about__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-about__description {
        font-size: 1rem;
    }
    .page-about__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
}

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

    .page-about__container {
        padding: 0 15px; /* Add padding for mobile content */
    }

    .page-about__hero-section {
        padding-bottom: 40px;
    }

    .page-about__hero-image {
        max-height: 400px;
        margin-bottom: 20px;
    }

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

    .page-about__description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

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

    /* Force 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 !important;
        padding-right: 15px !important;
    }
    
    .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 !important;
      padding-right: 15px !important;
      flex-wrap: wrap !important;
      gap: 10px !important;
    }
    
    .page-about__btn-full {
        max-width: 100% !important;
    }

    .page-about__section {
        padding: 40px 0;
    }

    .page-about__section-title {
        font-size: clamp(1.5rem, 5.5vw, 2rem);
        margin-bottom: 30px;
    }

    .page-about__text-block {
        font-size: 0.9rem;
    }

    .page-about__values-grid,
    .page-about__game-features,
    .page-about__commitment-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 25px;
    }

    .page-about__value-card,
    .page-about__feature-item,
    .page-about__commitment-item {
        padding: 25px;
    }

    .page-about__value-title,
    .page-about__feature-title,
    .page-about__commitment-title {
        font-size: 1.3rem;
    }

    .page-about__value-icon,
    .page-about__feature-image,
    .page-about__vision-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* Video section top padding, body handles --header-offset */
    /* There is no video section in this about page, but keeping the rule for consistency if it were */
    .page-about__video-section {
        padding-top: 10px !important;
    }

    /* Container padding for mobile */
    .page-about__section,
    .page-about__card,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* FAQ */
    .page-about__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-about__faq-answer {
        padding: 0 20px 15px;
    }
}