/* style/about.css */

/* Base styles for the page content, assuming body has a dark background from shared.css */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F2FFF6); /* Default text color for dark background */
    background-color: var(--bg, #08160F); /* Ensure consistency if not inherited */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    text-align: center;
    background-color: var(--bg, #08160F);
}

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

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

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

.page-about__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    /* No fixed font-size, rely on responsive scaling */
}

.page-about__hero-description {
    font-size: 1.1em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
}

/* Section Titles */
.page-about__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--gold, #F2C14E);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-about__sub-title {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 20px;
}

.page-about__section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-secondary, #A7D9B8);
}

/* Intro Section */
.page-about__intro-section {
    padding: 60px 0;
    background-color: var(--background, #08160F); /* Deep Green */
    color: var(--text-main, #F2FFF6);
}

.page-about__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
}

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

.page-about__image-block {
    flex: 0 0 400px; /* Fixed width for image block */
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about__image-block .page-about__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-about__text-block--full-width {
    flex: none;
    width: 100%;
    margin-top: 40px;
}


/* Why Choose Us Section (Light Background for contrast) */
.page-about__why-choose-us {
    padding: 60px 0;
    background-color: var(--card-bg, #11271B); /* Use card background for this section */
    color: var(--text-main, #F2FFF6);
}

.page-about__why-choose-us .page-about__section-title {
    color: var(--gold, #F2C14E);
}

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

.page-about__feature-card {
    background-color: var(--deep-green, #0A4B2C); /* Darker green for cards */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border, #2E7A4E);
    color: var(--text-main, #F2FFF6);
}

.page-about__feature-card .page-about__feature-icon {
    width: 200px; /* Minimum width */
    height: 150px; /* Minimum height, can be adjusted for aspect ratio */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-about__feature-card .page-about__card-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--gold, #F2C14E);
    margin-bottom: 15px;
}

.page-about__feature-card .page-about__card-description {
    font-size: 0.95em;
    color: var(--text-secondary, #A7D9B8);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
    padding: 60px 0;
    background-color: var(--background, #08160F);
    color: var(--text-main, #F2FFF6);
}

.page-about__flex-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-about__responsible-gaming .page-about__image-block {
    flex: 0 0 500px;
    max-width: 500px;
}

.page-about__responsible-gaming .page-about__text-block {
    flex: 1;
}

.page-about__responsible-gaming a {
    color: var(--glow, #57E38D);
    text-decoration: underline;
}

/* Future Vision Section */
.page-about__future-vision {
    padding: 60px 0;
    background-color: var(--card-bg, #11271B);
    color: var(--text-main, #F2FFF6);
}

/* CTA Section */
.page-about__cta-section {
    padding: 60px 0;
    background-color: var(--deep-green, #0A4B2C);
    text-align: center;
    color: var(--text-main, #F2FFF6);
}

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

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s 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 */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff; /* White text for primary button */
    border: none;
}

.page-about__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--glow, #57E38D); /* Glow color for secondary button text */
    border: 2px solid var(--glow, #57E38D);
}

.page-about__btn-secondary:hover {
    background-color: var(--glow, #57E38D);
    color: var(--deep-green, #0A4B2C); /* Dark text on hover for secondary */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-about__faq-section {
    padding: 60px 0;
    background-color: var(--card-bg, #11271B);
    color: var(--text-main, #F2FFF6);
}

.page-about__faq-list {
    margin-top: 40px;
}

.page-about__faq-item {
    background-color: var(--deep-green, #0A4B2C);
    border: 1px solid var(--border, #2E7A4E);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main, #F2FFF6);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--deep-green, #0A4B2C);
    color: var(--text-main, #F2FFF6);
    user-select: none;
    list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

.page-about__faq-item[open] > .page-about__faq-question {
    border-bottom: 1px solid var(--divider, #1E3A2A);
}

.page-about__faq-qtext {
    flex-grow: 1;
    color: var(--text-main, #F2FFF6);
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold, #F2C14E);
}

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8);
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
    .page-about__content-wrapper,
    .page-about__flex-container {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__image-block {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
    .page-about__responsible-gaming .page-about__image-block {
        order: -1; /* Image above text for responsible gaming */
    }
    .page-about__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        padding-bottom: 30px;
    }
    .page-about__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em); /* Use clamp for H1 on mobile */
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
        padding-top: 30px;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 1.3em;
    }
    .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure content images are not tiny */
        min- /* Adjust min height for mobile */
    }

    .page-about__image-block,
    .page-about__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons responsiveness */
    .page-about__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
    }

    /* FAQ responsiveness */
    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-about__faq-item .page-about__faq-toggle {
        font-size: 1.2em;
    }

    /* Ensure content sections have padding */
    .page-about__intro-section,
    .page-about__why-choose-us,
    .page-about__responsible-gaming,
    .page-about__future-vision,
    .page-about__cta-section,
    .page-about__faq-section {
      padding-left: 15px !important;
      padding-right: 15px !important;
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }
}

/* Color Contrast Fixes (as per instructions) */
.page-about__dark-section {
    background-color: var(--background, #08160F);
    color: var(--text-main, #F2FFF6);
}

.page-about__light-bg {
    background-color: var(--card-bg, #11271B); /* Using a slightly lighter dark background for contrast */
    color: var(--text-main, #F2FFF6);
}

/* Specific text color for links within sections */
.page-about__text-block a,
.page-about__faq-answer a {
    color: var(--glow, #57E38D);
    text-decoration: underline;
}
.page-about__text-block a:hover,
.page-about__faq-answer a:hover {
    color: var(--gold, #F2C14E);
}

/* Ensure all images meet min size requirements in CSS */
.page-about__image,
.page-about__feature-icon {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensure images fill their space without distortion */
}