/* style/about.css */

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

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

.page-about__section-title {
    font-size: 2.5em;
    color: #ffffff;
    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: #017439; /* Brand color */
    border-radius: 2px;
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.6;
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.page-about__hero-title {
    font-size: 3.5em;
    color: #FFFF00; /* Custom color for important titles */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width */
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #FFFF00;
}

.page-about__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
    border-color: #C30808;
}

/* --- Mission & Vision Section --- */
.page-about__mission-vision-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color */
}

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

.page-about__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark section */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    transition: transform 0.3s ease;
}

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

.page-about__card-title {
    font-size: 1.8em;
    color: #FFFF00; /* Highlight title */
    margin-bottom: 15px;
    text-align: center;
}

.page-about__card p {
    font-size: 1.1em;
    line-height: 1.7;
    text-align: center;
}

/* --- Our Story Section --- */
.page-about__our-story-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Body background color */
}

.page-about__grid-reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.page-about__content-block {
    text-align: left;
}

.page-about__content-block p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #f0f0f0;
}

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

/* --- Values Section --- */
.page-about__values-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color */
}

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

.page-about__value-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__value-title {
    font-size: 1.5em;
    color: #FFFF00;
    margin-bottom: 10px;
}

.page-about__value-item p {
    font-size: 1em;
}

.page-about__responsible-gaming {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 8px;
    margin-top: 50px;
    text-align: center;
    color: #ffffff;
}

.page-about__responsible-gaming-title {
    font-size: 1.8em;
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-about__responsible-gaming p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.page-about__responsible-gaming a {
    color: #FFFF00;
    text-decoration: underline;
    font-weight: bold;
}

.page-about__responsible-gaming a:hover {
    color: #ffffff;
}

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

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter for contrast */
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-about__feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-about__feature-title {
    font-size: 1.6em;
    color: #FFFF00;
    margin-bottom: 10px;
}

.page-about__feature-card p {
    font-size: 1em;
}

/* --- Future Vision Section --- */
.page-about__future-vision-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color */
    text-align: center;
}

.page-about__future-vision-section p {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 900px;
    margin: 20px auto 40px auto;
}

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

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

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFF00;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.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: #f0f0f0;
}

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

.page-about__faq-answer p {
    font-size: 1em;
    line-height: 1.6;
}

.page-about__faq-answer a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-about__faq-answer a:hover {
    color: #ffffff;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__grid-reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-about__content-block {
        order: 2; /* Content below image on smaller screens */
    }
    .page-about__image-right {
        order: 1;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        min-height: 450px;
        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 {
        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;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-about__container {
        padding: 0 15px;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__grid,
    .page-about__values-grid,
    .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__image-right {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__feature-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__mission-vision-section,
    .page-about__our-story-section,
    .page-about__values-section,
    .page-about__why-choose-us-section,
    .page-about__future-vision-section,
    .page-about__faq-section {
        padding: 50px 0;
    }

    /* Ensure all image containers are responsive */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__feature-card,
    .page-about__value-item,
    .page-about__faq-item {
        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 padding for sections if needed */
    .page-about__mission-vision-section .page-about__container,
    .page-about__our-story-section .page-about__container,
    .page-about__values-section .page-about__container,
    .page-about__why-choose-us-section .page-about__container,
    .page-about__future-vision-section .page-about__container,
    .page-about__faq-section .page-about__container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-about__faq-question, .page-about__faq-answer {
        padding-left: 20px;
        padding-right: 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 20px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__card-title,
    .page-about__value-title,
    .page-about__feature-title {
        font-size: 1.3em;
    }
    .page-about__faq-question {
        font-size: 1.1em;
    }
}