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

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

.page-about__heading {
    color: #ffcc00; /* Accent color for headings */
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__text {
    margin-bottom: 20px;
    font-size: 1.1em;
    text-align: justify;
}

.page-about__link {
    color: #ffcc00; /* Accent color for links */
    text-decoration: none;
    font-weight: bold;
}

.page-about__link:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
    box-sizing: border-box;
}

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

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-about__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

.page-about__hero-title {
    font-size: 3.5em;
    color: #ffcc00;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.3em;
    color: #ffffff;
    margin-bottom: 30px;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-about__btn-primary {
    background-color: #ffcc00; /* Gold background */
    color: #000000; /* Black text for contrast */
    border: 2px solid #ffcc00;
}

.page-about__btn-primary:hover {
    background-color: #e6b800; /* Slightly darker gold on hover */
    color: #000000;
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #ffcc00;
    border: 2px solid #ffcc00;
    margin-left: 20px;
}

.page-about__btn-secondary:hover {
    background-color: #ffcc00;
    color: #000000;
}

/* General Section Styling */
.page-about__section {
    padding: 60px 0;
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
}

.page-about__dark-section {
    background-color: #004aad; /* Primary brand color for dark sections */
    color: #ffffff;
}

.page-about__dark-bg {
    background-color: #004aad;
    color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

/* Our Story Section */
.page-about__our-story .page-about__image {
    display: block;
    margin: 40px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Why Choose Us Section */
.page-about__why-choose-us .page-about__heading {
    margin-bottom: 40px;
}

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

.page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    min-height: 250px; /* Ensure cards have minimum height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff; /* Ensure text is white on dark card */
}

.page-about__feature-item:hover {
    transform: translateY(-10px);
}

.page-about__feature-title {
    color: #ffcc00;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-about__feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-about__why-choose-us .page-about__image {
    display: block;
    margin: 40px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming .page-about__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-about__responsible-gaming .page-about__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #ffffff;
}

.page-about__responsible-gaming .page-about__list-item strong {
    color: #ffcc00;
}

.page-about__responsible-gaming .page-about__image {
    display: block;
    margin: 40px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

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

.page-about__value-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
}

.page-about__value-title {
    color: #ffcc00;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.page-about__value-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-about__our-values .page-about__image {
    display: block;
    margin: 40px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: #1a1a2e;
    color: #ffffff;
}

.page-about__faq-list {
    margin-top: 40px;
}

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #004aad; /* Dark blue for question background */
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #003a8d; /* Slightly darker on hover */
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #ffcc00; /* Gold for toggle icon */
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Plus to X for active */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
    color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value for content */
    padding: 20px !important;
}

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

/* Bottom CTA Section */
.page-about__cta-bottom {
    text-align: center;
    padding: 80px 0;
}

.page-about__cta-bottom .page-about__heading {
    font-size: 2.8em;
    margin-bottom: 25px;
    color: #ffcc00;
}

.page-about__cta-bottom .page-about__text {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.2em;
    color: #ffffff;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__heading {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific override */
    }
    .page-about__hero-title {
        font-size: 2.5em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__heading {
        font-size: 1.8em;
    }
    .page-about__text {
        font-size: 1em;
    }

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

    /* Images responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Videos responsive (if any, not present in current HTML) */
    .page-about video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Image/Video/Button containers responsive */
    .page-about__container,
    .page-about__section,
    .page-about__features-grid,
    .page-about__values-grid,
    .page-about__faq-list,
    .page-about__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Buttons responsive */
    .page-about__cta-button,
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important; /* Reset margin for stacked buttons */
    }

    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 2em;
    }
    .page-about__hero-description {
        font-size: 0.9em;
    }
    .page-about__heading {
        font-size: 1.5em;
    }
    .page-about__cta-button {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-about__faq-question {
        font-size: 1em;
    }
}