/* style/about.css */
.page-about {
    font-family: Arial, sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
}

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

.page-about__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding as shared.css handles body padding */
    padding-bottom: 50px;
    background-color: #0A4B2C; /* Deep Green */
    position: relative;
    overflow: hidden;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto 30px;
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-about__intro-text {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-about__hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 1600px; /* Max width for hero image */
    z-index: 1;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-about__cta-button--secondary {
    background: #11271B; /* Card BG */
    color: #2AD16F;
    border: 1px solid #2E7A4E; /* Border */
}

.page-about__cta-button--secondary:hover {
    background: #2E7A4E; /* Border */
    color: #F2FFF6;
}

.page-about__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    padding-top: 50px;
}

.page-about__history-section {
    padding: 80px 0;
    background-color: #08160F;
}

.page-about__history-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__history-content {
    flex: 1;
}

.page-about__history-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #A7D9B8;
}

.page-about__history-image-wrapper {
    flex: 0 0 45%;
    max-width: 45%;
}

.page-about__history-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-about__mission-vision-section {
    padding: 80px 0;
    background-color: #11271B; /* Card BG */
}

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

.page-about__mv-card {
    background-color: #0A4B2C; /* Deep Green */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E;
}

.page-about__mv-title {
    font-size: 1.8rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__mv-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #A7D9B8;
}

.page-about__core-values-section {
    padding: 80px 0;
    background-color: #08160F;
}

.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-about__value-item {
    background-color: #11271B; /* Card BG */
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__value-icon {
    width: 100%;
    height: auto;
    max-width: 150px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-about__value-title {
    font-size: 1.5rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-about__value-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #A7D9B8;
}

.page-about__why-choose-section {
    padding: 80px 0;
    background-color: #11271B; /* Card BG */
}

.page-about__why-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.page-about__why-grid:last-of-type {
    margin-bottom: 0;
}

.page-about__why-grid--reverse {
    flex-direction: row-reverse;
}

.page-about__why-item {
    flex: 1;
}

.page-about__why-title {
    font-size: 2rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    font-weight: 600;
}

.page-about__why-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #A7D9B8;
    margin-bottom: 20px;
}

.page-about__why-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-about__why-list li {
    font-size: 1rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-about__why-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #2AD16F;
}

.page-about__why-list a {
    color: #2AD16F; /* Button */
    text-decoration: none;
}

.page-about__why-list a:hover {
    text-decoration: underline;
}

.page-about__why-image-wrapper {
    flex: 0 0 45%;
    max-width: 45%;
}

.page-about__why-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-about__responsible-gambling-section {
    padding: 80px 0;
    background-color: #08160F;
}

.page-about__rg-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.page-about__rg-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 0 auto 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-about__rg-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #A7D9B8;
    margin-bottom: 20px;
}

.page-about__rg-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-about__connect-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green */
    text-align: center;
}

.page-about__dark-section {
    background-color: #0A4B2C;
    color: #F2FFF6;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #2E7A4E;
    max-width: 900px;
    margin: 0 auto;
}

.page-about__connect-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #A7D9B8;
    margin-bottom: 40px;
}

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

/* General image and button responsive styles */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-about__cta-button, .page-about__rg-buttons a {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__connect-buttons {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
    .page-about__container {
        padding: 20px 30px;
    }

    .page-about__hero-content {
        padding: 0 20px;
    }

    .page-about__history-grid,
    .page-about__why-grid {
        flex-direction: column;
        text-align: center;
    }

    .page-about__history-image-wrapper,
    .page-about__why-image-wrapper {
        max-width: 80%;
        margin-top: 30px;
    }

    .page-about__why-grid--reverse {
        flex-direction: column;
    }

    .page-about__mv-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .page-about__container {
        padding: 0 15px !important;
    }

    .page-about__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-about__main-title {
        font-size: 2rem;
    }

    .page-about__intro-text {
        font-size: 1rem;
    }

    .page-about__cta-button {
        padding: 12px 20px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
        padding-top: 40px;
    }

    .page-about__history-section,
    .page-about__mission-vision-section,
    .page-about__core-values-section,
    .page-about__why-choose-section,
    .page-about__responsible-gambling-section,
    .page-about__connect-section {
        padding: 40px 0;
    }

    .page-about__history-grid,
    .page-about__why-grid {
        gap: 20px;
    }

    .page-about__history-image-wrapper,
    .page-about__why-image-wrapper {
        max-width: 100%;
        margin-top: 20px;
    }

    .page-about__mv-title {
        font-size: 1.5rem;
    }

    .page-about__value-title {
        font-size: 1.3rem;
    }

    .page-about__why-title {
        font-size: 1.6rem;
    }

    .page-about__rg-buttons,
    .page-about__connect-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-about__rg-buttons a, .page-about__connect-buttons a {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Mandatory placeholder media queries for homepage sections (even if not used in HTML) */
    /* 1. Top Carousel */
    .page-about__hero-carousel-section {
        padding-top: 10px !important;
        padding-bottom: 20px;
    }
    .page-about__hero-slider {
        position: relative;
        width: 100%;
        overflow: hidden;
    }
    .page-about__hero-slide {
        width: 100%;
        display: none;
    }
    .page-about__hero-slide.is-active {
        display: block;
    }
    .page-about__hero-slider-prev, .page-about__hero-slider-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(0,0,0,0.5);
        color: #fff;
        border: none;
        padding: 10px 15px;
        cursor: pointer;
        z-index: 10;
        font-size: 1.2rem;
    }
    .page-about__hero-slider-prev { left: 10px; }
    .page-about__hero-slider-next { right: 10px; }

    /* 2. Guide Box + Five Team Vertical Cards (上二下三) */
    .page-about__guide-box {
        padding: 15px;
        margin: 20px 0;
    }
    .page-about__guide-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }
    .page-about__guide-card {
        padding-top: 0 !important;
        flex: none;
        max-width: none;
        text-align: center;
    }
    .page-about__guide-card--pos-1, .page-about__guide-card--pos-2 {
        grid-column: span 3;
    }
    .page-about__guide-card--pos-3, .page-about__guide-card--pos-4, .page-about__guide-card--pos-5 {
        grid-column: span 2;
    }
    .page-about__guide-card img {
        aspect-ratio: 250/350;
        object-fit: cover;
        width: 100%;
        height: auto;
    }

    /* 3. Home Content Box (height: auto) */
    .page-about__home-content-box {
        max-width: 100% !important;
        height: auto !important;
        margin: 20px 0;
        padding: 10px;
        border-width: 2px !important;
        box-shadow: none !important;
    }
    .page-about__home-content-inner {
        height: auto !important;
        overflow: visible !important;
    }

    /* 4. Blog Card Area (4->2->1 columns) */
    .page-about__blog-section {
        padding: 40px 0;
    }
    .page-about__blog-grid {
        grid-template-columns: 1fr !important; /* Changed from 2 to 1 for mobile */
        gap: 15px;
    }
    .page-about__blog-card {
        margin-bottom: 15px;
    }

    /* 5. Generic Image and Button */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__section, .page-about__card, .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}