/* Base styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF3E6; /* Text Main color on dark background */
    background-color: #0D0E12; /* Background color */
}

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

.page-about__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #FF8C1A; /* Main brand color */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    line-height: 1.2;
}

.page-about__card {
    background-color: #17191F; /* Card BG color */
    border: 1px solid #A84F0C; /* Border color */
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    color: #FFF3E6; /* Text Main color */
}

.page-about__card-title {
    font-size: 24px;
    color: #FFA53A; /* Auxiliary color */
    margin-top: 0;
    margin-bottom: 15px;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, assuming body has padding-top from shared */
    min-height: 400px;
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height of hero image */
    overflow: hidden;
    margin-bottom: 20px;
}

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

.page-about__hero-content {
    position: relative; /* Ensure content is above image but not overlapping */
    max-width: 900px;
    padding: 20px;
    background: rgba(13, 14, 18, 0.8); /* Semi-transparent dark background for text */
    border-radius: 10px;
    margin-top: -100px; /* Pull content up slightly, but ensure it's below the image */
    z-index: 2;
    margin-bottom: 40px;
}

.page-about__main-title {
    font-size: 48px;
    color: #FF8C1A;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__intro-text {
    font-size: 18px;
    margin-bottom: 30px;
    color: #FFF3E6;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-about__btn-secondary {
    background: #17191F; /* Card BG color */
    color: #FF8C1A; /* Main brand color */
    border: 2px solid #FF8C1A;
    margin-left: 20px;
}

.page-about__btn-secondary:hover {
    background: #FF8C1A;
    color: #ffffff;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 16px;
}

/* Vision and Mission Section */
.page-about__vision-mission {
    padding: 60px 0;
}

.page-about__dark-section {
    background-color: #0D0E12; /* Ensure consistent dark background */
}

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

.page-about__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-top: 30px;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    padding: 60px 0;
    background-color: #17191F; /* Card BG as section background */
}

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

.page-about__feature-item {
    text-align: left;
}

.page-about__feature-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-about__feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #FFF3E6;
}

.page-about__feature-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.page-about__feature-list li::before {
    content: '•';
    color: #FF8C1A;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* History Section */
.page-about__history {
    padding: 60px 0;
}

.page-about__content-text {
    font-size: 16px;
    color: #FFF3E6;
    margin-bottom: 30px;
}

.page-about__content-text p {
    margin-bottom: 15px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
    padding: 60px 0;
    background-color: #17191F; /* Card BG as section background */
}

/* FAQ Section */
.page-about__faq-section {
    padding: 60px 0;
}

details.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #A84F0C; /* Border color */
    overflow: hidden;
    background: #17191F; /* Card BG color */
    color: #FFF3E6;
}
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: rgba(255, 140, 26, 0.1); /* Lighter hover for dark background */
}
.page-about__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #FFF3E6; /* Text Main color */
}
.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #FFA53A; /* Auxiliary color */
    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: rgba(255, 140, 26, 0.05); /* Slightly lighter background for answer */
    border-radius: 0 0 5px 5px;
    font-size: 16px;
    color: #FFF3E6;
}
.page-about__faq-answer p {
    margin: 0;
}

/* Contact CTA Section */
.page-about__contact-cta {
    padding: 60px 0 80px;
    text-align: center;
}

.page-about__contact-text {
    font-size: 18px;
    margin-bottom: 40px;
    color: #FFF3E6;
}

/* Copyright */
.page-about__copyright {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #A84F0C; /* Border color for subtle text */
    background-color: #0D0E12;
    border-top: 1px solid #17191F;
}


/* --- Responsive Styles --- */

/* Mobile adaptation for all images */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile adaptation for all containers */
.page-about__section,
.page-about__card,
.page-about__container,
.page-about__cta-buttons,
.page-about__grid,
.page-about__grid-features {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* No 1023px/1024px media queries for about.html as per instructions */

@media (max-width: 768px) {
    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding-top: 30px;
    }

    .page-about__hero-content {
        margin-top: -60px; /* Adjust for smaller screens */
        padding: 15px;
    }

    .page-about__main-title {
        font-size: 36px;
    }

    .page-about__intro-text {
        font-size: 16px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        font-size: 16px;
        padding: 12px 20px;
        max-width: 100% !important; /* Enforce full width for buttons */
        width: 100% !important;
        margin: 0 0 10px 0 !important; /* Stack buttons vertically */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    .page-about__card-title {
        font-size: 20px;
    }

    .page-about__card {
        padding: 20px;
    }

    .page-about__grid,
    .page-about__grid-features {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

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

    .page-about__feature-list li {
        font-size: 15px;
    }

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

    .page-about__contact-text {
        font-size: 16px;
    }

    /* Enforce image and container max-width 100% with !important */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__container,
    .page-about__hero-image-wrapper,
    .page-about__hero-content,
    .page-about__grid,
    .page-about__grid-features,
    .page-about__feature-item,
    .page-about__card,
    .page-about__vision-mission,
    .page-about__why-choose-us,
    .page-about__history,
    .page-about__responsible-gaming,
    .page-about__faq-section,
    .page-about__contact-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

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