/* style/about.css */

/* Custom Properties based on Color Scheme */
:root {
    --primary-color: #11A84E; /* Main color */
    --secondary-color: #22C768; /* Auxiliary color */

    --background-color: #08160F; /* Body background */
    --card-bg: #11271B; /* Card background */

    --text-main: #F2FFF6; /* Main text color */
    --text-secondary: #A7D9B8; /* Secondary text color */

    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    --border-color: #2E7A4E; /* Border color */
    --glow-color: #57E38D; /* Glow color */
    --gold-color: #F2C14E; /* Gold color */
    --divider-color: #1E3A2A; /* Divider color */
    --deep-green: #0A4B2C; /* Deep Green */
}

/* Base styles for the page content, ensuring contrast with dark body background */
.page-about {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Light text for dark background */
    line-height: 1.6;
    background-color: var(--background-color); /* Ensure consistency if body background is overridden */
}

/* Section styling */
.page-about__section {
    padding: 60px 0;
    position: relative;
    z-index: 1; /* Ensure content is above any potential background effects */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Align content to bottom of hero image */
    padding-top: 10px; /* Small padding, body handles header offset */
    padding-bottom: 60px;
    min-height: 500px; /* Minimum height for hero */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-about__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place image behind content */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container */
    filter: brightness(0.6); /* Slightly darken image for text readability */
    /* No CSS filter for color change, only brightness allowed for contrast */
}

.page-about__hero-content {
    position: relative; /* Ensure content is above image */
    z-index: 1;
    max-width: 900px;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    margin-top: auto; /* Push content to bottom */
}

.page-about__main-title {
    color: var(--text-main);
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.page-about__hero-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Call to Action Button */
.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--button-gradient);
    color: var(--text-main); /* Light text on green button */
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Titles */
.page-about__section-title {
    color: var(--primary-color);
    font-size: clamp(2rem, 3.5vw, 3rem);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.page-about__sub-title {
    color: var(--text-main);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 20px;
    font-weight: bold;
}

/* Text styles */
.page-about__text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
}

.page-about__text-center {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-about__text-highlight {
    color: var(--gold-color);
    font-weight: bold;
}

/* Grid Layouts */
.page-about__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-about__grid-layout--reverse .page-about__grid-item:first-child {
    order: 2;
}
.page-about__grid-layout--reverse .page-about__grid-item:last-child {
    order: 1;
}

/* Images within content */
.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.page-about__image:hover {
    transform: scale(1.02);
}

.page-about__image--centered {
    margin: 40px auto;
}

/* Card styles */
.page-about__card {
    background-color: var(--card-bg); /* Dark background for cards */
    color: var(--text-main); /* Light text on dark card */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

/* 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-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__feature-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.page-about__value-title {
    color: var(--gold-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__value-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Responsible Gaming List */
.page-about__responsible-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-about__list-item {
    background-color: var(--card-bg); /* Dark background */
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--divider-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-about__list-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__list-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

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

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

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

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--deep-green); /* Slightly different dark background */
    padding: 60px 0;
}

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2); /* Slightly darker for question header */
    color: var(--primary-color);
    list-style: none; /* Remove default marker for details/summary */
    position: relative;
}

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

.page-about__faq-question::marker {
    display: none; /* Hide default marker for other browsers */
}

.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-question {
    background-color: rgba(0, 0, 0, 0.3); /* Darker when open */
    border-bottom: 1px solid var(--divider-color);
}

.page-about__faq-answer {
    padding: 15px 25px 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Links within text */
.page-about a {
    color: var(--gold-color); /* Gold color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about a:hover {
    color: var(--glow-color);
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__grid-layout {
        grid-template-columns: 1fr;
    }
    .page-about__grid-layout--reverse .page-about__grid-item:first-child {
        order: 1; /* Reset order for smaller screens */
    }
    .page-about__grid-layout--reverse .page-about__grid-item:last-child {
        order: 2;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-bottom: 40px;
        min-height: 400px;
    }

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

    .page-about__main-title {
        font-size: 2rem;
    }

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

    .page-about__cta-button {
        font-size: 1rem;
        padding: 12px 25px;
    }

    .page-about__section {
        padding: 40px 0;
    }

    .page-about__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

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

    .page-about__features-grid,
    .page-about__values-grid,
    .page-about__responsible-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobile image, video, button responsiveness (forced with !important) */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .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; /* Ensure no horizontal scroll */
    }

    .page-about__hero-section {
        padding-top: 10px !important; /* body handles header-offset */
    }

    .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;
        padding-left: 15px; /* Add padding to buttons themselves */
        padding-right: 15px;
    }
    
    .page-about__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
    }
    
    .page-about__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-about__faq-answer {
        padding: 10px 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8rem;
    }
    .page-about__section-title {
        font-size: 1.8rem;
    }
}