:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --text-main-color: #1F2D3D;
    --card-bg-color: #FFFFFF;
    --background-color-page: #F4F7FB; /* Specific for page content areas */
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

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

/* General Section Styling */
.page-about__section {
    padding: 60px 20px;
    margin-bottom: 0; /* Sections should not have margin-bottom, use padding */
    position: relative;
}

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

.page-about__section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.page-about__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-main-color);
}

/* 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;
    /* body { padding-top: var(--header-offset); } is handled by shared.css */
    padding-top: 10px; /* Small top padding for visual spacing */
    background-color: var(--background-color-page);
    overflow: hidden; /* Ensure no overflow issues */
}

.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%; /* Ensure it takes full width within max-width */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px; /* Space between image and content */
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-about__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-main-color);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-group {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.page-about__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-about__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__btn-secondary:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Mission & Vision Section */
.page-about__mission-vision {
    background-color: var(--card-bg-color);
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-about__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
    font-size: 17px;
    line-height: 1.7;
}

.page-about__text-block p {
    margin-bottom: 15px;
    color: var(--text-main-color);
}

.page-about__image-right,
.page-about__image-left,
.page-about__image-centered {
    flex-shrink: 0;
    width: 50%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-about__image-centered {
    display: block;
    margin: 40px auto 0;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    background-color: var(--primary-color);
    color: #ffffff;
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-about__why-choose-us .page-about__section-title {
    color: #ffffff;
}

.page-about__why-choose-us .page-about__section-title::after {
    background: #ffffff;
}

.page-about__why-choose-us .page-about__section-description {
    color: #ffffff;
}

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

.page-about__card {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for dark background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Text color for dark background cards */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-about__card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-about__card p {
    font-size: 16px;
    color: #f0f0f0;
}

/* Games Overview Section */
.page-about__games-overview {
    background-color: var(--background-color-page);
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-about__game-list li {
    font-size: 17px;
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
    color: var(--text-main-color);
}

.page-about__game-list li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Customer Support Section */
.page-about__customer-support {
    background-color: var(--card-bg-color);
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-about__support-channels {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-about__support-channels li {
    font-size: 17px;
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
    color: var(--text-main-color);
}

.page-about__support-channels li::before {
    content: '📞'; /* Phone icon */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}
.page-about__support-channels li:nth-child(1)::before { content: '💬'; } /* Chat icon */
.page-about__support-channels li:nth-child(3)::before { content: '📧'; } /* Email icon */


/* Responsible Gaming Section */
.page-about__responsible-gaming {
    background-color: var(--background-color-page);
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-about__responsibility-list {
    list-style: none;
    padding: 0;
    margin: 30px auto 40px;
    max-width: 800px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.page-about__responsibility-list li {
    font-size: 16px;
    padding: 15px 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 45px;
    text-align: left;
    color: var(--text-main-color);
    border: 1px solid var(--border-color);
}

.page-about__responsibility-list li::before {
    content: '💡'; /* Lightbulb icon */
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--primary-color);
}
.page-about__responsibility-list li:nth-child(1)::before { content: '📝'; }
.page-about__responsibility-list li:nth-child(2)::before { content: '⚙️'; }
.page-about__responsibility-list li:nth-child(3)::before { content: '🚫'; }
.page-about__responsibility-list li:nth-child(4)::before { content: '🤝'; }


/* Future Vision Section */
.page-about__future-vision {
    background-color: var(--primary-color);
    color: #ffffff;
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

.page-about__future-vision .page-about__section-title {
    color: #ffffff;
}

.page-about__future-vision .page-about__section-title::after {
    background: #ffffff;
}

.page-about__future-vision .page-about__section-description {
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

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

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

details.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
details.page-about__faq-item summary.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    font-size: 18px; /* Adjusted for better readability */
    font-weight: 600;
    color: var(--text-main-color);
}
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: #f5f8fc; /* Lighter hover background */
}
.page-about__faq-qtext {
    flex: 1;
    line-height: 1.5;
    text-align: left;
}
.page-about__faq-toggle {
    font-size: 28px; /* Larger toggle icon */
    font-weight: bold;
    color: var(--primary-color); /* Primary color for toggle */
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px; /* Wider toggle area */
    text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
    padding: 0 20px 20px;
    background: #f9fbfc; /* Slightly different background for answer */
    border-radius: 0 0 8px 8px;
    color: #555555; /* Slightly lighter text for answer */
    font-size: 16px;
}
details.page-about__faq-item .page-about__faq-answer p {
    margin-bottom: 10px;
}
details.page-about__faq-item .page-about__faq-answer p:last-child {
    margin-bottom: 0;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .page-about__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__content-wrapper--reverse {
        flex-direction: column; /* Keep column for reverse on tablet too */
    }

    .page-about__image-right,
    .page-about__image-left,
    .page-about__image-centered {
        width: 100%;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .page-about__text-block {
        font-size: 16px;
    }

    .page-about__section-title {
        font-size: 32px;
    }

    .page-about__section-description {
        font-size: 17px;
    }

    .page-about__hero-image {
        border-radius: 8px;
    }

    .page-about__card {
        padding: 25px;
    }
    .page-about__card-title {
        font-size: 22px;
    }
    .page-about__card p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 15px;
    }

    .page-about__container {
        padding: 0 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-about__hero-section {
        padding-top: 10px !important; /* Keep small top padding */
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 30px;
    }

    .page-about__hero-image {
        margin-bottom: 25px;
        border-radius: 6px;
    }

    .page-about__main-title {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .page-about__subtitle {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .page-about__cta-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 10px; /* Add padding to CTA group itself */
    }
    
    .page-about__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-about__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

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

    .page-about__card {
        padding: 20px;
        border-radius: 8px;
    }
    .page-about__card-title {
        font-size: 20px;
    }
    .page-about__card p {
        font-size: 15px;
    }

    .page-about__text-block p {
        font-size: 15px;
    }

    .page-about__game-list li,
    .page-about__support-channels li {
        font-size: 15px;
        padding-left: 25px;
    }

    .page-about__responsibility-list {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px auto 30px;
        padding: 0 10px;
    }
    .page-about__responsibility-list li {
        font-size: 15px;
        padding: 12px 15px 12px 40px;
    }

    details.page-about__faq-item summary.page-about__faq-question { 
        padding: 15px;
        font-size: 16px;
    }
    .page-about__faq-qtext {
        font-size: 16px;
    }
    .page-about__faq-toggle {
        font-size: 24px;
        width: 25px;
        margin-left: 10px;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 15px 15px;
        font-size: 15px;
    }

    /* Ensure all images are responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__content-wrapper,
    .page-about__text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}