:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa; /* Slightly off-white for contrast */
    --bg-dark: #26A9E0; /* Using primary color as dark background */
    --border-color: #e0e0e0;
    --button-login-color: #EA7C07; /* Specific color for login */
}

/* Base styles for the about page content */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--secondary-color); /* Default white background */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-about__container--center {
    text-align: center;
}

.page-about__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.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-title--light {
    color: var(--text-light);
}

.page-about__section-title--light::after {
    background-color: var(--secondary-color);
}

.page-about__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* HERO Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color), #4db9eb); /* Gradient for hero */
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-about__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above image if needed */
}

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--text-light);
}

.page-about__hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-login-color); /* Using login color for primary CTA */
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-about__cta-button:hover {
    background: #c76605; /* A slightly darker orange */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button--large {
    font-size: 22px;
    padding: 18px 50px;
}

/* Introduction Section */
.page-about__introduction-section {
    background-color: var(--bg-light);
    padding: 60px 0;
}

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

.page-about__feature-item {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-about__feature-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

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

.page-about__feature-description {
    font-size: 16px;
    color: var(--text-dark);
}

/* Commitment Section */
.page-about__commitment-section {
    background-color: var(--bg-dark); /* Using primary color as background */
    padding: 60px 0;
}

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

.page-about__cockfighting-item {
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent white on dark background */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__cockfighting-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

.page-about__cockfighting-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-about__cockfighting-description {
    font-size: 16px;
    color: var(--text-light);
}

/* Other Services Section */
.page-about__other-services-section {
    background-color: var(--bg-light);
    padding: 60px 0;
}

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

.page-about__game-card {
    background: var(--secondary-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-about__game-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
    object-fit: cover;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

.page-about__game-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-about__game-description {
    font-size: 15px;
    color: var(--text-dark);
}

/* Security & Support Section */
.page-about__security-support-section {
    background-color: var(--bg-dark);
    padding: 60px 0;
}

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

.page-about__security-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__security-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

.page-about__security-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-about__security-description {
    font-size: 16px;
    color: var(--text-light);
}

/* Partners Section */
.page-about__partners-section {
    background-color: var(--bg-light);
    padding: 60px 0;
    text-align: center;
}

.page-about__partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.page-about__partner-logos img {
    
    height: auto;
    object-fit: contain;
    filter: grayscale(100%); /* Make logos grayscale to fit design, not changing color */
    opacity: 0.7;
    transition: all 0.3s ease;
    min-width: 200px; /* Ensure minimum size for images, overriding max-width for logos to meet 200px */
    min-
}

.page-about__partner-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--bg-light);
    padding: 60px 0;
}

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

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-about__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-about__faq-question:active {
    background: #eeeeee;
}

.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
    pointer-events: none; /* Prevent h3 from blocking click events */
}

.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click events */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: var(--button-login-color); /* Change color when active */
    transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    background: #fcfcfc;
    border-top: none;
    border-radius: 0 0 5px 5px;
    color: var(--text-dark);
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* Ensure it expands sufficiently */
    padding: 20px !important;
    opacity: 1;
    border: 1px solid var(--border-color);
    border-top: none;
}

.page-about__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

/* Bottom CTA Section */
.page-about__cta-bottom-section {
    background-color: var(--bg-dark);
    padding: 80px 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 42px;
    }
    .page-about__hero-description {
        font-size: 18px;
    }
    .page-about__section-title {
        font-size: 30px;
    }
    .page-about__text-block {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-about {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
    }
    .page-about__container {
        padding: 30px 15px;
    }

    .page-about__hero-section {
        padding: 40px 15px;
    }
    .page-about__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-about__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-about__cta-button {
        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__cta-button--large {
        font-size: 18px;
        padding: 15px 40px;
    }

    .page-about__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .page-about__feature-grid,
    .page-about__cockfighting-features,
    .page-about__game-grid,
    .page-about__security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__feature-item,
    .page-about__cockfighting-item,
    .page-about__game-card,
    .page-about__security-item {
        padding: 20px;
    }

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset !important; /* Remove min-width for mobile for better scaling */
        min-height: unset !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-about__partner-logos {
        flex-direction: column;
        gap: 20px;
    }
    .page-about__partner-logos img {
        max-width: 100% !important; /* Allow logos to scale up to 100% width on mobile */
        min-width: unset !important; /* Remove min-width for mobile for better scaling */
    }
}