/* style/about.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f8f8;
    --border-light: #e0e0e0;
}

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light); /* Default light background for body-like sections */
}

/* Ensure content is not hidden by fixed header */
.page-about__intro-section {
    padding-top: 120px; /* Desktop padding-top to clear fixed header */
    padding-bottom: 60px;
    background-color: #ffffff;
}

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

.page-about__main-title,
.page-about__section-title {
    font-size: 38px;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-about__main-title {
    font-size: 42px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-about__intro-text,
.page-about__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
}

.page-about__intro-image,
.page-about__mission-vision-image,
.page-about__feature-image,
.page-about__game-showcase-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.page-about__mission-vision-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
}

.page-about__mission-vision-section .page-about__section-title {
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-about__mission-vision-content {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.page-about__mission,
.page-about__vision {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__sub-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-about__mission p,
.page-about__vision p {
    font-size: 17px;
    line-height: 1.7;
}

.page-about__why-choose-us-section {
    padding: 80px 0;
    background-color: #f1f3f5;
}

.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: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-light);
}

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

.page-about__card-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

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

.page-about__cta-block {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(90deg, #fffbe6, #fffde7);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--primary-color);
}

.page-about__cta-block p {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.page-about__cta-button {
    display: inline-block;
    padding: 16px 45px;
    background: linear-gradient(135deg, var(--primary-color), #FFC107);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-about__cta-button:hover {
    background: linear-gradient(135deg, #FFC107, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__our-values-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

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

.page-about__value-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.page-about__value-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-about__value-item p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
}

.page-about__game-showcase-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-about__game-showcase-section .page-about__section-description {
    max-width: 1000px;
}

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

.page-about__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-about__faq-question:hover {
    background: #f9f9f9;
    border-color: #d0d0d0;
}

.page-about__faq-question:active {
    background: #eeeeee;
}

.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
    pointer-events: none; /* Allow click on entire question area */
}

.page-about__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Allow click on entire question area */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Change + to X-like symbol */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #fdfdfd;
    border-top: none;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    border-radius: 0 0 8px 8px;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* Sufficiently large */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-about__faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 0;
}

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

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

.page-about__contact-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color), #A52A2A);
    color: var(--text-light);
    text-align: center;
}

.page-about__contact-cta-section .page-about__section-title {
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-about__contact-cta-section .page-about__section-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__main-title {
        font-size: 36px;
    }
    .page-about__section-title {
        font-size: 32px;
    }
    .page-about__intro-text,
    .page-about__section-description {
        font-size: 16px;
    }
    .page-about__mission-vision-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__sub-title {
        font-size: 24px;
    }
    .page-about__features-grid {
        grid-template-columns: 1fr;
    }
    .page-about__values-grid {
        grid-template-columns: 1fr;
    }
    .page-about__faq-list {
        max-width: 700px;
    }
    .page-about__cta-button {
        padding: 14px 35px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-about__intro-section {
        padding-top: 100px !important; /* Mobile padding-top to clear fixed header */
        padding-bottom: 40px;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__main-title {
        font-size: 30px;
        margin-bottom: 25px;
    }
    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-about__intro-text,
    .page-about__section-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-about__intro-image,
    .page-about__mission-vision-image,
    .page-about__feature-image,
    .page-about__game-showcase-image {
        margin: 30px auto;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__mission-vision-section,
    .page-about__why-choose-us-section,
    .page-about__our-values-section,
    .page-about__game-showcase-section,
    .page-about__faq-section,
    .page-about__contact-cta-section {
        padding: 40px 0;
    }
    .page-about__mission,
    .page-about__vision {
        padding: 20px;
    }
    .page-about__sub-title {
        font-size: 20px;
    }
    .page-about__mission p,
    .page-about__vision p {
        font-size: 15px;
    }
    .page-about__feature-card,
    .page-about__value-item {
        padding: 20px;
        border-radius: 8px;
    }
    .page-about__card-title {
        font-size: 19px;
    }
    .page-about__feature-card p,
    .page-about__value-item p {
        font-size: 15px;
    }
    .page-about__cta-block {
        padding: 30px 20px;
        margin-top: 40px;
        border-radius: 8px;
    }
    .page-about__cta-block p {
        font-size: 17px;
        margin-bottom: 20px;
    }
    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        border-radius: 6px;
    }
    .page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-question h3 {
        font-size: 16px;
    }
    .page-about__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px !important;
    }
    .page-about__faq-answer p {
        font-size: 15px;
    }

    /* Ensure all image containers are responsive */
    .page-about__section,
    .page-about__card,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Contrast Fixes */
.page-about__dark-bg {
  color: var(--text-light);
}

.page-about__light-bg {
  color: var(--text-dark);
}

/* Ensure strong contrast for text on various backgrounds */
.page-about p,
.page-about li,
.page-about h1,
.page-about h2,
.page-about h3,
.page-about h4,
.page-about h5,
.page-about h6 {
    color: inherit; /* Inherit from parent, then override if needed for contrast */
}

/* Specific overrides for contrast */
.page-about__intro-text strong,
.page-about__feature-card p strong,
.page-about__game-showcase-section p strong {
    color: var(--secondary-color); /* Highlight keywords with good contrast */
}

.page-about__cta-block p strong {
    color: var(--secondary-color);
}

.page-about__faq-answer p strong {
    color: var(--secondary-color);
}