.page-about {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #FFFFFF; /* Custom background color for the page */
    padding-top: var(--header-offset, 120px); /* Header offset for fixed header */
}

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

.page-about__section {
    padding: 60px 0;
    text-align: center;
}

.page-about__section--dark {
    background-color: #000000; /* Main color as dark background */
    color: #ffffff; /* Light text for dark background */
}

.page-about__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #000000; /* Main color for titles on light background */
    font-weight: 700;
}

.page-about__section-title--light {
    color: #ffffff; /* Light color for titles on dark background */
}

/* General image styling within the page-about content area */
.page-about img {
    display: block; /* Ensures proper spacing and behavior */
    border-radius: 8px; /* Consistent rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Default for content images, can be overridden */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    background-color: #000000; /* Dark background for hero */
    color: #ffffff; /* Light text */
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly dim the background image */
    border-radius: 0; /* No border-radius for full-bleed hero */
    box-shadow: none; /* No shadow for full-bleed hero */
    min-width: auto; /* Hero image fills wrapper, so no fixed min-size */
    min-height: auto;
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login button color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 900;
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-about__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

.page-about__button--primary {
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for button */
}

.page-about__button--primary:hover {
    background-color: #e0a33a;
}

.page-about__button--secondary {
    background-color: #FFFFFF; /* Register button color */
    color: #000000; /* Dark text for button */
    border: 2px solid #FCBC45;
}

.page-about__button--secondary:hover {
    background-color: #FCBC45;
    color: #ffffff;
}

/* Story Section */
.page-about__story-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-about__story-image {
    flex: 1;
    width: 100%; /* Occupy available width in its flex container */
    height: auto; /* Maintain aspect ratio */
    max-width: 600px; /* Example max-width for story image */
    object-fit: cover;
}

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

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Mission & Vision Section */
.page-about__mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px; /* Ensure minimum height */
}

.page-about__card--light {
    background-color: #FFFFFF;
    color: #333333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-about__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #FCBC45; /* Accent color for card titles */
    font-weight: 600;
}

.page-about__card--light .page-about__card-title {
    color: #000000; /* Main color for card titles on light background */
}

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

.page-about__value-item {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-about__value-icon {
    width: 250px; /* Explicit width to ensure > 200px */
    height: 200px; /* Explicit height to ensure >= 200px */
    object-fit: contain; /* Better for icons/illustrations to be contained */
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: none; /* No shadow for icons */
}

.page-about__value-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #000000;
    font-weight: 600;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-description {
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
}

.page-about__responsible-gaming-description--light {
    color: #f0f0f0; /* Slightly lighter text on dark background */
}

/* CTA Section */
.page-about__cta-container {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    background-color: #000000; /* Dark background */
    color: #ffffff; /* Light text */
    padding: 50px;
    border-radius: 10px;
}

.page-about__cta-content {
    flex: 2;
}

.page-about__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #FCBC45; /* Accent color for CTA title */
    font-weight: 700;
}

.page-about__cta-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.page-about__cta-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__cta-image {
    width: 100%; /* Occupy available width in its flex container */
    height: auto; /* Maintain aspect ratio */
    max-width: 600px; /* Example max-width for CTA image */
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__story-content,
    .page-about__cta-container {
        flex-direction: column;
        text-align: center;
    }
    .page-about__story-image,
    .page-about__cta-image {
        order: -1; /* Image above text on smaller screens */
        margin-bottom: 30px;
    }
    .page-about__cta-image-wrapper {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-about {
        padding-top: var(--header-offset, 80px); /* Adjust header offset for mobile */
    }
    .page-about__hero-section {
        padding: 60px 20px;
    }
    .page-about__hero-title {
        font-size: 2.5em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__story-content,
    .page-about__cta-container {
        gap: 20px;
    }
    /* Ensure all images within .page-about are responsive */
    .page-about img {
        max-width: 100%;
        height: auto;
        /* min-width and min-height already set, ensures they don't shrink too much below 200px */
    }
    .page-about__story-image,
    .page-about__cta-image,
    .page-about__value-icon {
        width: 100%; /* Fill available space */
        height: auto;
        max-width: 100%; /* Ensure they don't exceed container width */
    }
    .page-about__card, .page-about__value-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 2em;
    }
    .page-about__button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
}