/* style/about.css */

/* Base styles for the about page content */
.page-about {
    color: #ffffff; /* Light text for dark body background */
    background-color: #0d0d0d; /* Inherited from shared, but explicitly set for clarity */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-about__section-title {
    font-size: 2.5rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: #ffffff;
    text-align: center;
    overflow: hidden; /* For image */
    background: linear-gradient(135deg, #017439, #0d0d0d); /* Blend brand color with background */
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-about__hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.1;
}

.page-about__hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

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

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

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make it subtle */
}

/* General button styles */
.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: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

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

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

.page-about__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #017439; /* Brand primary color */
}

.page-about__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

/* Section specific styles */
.page-about__vision-mission-section,
.page-about__our-story-section,
.page-about__why-choose-us-section,
.page-about__faq-section,
.page-about__cta-section {
    padding: 80px 0;
}

.page-about__dark-section {
    background-color: #017439; /* Brand primary color as background */
    color: #ffffff;
}

.page-about__vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.page-about__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff; /* Ensure text is light on card background */
}

.page-about__card-title {
    font-size: 1.8rem;
    color: #FFFF00; /* Use custom font color for titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card-text {
    font-size: 1rem;
    line-height: 1.7;
}

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

.page-about__story-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.page-about__story-image-wrapper {
    text-align: center;
}

.page-about__story-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

.page-about__value-item {
    background-color: rgba(0, 0, 0, 0.3); /* Darker background for values on primary brand color background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-about__value-icon {
    width: 200px; /* Enforce minimum size */
    height: 200px; /* Enforce minimum size */
    margin-bottom: 20px;
    filter: invert(0); /* Ensure original image color, no filter */
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-about__value-title {
    font-size: 1.5rem;
    color: #FFFF00; /* Use custom font color for titles */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__value-description {
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.page-about__why-choose-us-item {
    text-align: left;
}

.page-about__why-choose-us-item .page-about__card-title {
    color: #FFFF00; /* Consistent title color */
}

.page-about__responsible-gambling-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.page-about__responsible-gambling-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #ffffff;
}

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

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    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;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question h3 {
    font-size: 1.2rem;
    color: #ffffff;
    margin: 0;
    font-weight: normal;
}

.page-about__faq-toggle {
    font-size: 1.8rem;
    font-weight: bold;
    color: #FFFF00; /* Toggle icon color */
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Change to 'x' or rotate for '-' */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.02);
}

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

.page-about__faq-answer p {
    margin: 0;
    font-size: 1rem;
    color: #f0f0f0;
}

.page-about__cta-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-about__cta-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ffffff;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3rem;
    }
    .page-about__section-title {
        font-size: 2rem;
    }
    .page-about__vision-mission-grid,
    .page-about__story-grid {
        grid-template-columns: 1fr;
    }
    .page-about__story-image-wrapper {
        order: -1; /* Image above text on smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-about__hero-content {
        padding: 30px 15px;
    }
    .page-about__hero-title {
        font-size: 2.2rem;
    }
    .page-about__hero-description {
        font-size: 1rem;
    }
    .page-about__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to container */
    }
    .page-about__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-about__vision-mission-section,
    .page-about__our-story-section,
    .page-about__why-choose-us-section,
    .page-about__faq-section,
    .page-about__cta-section {
        padding: 50px 0;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__card {
        padding: 25px;
    }
    .page-about__card-title {
        font-size: 1.5rem;
    }
    .page-about__value-item {
        padding: 25px;
    }
    .page-about__value-title {
        font-size: 1.3rem;
    }
    .page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-question h3 {
        font-size: 1.1rem;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 10px 20px 20px;
    }

    /* Images responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Ensure content containers also adapt */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__story-grid,
    .page-about__values-grid,
    .page-about__why-choose-us-grid,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    /* Specific overrides for padding if sections have full width background */
    .page-about__vision-mission-section,
    .page-about__our-story-section,
    .page-about__values-section,
    .page-about__why-choose-us-section,
    .page-about__responsible-gambling-section,
    .page-about__faq-section,
    .page-about__cta-section {
        padding-left: 0;
        padding-right: 0;
    }
    /* Inner containers still need padding */
    .page-about__vision-mission-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__responsible-gambling-section > .page-about__container,
    .page-about__faq-section > .page-about__container,
    .page-about__cta-section > .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}