/* style/about.css */

/* General Styles for .page-about scope */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Default body background */
}

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

/* Section Styling */
.page-about__section {
    padding: 60px 0;
    text-align: center;
}

.page-about__dark-section {
    background-color: #017439; /* Main brand color */
    color: #FFFFFF;
}

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

.page-about__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: bold;
    color: inherit; /* Inherit color from section (dark/light) */
}

.page-about__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* Hero Section */
.page-about__hero-section {
    padding: 100px 0;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    text-align: center;
    background-image: url('[GALLERY:hero_bg:1920x1080:c54 login,about us,hero,background,dynamic]'); /* Dynamic background image */
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

.page-about__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Overlay for text readability */
    z-index: -1;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    font-weight: bold;
}

.page-about__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #FFFFFF;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

/* Buttons */
.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.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.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: #FFFFFF;
    border: 2px solid #FFFFFF;
}

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

/* Image Styling */
.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 40px auto;
    display: block; /* Ensure it takes full width and centers */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.page-about__image--large {
    max-width: 1000px; /* Example larger size for content images */
}

.page-about__image--hero {
    max-width: 100%; /* Hero image should fill container */
}

/* Video Section */
.page-about__video-section {
    padding: 60px 0;
    text-align: center;
}

.page-about__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Max width for the video player */
    margin: 30px auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-about__video {
    width: 100%;
    height: auto;
    display: block;
}

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

.page-about__value-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-about__value-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, background-color 0.3s ease;
    height: 100%; /* Ensure cards are same height */
    display: flex;
    flex-direction: column;
}

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

.page-about__feature-title {
    font-size: 1.6em;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: bold;
}

/* List Styling */
.page-about__list {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__list-item {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.page-about__list-item b {
    color: #017439; /* Highlight bold text in lists */
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #FFFFFF;
}

.page-about__faq-item summary {
    list-style: none; /* Hide default marker */
}

.page-about__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

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

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.1em;
    color: #f0f0f0;
}

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

.page-about__link {
    color: #FFFF00; /* Custom link color for dark sections */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-about__link:hover {
    color: #FFF;
}


/* Call to Action Section */
.page-about__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Brand main color */
    color: #FFFFFF;
}

.page-about__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

.page-about__cta-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__hero-description {
        font-size: 1.2em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 300px !important; /* Constrain button width on mobile */
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__paragraph,
    .page-about__list-item,
    .page-about__faq-answer p {
        font-size: 0.95em;
    }
    .page-about__values-grid,
    .page-about__features-grid {
        grid-template-columns: 1fr;
    }
    .page-about__cta-title {
        font-size: 1.8em;
    }
    .page-about__cta-description {
        font-size: 1em;
    }
    .page-about__faq-question {
        font-size: 1.1em;
    }

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Mobile video responsiveness */
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section also respects header offset on mobile */
    }

    /* Mobile container padding to prevent overflow */
    .page-about__container,
    .page-about__content-area,
    .page-about__values-grid,
    .page-about__features-grid,
    .page-about__faq-list,
    .page-about__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }
    /* Specific overrides for flex items inside containers if they use padding */
    .page-about__hero-buttons > *,
    .page-about__cta-buttons > * {
        margin: 0 auto 10px auto !important; /* Center and add vertical spacing */
    }
    .page-about__hero-buttons {
        gap: 0; /* Remove gap if using margin for spacing */
    }

}

/* Ensure no filter on images */
.page-about img {
    filter: none !important;
}

/* Content area images CSS size lower bound (not less than 200px) */
/* This rule ensures no image in the content area is styled to be less than 200px wide/high */
.page-about__introduction-section img,
.page-about__mission-section img,
.page-about__why-choose-us-section img,
.page-about__responsible-gaming-section img,
.page-about__value-card img,
.page-about__feature-card img
{
    min-width: 200px;
    min-height: 200px;
}