/* style/about.css */

/* Custom Color Variables (from provided palette) */
:root {
    --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-primary-color: #11A84E;
    --page-about-secondary-color: #22C768;
}

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--page-about-text-main); /* Light text on dark body background */
    background-color: var(--page-about-background); /* Body background is dark */
    line-height: 1.6;
    font-size: 1rem;
}

/* Base content area styling */
.page-about__content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-about__section {
    padding: 60px 0;
    text-align: center;
}

.page-about__section--left {
    text-align: left;
}

.page-about__section--right {
    text-align: right;
}

.page-about__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem); /* Responsive H2 */
    color: var(--page-about-gold);
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-about__section-subtitle {
    font-size: clamp(1.4rem, 2.5vw, 2rem); /* Responsive H3 */
    color: var(--page-about-text-main);
    margin-bottom: 20px;
    font-weight: 600;
}

.page-about p {
    margin-bottom: 1em;
    color: var(--page-about-text-secondary);
}

.page-about ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-about ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--page-about-text-main);
}

.page-about ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--page-about-secondary-color);
    font-weight: bold;
}

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

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 40px; /* Space between image and content */
    border-radius: 10px;
}

.page-about__hero-content {
    max-width: 800px;
    text-align: center;
    padding: 0 20px;
}

.page-about__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 */
    color: var(--page-about-gold);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--page-about-text-main);
    margin-bottom: 30px;
}

.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to prevent buttons from touching edges */
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    text-align: center;
}

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

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

.page-about__btn-secondary {
    background: var(--page-about-card-bg); /* Dark background */
    color: var(--page-about-secondary-color); /* Green text */
    border: 2px solid var(--page-about-secondary-color);
}

.page-about__btn-secondary:hover {
    background: var(--page-about-secondary-color);
    color: var(--page-about-card-bg);
    transform: translateY(-2px);
}

.page-about__btn-tertiary {
    background: transparent;
    color: var(--page-about-text-main);
    border: 2px solid var(--page-about-border);
}

.page-about__btn-tertiary:hover {
    background: var(--page-about-border);
    transform: translateY(-2px);
}

/* Story Section */
.page-about__story-section {
    background-color: var(--page-about-deep-green);
    padding: 80px 0;
}

.page-about__story-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Advantages Section */
.page-about__advantages-section {
    padding: 80px 0;
}

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

.page-about__advantage-item {
    background-color: var(--page-about-card-bg);
    border: 1px solid var(--page-about-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.page-about__advantage-item-title {
    color: var(--page-about-gold);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.page-about__advantage-item-description {
    color: var(--page-about-text-secondary);
}

.page-about__game-variety-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Security Section */
.page-about__security-section {
    background-color: var(--page-about-deep-green);
    padding: 80px 0;
}

.page-about__security-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Vision Section */
.page-about__vision-section {
    padding: 80px 0;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: var(--page-about-card-bg);
}

.page-about__faq-list {
    margin-top: 40px;
}

.page-about__faq-item {
    background-color: var(--page-about-deep-green);
    border: 1px solid var(--page-about-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--page-about-text-main);
    cursor: pointer;
    outline: none;
    list-style: none; /* Hide default marker */
}

.page-about__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-about__faq-question-text {
    flex-grow: 1;
    color: var(--page-about-text-main);
}

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-about-secondary-color);
}

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

.page-about__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: var(--page-about-text-secondary);
}

/* Final CTA Section */
.page-about__final-cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--page-about-deep-green);
}

.page-about__final-cta-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__content-wrapper {
        padding: 30px 15px;
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__hero-content {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-bottom: 40px;
    }
    .page-about__hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    .page-about__hero-description {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-tertiary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure images take full width of their container */
        height: auto !important;
        display: block !important;
    }

    /* Mobile container responsiveness */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__content-wrapper,
    .page-about__hero-section,
    .page-about__story-section,
    .page-about__advantages-section,
    .page-about__security-section,
    .page-about__vision-section,
    .page-about__faq-section,
    .page-about__final-cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

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

    .page-about__faq-item summary {
        font-size: 1rem;
        padding: 15px;
    }
    .page-about__faq-answer {
        padding: 0 15px 15px;
    }

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

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: clamp(1.8rem, 9vw, 2.2rem);
    }
    .page-about__section-title {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }
    .page-about__section-subtitle {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }
}

/* Ensure body padding-top is not duplicated in page-about */
/* This is handled by shared.css body { padding-top: var(--header-offset); } */
/* No specific padding-top: var(--header-offset) in .page-about or its direct children */