/* style/about.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #FFFFFF;
    --button-register-login-bg: #C30808;
    --button-register-login-text: #FFFF00;
    --background-white: #FFFFFF;
    --border-color: #e0e0e0;
}

.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background: var(--background-white);
}

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

.page-about__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-about__light-bg {
    background-color: var(--background-white);
    color: var(--text-color-dark);
}

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

.page-about__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    box-sizing: border-box;
}

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

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

.page-about__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--text-color-light);
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-about__subtitle {
    font-size: 2em;
    color: var(--text-color-light);
    margin-bottom: 20px;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.page-about__mission-vision-section {
    padding: 80px 0;
}

.page-about__grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

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

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

.page-about__card:hover {
    transform: translateY(-10px);
}

.page-about__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

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

.page-about__btn-primary, .page-about__btn-secondary, .page-about__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    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; /* Break long words */
    box-sizing: border-box;
    max-width: 100%;
}

.page-about__btn-primary {
    background: var(--button-register-login-bg);
    color: var(--button-register-login-text);
    border: 2px solid var(--button-register-login-bg);
}

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

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

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

.page-about__btn-link {
    background: var(--primary-color);
    color: var(--text-color-light);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    font-size: 0.9em;
}

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

.page-about__btn-center {
    display: block;
    margin: 30px auto 0;
    width: fit-content;
}

.page-about__journey-section {
    padding: 80px 0;
    text-align: center;
}

.page-about__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
}

.page-about__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

.page-about__image-full-width {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin: 30px 0;
    display: block;
}

.page-about__partnerships-section {
    padding: 60px 0;
    text-align: center;
}

.page-about__partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.page-about__partner-logo {
    width: 180px;
    height: 90px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
    display: block;
}

.page-about__partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.page-about__faq-list {
    margin-top: 40px;
}

.page-about__faq-item {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #f9f9f9;
    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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--background-white);
}

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

.page-about__faq-answer p {
    margin-bottom: 10px;
    color: var(--text-color-dark);
}

.page-about__faq-answer .page-about__btn-link {
    margin-top: 10px;
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-about__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-about__cta-content {
    max-width: 800px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__subtitle {
        font-size: 1.8em;
    }
}

@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-buttons, .page-about__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .page-about__btn-primary, .page-about__btn-secondary, .page-about__btn-link {
        width: 100%;
        max-width: 300px !important;
        padding: 12px 20px;
    }
    .page-about__grid-two-columns {
        grid-template-columns: 1fr;
    }
    .page-about__features-grid {
        grid-template-columns: 1fr;
    }
    .page-about__card {
        padding: 20px;
    }

    /* Mobile image responsive adaptation */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__video-wrapper,
    .page-about__cta-buttons,
    .page-about__hero-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-about__video,
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        position: relative;
        padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
        height: 0;
        overflow: hidden;
    }
    .page-about__video-wrapper .page-about__video {
        position: absolute;
        top: 0;
        left: 0;
    }
    .page-about__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-about__partner-logo {
        width: 120px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.6em;
    }
    .page-about__subtitle {
        font-size: 1.5em;
    }
    .page-about__hero-buttons, .page-about__cta-buttons {
        gap: 10px;
    }
    .page-about__btn-primary, .page-about__btn-secondary, .page-about__btn-link {
        font-size: 0.9em;
        padding: 10px 15px;
    }
}