/* style/about.css */
:root {
    --bg-primary: #08160F;
    --card-bg: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
    --light-text-on-dark: #F2FFF6;
    --dark-text-on-light: #333333;
}

.page-about {
    color: var(--light-text-on-dark); /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-primary);
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

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

.page-about__hero-content {
    padding: 60px 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__description {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__btn-primary {
    display: inline-block;
    background: var(--btn-gradient);
    color: var(--light-text-on-dark);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--glow-color);
    border: 2px solid var(--glow-color);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-about__btn-secondary:hover {
    background: var(--glow-color);
    color: var(--bg-primary);
}

/* Section Titles */
.page-about__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: bold;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--glow-color);
    border-radius: 2px;
}

.page-about__section-title--light {
    color: var(--gold-color);
}

.page-about__sub-title {
    font-size: clamp(1.4em, 2.5vw, 2em);
    font-weight: bold;
    color: var(--glow-color);
    margin-bottom: 20px;
}

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

.page-about__text-block--light {
    color: var(--text-secondary);
}

.page-about__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 30px;
    border-radius: 8px;
    object-fit: cover;
}

/* Introduction Section */
.page-about__introduction-section {
    background-color: var(--light-text-on-dark); /* White/Light background */
    padding: 80px 0;
    color: var(--dark-text-on-light); /* Dark text for light background */
}

.page-about__introduction-section .page-about__section-title {
    color: var(--deep-green);
}

.page-about__introduction-section .page-about__text-block {
    color: var(--dark-text-on-light);
}

/* History & Mission Section */
.page-about__history-mission-section {
    background-color: var(--card-bg);
    padding: 80px 0;
}

.page-about__grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.page-about__text-column {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--divider-color);
}

/* Products & Services Section */
.page-about__products-services-section {
    background-color: var(--light-text-on-dark);
    padding: 80px 0;
    color: var(--dark-text-on-light);
}

.page-about__products-services-section .page-about__section-title {
    color: var(--deep-green);
}

.page-about__products-services-section .page-about__text-block {
    color: var(--dark-text-on-light);
}

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

.page-about__card {
    background-color: #ffffff; /* White background for cards on light section */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--dark-text-on-light);
}

.page-about__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
}

.page-about__card-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--deep-green);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-about__card-text {
    font-size: 0.95em;
    color: var(--dark-text-on-light);
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-about__cta-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background-color: rgba(17, 168, 78, 0.1); /* Light green tint */
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.page-about__cta-section .page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--dark-text-on-light);
}

/* Security & Trust Section */
.page-about__security-trust-section {
    background-color: var(--bg-primary);
    padding: 80px 0;
    text-align: center;
}

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

.page-about__feature-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--divider-color);
}

.page-about__feature-title {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--glow-color);
    margin-bottom: 15px;
}

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

/* Customer Support Section */
.page-about__customer-support-section {
    background-color: var(--light-text-on-dark);
    padding: 80px 0;
    color: var(--dark-text-on-light);
}

.page-about__customer-support-section .page-about__section-title {
    color: var(--deep-green);
}

.page-about__customer-support-section .page-about__text-block {
    color: var(--dark-text-on-light);
}

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

.page-about__channel-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: var(--dark-text-on-light);
}

.page-about__channel-title {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--deep-green);
    margin-bottom: 10px;
}

.page-about__channel-text {
    font-size: 0.95em;
    color: var(--dark-text-on-light);
    margin-bottom: 20px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    background-color: var(--card-bg);
    padding: 80px 0;
}

.page-about__responsible-gaming-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.page-about__responsible-gaming-list li {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--divider-color);
}

.page-about__list-title {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--glow-color);
    margin-bottom: 10px;
}

/* Vision & CTA Section */
.page-about__vision-cta-section {
    background-color: var(--bg-primary);
    padding: 80px 0;
    text-align: center;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--light-text-on-dark);
    padding: 80px 0;
    color: var(--dark-text-on-light);
}

.page-about__faq-section .page-about__section-title {
    color: var(--deep-green);
}

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

.page-about__faq-item {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--deep-green);
    cursor: pointer;
    background-color: #f8f8f8;
    border-bottom: 1px solid var(--border-color);
}

.page-about__faq-item[open] .page-about__faq-question {
    border-bottom: 1px solid transparent; /* Hide border when open */
}

.page-about__faq-question::-webkit-details-marker {
    display: none;
}

.page-about__faq-question::marker {
    display: none;
}

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

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

.page-about__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--dark-text-on-light);
    background-color: #ffffff;
}

.page-about__faq-answer p {
    margin-bottom: 15px;
}

.page-about__faq-link {
    color: var(--deep-green);
    text-decoration: underline;
    font-weight: bold;
}

.page-about__faq-link:hover {
    color: var(--glow-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__grid-two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-about__container {
        padding: 0 15px; /* Add padding for mobile */
    }

    .page-about__hero-section,
    .page-about__introduction-section,
    .page-about__history-mission-section,
    .page-about__products-services-section,
    .page-about__security-trust-section,
    .page-about__customer-support-section,
    .page-about__responsible-gaming-section,
    .page-about__vision-cta-section,
    .page-about__faq-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .page-about__hero-content {
        padding: 40px 15px;
    }

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

    .page-about__description {
        font-size: 1em;
    }

    /* Images responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Image containers responsive */
    .page-about__hero-image-wrapper,
    .page-about__image-content,
    .page-about__card-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-about__features-grid,
    .page-about__support-channels,
    .page-about__responsible-gaming-list {
        grid-template-columns: 1fr;
    }

    /* Buttons responsive */
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__faq-link,
    .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: 12px 15px !important;
        text-align: center;
        margin-bottom: 10px; /* Add space between stacked buttons */
    }

    .page-about__cta-section {
        padding: 30px 15px;
    }

    .page-about__support-channels .page-about__btn-secondary {
        margin-top: 15px;
    }

    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

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

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

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

    .page-about__section-title {
        font-size: clamp(1.6em, 6vw, 2.2em);
    }

    .page-about__sub-title {
        font-size: clamp(1.2em, 5vw, 1.6em);
    }
}