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

/* --- Base Styles --- */
.page-about {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* #F2FFF6 */
    background-color: var(--background); /* #08160F */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: var(--gold); /* #F2C14E */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-about__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-main); /* #F2FFF6 */
}

.page-about__text-block strong {
    color: var(--gold); /* #F2C14E */
}

.page-about__text-block a {
    color: var(--glow); /* #57E38D */
    text-decoration: underline;
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom */
    background-color: var(--deep-green); /* Fallback */
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit image height */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

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

.page-about__hero-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1, no fixed huge size */
    color: var(--gold); /* #F2C14E */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    letter-spacing: -0.03em;
}

.page-about__hero-description {
    font-size: 1.3em;
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: 100%; /* Ensure button fits container */
    box-sizing: border-box;
}

.page-about__cta-button:hover {
    transform: translateY(-2px);
}

.page-about__btn-primary {
    background: var(--button-gradient); /* Button color */
    color: #ffffff; /* White text for contrast */
    border: none;
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--glow); /* #57E38D */
    border: 2px solid var(--glow); /* #57E38D */
    margin-left: 20px;
}

.page-about__btn-secondary:hover {
    background-color: var(--glow); /* #57E38D */
    color: var(--background); /* #08160F */
}

/* --- Introduction Section --- */
.page-about__introduction-section {
    padding: 60px 0;
    background-color: var(--background); /* #08160F */
}

/* --- Mission & Values Section --- */
.page-about__mission-values-section {
    padding: 80px 0;
    background-color: var(--card-bg); /* #11271B */
}

.page-about__dark-section {
    background-color: var(--card-bg); /* #11271B */
}

.page-about__dark-bg {
    color: var(--text-main); /* #F2FFF6 */
}

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

.page-about__card {
    background-color: var(--background); /* #08160F */
    border: 1px solid var(--border); /* #2E7A4E */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: var(--text-main); /* #F2FFF6 */
}

.page-about__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-about__card-title {
    font-size: 1.8em;
    color: var(--gold); /* #F2C14E */
    margin-bottom: 15px;
}

.page-about__card-text {
    font-size: 1em;
    color: var(--text-secondary); /* #A7D9B8 */
}

.page-about__list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 15px;
    color: var(--text-secondary); /* #A7D9B8 */
}

.page-about__list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-about__list li::before {
    content: '✓';
    color: var(--glow); /* #57E38D */
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- Why Choose Us Section --- */
.page-about__why-choose-us-section {
    padding: 80px 0;
    background-color: var(--background); /* #08160F */
}

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

.page-about__feature-item {
    background-color: var(--card-bg); /* #11271B */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-main); /* #F2FFF6 */
    text-align: center;
}

.page-about__feature-title {
    font-size: 1.5em;
    color: var(--gold); /* #F2C14E */
    margin-bottom: 10px;
}

.page-about__feature-text {
    font-size: 0.95em;
    color: var(--text-secondary); /* #A7D9B8 */
}

.page-about__full-width-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin-top: 40px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* --- Journey Section --- */
.page-about__journey-section {
    padding: 80px 0;
    background-color: var(--card-bg); /* #11271B */
}

/* --- Responsible Gaming Section --- */
.page-about__responsible-gaming-section {
    padding: 80px 0;
    background-color: var(--background); /* #08160F */
    text-align: center;
}

.page-about__image-center {
    display: block;
    margin: 40px auto;
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

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

.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__faq-item {
    background-color: var(--background); /* #08160F */
    border: 1px solid var(--divider); /* #1E3A2A */
    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: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--gold); /* #F2C14E */
    cursor: pointer;
    background-color: var(--deep-green); /* #0A4B2C */
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: var(--primary-color); /* #11A84E slightly lighter */
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--glow); /* #57E38D */
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

/* Hide default marker for details */
.page-about__faq-item summary {
    list-style: none;
}
.page-about__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-about__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: var(--text-secondary); /* #A7D9B8 */
    border-top: 1px solid var(--divider); /* #1E3A2A */
}

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

/* --- CTA Section --- */
.page-about__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--background); /* #08160F */
}

.page-about__cta-section .page-about__cta-button {
    margin-top: 30px;
    margin-left: 10px;
    margin-right: 10px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__hero-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-bottom: 40px;
    }
    .page-about__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-about__hero-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__cta-button {
        display: block;
        margin: 15px auto !important; /* Center buttons and stack them */
        width: calc(100% - 30px) !important; /* Full width with padding */
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__btn-secondary {
        margin-left: auto !important; /* Reset margin for stacking */
    }

    .page-about__container {
        padding: 0 15px;
    }

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

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

    .page-about__grid,
    .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__card,
    .page-about__feature-item,
    .page-about__faq-item {
        padding: 20px;
    }

    .page-about__card-image {
        height: auto; /* Allow image to scale */
        min-height: 200px;
    }

    .page-about__full-width-image,
    .page-about__image-center {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-about img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
      box-sizing: border-box !important;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__introduction-section,
    .page-about__mission-values-section,
    .page-about__why-choose-us-section,
    .page-about__journey-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .page-about__hero-section {
        padding-top: 10px !important; /* body already has padding-top */
        padding-left: 0;
        padding-right: 0;
    }
    .page-about__hero-content {
        padding: 0 15px;
    }
}