.page-about {
    background-color: var(--bg-color, #0A0A0A); /* Default to dark background */
    color: var(--text-main-color, #FFF6D6); /* Default to light text */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Ensure space above footer */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: #0A0A0A; /* Ensure dark background for hero */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure it doesn't overflow */
    margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-about__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-about__hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: #FFF6D6; /* Light text for dark background */
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
    font-size: 1.1rem;
    color: #E0E0E0; /* Slightly dimmer light text */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* General Section Styling */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-about__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: #FFF6D6;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

.page-about__section-description {
    font-size: 1.1rem;
    color: #E0E0E0;
    text-align: center;
    max-width: 800px;
    margin: -20px auto 40px;
}

.page-about__sub-title {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 600;
    color: #F2C14E; /* Brand color for sub-titles */
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left; /* Subtitles can be left-aligned within content blocks */
}

/* Dark Section - General */
.page-about__dark-section {
    background-color: #0A0A0A; /* Dark background */
    color: #FFF6D6; /* Light text */
    padding: 80px 0;
}

/* Light Section - General (for contrast) */
.page-about__light-bg {
    background-color: #111111; /* Slightly lighter dark for contrast */
    color: #FFF6D6; /* Light text */
    padding: 80px 0;
}

/* Cards */
.page-about__card {
    background: var(--card-bg-color, #111111);
    border: 1px solid var(--border-color, #3A2A12);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #FFF6D6; /* Light text on dark card */
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-text {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111; /* Dark text on bright button */
    border: none;
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #FFE080 0%, #E6B02E 100%);
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-about__btn-secondary {
    background: transparent;
    color: #F2C14E; /* Brand color text */
    border: 2px solid #F2C14E;
}

.page-about__btn-secondary:hover {
    background: #F2C14E;
    color: #111111; /* Dark text on brand color background */
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-about__btn-text {
    background: none;
    border: none;
    color: #FFD36B; /* Glow color for text buttons */
    padding: 10px 0;
    font-weight: 500;
    text-align: left;
}

.page-about__btn-text:hover {
    text-decoration: underline;
    color: #F2C14E;
}

/* Story Section */
.page-about__story-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #E0E0E0;
}

.page-about__story-content h3 {
    text-align: left;
}

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

.page-about__feature-card {
    text-align: center;
}

.page-about__feature-icon {
    width: 200px; /* Minimum size requirement */
    height: 150px; /* Adjusted height to maintain aspect ratio, but also meet min size */
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(255, 211, 107, 0.5)); /* Subtle glow for icons */
}

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

.page-about__feature-description {
    font-size: 1rem;
    color: #E0E0E0;
}

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

.page-about__game-category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.page-about__game-category-icon {
    width: 30px; /* Allowed exception for category icons */
    height: 30px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 3px rgba(255, 211, 107, 0.5));
}

.page-about__game-category-title {
    font-size: 1.3rem;
    color: #FFF6D6;
    margin-bottom: 10px;
}

.page-about__game-category-title a {
    color: #FFF6D6;
    text-decoration: none;
}

.page-about__game-category-title a:hover {
    color: #F2C14E;
    text-decoration: underline;
}

.page-about__game-category-description {
    font-size: 0.95rem;
    color: #E0E0E0;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-about__responsible-gaming-image {
    width: 50%;
    max-width: 600px;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-about__responsible-gaming-text {
    width: 50%;
}

.page-about__responsible-gaming-text p {
    margin-bottom: 15px;
    color: #E0E0E0;
}

.page-about__responsible-gaming-list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #E0E0E0;
}

.page-about__responsible-gaming-list li {
    margin-bottom: 8px;
    font-size: 1rem;
}

.page-about__responsible-gaming-list strong {
    color: #F2C14E;
}

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

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

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__faq-item {
    background: var(--card-bg-color, #111111);
    border: 1px solid var(--border-color, #3A2A12);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: #F2C14E; /* Brand color for questions */
    background-color: #1A1A1A; /* Slightly different background for question */
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #222222;
}

.page-about__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD36B; /* Glow color for toggle */
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Plus becomes an X or minus */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #E0E0E0; /* Light text for answer */
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to reveal content */
    padding: 15px 25px 25px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-about__responsible-gaming-content {
        flex-direction: column;
        align-items: center;
    }
    .page-about__responsible-gaming-image,
    .page-about__responsible-gaming-text {
        width: 100%;
        max-width: 700px; /* Constrain width for better readability */
    }
    .page-about__responsible-gaming-image {
        margin-bottom: 30px;
    }
}

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

    .page-about__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
    }

    .page-about__hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-about__hero-description {
        font-size: 1rem;
    }

    .page-about__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
    }

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

    .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: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    
    .page-about__container {
        padding: 0 15px;
    }

    .page-about__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        padding-top: 40px;
        margin-bottom: 30px;
    }

    .page-about__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-about__sub-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

    .page-about__story-content p,
    .page-about__feature-description,
    .page-about__game-category-description,
    .page-about__responsible-gaming-text p,
    .page-about__responsible-gaming-list li,
    .page-about__faq-answer p {
        font-size: 0.95rem;
    }

    .page-about__features-grid,
    .page-about__game-categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__responsible-gaming-image {
        width: 100%;
        height: auto;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Image responsive for all images */
    .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;
    }
    /* Specific overrides for small icons that are allowed */
    .page-about__game-category-icon {
        width: 30px !important;
        height: 30px !important;
        max-width: 30px !important;
        object-fit: contain !important;
    }

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