/* style/about.css */
.page-about {
    font-family: Arial, sans-serif;
    color: #333333;
    line-height: 1.6;
    background-color: #FFFFFF;
}

.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: 500px;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    overflow: hidden;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    z-index: 0;
}

.page-about__hero-section .page-about__container {
    position: relative;
    z-index: 1;
}

.page-about__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff; /* White text for dark background */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    line-height: 1.8;
    color: #ffffff;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    text-align: center;
}

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

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

.page-about__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

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

/* General Section Styling */
.page-about__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Primary color for titles */
}

.page-about__description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #333333;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
}

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

/* Mission & Vision Section */
.page-about__mission-vision {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    color: #333333;
}

.page-about__mission-vision .page-about__section-title {
    color: #017439;
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.page-about__image-decoration {
    position: absolute;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.page-about__mission-vision .page-about__image-decoration {
    bottom: -100px;
    right: -100px;
    width: 600px;
    height: 450px;
    object-fit: cover;
}

/* History Section */
.page-about__history {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background-color: #017439;
    color: #ffffff;
}

.page-about__history .page-about__section-title {
    color: #ffffff;
}

.page-about__history-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    padding: 40px 0;
}

.page-about__timeline-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    position: relative;
    border-left: 5px solid #FFFF00; /* Accent color */
}

.page-about__timeline-year {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #FFFF00; /* Custom font color for register/login */
}

.page-about__timeline-item p {
    color: #ffffff;
}

.page-about__history .page-about__image-decoration {
    top: -50px;
    left: -50px;
    width: 800px;
    height: 600px;
    object-fit: cover;
}

/* Values Section */
.page-about__values {
    padding: 80px 0;
    background-color: #f8f8f8;
    color: #333333;
}

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

.page-about__value-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-about__value-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%;
    background-color: #e6f7ed; /* Light green background for icon */
    padding: 10px;
}

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

/* Security Section */
.page-about__security {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background-color: #017439;
    color: #ffffff;
}

.page-about__security .page-about__section-title {
    color: #ffffff;
}

.page-about__security .page-about__description {
    color: #ffffff;
}

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

.page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
}

.page-about__feature-title {
    font-size: 1.6em;
    color: #FFFF00; /* Custom font color */
    margin-bottom: 15px;
}

.page-about__feature-text {
    color: #ffffff;
}

.page-about__security .page-about__image-decoration {
    bottom: -100px;
    left: -100px;
    width: 700px;
    height: 500px;
    object-fit: cover;
}

/* Products Section */
.page-about__products {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

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

.page-about__product-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-about__product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.page-about__product-title {
    font-size: 1.4em;
    padding: 20px;
    color: #017439;
}

.page-about__product-title a {
    text-decoration: none;
    color: #017439;
}

.page-about__product-title a:hover {
    text-decoration: underline;
}

.page-about__product-text {
    padding: 0 20px 20px;
    color: #555555;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background-color: #017439;
    color: #ffffff;
}

.page-about__responsible-gaming .page-about__section-title,
.page-about__responsible-gaming .page-about__description {
    color: #ffffff;
}

.page-about__responsible-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.page-about__responsible-item {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 15px 20px;
    border-left: 4px solid #FFFF00;
    border-radius: 5px;
    color: #ffffff;
}

.page-about__responsible-gaming .page-about__btn-primary {
    margin-top: 20px;
}

.page-about__responsible-gaming .page-about__image-decoration {
    top: -50px;
    right: -50px;
    width: 700px;
    height: 500px;
    object-fit: cover;
}

/* Team Section */
.page-about__team {
    padding: 80px 0;
    background-color: #f8f8f8;
    color: #333333;
}

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

.page-about__team-member {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-about__member-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 5px solid #017439;
}

.page-about__member-name {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 10px;
}

.page-about__member-role {
    color: #555555;
}

/* CTA Section */
.page-about__cta {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #017439;
    color: #ffffff;
}

.page-about__cta .page-about__section-title,
.page-about__cta .page-about__description {
    color: #ffffff;
}

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

.page-about__cta .page-about__image-decoration {
    bottom: -50px;
    left: -50px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
}

/* FAQ Section */
.page-about__faq {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid #eee;
}

.page-about__faq-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    padding: 10px 0;
}

.page-about__faq-question::-webkit-details-marker {
    display: none;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #017439;
    margin-left: 10px;
}

.page-about__faq-answer {
    padding-top: 15px;
    font-size: 1.1em;
    line-height: 1.8;
    color: #555555;
}

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

.page-about__faq-item[open] .page-about__faq-toggle {
    content: '−';
}

/* Text colors for contrast */
.page-about__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

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

.page-about__text-white {
    color: #ffffff;
}

.page-about__text-yellow {
    color: #FFFF00;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.5em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__content-grid {
        grid-template-columns: 1fr;
    }
    .page-about__hero-buttons,
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-about__hero-image,
    .page-about__image-decoration {
        opacity: 0.1; /* Increase opacity for smaller screens if needed */
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        min-height: 400px;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-about__hero-title {
        font-size: 2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__description {
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
    .page-about__content-grid,
    .page-about__values-grid,
    .page-about__security-features,
    .page-about__product-grid,
    .page-about__team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Image, Video, Button Responsive Rules */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper,
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .page-about__value-icon,
    .page-about__member-photo {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__faq-question {
        font-size: 1.1em;
    }
    .page-about__faq-answer {
        font-size: 1em;
    }
}