/* style/about.css */

/* Base styles for the about page content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color, will be #F2FFF6 on dark background */
    background-color: var(--bg-primary); /* Default background color, will be #08160F */
}

/* Color variables from the provided scheme */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --btn-gradient-start: #2AD16F;
    --btn-gradient-end: #13994A;
    --card-bg: #11271B;
    --bg-primary: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* Ensure text is readable on the dark background */
.page-about {
    color: var(--text-main); /* #F2FFF6 */
    background-color: var(--bg-primary); /* #08160F */
}

.page-about__section {
    padding: 60px 20px;
    border-bottom: 1px solid var(--divider-color);
}

.page-about__section:last-of-type {
    border-bottom: none;
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Added for general container padding */
    box-sizing: border-box;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--deep-green-color); /* Fallback background for hero */
}

.page-about__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image slightly for text readability */
    display: block; /* Ensure no extra space below image */
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: var(--gold-color); /* Gold color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__description {
    font-size: 1.1rem;
    color: var(--text-main); /* Main text color */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-about__btn-primary {
    background: linear-gradient(180deg, var(--btn-gradient-start) 0%, var(--btn-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

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

.page-about__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--bg-primary); /* Dark text on gold hover */
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* General Section Titles */
.page-about__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--gold-color); /* Gold color for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-about__sub-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--primary-color); /* Primary green for sub titles */
    margin-bottom: 20px;
    font-weight: 600;
}

.page-about__text {
    font-size: 1.05rem;
    color: var(--text-secondary); /* Secondary text color */
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Image with text block */
.page-about__image-text-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
}

.page-about__image-text-block:nth-child(even) {
    flex-direction: row-reverse; /* Alternate image/text order */
}

.page-about__image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
}

.page-about__text-content {
    flex: 1;
    min-width: 300px;
    max-width: 45%;
}

.page-about__list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-about__list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.page-about__list-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 10px;
    line-height: 1;
}

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

.page-about__feature-card {
    background-color: var(--card-bg); /* Card background color */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color);
}

.page-about__feature-title {
    font-size: 1.5rem;
    color: var(--primary-color); /* Primary green for feature titles */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__feature-description {
    font-size: 1rem;
    color: var(--text-secondary); /* Secondary text color */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-about__feature-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: auto; /* Push image to bottom if content is shorter */
    min-height: 200px; /* Minimum image size */
}

/* Responsible Gaming Section */
.page-about__list--responsible-gaming {
    max-width: 800px;
    margin: 40px auto 0;
    padding-left: 20px;
}

.page-about__list--responsible-gaming li {
    margin-bottom: 10px;
    text-align: left;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
}

.page-about__faq-item {
    background-color: var(--card-bg); /* Card background for FAQ items */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
}

.page-about__faq-item summary { /* For details tag */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color); /* Primary green for FAQ questions */
    list-style: none; /* Remove default marker */
}

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

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

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

.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: 1rem;
    color: var(--text-secondary);
}

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

/* Call to Action Section */
.page-about__call-to-action {
    text-align: center;
    padding-bottom: 80px;
}

/* Responsive styles */
@media (max-width: 992px) {
    .page-about__image-text-block {
        flex-direction: column;
    }
    .page-about__image-text-block:nth-child(even) {
        flex-direction: column; /* Reset alternate order for smaller screens */
    }
    .page-about__image-wrapper,
    .page-about__text-content {
        max-width: 100%;
    }
}

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

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

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

    .page-about__description {
        font-size: 1rem;
    }

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

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

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

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

    .page-about__text {
        font-size: 0.95rem;
    }

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

    .page-about__feature-title {
        font-size: 1.3rem;
    }

    .page-about__feature-description {
        font-size: 0.9rem;
    }

    /* Mobile image responsiveness */
    .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,
    .page-about__hero-content,
    .page-about__image-wrapper,
    .page-about__text-content,
    .page-about__feature-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-about__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-about__video-section {
        padding-top: 10px !important; /* body handles header offset */
    }
}