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

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

/* Color Contrast Classes */
.page-about__dark-bg {
    background-color: #E53935; /* Main brand color */
    color: #ffffff; /* White text for dark background */
}

.page-about__light-bg {
    background-color: #F5F7FA; /* Custom background color */
    color: #333333; /* Main text color */
}

.page-about__dark-section {
    background-color: #E53935; /* Main brand color */
    color: #ffffff; /* White text for dark background */
    padding: 60px 0;
}

.page-about__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from parent section */
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: inherit;
}

.page-about__card {
    background-color: #FFFFFF; /* Card background */
    color: #333333; /* Card text color */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    border: 1px solid #E0E0E0; /* Border color */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-about__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
    color: #E53935; /* Main brand color for card titles */
}

.page-about__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    max-width: 100%; /* Ensure buttons fit container */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Custom button gradient */
    color: #ffffff;
    border: none;
}

.page-about__btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-about__btn-secondary {
    background-color: #FFFFFF;
    color: #E53935; /* Main brand color */
    border: 2px solid #E53935;
}

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

/* Hero Section */
.page-about__hero-section {
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    padding-bottom: 60px;
    text-align: center;
}

.page-about__main-title {
    font-size: 3em;
    font-weight: 900;
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.page-about__hero-content .page-about__description {
    color: #f0f0f0;
}

.page-about__hero-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    object-fit: contain; /* Ensure full image is visible */
    margin-bottom: 30px;
    border-radius: 8px;
}

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

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

/* Mission & Vision Section */
.page-about__mission-vision-section {
    padding: 60px 0;
}

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

/* History Section */
.page-about__history-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-about__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.page-about__history-image {
    flex: 1;
    min-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.page-about__history-text {
    flex: 1;
    min-width: 300px;
}

.page-about__history-text p {
    margin-bottom: 20px;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    padding: 60px 0;
}

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

.page-about__feature-card {
    padding: 25px;
}

.page-about__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.page-about__feature-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #E53935;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-about__responsible-content {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap-reverse;
}

.page-about__responsible-image {
    flex: 1;
    min-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.page-about__responsible-text {
    flex: 1;
    min-width: 300px;
}

.page-about__responsible-text p {
    margin-bottom: 20px;
}

/* Team Section */
.page-about__team-section {
    padding: 60px 0;
}

.page-about__section-description {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.page-about__team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-about__team-member {
    padding: 25px;
}

.page-about__member-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    border: 3px solid #FF5A4F;
}

.page-about__member-name {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #E53935;
}

.page-about__member-role {
    font-size: 0.95em;
    color: #666666;
}

/* CTA Section */
.page-about__cta-section {
    padding: 60px 0;
    text-align: center;
}

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

.page-about__cta-content .page-about__description {
    color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 60px 0;
}

.page-about__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-about__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #fcfcfc;
    border-bottom: 1px solid #E0E0E0;
    user-select: none;
    list-style: none; /* For details tag */
}

.page-about__faq-item[open] .page-about__faq-question {
    border-bottom: 1px solid #E0E0E0;
}

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

.page-about__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: #E53935;
}

.page-about__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1em;
    color: #555555;
    line-height: 1.7;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__main-title {
        font-size: 2.5em;
    }
    .page-about__grid-layout,
    .page-about__features-grid,
    .page-about__team-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .page-about__content-wrapper,
    .page-about__responsible-content {
        flex-direction: column;
        text-align: center;
    }
    .page-about__history-image,
    .page-about__responsible-image {
        min-width: unset;
        width: 100%;
    }
    .page-about__history-text,
    .page-about__responsible-text {
        min-width: unset;
        width: 100%;
    }
    .page-about__history-text .page-about__btn-secondary,
    .page-about__responsible-text .page-about__btn-primary {
        margin: 20px auto 0 auto;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding, assuming body handles header offset */
        padding-bottom: 40px;
    }
    .page-about__main-title {
        font-size: 1.8em !important;
        line-height: 1.3;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    .page-about__hero-content .page-about__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-about__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important; /* Ensure full image is visible, no cropping */
        margin-bottom: 20px;
    }
    .page-about__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
    }

    /* Buttons */
    .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 15px;
        font-size: 1em;
    }
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Sections */
    .page-about__section-title {
        font-size: 1.8em !important;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 1.4em;
    }
    .page-about__description {
        font-size: 1em;
    }
    .page-about__dark-section,
    .page-about__light-bg,
    .page-about__team-section,
    .page-about__faq-section {
        padding: 40px 0;
    }
    .page-about__card {
        padding: 20px;
    }

    /* Image General */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* History and Responsible Gaming sections */
    .page-about__content-wrapper,
    .page-about__responsible-content {
        flex-direction: column !important;
        gap: 20px;
    }
    .page-about__history-text,
    .page-about__responsible-text {
        text-align: left;
    }

    /* FAQ */
    .page-about__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        padding: 10px 20px 15px 20px;
        font-size: 0.95em;
    }
    .page-about__faq-toggle {
        font-size: 1.2em;
    }
}