/* style/about.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #000080; /* Dark Blue */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f8f8;
    --bg-dark: #1a1a1a;
    --border-color: #e0e0e0;
    --accent-color: #FFA500; /* Orange for highlights */
}

.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

.page-about-section {
    padding: 60px 0;
    text-align: center;
}

.page-about-section:nth-of-type(odd) {
    background-color: #ffffff;
}

.page-about-section:nth-of-type(even) {
    background-color: var(--bg-light);
}

.page-about-section-title {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.page-about-section-description {
    font-size: 1.2em;
    color: #666666;
    margin-bottom: 40px;
}

.page-about-main-heading {
    font-size: 3.8em;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about-hero-text {
    font-size: 1.5em;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about-cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about-cta-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about-small-button {
    padding: 12px 30px;
    font-size: 1em;
}

/* Hero Section */
.page-about-hero-section {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.page-about-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
}

.page-about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 128, 0.7), rgba(255, 215, 0, 0.4));
    z-index: 1;
}

.page-about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 20px;
}

/* General Content Wrapper */
.page-about-content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-about-content-wrapper.page-about-reverse-layout {
    flex-direction: row-reverse;
}

.page-about-text-content {
    flex: 1;
}

.page-about-text-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-dark);
}

.page-about-text-content a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-about-text-content a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-about-image-frame {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about-responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-width: 400px; /* Enforce minimum size for content images */
    min-height: 300px;
}

/* Values Grid */
.page-about-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about-value-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--primary-color);
}

.page-about-value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-about-value-item h3 {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-about-value-item p {
    font-size: 1em;
    color: #555555;
    line-height: 1.7;
}

/* Products Grid (Games) */
.page-about-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about-product-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-about-product-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

.page-about-product-card h3 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin: 20px 15px 10px;
}

.page-about-product-card h3 a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about-product-card h3 a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-about-product-card p {
    font-size: 0.95em;
    color: #666666;
    padding: 0 15px 20px;
    line-height: 1.6;
}

/* FAQ Section */
.page-about-faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-question h3 {
    font-size: 1.25em;
    color: var(--secondary-color);
    margin: 0;
}

.faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background-color: #f9f9f9;
    color: var(--text-dark);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    margin: 0;
    font-size: 1.05em;
    line-height: 1.7;
}

.faq-answer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.faq-answer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Final CTA */
.page-about-cta-final {
    background: linear-gradient(135deg, var(--secondary-color), #00004d);
    color: var(--text-light);
    padding: 80px 0;
}

.page-about-cta-final .page-about-section-title {
    color: var(--primary-color);
}

.page-about-cta-final .page-about-section-description {
    color: rgba(255, 255, 255, 0.9);
}

.page-about-cta-final .page-about-cta-button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-about-cta-final .page-about-cta-button:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about-hero-section {
        height: 500px;
    }

    .page-about-main-heading {
        font-size: 3em;
    }

    .page-about-hero-text {
        font-size: 1.3em;
    }

    .page-about-section-title {
        font-size: 2.5em;
    }

    .page-about-content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-about-content-wrapper.page-about-reverse-layout {
        flex-direction: column;
    }

    .page-about-image-frame {
        order: -1; /* Move image above text on smaller screens for reverse layout */
        margin-bottom: 30px;
    }

    .page-about-responsive-image {
        min-width: 300px;
        min-height: 250px;
    }

    .page-about-products-grid,
    .page-about-values-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-about-product-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-about-section {
        padding: 40px 0;
    }

    .page-about-hero-section {
        height: 400px;
    }

    .page-about-main-heading {
        font-size: 2.2em;
    }

    .page-about-hero-text {
        font-size: 1.1em;
    }

    .page-about-cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-about-section-title {
        font-size: 2em;
    }

    .page-about-section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-about-responsive-image {
        min-width: 250px;
        min-height: 200px;
    }

    .faq-question {
        padding: 15px 20px;
    }

    .faq-question h3 {
        font-size: 1.1em;
    }

    .faq-toggle {
        font-size: 1.5em;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-about-hero-section {
        height: 350px;
    }

    .page-about-main-heading {
        font-size: 1.8em;
    }

    .page-about-hero-text {
        font-size: 0.9em;
    }

    .page-about-cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .page-about-section-title {
        font-size: 1.8em;
    }

    .page-about-products-grid,
    .page-about-values-grid {
        grid-template-columns: 1fr;
    }

    .page-about-responsive-image {
        min-width: 200px;
        min-height: 150px;
    }

    .page-about-product-image {
        height: 180px;
    }
}