/* style/about.css */

/* Custom Colors */
:root {
    --page-about-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-about-card-bg: #11271B;
    --page-about-background: #08160F;
    --page-about-text-main: #F2FFF6;
    --page-about-text-secondary: #A7D9B8;
    --page-about-border: #2E7A4E;
    --page-about-glow: #57E38D;
    --page-about-gold: #F2C14E;
    --page-about-divider: #1E3A2A;
    --page-about-deep-green: #0A4B2C;
}

.page-about {
    background-color: var(--page-about-background);
    color: var(--page-about-text-main); /* Default text color for the page content */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* General Section Styling */
.page-about__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--page-about-text-main);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

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

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--page-about-text-secondary); /* Use secondary text for paragraphs */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--page-about-deep-green); /* A darker shade for the hero background */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for the image */
    margin-bottom: 30px;
}

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

.page-about__hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    box-sizing: border-box;
}

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

.page-about__subtitle {
    font-size: 1.2em;
    color: var(--page-about-text-main);
    margin-bottom: 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding is included in width */
    text-align: center;
}

.page-about__btn-primary {
    background: var(--page-about-button-gradient);
    color: var(--page-about-text-main); /* Light text on dark gradient */
    border: none;
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--page-about-glow); /* Use glow color for secondary text */
    border: 2px solid var(--page-about-glow);
}

.page-about__btn-secondary:hover {
    background-color: var(--page-about-glow);
    color: var(--page-about-background); /* Dark text on glow background */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Introduction Section */
.page-about__introduction-section {
    padding: 60px 0;
    background-color: var(--page-about-background);
}

/* Vision & Mission Section */
.page-about__vision-mission-section {
    padding: 80px 0;
}

.page-about__dark-section {
    background-color: var(--page-about-card-bg); /* Use card background for dark sections */
    color: var(--page-about-text-main);
}

.page-about__flex-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-about__content-column {
    flex: 1;
    min-width: 300px;
}

.page-about__image-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image-full {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-about__flex-reverse {
    flex-direction: row-reverse;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    padding: 80px 0;
    background-color: var(--page-about-background);
}

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

.page-about__feature-card {
    background-color: var(--page-about-card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
}

.page-about__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure image behaves as a block element */
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
}

.page-about__card-title {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--page-about-text-main);
    margin-bottom: 15px;
}

.page-about__card-text {
    color: var(--page-about-text-secondary);
    flex-grow: 1; /* Allow text to take available space */
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding: 80px 0;
}

/* Future Section */
.page-about__future-section {
    padding: 80px 0;
    background-color: var(--page-about-background);
}

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

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

.page-about__faq-item {
    background-color: var(--page-about-card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--page-about-text-main);
}

.page-about__faq-item summary {
    list-style: none; /* Hide default marker */
}

.page-about__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--page-about-card-bg);
    color: var(--page-about-text-main);
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: var(--page-about-deep-green);
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--page-about-glow);
}

.page-about__faq-item[open] .page-about__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.1em;
    color: var(--page-about-text-secondary);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__flex-container {
        flex-direction: column;
        text-align: center;
    }
    .page-about__flex-reverse {
        flex-direction: column; /* Ensure it stacks on tablet too */
    }
    .page-about__image-column {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-about__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

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

    .page-about__subtitle {
        font-size: 1em;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__container,
    .page-about__hero-content {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-about__hero-section {
        padding-bottom: 40px;
    }

    .page-about__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-about__feature-grid {
        grid-template-columns: 1fr;
    }

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

    .page-about__card-title {
        font-size: 1.5em;
    }

    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-about__faq-answer {
        font-size: 1em;
        padding: 0 20px 15px;
    }

    /* Mobile image and video responsive adaptation */
    .page-about img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-about video,
    .page-about__video { /* In case a video is added later with this class */
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    /* All containers that might hold images/videos/buttons */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper,
    .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;
        overflow: hidden !important;
    }

    .page-about__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    
    .page-about__cta-buttons {
      flex-wrap: wrap !important;
      gap: 10px;
      flex-direction: column; /* Force vertical stacking on mobile */
    }
}