/* style/about.css */

:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --text-main-color: #FFF6D6;
    --card-bg-color: #111111;
    --background-color: #0A0A0A;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-about {
    font-family: Arial, sans-serif;
    color: var(--text-main-color); /* Default text color for the page */
    background-color: var(--background-color); /* Matches body-bg from shared.css if --body-bg is not set */
}

.page-about__section {
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.page-about__dark-section {
    background-color: var(--background-color);
    color: var(--text-main-color);
}

.page-about__light-bg {
    background-color: #ffffff;
    color: #333333;
}

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

/* Hero Section */
.page-about__hero-section {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-about__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-about__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Overlap slightly for visual effect */
    position: relative;
    z-index: 1;
    background-color: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.page-about__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-about__intro-text {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-main-color);
}

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

.page-about__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 211, 107, 0.4);
}

.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(--background-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 211, 107, 0.2);
}

/* Vision and Mission Section */
.page-about__vision-mission-section {
    padding-top: 100px; /* Adjust for hero overlap */
}

.page-about__section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 40px;
    text-align: center;
    font-weight: bold;
    color: inherit;
    position: relative;
    padding-bottom: 15px;
}

.page-about__dark-section .page-about__section-title {
    color: var(--secondary-color);
}

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

.page-about__section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: -20px auto 50px auto;
    color: inherit;
}

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

.page-about__content-grid > div {
    flex: 1;
}

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

.page-about__image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__sub-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__vision-mission-section p {
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 15px;
}

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

.page-about__card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 211, 107, 0.3);
}

.page-about__card-title {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-about__card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-about__card-link {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.page-about__card-link:hover {
    background-color: var(--secondary-color);
}

/* Journey Section */
.page-about__journey-section .page-about__content-grid {
    flex-direction: row-reverse;
}

.page-about__journey-section p {
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 15px;
    color: #333333;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
}

.page-about__responsible-gaming-list li {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__responsible-gaming-list li strong {
    color: var(--primary-color);
}

.page-about__responsible-gaming-text {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    margin-top: 30px;
    color: var(--text-main-color);
}

/* Join Community Section */
.page-about__join-community-section .page-about__section-description {
    margin-bottom: 40px;
}

.page-about__join-community-section .page-about__cta-buttons {
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-about__cta-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 0 auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-about__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    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.05);
    transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main-color);
    margin: 0;
}

.page-about__faq-toggle {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    line-height: 1;
}

.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.3s ease, padding 0.3s ease;
    color: var(--text-main-color);
}

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

.page-about__faq-answer p {
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__content-grid {
        flex-direction: column;
    }
    .page-about__hero-content {
        margin-top: -50px;
    }
    .page-about__hero-image {
        height: 500px; /* Adjust height for medium screens */
    }
    .page-about__journey-section .page-about__content-grid {
        flex-direction: column;
    }
}

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

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

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

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

    .page-about__intro-text {
        font-size: 1rem;
    }

    .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-left: 15px;
        padding-right: 15px;
    }

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

    .page-about__section-description {
        font-size: 0.95rem;
        margin-bottom: 40px;
    }

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

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

    .page-about__card {
        padding: 25px;
    }

    .page-about__card-title {
        font-size: 1.4rem;
    }

    .page-about__card p {
        font-size: 0.9rem;
    }

    .page-about__responsible-gaming-list li {
        padding: 15px;
        font-size: 0.95rem;
    }

    .page-about__responsible-gaming-text {
        font-size: 1rem;
    }

    .page-about__faq-question {
        padding: 18px 20px;
    }

    .page-about__faq-title {
        font-size: 1.1rem;
    }

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

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

    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
    }
}