/* style/about.css */

/* Base Styles & Typography */
.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 handled by shared.css */
}

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

.page-about__section-title {
    font-size: 2.8em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-about__item-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 10px;
}

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

.page-about__paragraph,
.page-about__card-description,
.page-about__item-description,
.page-about__member-bio {
    color: #ffffff;
    margin-bottom: 15px;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    padding: 100px 20px 80px;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    text-align: center;
    background-color: #0a0a0a; /* Explicitly set for hero to ensure dark background */
}

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

.page-about__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    max-width: 900px;
    margin: 0 auto 40px;
}

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

.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: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
    background-color: #1a8cc4;
    transform: translateY(-3px);
}

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

.page-about__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    padding: 80px 20px;
    background-color: #1a1a1a; /* Darker background for contrast */
}

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

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

.page-about__image-wrapper {
    text-align: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

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

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
    color: #ffffff; /* Light text for dark background */
}

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

.page-about__image-wrapper--full-width {
    margin-top: 50px;
}

/* History Section */
.page-about__history-section {
    padding: 80px 20px;
    background-color: #1a1a1a;
}

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

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

.page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-about__image-wrapper--small {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Team Section */
.page-about__team-section {
    padding: 80px 20px;
    background-color: #1a1a1a;
}

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

.page-about__team-member {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-about__team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #26A9E0;
}

.page-about__member-name {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 5px;
}

.page-about__member-role {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 15px;
}

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

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

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

.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.15);
    transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
    font-size: 1.2em;
    color: #FFFFFF;
    margin: 0;
}

.page-about__faq-toggle {
    font-size: 1.8em;
    color: #26A9E0;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

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

.page-about__faq-answer .page-about__paragraph {
    margin-bottom: 0;
    padding-bottom: 15px;
}

/* Call to Action Section */
.page-about__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #1a1a1a;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__section-title {
        font-size: 2.5em;
    }
    .page-about__content-grid {
        grid-template-columns: 1fr;
    }
    .page-about__content-grid--reverse .page-about__text-block {
        order: 2;
    }
    .page-about__content-grid--reverse .page-about__image-wrapper {
        order: 1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        padding: 80px 15px 60px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .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;
    }

    .page-about__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile image and video responsive */
    .page-about img,
    .page-about video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__image-wrapper,
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Content sections padding */
    .page-about__mission-vision-section,
    .page-about__why-choose-section,
    .page-about__history-section,
    .page-about__responsible-gaming-section,
    .page-about__team-section,
    .page-about__faq-section,
    .page-about__cta-section {
        padding: 50px 15px;
    }

    .page-about__faq-question,
    .page-about__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
      padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
    .page-about__card-title {
        font-size: 1.3em;
    }
    .page-about__team-avatar {
        width: 120px;
        height: 120px;
    }
}