/* style/about-us.css */

/* Variables for consistent styling */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark-1: #0d0d0d; /* Assuming from var(--dark-bg-1) */
    --bg-dark-2: #1a1a1a;
    --bg-dark-3: #2a2a2a;
    --border-color-dark: #333333;
    --hover-gold: #e6c200;
    --active-gold: #ccad00;
}

.page-about-us {
    color: var(--text-light);
    background-color: var(--bg-dark-1);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: 0; /* Handled by specific section for fixed header */
}

/* Fixed navigation bar spacing for the first content section */
.page-about-us__main-content {
    padding-top: 120px; /* Desktop fixed header height */
}

@media (max-width: 768px) {
    .page-about-us__main-content {
        padding-top: 100px; /* Mobile fixed header height */
    }
}

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

.page-about-us__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-about-us__section-title {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about-us__sub-title {
    font-size: 24px;
    color: var(--text-light);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about-us__text-block p,
.page-about-us__text-block li {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-about-us__text-block a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about-us__text-block a:hover {
    color: var(--hover-gold);
    text-decoration: underline;
}

.page-about-us__text-block ul {
    list-style: disc inside;
    padding-left: 20px;
}

.page-about-us__btn-primary,
.page-about-us__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.page-about-us__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-dark); /* Ensure contrast */
    border-color: var(--primary-color);
}

.page-about-us__btn-primary:hover {
    background-color: var(--hover-gold);
    border-color: var(--hover-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-about-us__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-about-us__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-about-us__cta-buttons {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Hero Banner Section */
.page-about-us__hero-banner {
    position: relative;
    width: 100%;
    height: 500px; /* Adjust height as needed */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

.page-about-us__hero-overlay {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
}

.page-about-us__hero-title {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-about-us__hero-description {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.page-about-us__hero-btn {
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-about-us__hero-btn:hover {
    background-color: var(--hover-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

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

.page-about-us__card {
    background-color: var(--bg-dark-2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-about-us__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.page-about-us__card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-about-us__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.page-about-us__card-content p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.page-about-us__card-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
}

.page-about-us__card-btn:hover {
    background-color: #a50000;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-about-us__faq-list {
    margin-top: 40px;
}

.page-about-us__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-dark-2);
    border: 1px solid var(--border-color-dark);
}

.page-about-us__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: var(--bg-dark-2);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-about-us__faq-question:hover {
    background-color: var(--bg-dark-3);
}

.page-about-us__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
    pointer-events: none;
}

.page-about-us__faq-toggle {
    font-size: 28px;
    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;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-about-us__faq-item.active .page-about-us__faq-toggle {
    color: var(--text-light);
    transform: rotate(45deg); /* Change to X or rotate */
}

.page-about-us__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 25px;
    opacity: 0;
    background-color: var(--bg-dark-3);
    color: var(--text-light);
}

.page-about-us__faq-item.active .page-about-us__faq-answer {
    max-height: 2000px !important; /* Sufficiently large */
    padding: 20px 25px !important;
    opacity: 1;
    border-top: 1px solid var(--border-color-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about-us__hero-title {
        font-size: 40px;
    }
    .page-about-us__hero-description {
        font-size: 18px;
    }
    .page-about-us__section-title {
        font-size: 32px;
    }
    .page-about-us__sub-title {
        font-size: 22px;
    }
    .page-about-us__text-block p, .page-about-us__text-block li {
        font-size: 15px;
    }
    .page-about-us__grid-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-about-us__card-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-about-us__hero-banner {
        height: 400px;
    }
    .page-about-us__hero-overlay {
        padding: 30px 20px;
        max-width: 90%;
    }
    .page-about-us__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-about-us__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-about-us__hero-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-about-us__section {
        padding: 40px 0;
    }
    .page-about-us__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-about-us__sub-title {
        font-size: 20px;
    }
    .page-about-us__text-block p, .page-about-us__text-block li {
        font-size: 14px;
    }
    .page-about-us__grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about-us__card-image {
        height: 200px;
    }
    .page-about-us__card-content {
        padding: 20px;
    }
    .page-about-us__card-title {
        font-size: 20px;
    }
    .page-about-us__card-content p {
        font-size: 14px;
    }
    .page-about-us__card-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    .page-about-us__faq-question {
        padding: 15px 20px;
    }
    .page-about-us__faq-question h3 {
        font-size: 16px;
    }
    .page-about-us__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-about-us__faq-answer {
        padding: 0 20px;
    }
    .page-about-us__faq-item.active .page-about-us__faq-answer {
        padding: 15px 20px !important;
    }
    .page-about-us__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about-us__btn-primary, .page-about-us__btn-secondary {
        width: 100%;
    }
}

/* Mobile image adaptation */
@media (max-width: 768px) {
    .page-about-us img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-about-us__section,
    .page-about-us__card,
    .page-about-us__container,
    .page-about-us__hero-banner,
    .page-about-us__hero-overlay {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about-us__hero-banner {
        padding-left: 0;
        padding-right: 0;
    }
    .page-about-us__hero-overlay {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}