/* style/about.css */

/* Root variables for colors */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --background-color-dark: #0A0A0A;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --header-offset: 122px; /* Default value, should be overridden by shared.css */
}

/* Base styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    color: var(--text-main-color); /* Light text on dark background */
    background-color: var(--background-color-dark);
    line-height: 1.6;
}

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

.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 1;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6);
}

.page-about__hero-content-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    max-width: 900px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size */
    color: var(--text-main-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-about__intro-text {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 700px;
}

.page-about__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: #0A0A0A; /* Dark text for contrast on bright button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.3);
    border: none;
}

.page-about__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.5);
}

.page-about__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-about__section-title--spacing {
    margin-top: 80px;
}

.page-about__subsection-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about__text-block {
    font-size: 1em;
    color: var(--text-main-color);
    margin-bottom: 20px;
}

.page-about__text-block a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.page-about__content-grid--reverse {
    grid-template-columns: 1fr 1fr;
}

.page-about__image-block {
    text-align: center;
}

.page-about__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.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-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 211, 107, 0.2);
}

.page-about__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.page-about__feature-card p {
    color: var(--text-main-color);
    font-size: 0.95em;
}

.page-about__cta-button--contact {
    margin-top: 30px;
}

/* FAQ Section Styles */
.page-about__faq-section {
    background-color: var(--background-color-dark);
    padding-bottom: 60px;
}

.page-about__faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.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);
    transition: background-color 0.3s ease;
}

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

.page-about__faq-question h3 {
    font-size: 1.2em;
    color: var(--text-main-color);
    margin: 0;
    font-weight: normal;
}

.page-about__faq-toggle {
    font-size: 1.8em;
    color: var(--primary-color);
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to a minus-like symbol */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-main-color);
    font-size: 0.95em;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__hero-content-wrapper {
        max-width: 700px;
    }

    .page-about__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }

    .page-about__section-title {
        font-size: 2em;
    }

    .page-about__content-grid {
        grid-template-columns: 1fr;
    }

    .page-about__content-grid--reverse {
        grid-template-columns: 1fr;
    }

    .page-about__image-block {
        order: -1; /* Image appears above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-about__container {
        padding: 20px 15px;
    }

    .page-about__hero-content-wrapper {
        top: 60%; /* Adjust position for better visibility on smaller screens */
        padding: 15px;
    }

    .page-about__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-about__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-about__subsection-title {
        font-size: 1.5em;
    }

    .page-about__text-block {
        font-size: 0.95em;
    }

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

    .page-about__card-title {
        font-size: 1.3em;
    }

    .page-about__card-image,
    .page-about__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__faq-question {
        padding: 15px 20px;
    }

    .page-about__faq-question h3 {
        font-size: 1em;
    }

    .page-about__faq-answer {
        padding: 0 20px;
    }

    .page-about__faq-item.active .page-about__faq-answer {
        padding: 10px 20px 20px;
    }

    /* Ensure all containing elements for images/buttons are responsive */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__story-vision-section,
    .page-about__why-choose-section,
    .page-about__responsible-gaming-section,
    .page-about__team-section,
    .page-about__contact-section,
    .page-about__faq-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      /* Add horizontal padding if needed, but container already has it */
    }
}

@media (max-width: 480px) {
    .page-about__hero-content-wrapper {
        padding: 10px;
    }

    .page-about__main-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }

    .page-about__section-title {
        font-size: 1.5em;
    }

    .page-about__subsection-title {
        font-size: 1.3em;
    }

    .page-about__cta-button {
        font-size: 0.9em;
    }
}