/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark background */
    background-color: #1A1A1A; /* Main background color */
}

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

.page-about__section-title {
    font-size: 2.8em;
    color: #FFD700; /* Accent color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-about__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    color: #f0f0f0;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Responsive height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    min-height: 500px; /* Minimum height for hero section */
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

.page-about__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-about__hero-title {
    font-size: 3.5em;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-about__hero-description {
    font-size: 1.4em;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: #FFD700;
    color: #1A1A1A;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-about__hero-button:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

/* General Buttons */
.page-about__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background-color: #FFD700;
    color: #1A1A1A;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-about__btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background-color: transparent;
    color: #FFD700;
    text-decoration: none;
    border: 2px solid #FFD700;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.page-about__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A1A1A;
    transform: translateY(-2px);
}

/* Dark Section styling */
.page-about__dark-section {
    background-color: #1A1A1A;
    padding: 80px 0;
    color: #ffffff;
}

/* Story Section */
.page-about__story-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly darker for contrast */
}

.page-about__story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.page-about__story-text p {
    margin-bottom: 20px;
    color: #f0f0f0;
    font-size: 1.05em;
}

.page-about__story-text ul {
    list-style: none;
    padding: 0;
}

.page-about__story-text li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: #f0f0f0;
}

.page-about__story-text li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #FFD700;
}

.page-about__story-subtitle {
    font-size: 2em;
    color: #FFD700;
    margin-bottom: 25px;
    font-weight: bold;
}

.page-about__story-image-wrapper {
    text-align: center;
}

.page-about__story-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

/* Why Choose Section */
.page-about__why-choose-section {
    padding: 80px 0;
    background-color: #1A1A1A;
}

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

.page-about__feature-card {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-10px);
    background-color: #3a3a3a;
}

.page-about__feature-icon {
    width: 100%; /* Make icon take full width for large images */
    height: auto;
    max-width: 400px; /* Limit max width to prevent stretching too much */
    max-height: 300px; /* Limit max height */
    object-fit: cover;
    margin-bottom: 25px;
    border-radius: 8px;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

.page-about__feature-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__feature-card p {
    color: #cccccc;
    font-size: 1em;
}

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

.page-about__responsible-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.page-about__responsible-item {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.page-about__responsible-subtitle {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__responsible-item p {
    color: #cccccc;
    font-size: 1em;
}

.page-about__responsible-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

/* Community Section */
.page-about__community-section {
    padding: 80px 0;
    background-color: #1A1A1A;
}

.page-about__community-content p {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 25px;
    text-align: justify;
}

.page-about__community-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

/* CTA Section */
.page-about__cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(45deg, #1A1A1A, #333333);
}

.page-about__cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-about__cta-title {
    font-size: 3em;
    color: #FFD700;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about__cta-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

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

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

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

.page-about__faq-item {
    background-color: #2a2a2a;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background-color: #3a3a3a;
    border-bottom: 1px solid #4a4a4a;
    transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
    font-size: 1.4em;
    color: #FFD700;
    margin: 0;
    font-weight: bold;
}

.page-about__faq-toggle {
    font-size: 2em;
    color: #FFD700;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* For '−' to look like 'x' or just use a minus sign */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #2a2a2a;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 20px 30px;
}

.page-about__faq-answer p {
    color: #cccccc;
    margin-bottom: 15px;
    font-size: 1em;
}

.page-about__faq-answer-button {
    margin-top: 10px;
    display: inline-block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__hero-description {
        font-size: 1.2em;
    }
    .page-about__section-title {
        font-size: 2.5em;
    }
    .page-about__story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .page-about__story-image-wrapper {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        height: 60vh;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-about__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-about__section-intro {
        font-size: 0.9em;
        margin-bottom: 40px;
    }

    .page-about__story-section,
    .page-about__why-choose-section,
    .page-about__responsible-gaming-section,
    .page-about__community-section,
    .page-about__cta-section,
    .page-about__faq-section {
        padding: 60px 0;
    }

    .page-about__story-subtitle,
    .page-about__feature-title,
    .page-about__responsible-subtitle,
    .page-about__cta-title,
    .page-about__faq-title {
        font-size: 1.5em;
    }

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

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 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; /* Added for mobile button padding */
        padding-right: 15px; /* Added for mobile button padding */
    }
}