/* style/about.css */

/* Base styles for the About Us page content */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light body background */
    background-color: #f4f4f4; /* Matches shared.css body background */
}

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

.page-about__container--centered {
    text-align: center;
}

.page-about__section {
    padding: 60px 0;
}

.page-about__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #0A2244; /* Brand primary color for titles */
    margin-bottom: 20px;
    text-align: center;
}

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

.page-about__description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

.page-about__description--white {
    color: #f0f0f0;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #0A2244; /* Dark blue background */
    color: #ffffff;
    overflow: hidden; /* Prevent image overflow */
}

.page-about__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-about__hero-title {
    font-size: 48px;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #FFD700; /* Gold for main title */
}

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

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700; /* Gold accent for CTA */
    color: #0A2244; /* Dark blue text on gold */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button text wrap */
    word-wrap: break-word; /* Button text wrap */
}

.page-about__cta-button:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Overview Section */
.page-about__overview .page-about__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-about__overview .page-about__text-block {
    flex: 1;
    text-align: left;
}

.page-about__overview .page-about__text-block p {
    margin-bottom: 15px;
    font-size: 17px;
    color: #333333;
}

.page-about__overview .page-about__image-block {
    flex: 1;
    min-width: 200px; /* Minimum size requirement */
}

.page-about__overview .page-about__image-block img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* History Section */
.page-about__history {
    background-color: #0A2244;
    color: #ffffff;
}

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

.page-about__history .page-about__description {
    color: #f0f0f0;
}

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

.page-about__timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
    z-index: 0;
}

.page-about__timeline-item {
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    text-align: left;
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 1;
}

.page-about__timeline-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-about__timeline-item h3 {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.page-about__timeline-item p {
    font-size: 16px;
    color: #e0e0e0;
}

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

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

.page-about__value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__value-card img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 4px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-about__value-title {
    font-size: 22px;
    color: #0A2244;
    margin-bottom: 10px;
}

.page-about__value-text {
    font-size: 16px;
    color: #555555;
}

/* Products Section */
.page-about__products {
    background-color: #0A2244;
    color: #ffffff;
}

.page-about__products .page-about__section-title {
    color: #FFD700;
}

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

.page-about__product-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__product-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-about__product-card img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 4px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-about__product-title {
    font-size: 20px;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-about__product-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-about__product-text {
    font-size: 16px;
    color: #e0e0e0;
    flex-grow: 1; /* Ensure text takes up available space */
}

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

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

.page-about__feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__feature-card img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 4px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-about__feature-title {
    font-size: 22px;
    color: #0A2244;
    margin-bottom: 10px;
}

.page-about__feature-text {
    font-size: 16px;
    color: #555555;
}

.page-about__button-group {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Button container responsive */
    max-width: 100%; /* Button container responsive */
    box-sizing: border-box; /* Button container responsive */
    overflow: hidden; /* Button container responsive */
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button text wrap */
    word-wrap: break-word; /* Button text wrap */
}

.page-about__btn-primary {
    background: #0A2244;
    color: #ffffff;
    border-color: #0A2244;
}

.page-about__btn-primary:hover {
    background: #061730;
    border-color: #061730;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
    background: #ffffff;
    color: #0A2244;
    border-color: #0A2244;
}

.page-about__btn-secondary:hover {
    background: #f0f0f0;
    color: #061730;
    border-color: #061730;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsible Gambling Section */
.page-about__responsible-gambling {
    background-color: #0A2244;
    color: #ffffff;
}

.page-about__responsible-gambling .page-about__section-title {
    color: #FFD700;
}

.page-about__responsible-content {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__responsible-text {
    font-size: 17px;
    margin-bottom: 30px;
    color: #e0e0e0;
    text-align: center;
}

.page-about__cta-button--gold {
    background: #FFD700;
    color: #0A2244;
    border-color: #FFD700;
}

.page-about__cta-button--gold:hover {
    background: #e6c200;
    border-color: #e6c200;
}

/* FAQ Section */
.page-about__faq {
    padding-bottom: 80px;
}

.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* FAQ default state - answer hidden */
.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px; /* Adjusted padding for consistency */
    opacity: 0;
    color: #555555;
    font-size: 16px;
}

/* FAQ expanded state - IMPORTANT: use !important and sufficiently large max-height */
.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* Use !important to ensure priority, value large enough to contain any content */
    padding: 20px !important; /* Adjusted padding for consistency */
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

/* Question style */
.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-about__faq-item.active .page-about__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #d0d0d0;
}

.page-about__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-about__faq-question:active {
    background: #eeeeee;
}

/* Question title style */
.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #0A2244;
    pointer-events: none; /* Prevent h3 from blocking click events */
}

/* Toggle icon */
.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click events */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: #FFD700; /* Gold for active toggle */
    transform: rotate(45deg); /* Rotate for minus sign effect */
}


/* Final CTA Section */
.page-about__cta-final {
    background-color: #0A2244;
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.page-about__cta-final .page-about__section-title {
    color: #FFD700;
}

.page-about__cta-final .page-about__description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 40px;
    }
    .page-about__section-title {
        font-size: 30px;
    }
    .page-about__overview .page-about__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-about__overview .page-about__text-block {
        text-align: center;
    }
    .page-about__overview .page-about__image-block {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__container {
        padding: 20px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Adjust padding-top for hero section on mobile to respect header offset */
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-about__hero-title {
        font-size: 32px;
    }
    .page-about__hero-description {
        font-size: 18px;
    }
    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__section {
        padding: 40px 0;
    }

    .page-about__section-title {
        font-size: 28px;
    }

    .page-about__description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-about__timeline::before {
        left: 20px;
    }

    .page-about__timeline-item {
        padding-left: 40px;
        text-align: left;
    }
    .page-about__timeline-item h3 {
        font-size: 20px;
    }
    .page-about__timeline-item p {
        font-size: 15px;
    }
    
    .page-about__values-grid,
    .page-about__product-grid,
    .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__value-card,
    .page-about__product-card,
    .page-about__feature-card {
        padding: 20px;
    }

    .page-about__value-title,
    .page-about__feature-title {
        font-size: 20px;
    }

    .page-about__product-title {
        font-size: 18px;
    }

    .page-about__value-card img,
    .page-about__product-card img,
    .page-about__feature-card img,
    .page-about__overview .page-about__image-block img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px; /* Still maintain minimum size */
        min-height: 200px; /* Still maintain minimum size */
    }

    .page-about__button-group {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .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-left: 15px;
        padding-right: 15px;
    }

    /* FAQ */
    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-about__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-about__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-about__faq-answer {
        padding: 0 15px;
    }
    
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 28px;
    }
    .page-about__section-title {
        font-size: 24px;
    }
    .page-about__hero-description {
        font-size: 16px;
    }
    .page-about__cta-button {
        font-size: 15px;
    }
    .page-about__timeline-item h3 {
        font-size: 18px;
    }
    .page-about__timeline-item p {
        font-size: 14px;
    }
    .page-about__faq-question h3 {
        font-size: 14px;
    }
}

/* Global image styles to prevent small icons and ensure minimum size */
.page-about img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Ensure images within cards are large */
.page-about__card img {
    min-width: 200px;
    min-height: 200px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* No CSS filters for images */
.page-about img {
    filter: none;
}