.page-about {
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

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

.page-about__hero-section {
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF; /* Light text on dark background */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 0; /* Image will handle bottom spacing */
}

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    position: relative;
    z-index: 1;
}

.page-about__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FCBC45; /* Accent color for title */
    line-height: 1.2;
}

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

.page-about__hero-button {
    display: inline-block;
    background-color: #FCBC45; /* Login button color for primary CTA */
    color: #000000; /* Dark text on accent background */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-about__hero-button:hover {
    background-color: #e0a53a;
    transform: translateY(-2px);
}

.page-about__hero-image-container {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: -60px; /* Overlap with content slightly for visual flow */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-about__subsection-title {
    font-size: 1.8em;
    color: #000000;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__story-section,
.page-about__why-choose-us-section,
.page-about__values-section,
.page-about__security-section,
.page-about__responsible-gaming-section,
.page-about__cta-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.page-about__story-section .page-about__text-content:first-of-type {
    margin-top: 30px;
}

.page-about__text-content {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
}

.page-about__image-content {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

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

.page-about__feature-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-about__card-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card-description {
    font-size: 1em;
    color: #555555;
}

.page-about__cta-section {
    background-color: #000000; /* Dark background for CTA */
    color: #FFFFFF; /* Light text on dark background */
    text-align: center;
    padding: 80px 0;
}

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

.page-about__cta-content .page-about__section-title {
    color: #FCBC45; /* Accent color for CTA title */
    margin-bottom: 30px;
}

.page-about__cta-content .page-about__text-content {
    color: #f0f0f0;
    font-size: 1.2em;
    margin-bottom: 40px;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-about__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.3s ease;
}

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

.page-about__button--primary:hover {
    background-color: #e0a53a;
    transform: translateY(-2px);
}

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

.page-about__button--secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__subsection-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px);
        padding: 40px 15px 0;
    }
    .page-about__hero-content {
        padding: 40px 15px 30px;
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__subsection-title {
        font-size: 1.4em;
    }
    .page-about__text-content {
        font-size: 1em;
    }
    .page-about__features-grid {
        grid-template-columns: 1fr;
    }
    .page-about__story-section,
    .page-about__why-choose-us-section,
    .page-about__values-section,
    .page-about__security-section,
    .page-about__responsible-gaming-section,
    .page-about__cta-section {
        padding: 40px 0;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__image-content {
        margin: 30px auto;
        min-width: 200px; /* Enforce min-size for mobile */
        min-height: 200px; /* Enforce min-size for mobile */
        max-width: 100%; /* Ensure images don't overflow */
        height: auto; /* Maintain aspect ratio */
    }
    .page-about__button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__cta-content .page-about__text-content {
        font-size: 1em;
    }
    .page-about__hero-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__hero-description {
        font-size: 0.9em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__subsection-title {
        font-size: 1.2em;
    }
    .page-about__button {
        width: 100%;
        max-width: 280px;
    }
    .page-about__hero-button {
        width: 100%;
        max-width: 280px;
    }
}

/* Ensure all content area images are at least 200px wide/high */
.page-about img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensures images fill their space without distortion */
}

/* Mobile content area image overflow prevention */
@media (max-width: 768px) {
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* CSS for JS fade-in effect */
.page-about--hidden { 
    opacity: 0; 
    transform: translateY(20px); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; 
}
.page-about--fade-in { 
    opacity: 1; 
    transform: translateY(0); 
}