/* style/about.css */

:root {
    --page-about-bg: #08160F;
    --page-about-card-bg: #11271B;
    --page-about-text-main: #F2FFF6;
    --page-about-text-secondary: #A7D9B8;
    --page-about-border: #2E7A4E;
    --page-about-glow: #57E38D;
    --page-about-gold: #F2C14E;
    --page-about-divider: #1E3A2A;
    --page-about-deep-green: #0A4B2C;
    --page-about-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-about {
    background-color: var(--page-about-bg);
    color: var(--page-about-text-main);
    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;
}

.page-about__section-title {
    font-size: 2.5em;
    color: var(--page-about-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: var(--page-about-text-main);
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-about p {
    color: var(--page-about-text-main);
    margin-bottom: 15px;
}

.page-about a {
    color: var(--page-about-gold);
    text-decoration: none;
}

.page-about a:hover {
    text-decoration: underline;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure button responsiveness */
    width: auto;
}

.page-about__btn-primary {
    background: var(--page-about-btn-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--page-about-gold);
    border: 2px solid var(--page-about-gold);
}

.page-about__btn-secondary:hover {
    background-color: var(--page-about-gold);
    color: var(--page-about-bg);
    transform: translateY(-2px);
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Card styles */
.page-about__card {
    background-color: var(--page-about-card-bg);
    border: 1px solid var(--page-about-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--page-about-text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__card-title {
    font-size: 1.5em;
    color: var(--page-about-gold);
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-about__card p {
    color: var(--page-about-text-secondary);
}

.page-about__card img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-about-deep-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-about__hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
}

.page-about__hero-content {
    max-width: 800px;
    z-index: 1;
}

.page-about__main-title {
    font-size: 3em;
    font-weight: 800;
    color: var(--page-about-gold);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-about__hero-description {
    font-size: 1.3em;
    color: var(--page-about-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-top: 30px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    padding: 80px 20px;
    background-color: var(--page-about-bg);
}

.page-about__mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
}

/* Values Section */
.page-about__values-section {
    padding: 80px 20px;
    background-color: var(--page-about-card-bg);
}

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

.page-about__value-icon {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
}

/* History Section */
.page-about__history-section {
    padding: 80px 20px;
    background-color: var(--page-about-bg);
}

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

.page-about__history-content .page-about__image-block {
    flex: 1;
    min-width: 300px;
}

.page-about__history-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.page-about__history-content .page-about__text-block {
    flex: 2;
}

/* Security Section */
.page-about__security-section {
    padding: 80px 20px;
    background-color: var(--page-about-card-bg);
}

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

/* Game Diversity Section */
.page-about__game-diversity-section {
    padding: 80px 20px;
    background-color: var(--page-about-bg);
}

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

.page-about__game-card .page-about__card-title a {
    color: var(--page-about-gold);
    text-decoration: none;
}

.page-about__game-card .page-about__card-title a:hover {
    text-decoration: underline;
}

.page-about__game-icon {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Support Section */
.page-about__support-section {
    padding: 80px 20px;
    background-color: var(--page-about-card-bg);
}

.page-about__support-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-about__support-content .page-about__text-block {
    flex: 2;
}

.page-about__support-content .page-about__image-block {
    flex: 1;
    min-width: 300px;
}

.page-about__support-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

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

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

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 20px;
    background-color: var(--page-about-card-bg);
}

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

.page-about__faq-item {
    background-color: var(--page-about-card-bg);
    border: 1px solid var(--page-about-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-about-text-main);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--page-about-gold);
    cursor: pointer;
    background-color: var(--page-about-deep-green);
    border-bottom: 1px solid var(--page-about-border);
    list-style: none;
}

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

.page-about__faq-item[open] .page-about__faq-question {
    border-bottom: 1px solid var(--page-about-border);
}

.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(--page-about-text-secondary);
    background-color: var(--page-about-card-bg);
}

.page-about__faq-answer p {
    color: var(--page-about-text-secondary);
    margin-bottom: 10px;
}

.page-about__faq-answer a {
    color: var(--page-about-gold);
}

/* CTA Section */
.page-about__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--page-about-deep-green);
}

/* Dark section specific styles */
.page-about__dark-section {
    background-color: var(--page-about-bg);
    color: var(--page-about-text-main);
}

.page-about__dark-section .page-about__section-title {
    color: var(--page-about-gold);
}

.page-about__dark-section .page-about__intro-text {
    color: var(--page-about-text-secondary);
}

/* General text blocks */
.page-about__text-block {
    color: var(--page-about-text-main);
}

.page-about__text-block h3 {
    color: var(--page-about-gold);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 2.5em;
    }
    .page-about__mission-content,
    .page-about__history-content,
    .page-about__support-content {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .page-about__history-content .page-about__text-block,
    .page-about__support-content .page-about__text-block {
        order: 2;
    }
    .page-about__history-content .page-about__image-block,
    .page-about__support-content .page-about__image-block {
        order: 1;
    }
}

@media (max-width: 768px) {
    .page-about__main-title {
        font-size: 2em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
    .page-about__intro-text {
        font-size: 1em;
    }

    /* Mobile image and video responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__mission-vision-section,
    .page-about__values-section,
    .page-about__history-section,
    .page-about__security-section,
    .page-about__game-diversity-section,
    .page-about__support-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__cta-section,
    .page-about__video-container,
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-about__hero-section,
    .page-about__mission-vision-section,
    .page-about__values-section,
    .page-about__history-section,
    .page-about__security-section,
    .page-about__game-diversity-section,
    .page-about__support-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__cta-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .page-about__hero-section {
        padding-top: 10px !important; /* body handles header offset */
    }

    /* Button responsiveness for mobile */
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        padding-left: 0;
        padding-right: 0;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 10px;
    }

    .page-about__values-grid,
    .page-about__security-features,
    .page-about__game-categories,
    .page-about__responsible-gaming-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-about__faq-answer {
        padding: 15px;
    }
}