/* style/about.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-bg-color: #1a1a2e; /* From shared.css body background */
    --light-text-color: #FFFFFF;
    --dark-text-color: #333333;
    --button-login-color: #EA7C07;
    --background-white: #FFFFFF;
    --color-black: #000000;
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--light-text-color); /* Default text color for dark body background */
    background-color: var(--dark-bg-color);
}

.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;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 600px;
    padding: 100px 20px 60px; /* Adjust padding-top for header offset */
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: var(--dark-bg-color);
    overflow: hidden;
}

.page-about__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-about__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken video for text contrast */
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    color: var(--light-text-color);
}

.page-about__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--light-text-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

/* General Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%;
    box-sizing: border-box;
}

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

.page-about__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

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

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

.page-about__btn-link {
    background-color: transparent;
    color: var(--primary-color);
    border: none;
    text-decoration: underline;
    padding: 0;
}

.page-about__btn-link:hover {
    color: darken(var(--primary-color), 10%);
}

/* Section Styling */
.page-about__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.page-about__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--light-text-color);
}

.page-about__dark-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    color: var(--light-text-color);
}

.page-about__mission-vision-section,
.page-about__history-section,
.page-about__responsible-gambling-section {
    padding: 80px 0;
}

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

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

.page-about__text-block {
    flex: 1;
    font-size: 1.1em;
}

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

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

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

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

.page-about__value-card {
    background-color: var(--background-white);
    color: var(--dark-text-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__value-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    max-width: 100%;
}

.page-about__value-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-about__value-text {
    font-size: 1em;
    color: var(--dark-text-color);
}

/* Why Choose Section */
.page-about__why-choose-section {
    padding: 80px 0;
    background-color: var(--dark-bg-color);
}

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

.page-about__feature-card {
    background-color: var(--background-white);
    color: var(--dark-text-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__feature-image {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-about__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-about__feature-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: var(--dark-bg-color);
}

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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.3s ease, padding 0.3s ease;
    color: var(--dark-text-color);
}

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

.page-about__faq-answer p {
    margin-bottom: 0;
}

.page-about__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-about__faq-answer a:hover {
    color: darken(var(--primary-color), 10%);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__content-grid {
        flex-direction: column;
    }
    .page-about__content-grid--reverse {
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-cta {
        flex-direction: column;
        gap: 10px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__section-description {
        font-size: 0.95em;
    }
    .page-about__mission-vision-section,
    .page-about__history-section,
    .page-about__why-choose-section,
    .page-about__responsible-gambling-section,
    .page-about__faq-section {
        padding: 40px 0;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__image-wrapper,
    .page-about__hero-video-wrapper,
    .page-about__hero-video,
    .page-about__value-card,
    .page-about__feature-card,
    .page-about__faq-item,
    .page-about__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-about__value-icon {
        width: 80px;
        height: 80px;
    }
    .page-about__feature-image {
        height: 180px;
    }
    .page-about__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 10px 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__values-grid,
    .page-about__features-grid {
        grid-template-columns: 1fr;
    }
}