/* style/about.css */

/* Custom CSS Variables (for consistency with design system) */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --bg-color: #0A0A0A; /* Page background */
    --card-bg-color: #111111; /* Card background */
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
}

/* Base styles for the page content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color);
    background-color: var(--bg-color);
    padding-bottom: 40px;
}

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

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

.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;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--bg-color);
    overflow: hidden; /* Ensure no overflow */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-about__hero-image-container {
    width: 100%;
    max-height: 675px; /* Max height for desktop hero image */
    overflow: hidden;
    position: relative;
    margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-about__hero-content {
    max-width: 900px;
    padding: 0 20px 60px;
    z-index: 1;
    position: relative; /* Ensure content is above image filter */
}

.page-about__main-title {
    font-weight: 700;
    color: var(--text-main-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-about__description {
    font-size: 18px;
    color: var(--text-main-color);
    margin-bottom: 30px;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 500px; /* Max width for button group */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    min-width: 180px; /* Minimum width for buttons */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111; /* Dark text for bright button */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-about__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
    background: var(--primary-color);
    color: #111111; /* Dark text for hover */
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.page-about__mission-vision-section .page-about__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.page-about__card {
    background: var(--card-bg-color); /* Card background */
    color: var(--text-main-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-about__card-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-about__card p {
    font-size: 16px;
    margin-bottom: 20px;
}

.page-about__card-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin-top: auto; /* Push image to bottom if content is short */
    min-height: 200px; /* Minimum image size */
}


/* Values Section */
.page-about__values-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.page-about__values-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-about__value-item {
    background: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-about__value-heading {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-about__value-item p {
    font-size: 15px;
    color: var(--text-main-color);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.page-about__responsible-gaming-section .page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--card-bg-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-about__responsible-gaming-image {
    width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum image size */
    min-height: 200px;
}

.page-about__responsible-gaming-section .page-about__text-content {
    width: 50%;
    color: var(--text-main-color);
}

.page-about__responsible-gaming-section .page-about__text-content p {
    font-size: 16px;
    margin-bottom: 25px;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

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

details.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
details.page-about__faq-item summary.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    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: rgba(242, 193, 78, 0.1); /* Slight hover effect using primary color */
}
.page-about__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main-color);
}
.page-about__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
    padding: 0 25px 25px;
    background: rgba(17, 17, 17, 0.8); /* Slightly lighter than card BG */
    border-radius: 0 0 12px 12px;
    color: var(--text-main-color);
}
.page-about__faq-answer p {
    margin: 0;
    font-size: 16px;
}

/* Join Us Section */
.page-about__join-us-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.page-about__dark-section {
    background: var(--card-bg-color);
    color: var(--text-main-color);
    padding: 50px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.page-about__dark-section .page-about__section-title {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.page-about__dark-section .page-about__section-title::after {
    background: var(--secondary-color);
}

.page-about__dark-section .page-about__description {
    font-size: 18px;
    margin-bottom: 35px;
}

/* Global image styles for content area */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive styles for 1024px */
@media (max-width: 1024px) {
    .page-about__hero-content {
        padding-left: 40px;
        padding-right: 40px;
    }
    .page-about__mission-vision-section .page-about__container {
        grid-template-columns: 1fr;
    }
    .page-about__values-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-about__responsible-gaming-section .page-about__content-wrapper {
        flex-direction: column;
        padding: 30px;
    }
    .page-about__responsible-gaming-image,
    .page-about__responsible-gaming-section .page-about__text-content {
        width: 100%;
    }
}

/* Responsive styles for 768px (Mobile) - MUST BE COMPLETE */
@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
        overflow-x: hidden; /* Ensure no horizontal overflow */
    }
    .page-about__container,
    .page-about__section,
    .page-about__card,
    .page-about__content-wrapper,
    .page-about__faq-list,
    .page-about__dark-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    /* Hero Section */
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
    }
    .page-about__hero-image-container {
        margin-bottom: 20px;
    }
    .page-about__hero-content {
        padding: 0 15px 40px;
    }
    .page-about__main-title {
        font-size: clamp(28px, 6vw, 40px); /* Use clamp for H1 */
        margin-bottom: 15px;
    }
    .page-about__description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        padding: 0; /* Container padding already handled */
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        min-width: unset;
        font-size: 15px;
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 auto; /* Center buttons when stacked */
    }

    /* Mission & Vision Section */
    .page-about__mission-vision-section {
        padding: 40px 0;
    }
    .page-about__mission-vision-section .page-about__container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__card {
        padding: 25px;
    }
    .page-about__card-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    .page-about__card p {
        font-size: 15px;
    }
    .page-about__card-image {
        min-height: 200px !important; /* Ensure min size */
        width: 100% !important;
        height: auto !important;
    }

    /* Values Section */
    .page-about__values-section {
        padding: 40px 0;
    }
    .page-about__values-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__value-item {
        padding: 25px;
    }
    .page-about__value-heading {
        font-size: 20px;
        margin-bottom: 10px;
    }
    .page-about__value-item p {
        font-size: 14px;
    }

    /* Responsible Gaming Section */
    .page-about__responsible-gaming-section {
        padding: 40px 0;
    }
    .page-about__responsible-gaming-section .page-about__content-wrapper {
        flex-direction: column;
        padding: 25px;
    }
    .page-about__responsible-gaming-image {
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-about__responsible-gaming-section .page-about__text-content {
        width: 100%;
    }
    .page-about__responsible-gaming-section .page-about__text-content p {
        font-size: 15px;
        margin-bottom: 20px;
    }

    /* FAQ Section */
    .page-about__faq-section {
        padding: 40px 0;
    }
    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: 24px;
        width: 24px;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 15px 15px;
    }
    .page-about__faq-answer p {
        font-size: 15px;
    }

    /* Join Us Section */
    .page-about__join-us-section {
        padding: 40px 0;
    }
    .page-about__dark-section {
        padding: 30px;
    }
    .page-about__dark-section .page-about__section-title {
        font-size: 26px;
        margin-bottom: 20px;
    }
    .page-about__dark-section .page-about__description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* General image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}