/* style/about.css */

/* Custom properties for colors */
:root {
    --go888-primary-color: #11A84E;
    --go888-secondary-color: #22C768;
    --go888-card-bg: #11271B;
    --go888-background-color: #08160F;
    --go888-text-main: #F2FFF6;
    --go888-text-secondary: #A7D9B8;
    --go888-border-color: #2E7A4E;
    --go888-glow-color: #57E38D;
    --go888-gold-color: #F2C14E;
    --go888-divider-color: #1E3A2A;
    --go888-deep-green: #0A4B2C;
    --go888-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-about {
    color: var(--go888-text-main); /* Default text color for the page content, considering dark body background */
    background-color: var(--go888-background-color); /* Ensure consistency if body background is not fully propagated */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 30px;
}

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

.page-about__hero-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    z-index: 1;
    box-sizing: border-box;
}

.page-about__main-title {
    color: var(--go888-gold-color);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    /* Using clamp for responsive font-size, avoiding fixed large values */
    font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem);
}

.page-about__hero-description {
    color: var(--go888-text-secondary);
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styling */
.page-about__section {
    padding: 60px 20px;
    border-bottom: 1px solid var(--go888-divider-color);
    box-sizing: border-box;
}

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

.page-about__container--flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-about__container--flex-reverse {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    align-items: flex-start;
}

.page-about__content-block {
    flex: 1;
}

.page-about__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-about__section-title {
    color: var(--go888-gold-color);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-about__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--go888-primary-color);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.page-about__subsection-title {
    color: var(--go888-primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__text-block {
    color: var(--go888-text-main);
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.page-about__text-block a {
    color: var(--go888-secondary-color);
    text-decoration: underline;
}

.page-about__text-block a:hover {
    color: var(--go888-gold-color);
}

/* Core Values Section */
.page-about__core-values-section {
    background-color: var(--go888-card-bg);
}

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

.page-about__value-item {
    background: var(--go888-deep-green);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--go888-border-color);
}

.page-about__value-title {
    color: var(--go888-gold-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.page-about__value-description {
    color: var(--go888-text-secondary);
    font-size: 1rem;
}

/* Products and Services Section */
.page-about__services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-about__service-card {
    background: var(--go888-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--go888-border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__card-title {
    color: var(--go888-gold-color);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.page-about__card-description {
    color: var(--go888-text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Why Choose Us Section */
.page-about__advantages-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-about__advantage-item {
    background: var(--go888-deep-green);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--go888-border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__advantage-title {
    color: var(--go888-primary-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.page-about__advantage-description {
    color: var(--go888-text-secondary);
}

.page-about__cta-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 30px;
}

.page-about__faq-item {
    background: var(--go888-card-bg);
    border: 1px solid var(--go888-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    list-style: none;
    color: var(--go888-gold-color);
    font-size: 1.2rem;
    font-weight: 600;
    background-color: var(--go888-deep-green);
}

.page-about__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-about__faq-qtext {
    flex-grow: 1;
}

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--go888-primary-color);
}

.page-about__faq-answer {
    padding: 20px 25px;
    color: var(--go888-text-secondary);
    font-size: 1rem;
    border-top: 1px solid var(--go888-border-color);
}

.page-about__faq-answer p {
    margin-bottom: 0;
}

/* Call to Action Banner Section */
.page-about__contact-cta-section {
    padding: 0;
    border-bottom: none;
}

.page-about__cta-banner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-about__cta-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    box-sizing: border-box;
}

.page-about__cta-title {
    color: var(--go888-gold-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-about__cta-description {
    color: var(--go888-text-main);
    font-size: 1.15rem;
    max-width: 700px;
    margin-bottom: 30px;
}

/* Buttons */
.page-about__cta-button,
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-about__btn-primary {
    background: var(--go888-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    margin: 0 10px;
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(42, 209, 111, 0.4);
}

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

.page-about__btn-secondary:hover {
    background: var(--go888-primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(17, 168, 78, 0.3);
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-about__container--flex,
    .page-about__container--flex-reverse {
        flex-direction: column;
        align-items: center;
    }

    .page-about__content-block,
    .page-about__image-block {
        width: 100%;
        max-width: 100%;
    }

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

    .page-about__container--flex-reverse .page-about__image {
        order: -1;
        margin-bottom: 30px;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-about__main-title {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }

    .page-about__hero-description {
        font-size: 1rem;
    }

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

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

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

    .page-about__text-block {
        font-size: 0.95rem;
    }

    .page-about__values-list,
    .page-about__services-grid,
    .page-about__advantages-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__value-item,
    .page-about__service-card,
    .page-about__advantage-item {
        padding: 25px;
    }

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

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

    .page-about__cta-description {
        font-size: 1rem;
    }

    /* Mobile responsive images */
    .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__hero-section,
    .page-about__hero-image-wrapper,
    .page-about__cta-banner,
    .page-about__cta-content,
    .page-about__services-grid,
    .page-about__values-list,
    .page-about__advantages-list,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Mobile responsive buttons */
    .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;
        margin: 10px 0 !important; /* Stack buttons vertically */
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__cta-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px; /* Space between stacked buttons */
    }

    .page-about__cta-content {
        padding: 20px;
        position: relative; /* Make content flow naturally on mobile */
        background: var(--go888-card-bg); /* Ensure readability */
        height: auto;
    }

    .page-about__cta-banner {
        margin: 30px auto;
    }

    .page-about__cta-banner-image {
        display: none; /* Hide background image on very small screens if content is overlaid */
    }
}

/* Ensure contrast for links within dark sections */
.page-about__text-block a,
.page-about__faq-answer a {
    color: var(--go888-secondary-color);
}

.page-about__text-block a:hover,
.page-about__faq-answer a:hover {
    color: var(--go888-gold-color);
}