/* style/about.css */

/* --- General Page Styles --- */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is #000 from shared.css */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Auxiliary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__subtitle {
    font-size: 1.8em;
    color: #FFD700;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__intro-text {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-about__text-block p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-about a {
    color: #FFD700;
    text-decoration: none;
}

.page-about a:hover {
    text-decoration: underline;
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    box-sizing: border-box;
}

.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;
    font-weight: bold;
    line-height: 1.2;
}

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

.page-about__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

.page-about__btn-primary {
    background-color: #FFD700; /* Auxiliary color for primary action */
    color: #0A2E36; /* Main color for text */
    border: 2px solid #FFD700;
}

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

.page-about__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

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

/* --- Section Styling --- */
.page-about__dark-bg {
    background-color: #0A2E36; /* Main brand color */
    color: #ffffff; /* Light text for dark background */
    padding: 60px 0;
}

.page-about__light-bg {
    background-color: #1a3c44; /* Slightly lighter dark background for contrast */
    color: #f0f0f0; /* Light text for dark background */
    padding: 60px 0;
}

.page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-about__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
}

.page-about__image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-about__value-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark bg */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__value-heading {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-about__value-item p {
    color: #e0e0e0;
}

/* --- Why Choose Section --- */
.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: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-about__feature-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-about__feature-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
    padding: 0 20px;
}

.page-about__feature-card p {
    padding: 0 20px 20px;
    color: #e0e0e0;
    flex-grow: 1; /* Ensures text block takes available space */
}

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

.page-about__responsible-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__responsible-heading {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-about__responsible-item p {
    color: #e0e0e0;
}

.page-about__responsible-cta {
    text-align: center;
    margin-top: 40px;
}

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

.page-about__contact-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__contact-heading {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-about__contact-card p {
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-about__contact-note {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-about__join-cta,
.page-about__conclusion-cta {
    text-align: center;
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

/* --- FAQ Section --- */
.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-about__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-about__faq-heading {
    font-size: 1.2em;
    color: #FFD700;
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

.page-about__faq-toggle {
    font-size: 1.8em;
    color: #FFD700;
    margin-left: 20px;
    transition: transform 0.3s ease;
    line-height: 1; /* Ensure consistent height */
    width: 20px; /* Fixed width for toggle */
    text-align: center;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Plus to X (minus if using -) */
    content: '−'; /* Change + to - when active */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3);
}

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

.page-about__faq-answer p {
    color: #e0e0e0;
    margin: 0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__content-wrapper {
        flex-direction: column;
    }
    .page-about__image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        height: 500px;
        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-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__subtitle {
        font-size: 1.5em;
    }
    .page-about__intro-text {
        font-size: 0.95em;
    }
    .page-about__image {
        max-width: 100%;
    }

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: cover; /* Maintain aspect ratio */
    }

    /* All containers with images/content */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__content-wrapper,
    .page-about__values-list,
    .page-about__features-grid,
    .page-about__responsible-list,
    .page-about__contact-grid,
    .page-about__faq-list,
    .page-about__join-cta,
    .page-about__conclusion-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Specific adjustments for cards/items */
    .page-about__value-item,
    .page-about__feature-card,
    .page-about__responsible-item,
    .page-about__contact-card,
    .page-about__faq-item {
        padding: 20px;
    }

    .page-about__feature-image {
        height: 200px; /* Adjust height for mobile */
    }

    /* Buttons in groups for mobile */
    .page-about__hero-cta,
    .page-about__join-cta,
    .page-about__conclusion-cta {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__hero-description {
        font-size: 0.9em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__subtitle,
    .page-about__value-heading,
    .page-about__feature-title,
    .page-about__responsible-heading,
    .page-about__contact-heading,
    .page-about__faq-heading {
        font-size: 1.2em;
    }
}