/* style/about.css */

/* Custom color variables from the palette */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --card-bg: #111111;
    --background: #0A0A0A;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;

    /* RGB values for rgba usage (derived from HEX) */
    --primary-color-rgb: 242, 193, 78;
    --card-bg-rgb: 17, 17, 17;
}

/* Base styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    color: var(--text-main, #FFF6D6); /* Use Text Main color from custom palette */
    background-color: var(--background, #0A0A0A); /* Use Background color from custom palette */
    line-height: 1.6;
}

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

.page-about__section-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive H2 font size */
    color: var(--primary-color, #F2C14E); /* Primary color for titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-main, #FFF6D6);
}

/* Hero Section */
.page-about__hero-section {
    background: var(--button-gradient, linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%)); /* Use button gradient for hero background as requested in custom palette */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.page-about__hero-section .page-about__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    position: relative;
    z-index: 2; /* Ensure content is above any background effects */
}

.page-about__main-title {
    font-size: clamp(2.8rem, 5vw, 4rem); /* Responsive H1 font size */
    color: #333; /* Dark text on light gradient background for contrast */
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.page-about__hero-description {
    font-size: 1.2rem;
    color: #333; /* Dark text on light gradient background for contrast */
    max-width: 700px;
    margin-bottom: 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
    box-shadow: 0 0 15px var(--glow-color, #FFD36B);
}

.page-about__btn-secondary {
    background: transparent;
    color: #333333; /* Dark text on button gradient for contrast */
    border: 2px solid #333333;
}

.page-about__btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #000000;
    border-color: #000000;
    box-shadow: 0 0 15px var(--glow-color, #FFD36B);
}

.page-about__hero-image-wrapper {
    margin-top: 40px;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    padding: 80px 0;
    background-color: var(--background, #0A0A0A);
}

.page-about__mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.page-about__card {
    background-color: var(--card-bg, #111111); /* Card BG color */
    border: 1px solid var(--border-color, #3A2A12); /* Border color */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main, #FFF6D6); /* Text Main color */
}

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

.page-about__card-title {
    font-size: 1.8rem;
    color: var(--primary-color, #F2C14E);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card-text {
    font-size: 1rem;
    line-height: 1.7;
}

.page-about__mission-vision-image {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Why Choose Section */
.page-about__why-choose-section {
    padding: 80px 0;
    background-color: var(--background, #0A0A0A);
}

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

.page-about__feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.page-about__feature-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding: 80px 0;
    background-color: var(--card-bg, #111111); /* Use Card BG for this section */
    text-align: center;
}

.page-about__responsible-gaming-link {
    background: var(--button-gradient, linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%));
    color: #333333; /* Dark text for contrast */
    border: none;
    margin-top: 30px;
}

.page-about__responsible-gaming-link:hover {
    background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
    box-shadow: 0 0 15px var(--glow-color, #FFD36B);
}

/* Security and Trust Section */
.page-about__security-trust-section {
    padding: 80px 0;
    background-color: var(--background, #0A0A0A);
}

.page-about__security-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.page-about__security-text {
    flex: 1;
}

.page-about__text-block {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main, #FFF6D6);
}

.page-about__security-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* CTA Section */
.page-about__cta-section {
    padding: 80px 0;
    background-color: var(--card-bg, #111111); /* Use Card BG for this section */
    text-align: center;
}

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

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: var(--background, #0A0A0A);
}

.page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-color, #3A2A12);
    border-radius: 12px;
    overflow: hidden;
}

.page-about__faq-item {
    border-bottom: 1px solid var(--border-color, #3A2A12);
}

.page-about__faq-item:last-child {
    border-bottom: none;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--card-bg, #111111); /* Card BG for question */
    color: var(--text-main, #FFF6D6); /* Text Main for question text */
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: rgba(var(--primary-color-rgb, 242, 193, 78), 0.1);
}

.page-about__faq-title {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-main, #FFF6D6);
    flex-grow: 1;
}

.page-about__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: var(--primary-color, #F2C14E);
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Plus to X */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding for collapsed state */
    background-color: rgba(var(--card-bg-rgb, 17, 17, 17), 0.8); /* Slightly lighter background for answer */
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-about__faq-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main, #FFF6D6);
}

/* Responsive Styles */
@media (min-width: 769px) {
    .page-about__hero-section .page-about__container {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }

    .page-about__hero-content {
        flex: 1;
        padding-right: 40px;
    }

    .page-about__hero-image-wrapper {
        flex: 1;
        margin-top: 0;
    }

    .page-about__hero-buttons {
        justify-content: flex-start;
    }

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

    .page-about__security-content {
        flex-direction: row;
    }

    .page-about__security-text {
        padding-right: 40px;
    }
}

@media (max-width: 768px) {
    .page-about__main-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .page-about__section-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-about__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    /* General responsive image and container rules */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-buttons,
    .page-about__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* HERO section padding for mobile */
    .page-about__hero-section {
        padding-top: var(--header-offset, 100px) !important; /* Adjusted for mobile header offset */
        padding-bottom: 40px;
    }

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

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