:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
}

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page, light on dark body */
    background-color: var(--deep-navy); /* From shared.css body background */
}

/* General Section Styles */
.page-about__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    color: var(--text-secondary); /* Text in light background sections */
    background-color: var(--deep-navy); /* Ensure consistency with body background */
}

.page-about__dark-section {
    background-color: var(--primary-color);
    color: var(--text-main);
    padding: 60px 20px;
}

.page-about__section-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

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

.page-about p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.page-about h3 {
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%;
    box-sizing: border-box;
}

.page-about__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.page-about__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px; /* Added for mobile padding */
    box-sizing: border-box;
}

.page-about__hero-content h1 {
    font-size: clamp(32px, 5vw, 56px);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.page-about__hero-content p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

/* Mission Section */
.page-about__mission-section p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

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

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

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

.page-about__feature-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    display: block;
}

.page-about__feature-card .page-about__card-title {
    color: var(--gold-color);
    font-size: 22px;
    margin-bottom: 15px;
}

.page-about__feature-card p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Journey Section */
.page-about__journey-section p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.page-about__image-block {
    margin-top: 40px;
    text-align: center;
}

.page-about__image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
    display: block;
    margin: 0 auto;
}

/* Games Section */
.page-about__games-section .page-about__section-title {
    color: var(--gold-color);
}

.page-about__games-section p {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__game-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__game-list li {
    background-color: var(--card-bg);
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__game-list li strong {
    color: var(--text-main);
    font-size: 18px;
}

/* Support Section */
.page-about__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: center;
}

.page-about__contact-list li {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.page-about__contact-list li strong {
    color: var(--text-main);
}

/* FAQ Section */
details.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-about__faq-item summary.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}

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

details.page-about__faq-item summary.page-about__faq-question:hover {
    background: rgba(var(--primary-color), 0.7);
}

.page-about__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}

.page-about__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--gold-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

details.page-about__faq-item .page-about__faq-answer {
    padding: 0 25px 20px;
    background: var(--card-bg);
    border-radius: 0 0 10px 10px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

/* Final CTA Section */
.page-about__final-cta-section .page-about__section-title {
    color: var(--gold-color);
}

.page-about__final-cta-section p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-section h1 {
        font-size: clamp(30px, 4.5vw, 50px);
    }
    .page-about__hero-content p {
        font-size: 18px;
    }
    .page-about__section-title {
        font-size: clamp(26px, 3.5vw, 38px);
    }
    .page-about__feature-card img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-image img {
        border-radius: 8px;
    }
    .page-about__hero-content {
        padding: 0 10px;
    }
    .page-about__hero-content h1 {
        font-size: clamp(28px, 6vw, 40px);
        margin-bottom: 15px;
    }
    .page-about__hero-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0;
        margin-right: 0;
    }
    .page-about__content-area, .page-about__dark-section {
        padding: 40px 15px;
    }
    .page-about__section-title {
        font-size: clamp(24px, 5vw, 32px);
        margin-bottom: 30px;
    }
    .page-about p {
        font-size: 15px;
        line-height: 1.7;
    }
    .page-about h3 {
        font-size: 20px;
    }
    .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__feature-card {
        padding: 25px;
    }
    .page-about__feature-card img {
        
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__game-list li {
        font-size: 15px;
        padding: 15px 20px;
    }
    .page-about__game-list li strong {
        font-size: 16px;
    }
    details.page-about__faq-item summary.page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-qtext {
        font-size: 16px;
    }
    .page-about__faq-toggle {
        font-size: 24px;
        width: 24px;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 20px 15px;
        font-size: 14px;
    }
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .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;
    }
    .page-about__contact-list li {
        font-size: 16px;
    }
}