/* style/about.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --login-color: #EA7C07;
    --bg-color-white: #FFFFFF;
    --black-color: #000000;
}

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

.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, main padding handled by body */
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a8ad0 100%);
    color: var(--text-color-light);
    overflow: hidden;
}

.page-about__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

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

.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%;
}

.page-about__main-title {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-color-light);
    /* font-size handled by clamp in shared.css or browser default for H1 */
}

.page-about__intro-description {
    font-size: 1.15em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--secondary-color);
}

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

.page-about__cta-button:hover {
    background: #d66b06;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-about__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--primary-color);
}

.page-about__section-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 50px;
    color: var(--text-color-dark);
}

/* Mission & Vision Section */
.page-about__mission-vision .page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-about__mission-vision .page-about__text-block {
    flex: 1;
}

.page-about__mission-vision .page-about__text-block p {
    margin-bottom: 20px;
    font-size: 1.05em;
    color: var(--text-color-dark);
}

.page-about__mission-vision .page-about__image-block {
    flex: 1;
    min-width: 400px;
}

.page-about__mission-vision .page-about__image-block img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-about__why-choose-us .page-about__section-title {
    color: var(--text-color-light);
}

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__feature-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.25);
}

.page-about__feature-card .page-about__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-color-light);
}

.page-about__feature-card p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
}

.page-about__cta-wrapper {
    margin-top: 40px;
}

/* Game Diversity Section */
.page-about__game-diversity {
    background-color: var(--bg-color-white);
}

.page-about__game-diversity .page-about__section-title {
    color: var(--primary-color);
}

.page-about__game-diversity .page-about__section-description {
    color: var(--text-color-dark);
}

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

.page-about__game-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    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: 1px solid #e0e0e0;
}

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

.page-about__game-card img {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-about__game-card .page-about__card-title {
    font-size: 1.4em;
    margin: 20px 15px 10px;
    color: var(--primary-color);
}

.page-about__game-card p {
    font-size: 0.95em;
    padding: 0 15px 20px;
    color: var(--text-color-dark);
}

.page-about__game-card .page-about__card-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.page-about__game-card .page-about__card-link:hover {
    background-color: #1a8ad0;
}

/* CTA Banner */
.page-about__cta-banner {
    background: linear-gradient(90deg, var(--primary-color) 0%, #1a8ad0 100%);
    color: var(--text-color-light);
    padding: 60px 20px;
}

.page-about__cta-banner .page-about__section-title {
    color: var(--text-color-light);
    margin-bottom: 20px;
}

.page-about__cta-banner .page-about__section-description {
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-about__btn-cta {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-about__btn-cta--white {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-about__btn-cta--white:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-cta--border {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-about__btn-cta--border:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--bg-color-white);
}

.page-about__faq-section .page-about__section-title {
    color: var(--primary-color);
}

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
  background: #f5f5f5;
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color-dark);
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-color-dark);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__mission-vision .page-about__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-about__mission-vision .page-about__image-block {
        margin-top: 40px;
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-image img {
        border-radius: 4px;
    }
    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__main-title {
        font-size: 2em;
    }
    .page-about__intro-description {
        font-size: 1em;
    }
    .page-about__section {
        padding: 50px 15px;
    }
    .page-about__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-about__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-about__features-grid,
    .page-about__game-cards-grid {
        grid-template-columns: 1fr;
    }
    .page-about__feature-card {
        padding: 25px;
    }
    .page-about__feature-card .page-about__card-title {
        font-size: 1.3em;
    }
    .page-about__game-card img {
        
    }
    .page-about__game-card .page-about__card-title {
        font-size: 1.2em;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-cta {
        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 img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !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;
    }
    details.page-about__faq-item summary.page-about__faq-question { padding: 15px; }
    .page-about__faq-qtext { font-size: 15px; }
    details.page-about__faq-item .page-about__faq-answer { padding: 0 15px 15px; }
}

/* Color Contrast Fixes */
.page-about__dark-bg {
    color: var(--text-color-light);
}

.page-about__light-bg {
    color: var(--text-color-dark);
}

.page-about__primary-bg-light-text {
    background: linear-gradient(90deg, var(--primary-color) 0%, #1a8ad0 100%);
    color: var(--text-color-light);
}

.page-about p,
.page-about li {
  color: var(--text-color-dark);
}

.page-about__feature-card p {
    color: rgba(255, 255, 255, 0.9);
}