:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for dark background */
    background-color: var(--background);
    padding-bottom: 60px; /* Ensure space above footer */
}

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

.page-about__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem); /* Responsive H2 */
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-about__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-about__text-block {
    flex: 1;
    min-width: 300px;
}

.page-about__image {
    flex: 1;
    min-width: 400px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block; /* Ensure image behaves as a block element */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    box-sizing: border-box;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-about__hero-image {
    width: 100%;
    height: 500px; /* Fixed height for hero image, adjust object-fit */
    object-fit: cover;
    position: relative;
    display: block;
    border-radius: 10px;
}

.page-about__hero-content {
    text-align: center;
    padding: 30px 0;
    max-width: 900px;
    margin-top: 20px; /* Space below image */
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 */
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-about__hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: 100%;
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
}

.page-about__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-main);
}

/* Mission Section */
.page-about__mission-section .page-about__content-wrapper {
    flex-direction: row;
}
.page-about__mission-section .page-about__image {
    order: 2; /* Image on right for mission */
}
.page-about__mission-section .page-about__text-block {
    order: 1; /* Text on left for mission */
}

/* Why Choose Section */
.page-about__why-choose-section {
    background-color: var(--card-bg); /* Darker background for contrast */
    color: var(--text-main);
}
.page-about__why-choose-section .page-about__content-wrapper {
    flex-direction: row-reverse; /* Image on left for why choose */
}
.page-about__why-choose-section .page-about__image {
    order: 1; /* Image on left */
}
.page-about__why-choose-section .page-about__text-block {
    order: 2; /* Text on right */
}

.page-about__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-about__feature-item {
    background-color: var(--deep-green); /* Slightly different background for items */
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-about__feature-title {
    color: var(--gold-color);
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-about__game-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.page-about__game-links .page-about__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9rem;
    border-radius: 5px;
}

/* Values Section */
.page-about__values-section .page-about__content-wrapper {
    flex-direction: row; /* Image on right for values */
}
.page-about__values-section .page-about__image {
    order: 2; /* Image on right */
}
.page-about__values-section .page-about__text-block {
    order: 1; /* Text on left for values */
}

.page-about__values-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-about__value-item {
    background-color: var(--deep-green); /* Slightly different background for items */
    border-right: 5px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-about__value-title {
    color: var(--gold-color);
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    background-color: var(--card-bg);
}

/* Achievements Section */
.page-about__achievement-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.page-about__achievement-item {
    background-color: var(--deep-green);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-top: 4px solid var(--gold-color);
}

.page-about__achievement-title {
    color: var(--text-main);
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 10px;
}

/* CTA Section */
.page-about__cta-section {
    background-color: var(--deep-green);
    text-align: center;
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 60px auto;
}

.page-about__cta-content {
    position: relative;
    z-index: 1;
}

.page-about__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    z-index: 0;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.page-about__faq-item {
    border-bottom: 1px solid var(--border-color);
    margin: 0; /* Override default details margin */
    padding: 0;
}
.page-about__faq-item:last-child {
    border-bottom: none;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--card-bg);
    cursor: pointer;
    font-weight: bold;
    color: var(--text-main);
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for details summary */
}
.page-about__faq-question:hover {
    background-color: var(--deep-green);
}
.page-about__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gold-color);
    margin-left: 15px;
}

.page-about__faq-answer {
    padding: 20px;
    background-color: var(--background);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* General Link Styling within content */
.page-about a {
    color: var(--gold-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}
.page-about a:hover {
    color: var(--glow-color);
}

/* Ensure content area images are not tiny */
@media (min-width: 769px) {
    .page-about__image {
        min-width: 200px;
        min-height: 200px;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-about__content-wrapper {
        flex-direction: column; /* Stack image and text vertically */
        align-items: center;
    }
    .page-about__mission-section .page-about__image,
    .page-about__mission-section .page-about__text-block,
    .page-about__why-choose-section .page-about__image,
    .page-about__why-choose-section .page-about__text-block,
    .page-about__values-section .page-about__image,
    .page-about__values-section .page-about__text-block {
        order: unset; /* Reset order for stacking */
    }
    .page-about__hero-image {
        height: 400px; /* Adjust hero image height */
    }
    .page-about__hero-content {
        padding: 20px 0;
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 15px;
    }

    .page-about__section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 30px;
    }

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

    .page-about__hero-description {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

    .page-about__hero-image {
        height: 300px; /* Further adjust hero image height */
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset !important; /* Remove min-width for mobile */
        min-height: unset !important; /* Remove min-height for mobile */
    }
    
    /* Video (if any) and its containers responsiveness */
    .page-about video,
    .page-about__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-about__video-section {
        padding-top: 10px !important; /* Small top padding */
    }

    /* Buttons responsiveness */
    .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-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }
    .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-section {
        margin: 40px auto;
        padding: 60px 15px;
    }
}