.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F2FFF6); /* Default text color for the page */
    background-color: var(--background-color, #08160F); /* Defined in shared.css, but fallback */
}

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

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

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

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above image if any overlap occurs (though not intended) */
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    color: var(--text-main, #F2FFF6);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-about__description {
    font-size: 1.1em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--text-main, #F2FFF6);
    border: 2px solid var(--border-color, #2E7A4E);
}

.page-about__btn-secondary:hover {
    background-color: var(--border-color, #2E7A4E);
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- General Section Styling --- */
.page-about__section {
    padding: 80px 20px;
    border-bottom: 1px solid var(--divider-color, #1E3A2A);
}

.page-about__section:last-of-type {
    border-bottom: none;
}

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

.page-about__heading {
    font-size: clamp(2em, 4vw, 2.8em);
    color: var(--text-main, #F2FFF6);
    text-align: center;
    margin-bottom: 50px;
    font-weight: bold;
}

.page-about__sub-heading {
    font-size: 1.8em;
    color: var(--text-main, #F2FFF6);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__text-block p {
    margin-bottom: 1em;
    color: var(--text-secondary, #A7D9B8);
    font-size: 1.05em;
}

/* --- Mission & Vision, Why Choose Us Sections --- */
.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__content-grid--reverse {
    grid-template-areas: "image text"; /* Reverse order for this specific grid */
}
.page-about__content-grid--reverse .page-about__text-block {
    grid-area: text;
}
.page-about__content-grid--reverse .page-about__image-block {
    grid-area: image;
}

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

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* --- Our Values Section --- */
.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-about__value-card {
    background-color: var(--card-bg, #11271B);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__card-title {
    font-size: 1.5em;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__value-card p {
    color: var(--text-secondary, #A7D9B8);
    font-size: 1em;
}

/* --- Responsible Gaming Section --- */
.page-about__responsible-gaming .page-about__description {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* --- History Section --- */
.page-about__history-timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    margin-top: 50px;
}

.page-about__history-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background-color: var(--divider-color, #1E3A2A);
    transform: translateY(-50%);
    z-index: 0;
}

.page-about__timeline-item {
    flex: 1 1 22%; /* Adjust based on number of items */
    min-width: 200px;
    text-align: center;
    position: relative;
    padding: 20px 0;
    z-index: 1;
}

.page-about__timeline-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color, #11A84E);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid var(--background-color, #08160F);
    z-index: 2;
}

.page-about__timeline-year {
    font-size: 1.8em;
    color: var(--gold-color, #F2C14E);
    margin-bottom: 10px;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.page-about__timeline-item p {
    color: var(--text-secondary, #A7D9B8);
    font-size: 0.95em;
    position: relative;
    z-index: 2;
}

/* Adjust timeline item positions for better visual flow */
.page-about__timeline-item:nth-child(odd) {
    padding-bottom: 80px;
    transform: translateY(-50%);
}
.page-about__timeline-item:nth-child(even) {
    padding-top: 80px;
    transform: translateY(50%);
}
.page-about__timeline-item:nth-child(odd)::before {
    top: auto;
    bottom: 0;
    transform: translate(-50%, 50%);
}
.page-about__timeline-item:nth-child(even)::before {
    top: 0;
    transform: translate(-50%, -50%);
}

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

.page-about__faq-item {
    background-color: var(--card-bg, #11271B);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    color: var(--text-main, #F2FFF6);
    font-weight: bold;
    cursor: pointer;
    background-color: var(--card-bg, #11271B);
    border-bottom: 1px solid var(--divider-color, #1E3A2A);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}
.page-about__faq-question::-webkit-details-marker {
    display: none; /* For details/summary */
}
.page-about__faq-question::marker {
    display: none; /* For details/summary */
}

.page-about__faq-item[open] .page-about__faq-question {
    background-color: var(--deep-green, #0A4B2C);
}

.page-about__faq-question:hover {
    background-color: var(--deep-green, #0A4B2C);
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 20px;
    color: var(--glow-color, #57E38D);
}

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

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__content-grid {
        grid-template-columns: 1fr;
    }
    .page-about__content-grid--reverse {
        grid-template-areas: "text" "image"; /* Stack text then image */
    }
    .page-about__content-grid--reverse .page-about__text-block {
        grid-area: text;
    }
    .page-about__content-grid--reverse .page-about__image-block {
        grid-area: image;
    }
    .page-about__timeline-item:nth-child(odd),
    .page-about__timeline-item:nth-child(even) {
        padding-top: 20px;
        padding-bottom: 20px;
        transform: translateY(0);
        flex: 1 1 45%; /* Two columns on tablets */
    }
    .page-about__history-timeline::before {
        left: 50%;
        right: auto;
        width: 2px;
        height: calc(100% - 40px);
        top: 20px;
        transform: translateX(-50%);
    }
    .page-about__timeline-item::before {
        top: 20px;
        transform: translate(-50%, -50%);
    }
    .page-about__timeline-item:nth-child(odd)::before,
    .page-about__timeline-item:nth-child(even)::before {
        top: 20px;
        bottom: auto;
        transform: translate(-50%, -50%);
    }
    .page-about__timeline-item .page-about__timeline-year,
    .page-about__timeline-item p {
        text-align: center;
        padding-left: 0;
    }
    .page-about__timeline-item:nth-child(odd),
    .page-about__timeline-item:nth-child(even) {
        padding-top: 0;
        padding-bottom: 0;
    }
    .page-about__timeline-item:first-child {
        padding-top: 20px;
    }
    .page-about__timeline-item:last-child {
        padding-bottom: 20px;
    }
}

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

    .page-about__main-title {
        font-size: 2.2em; /* Smaller on mobile */
    }

    .page-about__description {
        font-size: 1em;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Apply padding to buttons container */
    }

    .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-left: 15px; /* Ensure internal padding */
        padding-right: 15px; /* Ensure internal padding */
    }

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

    .page-about__heading {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-about__sub-heading {
        font-size: 1.5em;
    }

    .page-about__content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .page-about__image,
    .page-about__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__hero-image-wrapper,
    .page-about__image-block,
    .page-about__container,
    .page-about__section,
    .page-about__value-card,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

    .page-about__timeline-item {
        flex: 1 1 100%; /* Single column on mobile */
        padding-top: 20px;
        padding-bottom: 20px;
        transform: translateY(0);
    }
    .page-about__history-timeline::before {
        left: 25px;
        right: auto;
        width: 2px;
        height: calc(100% - 40px);
        top: 20px;
        transform: translateY(0);
    }
    .page-about__timeline-item::before {
        left: 25px;
        transform: translate(-50%, -50%);
    }
    .page-about__timeline-item:nth-child(odd)::before,
    .page-about__timeline-item:nth-child(even)::before {
        left: 25px;
        top: 20px;
        bottom: auto;
        transform: translate(-50%, -50%);
    }
    .page-about__timeline-item .page-about__timeline-year,
    .page-about__timeline-item p {
        text-align: left;
        padding-left: 40px; /* Offset text from vertical line */
    }
    .page-about__timeline-item:nth-child(odd),
    .page-about__timeline-item:nth-child(even) {
        padding-top: 0;
        padding-bottom: 0;
    }
    .page-about__timeline-item:first-child {
        padding-top: 20px;
    }
    .page-about__timeline-item:last-child {
        padding-bottom: 20px;
    }
}