.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark background */
    background-color: var(--dark-bg, #0d0d0d); /* Inherit from shared, fallback to dark grey */
}

.page-about__section {
    padding: 60px 20px;
    text-align: center;
}

.page-about__dark-section {
    background-color: #1A2B4C; /* Brand dark blue */
    color: #ffffff;
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for titles */
    margin-bottom: 30px;
    font-weight: bold;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-about__hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

.page-about__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

/* Buttons */
.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.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding/border in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
    background-color: #FFD700;
    color: #1A2B4C;
    border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-about__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A2B4C;
}

.page-about__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Features Grid (Intro Section) */
.page-about__features-grid,
.page-about__security-grid,
.page-about__promo-grid,
.page-about__future-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-about__feature-item,
.page-about__security-item,
.page-about__promo-item,
.page-about__future-vision-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease, background-color 0.3s ease;
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
}

.page-about__feature-item:hover,
.page-about__security-item:hover,
.page-about__promo-item:hover,
.page-about__future-vision-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-about__feature-title,
.page-about__security-title,
.page-about__promo-title,
.page-about__future-vision-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__feature-title a,
.page-about__promo-title a {
    color: #FFD700;
    text-decoration: none;
}

.page-about__feature-title a:hover,
.page-about__promo-title a:hover {
    text-decoration: underline;
}


.page-about__feature-description,
.page-about__security-description,
.page-about__promo-description,
.page-about__future-vision-description {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1; /* Make description take available space */
}

/* Image Content */
.page-about__image-content {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 40px;
    margin-bottom: 40px;
    display: block; /* Ensure it's a block element for margin auto */
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
}

/* Game Categories Section */
.page-about__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-about__game-category-item {
    background-color: rgba(255, 255, 255, 0.07);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__game-category-item:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.12);
}

.page-about__game-category-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__game-category-title a {
    color: #FFD700;
    text-decoration: none;
}

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

.page-about__game-category-description {
    font-size: 0.95em;
    color: #f0f0f0;
    flex-grow: 1;
}

.page-about__tech-support-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
    text-align: left;
}

.page-about__tech-title,
.page-about__support-title {
    font-size: 2em;
    color: #FFD700;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about__tech-description,
.page-about__support-description {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-about__support-block .page-about__image-content {
    margin-top: 20px;
    margin-bottom: 0;
}

.page-about__invitation-text {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-top: 50px;
    margin-bottom: 40px;
    font-weight: bold;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: #1A2B4C; /* Dark blue background for FAQ */
    color: #ffffff;
}

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

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for each FAQ item */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-about__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700;
    transition: color 0.3s ease;
}

.page-about__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: 1em; /* Reset h3 font size within question */
}

.page-about__faq-question:hover {
    color: #ffe033;
}

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

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign effect */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
    font-size: 1em;
}

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

.page-about__faq-answer p {
    margin: 0;
    color: inherit;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__tech-support-block {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        height: 80vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        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__hero-actions,
    .page-about__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 15px;
        flex-direction: column; /* Stack buttons vertically */
    }

    .page-about__section {
        padding: 40px 15px;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__text-block {
        font-size: 0.95em;
    }

    .page-about__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure all content sections adapt */
    .page-about__intro-section,
    .page-about__security-section,
    .page-about__games-section,
    .page-about__promo-section,
    .page-about__future-section,
    .page-about__faq-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.6em;
    }
    .page-about__feature-title,
    .page-about__security-title,
    .page-about__promo-title,
    .page-about__future-vision-title,
    .page-about__game-category-title {
        font-size: 1.4em;
    }
    .page-about__tech-title,
    .page-about__support-title {
        font-size: 1.6em;
    }
    .page-about__faq-question {
        font-size: 1.1em;
    }
}