/* style/about.css */

/* --- General Page Styling --- */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Assuming default body background is white */
}

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

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

.page-about__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #26A9E0; /* Brand primary color for titles */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-about__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-about__text-block {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.page-about__image-block {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image-block img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* --- 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 handled by shared.css; this is a small decorative top padding */
    padding-top: 10px; 
    background-color: #f8f8f8; /* Light background for hero section */
}

.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%;
    margin-bottom: 30px;
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-about__main-title {
    font-size: clamp(30px, 4vw, 48px); /* H1 font size with clamp */
    font-weight: 800;
    color: #26A9E0; /* Brand primary color */
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-description {
    font-size: 19px;
    color: #333333;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* For button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__cta-button:hover {
    background: #d46c05; /* Darker shade of login color */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Why Choose Us Section --- */
.page-about__why-choose-us {
    background-color: #26A9E0; /* Primary brand color for dark section */
    color: #ffffff;
    padding-bottom: 80px;
}

.page-about__why-choose-us .page-about__section-title {
    color: #ffffff; /* White title on dark background */
}

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

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

.page-about__feature-card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on brand color */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 450px; /* Ensure cards have similar height */
}

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

.page-about__feature-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Enforce min image size */
    width: 100%; /* Ensure image fills card width */
}

.page-about__feature-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-about__feature-card p {
    font-size: 16px;
    color: #f0f0f0;
    flex-grow: 1; /* Allow paragraph to grow */
}

.page-about__cta-group {
    margin-top: 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 17px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
    max-width: 100%; /* For button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: #EA7C07; /* Login color */
    color: #ffffff;
    border-color: #EA7C07;
}

.page-about__btn-primary:hover {
    background: #d46c05;
    border-color: #d46c05;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
    background: #ffffff;
    color: #26A9E0; /* Primary brand color */
    border-color: #ffffff;
}

.page-about__btn-secondary:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
    color: #1a8cc4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-about__btn-text-link {
    color: #26A9E0;
    text-decoration: underline;
    font-weight: bold;
    margin-top: 20px;
    display: inline-block;
    transition: color 0.3s ease;
}

.page-about__btn-text-link:hover {
    color: #1a8cc4;
}

/* --- Responsible Gaming Section --- */
.page-about__responsible-gaming .page-about__content-wrapper {
    flex-direction: row; /* Default desktop layout */
}

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

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

details.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #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; /* Hide default marker */
    transition: background-color 0.3s ease;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Webkit browsers */
}
details.page-about__faq-item summary.page-about__faq-question:hover {
    background: #f5f5f5;
}
.page-about__faq-qtext {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    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;
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
}
details.page-about__faq-item .page-about__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin if it's the only content */
}

/* --- Contact CTA Section --- */
.page-about__contact-cta {
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
    padding: 80px 0;
}

.page-about__contact-cta .page-about__section-title {
    color: #ffffff;
    margin-bottom: 15px;
}

.page-about__contact-cta .page-about__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-about__contact-cta .page-about__cta-button {
    background: #EA7C07; /* Login color */
    border-color: #EA7C07;
}

.page-about__contact-cta .page-about__cta-button:hover {
    background: #d46c05;
    border-color: #d46c05;
}

/* --- Responsive Design (Mobile First) --- */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 30px;
    }
    .page-about__section-description {
        font-size: 17px;
    }
    .page-about__feature-title {
        font-size: 22px;
    }
    .page-about__hero-description {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-about__hero-image img {
        border-radius: 4px;
    }
    
    .page-about__main-title {
        font-size: clamp(24px, 7vw, 36px); /* Adjust H1 for smaller screens */
    }
    
    .page-about__hero-description {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        width: 100% !important;
        max-width: 300px !important; /* Limit button width slightly */
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__section {
        padding: 40px 0;
    }

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

    .page-about__section-description {
        font-size: 15px;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-about__content-wrapper {
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
    }

    .page-about__text-block,
    .page-about__image-block {
        min-width: unset;
        width: 100%;
        padding: 0 15px; /* Add padding to content blocks */
    }
    
    .page-about__image-block img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min- /* Adjust min height for mobile */
    }

    .page-about__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        padding: 0 15px;
    }
    
    .page-about__feature-card {
        padding: 25px;
        min-height: unset;
    }
    
    .page-about__feature-card img {
        min- /* Adjust min image height for mobile cards */
    }

    .page-about__feature-title {
        font-size: 20px;
    }
    
    .page-about__feature-card p {
        font-size: 15px;
    }

    .page-about__cta-group {
        flex-direction: column;
        gap: 15px;
        margin-top: 40px;
        padding: 0 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    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;
    }
    .page-about__faq-section .page-about__container {
        padding: 0 15px;
    }
    .page-about__faq-list {
        margin-top: 30px;
    }
    
    .page-about__contact-cta {
        padding: 60px 15px;
    }
}

/* Ensure all images and their containers are responsive and don't cause overflow */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-about__section,
.page-about__card,
.page-about__container,
.page-about__text-block,
.page-about__image-block,
.page-about__feature-grid,
.page-about__feature-card,
.page-about__faq-list,
.page-about__faq-item {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent horizontal overflow */
}

/* Specific button and button container overrides for mobile */
@media (max-width: 768px) {
    .page-about__cta-button,
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container,
    .page-about__cta-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column;
    }
    
    .page-about__cta-group {
        flex-direction: column;
    }
    
    .page-about__section > .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Color contrast enforcement (default body is light/white) */
.page-about {
    color: #333333; /* Dark text on light background */
}

.page-about__dark-section {
    background: #26A9E0;
    color: #ffffff; /* White text on primary brand color */
}

.page-about__dark-section .page-about__section-title {
    color: #ffffff;
}

.page-about__dark-section .page-about__section-description {
    color: #f0f0f0;
}

.page-about__dark-section p {
    color: #f0f0f0;
}

.page-about__contact-cta.page-about__dark-bg {
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

.page-about__contact-cta.page-about__dark-bg .page-about__section-title {
    color: #ffffff;
}

.page-about__contact-cta.page-about__dark-bg .page-about__section-description {
    color: #f0f0f0;
}

/* Image filter restriction */
.page-about img {
    filter: none; /* Ensure no CSS filter changes image color */
}

/* Content area images minimum size enforcement */
.page-about__content-wrapper img,
.page-about__feature-card img {
    min-width: 200px;
    min-height: 200px;
}