/* style/about.css */
.page-about {
    background-color: #0A0A0A; /* Background color from custom palette */
    color: #FFF6D6; /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-about__section-padding {
    padding: 60px 0;
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    padding-bottom: 60px;
    background: linear-gradient(135deg, rgba(242, 193, 78, 0.1), rgba(255, 211, 107, 0.1)); /* Subtle gradient background */
    overflow: hidden; /* Ensure no image overflow */
}

.page-about__hero-image-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 40px; /* Space between image and text */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit hero image height on desktop */
}

.page-about__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

.page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: #F2C14E; /* Main brand color for title */
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: #FFF6D6; /* Main text color */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
    color: #111111; /* Dark text for light gradient background */
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
    box-shadow: 0 0 15px #FFD36B; /* Glow effect */
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #F2C14E; /* Main brand color for text */
    border: 2px solid #F2C14E; /* Border with main brand color */
}

.page-about__btn-secondary:hover {
    background-color: #F2C14E;
    color: #111111; /* Dark text on brand color background */
    box-shadow: 0 0 15px #FFD36B; /* Glow effect */
}

/* Section Titles and Subtitles */
.page-about__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: #F2C14E;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-about__sub-title {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    color: #FFD36B;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__section-description {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: #FFF6D6;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Content Blocks */
.page-about__content-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-about__content-flex--reverse {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
    color: #FFF6D6;
}

.page-about__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    object-fit: cover;
}

.page-about__dark-section {
    background-color: #111111; /* Card BG color from custom palette */
    color: #FFF6D6;
}

.page-about__card {
    background-color: #111111; /* Card BG color from custom palette */
    color: #FFF6D6;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards in a grid have equal height */
    box-sizing: border-box;
}

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

.page-about__card-title {
    font-size: 1.5rem;
    color: #F2C14E;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__card-title a {
    color: #F2C14E;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__card-title a:hover {
    color: #FFD36B;
}

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

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

.page-about__game-category-card {
    background-color: #111111;
    color: #FFF6D6;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__game-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-about__category-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 15px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px #FFD36B); /* Allowed for icons, not content images */
}

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

/* FAQ Section */
.page-about__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-about__faq-item {
    background-color: #0A0A0A; /* Darker background for item */
    border: 1px solid #3A2A12; /* Border color from custom palette */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #111111; /* Card BG for question header */
    color: #F2C14E; /* Main brand color for question */
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #222222;
    color: #FFD36B;
}

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

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Plus to Minus */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6; /* Main text color */
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Important for JS functionality */
    padding: 20px 25px;
}

/* Partners Section */
.page-about__partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Min width for logos */
    gap: 30px;
    margin-top: 40px;
    justify-items: center;
    align-items: center;
}