/* style/about.css */

/* --- Base Styles --- */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text on dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

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

.page-about__section-title {
    font-size: 3em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about__section-subtitle {
    font-size: 1.2em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__text-block p {
    margin-bottom: 1em;
    color: #f0f0f0;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure buttons adapt */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
    background-color: #1e87b9;
    border-color: #1e87b9;
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #26A9E0; /* Brand primary color */
    border: 2px solid #26A9E0;
}

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

.page-about__btn-small {
    padding: 8px 20px;
    font-size: 0.9em;
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    background-color: #0a0a0a;
    padding-top: 0; /* Assuming shared.css handles body padding-top */
}

.page-about__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
    border-radius: 0; /* Ensure no border-radius on hero image */
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

.page-about__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-about__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Introduction Section --- */
.page-about__introduction-section {
    background-color: #0a0a0a;
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

/* --- Values Section --- */
.page-about__values-section {
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

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

.page-about__value-card {
    background-color: rgba(38, 169, 224, 0.1); /* Transparent brand color */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(38, 169, 224, 0.3);
}

.page-about__card-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-about__card-description {
    color: #f0f0f0;
}

.page-about__image-center {
    text-align: center;
    margin-top: 40px;
}

/* --- Products Overview Section --- */
.page-about__products-overview {
    background-color: #0a0a0a;
}

.page-about__product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-about__category-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid #333333;
}

.page-about__category-card:hover {
    transform: translateY(-5px);
}

.page-about__category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 0; /* Ensure no border-radius on images in cards */
}

.page-about__category-card .page-about__card-title {
    font-size: 1.5em;
    margin: 15px 15px 10px;
    text-align: left;
}

.page-about__category-card .page-about__card-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-about__category-card .page-about__card-title a:hover {
    text-decoration: underline;
}

.page-about__category-card .page-about__card-description {
    font-size: 0.95em;
    color: #cccccc;
    padding: 0 15px 20px;
    text-align: left;
}

/* --- Responsible Gambling Section --- */
.page-about__responsible-gambling {
    background-color: #1a1a1a;
}

.page-about__responsible-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

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

.page-about__faq-item {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #26A9E0; /* Hover to brand color */
    color: #ffffff;
}

.page-about__faq-question h3 {
    margin: 0;
    color: inherit; /* Inherit color from parent for hover effect */
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-question {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
    color: #ffffff;
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #2a2a2a; /* Slightly different background for answer */
    color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px !important;
}

.page-about__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

/* --- CTA Section --- */
.page-about__cta-section {
    background-color: #26A9E0; /* Brand color for CTA background */
    text-align: center;
    color: #ffffff;
}

.page-about__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-about__cta-title {
    font-size: 3em;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-about__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-about__cta-buttons .page-about__btn-primary {
    background-color: #EA7C07; /* Login orange color for primary CTA */
    border-color: #EA7C07;
}

.page-about__cta-buttons .page-about__btn-primary:hover {
    background-color: #d16e05;
    border-color: #d16e05;
}

.page-about__cta-buttons .page-about__btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}

.page-about__cta-buttons .page-about__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}


/* --- Responsive Styles (Media Queries) --- */

/* Tablet and smaller */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2.5em;
    }

    .page-about__hero-title {
        font-size: 3em;
    }

    .page-about__hero-description {
        font-size: 1.1em;
    }

    .page-about__content-grid,
    .page-about__responsible-content {
        grid-template-columns: 1fr; /* Stack columns */
    }

    .page-about__image-block {
        margin-top: 30px;
    }

    .page-about__product-categories {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile specific styles */
@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-about__hero-section {
        min-height: 400px;
        padding-top: 0 !important; /* Fixed Header Spacing: Assuming shared.css handles body padding-top */
    }

    .page-about__hero-title {
        font-size: 2.2em !important;
        margin-bottom: 15px !important;
    }

    .page-about__hero-description {
        font-size: 1em !important;
        margin-bottom: 30px !important;
    }

    .page-about__hero-cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .page-about__hero-cta-buttons .page-about__btn-primary,
    .page-about__hero-cta-buttons .page-about__btn-secondary {
        width: 100% !important;
        padding: 12px 20px !important;
    }

    /* 产品展示图区域 (page-about__product-categories) */
    .page-about__product-categories {
        grid-template-columns: 1fr !important; /* Single column for mobile */
        gap: 20px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__category-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__category-image {
        height: auto !important; /* Ensure aspect ratio */
        max-height: 250px !important; /* Cap height for mobile */
    }


    /* 通用图片与容器 */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__content-grid,
    .page-about__values-grid,
    .page-about__responsible-content,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* 按钮与按钮容器 */
    .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 !important;
      padding-right: 15px !important;
    }
    
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px !important;
      padding-right: 15px !important;
      flex-wrap: wrap !important;
      gap: 10px !important;
      flex-direction: column !important; /* Stack buttons vertically */
    }

    /* 其他内容模块 */
    .page-about__section-padding {
        padding: 40px 0 !important;
    }

    .page-about__section-title {
        font-size: 1.8em !important;
        margin-bottom: 15px !important;
    }

    .page-about__section-subtitle {
        font-size: 1em !important;
        margin-bottom: 20px !important;
    }

    .page-about__value-card,
    .page-about__category-card {
        padding: 20px !important;
    }

    .page-about__card-title {
        font-size: 1.4em !important;
    }

    .page-about__faq-question {
        font-size: 1.1em !important;
        padding: 15px !important;
    }

    .page-about__faq-answer {
        padding: 15px !important;
    }

    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }

    .page-about__cta-title {
        font-size: 2em !important;
    }

    .page-about__cta-description {
        font-size: 1em !important;
    }
}