/* style/about.css */
/* Core styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Main text color for dark background */
    background-color: #0A0A0A; /* Body background from shared.css */
    padding-top: var(--header-offset, 120px); /* Desktop padding for fixed header */
}

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

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

.page-about__section-title {
    font-size: 2.8em;
    color: #FFD36B; /* Accent color for titles */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-about__section-intro {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF6D6;
}

.page-about__section-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF6D6;
}

/* Hero Section */
.page-about__hero-section {
    background: linear-gradient(135deg, #0A0A0A, #111111); /* Dark gradient background */
    padding: 0; /* padding-top handled by .page-about */
    position: relative;
    overflow: hidden;
}

.page-about__hero-container {
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Min size constraint */
}

.page-about__hero-content {
    padding: 40px 0;
    text-align: center;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
}

.page-about__hero-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    color: #FFD36B;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-about__hero-description {
    font-size: 1.2em;
    color: #FFF6D6;
    margin-bottom: 30px;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #ffffff; /* White text for primary button */
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #FFE080 0%, #E8B42A 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-about__btn-secondary {
    background: transparent;
    color: #FFD36B; /* Accent color text for secondary button */
    border: 2px solid #3A2A12; /* Border color from custom_colors.border */
}

.page-about__btn-secondary:hover {
    background: rgba(255, 211, 107, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.2);
}

.page-about__link {
    color: #FFD36B;
    text-decoration: underline;
    font-size: 0.9em;
    margin-top: 10px;
}

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

/* Our Journey Section */
.page-about__our-journey {
    background-color: #0A0A0A;
}

.page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-about__content-wrapper:nth-child(even) {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
    min-width: 300px;
}

.page-about__text-block p {
    margin-bottom: 1em;
    color: #FFF6D6;
}

.page-about__image {
    flex: 1;
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Min size constraint */
    min-width: 200px;
}

/* Why Choose Section */
.page-about__why-choose {
    background-color: #111111; /* Card BG color for this section */
    padding-bottom: 80px;
}

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

.page-about__feature-card {
    background-color: #111111; /* Card BG color */
    border: 1px solid #3A2A12; /* Border color */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFF6D6; /* Text color for cards */
}

.page-about__feature-icon {
    width: 100%;
    max-width: 200px; /* Example size, ensuring > 200px */
    height: auto;
    margin-bottom: 20px;
    object-fit: cover;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
}

.page-about__feature-title {
    font-size: 1.5em;
    color: #FFD36B;
    margin-bottom: 15px;
}

.page-about__feature-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
    color: #FFF6D6;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
    background-color: #0A0A0A;
}

.page-about__dark-section {
    background-color: #111111; /* Card BG for this section to stand out */
    padding: 50px;
    border-radius: 12px;
    border: 1px solid #3A2A12;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: #0A0A0A;
}

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

.page-about__faq-item {
    background-color: #111111; /* Card BG color */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF6D6; /* Text color for FAQ items */
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #111111;
    color: #FFD36B; /* Question title color */
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #1a1a1a;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    text-align: left;
    color: #FFF6D6; /* Answer text color */
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px;
}

.page-about__faq-answer p {
    margin-bottom: 1em;
}

/* Contact Us Section */
.page-about__contact-us {
    background-color: #0A0A0A;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2.2em;
    }
    .page-about__hero-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
    .page-about__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-about__content-wrapper:nth-child(even) {
        flex-direction: column;
    }
    .page-about__image {
        margin-top: 30px;
        max-width: 100%;
    }
    .page-about__dark-section {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .page-about {
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding for fixed header */
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__hero-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .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__container {
        padding: 0 15px;
    }
    .page-about__image,
    .page-about__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Enforce min size even on mobile */
        min-height: 200px !important;
    }
    .page-about__dark-section {
        padding: 30px;
    }
    .page-about__faq-question {
        font-size: 1em;
    }
    .page-about__faq-answer {
        padding: 0 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px;
    }

    /* Ensure all image containers are responsive */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__content-wrapper,
    .page-about__features-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile override for hero section padding */
    }
}

/* Image style restrictions */
.page-about img {
    filter: none !important; /* Absolutely no image filters */
}

/* Content area images CSS size lower bound */
.page-about__content-area img,
.page-about__text-block img,
.page-about__image,
.page-about__feature-icon {
    min-width: 200px;
    min-height: 200px;
}