/* style/about-us.css */
:root {
    --phdream-primary: #F2C14E;
    --phdream-secondary: #FFD36B;
    --phdream-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --phdream-card-bg: #111111;
    --phdream-background: #0A0A0A;
    --phdream-text-main: #FFF6D6;
    --phdream-border: #3A2A12;
    --phdream-glow: #FFD36B;
}

.page-about-us {
    font-family: Arial, sans-serif;
    color: var(--phdream-text-main);
    background-color: var(--phdream-background); /* Body background handled by shared.css, this is for consistency */
}

.page-about-us__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles --header-offset */
    text-align: center;
    overflow: hidden;
}

.page-about-us__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height of hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-about-us__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 300px;
}

.page-about-us__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-top: 20px; /* Separate content from image */
}

.page-about-us__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--phdream-primary);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-about-us__hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--phdream-text-main);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about-us__btn-primary,
.page-about-us__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
}

.page-about-us__btn-primary {
    background: var(--phdream-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-about-us__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-about-us__btn-secondary {
    background-color: transparent;
    color: var(--phdream-primary);
    border: 2px solid var(--phdream-primary);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-about-us__btn-secondary:hover {
    background-color: var(--phdream-primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

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

.page-about-us__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--phdream-primary);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-about-us__text-block {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--phdream-text-main);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about-us__story-section,
.page-about-us__security-section,
.page-about-us__responsible-gaming-section,
.page-about-us__cta-bottom-section {
    background-color: var(--phdream-background);
    color: var(--phdream-text-main);
    padding: 80px 0;
}

.page-about-us__mission-values-section,
.page-about-us__why-choose-section,
.page-about-us__faq-section {
    background-color: var(--phdream-card-bg);
    color: var(--phdream-text-main);
    padding: 80px 0;
}

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

.page-about-us__card {
    background-color: var(--phdream-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--phdream-border);
    color: var(--phdream-text-main);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about-us__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about-us__card-title {
    font-size: 1.5rem;
    color: var(--phdream-primary);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about-us__card-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--phdream-text-main);
}

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

.page-about-us__feature-item {
    text-align: center;
    padding: 25px;
    background-color: var(--phdream-card-bg);
    border-radius: 10px;
    border: 1px solid var(--phdream-border);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.page-about-us__feature-item:hover {
    transform: translateY(-5px);
}

.page-about-us__feature-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-about-us__feature-title {
    font-size: 1.3rem;
    color: var(--phdream-primary);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about-us__feature-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--phdream-text-main);
}

/* FAQ Section */
.page-about-us__faq-list {
    margin-top: 40px;
}

.page-about-us__faq-item {
    background-color: var(--phdream-card-bg);
    border: 1px solid var(--phdream-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-about-us__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #1a1a1a;
    color: var(--phdream-text-main);
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.page-about-us__faq-question:hover {
    background-color: #2a2a2a;
}

.page-about-us__faq-title {
    margin: 0;
    color: var(--phdream-primary);
    font-size: 1.1rem;
}

.page-about-us__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--phdream-primary);
}

.page-about-us__faq-item.active .page-about-us__faq-toggle {
    transform: rotate(45deg);
}

.page-about-us__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--phdream-text-main);
    line-height: 1.7;
    font-size: 1rem;
}

.page-about-us__faq-item.active .page-about-us__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to accommodate content */
    padding: 15px 20px 20px;
}

.page-about-us__cta-bottom-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-about-us__cta-bottom-section .page-about-us__cta-buttons {
    margin-top: 30px;
}

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

    .page-about-us__container {
        padding: 30px 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about-us__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-about-us__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-about-us__hero-image {
        min-height: 250px;
    }

    .page-about-us__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-about-us__hero-description {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        margin-bottom: 25px;
    }

    .page-about-us__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    .page-about-us__btn-primary,
    .page-about-us__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 1rem;
    }

    .page-about-us__section-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-about-us__text-block {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .page-about-us__story-section,
    .page-about-us__mission-values-section,
    .page-about-us__why-choose-section,
    .page-about-us__security-section,
    .page-about-us__responsible-gaming-section,
    .page-about-us__faq-section,
    .page-about-us__cta-bottom-section {
        padding: 50px 0;
    }

    .page-about-us__grid,
    .page-about-us__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about-us__card,
    .page-about-us__feature-item {
        padding: 20px;
    }

    .page-about-us__card-title,
    .page-about-us__feature-title {
        font-size: 1.3rem;
    }

    .page-about-us__feature-icon {
        width: 150px;
        height: 150px;
        margin-bottom: 15px;
    }

    .page-about-us__faq-question {
        padding: 15px;
        font-size: 1rem;
    }

    .page-about-us__faq-title {
        font-size: 1rem;
    }

    .page-about-us__faq-answer {
        padding: 0 15px;
        font-size: 0.95rem;
    }

    .page-about-us__faq-item.active .page-about-us__faq-answer {
        padding: 10px 15px 15px;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-about-us img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about-us__section,
    .page-about-us__card,
    .page-about-us__container,
    .page-about-us__hero-section,
    .page-about-us__cta-buttons,
    .page-about-us__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-about-us__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

/* Color Contrast Fixes (if necessary based on dynamic analysis) */
.page-about-us__dark-bg {
  color: var(--phdream-text-main); /* Deep background, light text */
  background: var(--phdream-background);
}

.page-about-us__light-bg {
  color: #333333; /* Light background, dark text */
  background: #ffffff;
}

.page-about-us__dark-section {
    background-color: var(--phdream-background);
    color: var(--phdream-text-main);
}

.page-about-us__light-section {
    background-color: var(--phdream-card-bg);
    color: var(--phdream-text-main);
}