/* General Styling for page-about */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main-color, #333333); /* Default to dark text on light body */
    background: var(--site-bg-color, #F5F7FA); /* Ensure body background is respected */
    padding-bottom: 50px; /* Add some padding at the bottom */
}

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

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

.page-about__section:nth-of-type(even) {
    background: #ffffff; /* Alternate section background for visual separation */
}

.page-about__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #E53935; /* Main brand color for titles */
    margin-bottom: 20px;
    text-align: center;
}

.page-about__section-description {
    font-size: 18px;
    color: #555555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for desktop hero image */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

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

.page-about__main-title {
    font-size: clamp(30px, 4vw, 48px); /* Responsive font size for H1 */
    font-weight: 800;
    color: #E53935;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-about__description {
    font-size: 18px;
    color: #555555;
    margin-bottom: 30px;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 600px; /* Limit max width for button group */
    margin: 0 auto;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
}

.page-about__btn-secondary:hover {
    background: #E53935;
    color: #ffffff;
    transform: translateY(-2px);
}

/* About Us Section */
.page-about__about-us .page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.page-about__about-us .page-about__text-block p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333333;
}

.page-about__about-us .page-about__image-block {
    text-align: center;
}

.page-about__about-us .page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Why Choose Us Section */
.page-about__why-choose-us .page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-about__feature-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.page-about__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-about__feature-title {
    font-size: 22px;
    font-weight: 600;
    color: #E53935;
    margin-bottom: 15px;
}

.page-about__feature-card p {
    font-size: 15px;
    color: #555555;
}

.page-about__cta-center {
    margin-top: 50px;
}

/* Games Section */
.page-about__games {
    background: #F5F7FA;
}

.page-about__game-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-about__game-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.page-about__game-image {
    width: 100%;
    height: 200px; /* Fixed height for game images */
    object-fit: cover;
    display: block;
}

.page-about__game-title {
    font-size: 20px;
    font-weight: 600;
    color: #E53935;
    margin: 20px 15px 10px;
}

.page-about__game-card p {
    font-size: 15px;
    color: #555555;
    padding: 0 15px 20px;
}

.page-about__game-link {
    display: inline-block;
    background: #FF5A4F;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.page-about__game-link:hover {
    background: #E53935;
}

/* Promotions Section */
.page-about__promotions .page-about__promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-about__promo-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.page-about__promo-image {
    width: 100%;
    height: 220px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
}

.page-about__promo-title {
    font-size: 20px;
    font-weight: 600;
    color: #E53935;
    margin: 20px 20px 10px;
}

.page-about__promo-card p {
    font-size: 15px;
    color: #555555;
    padding: 0 20px 20px;
}

.page-about__promo-card .page-about__btn-primary {
    margin: 0 20px 20px;
    width: auto; /* Override max-width:100% for primary button */
    display: inline-block;
}

/* Customer Support Section */
.page-about__customer-support .page-about__support-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.page-about__customer-support .page-about__text-block p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333333;
}

.page-about__customer-support .page-about__image-block {
    text-align: center;
}

.page-about__customer-support .page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Responsible Gambling Section */
.page-about__responsible-gambling .page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.page-about__responsible-gambling .page-about__text-block p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333333;
}

.page-about__responsible-gambling .page-about__image-block {
    text-align: center;
}

.page-about__responsible-gambling .page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* FAQ Section */
.page-about__faq-section {
    background: #F5F7FA;
}

.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

details.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color, #e0e0e0);
    overflow: hidden;
    background: var(--card-bg-color, #fff);
}
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;
}
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: #f5f5f5;
}
.page-about__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main-color, #333333);
}
.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-main-color, #333333);
}
details.page-about__faq-item .page-about__faq-answer p {
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 30px;
    }
    .page-about__main-title {
        font-size: clamp(28px, 4.5vw, 42px);
    }
    .page-about__about-us .page-about__content-grid,
    .page-about__customer-support .page-about__support-content,
    .page-about__responsible-gambling .page-about__content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .page-about__about-us .page-about__text-block,
    .page-about__customer-support .page-about__text-block,
    .page-about__responsible-gambling .page-about__text-block {
        order: 2; /* Text block below image on smaller screens */
    }
    .page-about__about-us .page-about__image-block,
    .page-about__customer-support .page-about__image-block,
    .page-about__responsible-gambling .page-about__image-block {
        order: 1; /* Image block above text on smaller screens */
    }
    .page-about__why-choose-us .page-about__features-grid,
    .page-about__game-categories,
    .page-about__promotions .page-about__promo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .page-about__promo-card .page-about__btn-primary {
        width: calc(100% - 40px);
    }
}

@media (max-width: 768px) {
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    .page-about__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Hero Section */
    .page-about__hero-section {
        min-height: auto;
        padding-top: 10px; /* Small top padding for mobile */
        margin-bottom: 20px;
    }
    .page-about__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }
    .page-about__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain; /* Banner 849px contain */
    }
    .page-about__main-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 10px;
    }
    .page-about__description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General image and container responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__text-block,
    .page-about__image-block,
    .page-about__feature-card,
    .page-about__game-card,
    .page-about__promo-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__about-us .page-about__content-grid,
    .page-about__why-choose-us .page-about__features-grid,
    .page-about__game-categories,
    .page-about__promotions .page-about__promo-grid,
    .page-about__customer-support .page-about__support-content,
    .page-about__responsible-gambling .page-about__content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Specific overrides for cards/images */
    .page-about__feature-card,
    .page-about__game-card,
    .page-about__promo-card {
        padding: 20px;
    }
    .page-about__game-image,
    .page-about__promo-image {
        height: 180px; /* Adjust fixed height for mobile */
    }
    .page-about__game-card .page-about__game-link,
    .page-about__promo-card .page-about__btn-primary {
        margin-left: 0;
        margin-right: 0;
        width: 100% !important;
    }
    .page-about__feature-icon {
        width: 80px;
        height: 80px;
    }

    /* FAQ Section */
    details.page-about__faq-item summary.page-about__faq-question {
        padding: 15px;
    }
    .page-about__faq-qtext {
        font-size: 15px;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 15px 15px;
    }
}