/* style/about.css */
:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --text-main-color: #F3F8FF;
    --text-secondary-color: #AFC4E8;
    --card-bg: #10233F;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy-color: #08162B;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Body background #000 is dark, so text is light */
    background-color: transparent; /* Handled by shared.css body background */
}

.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, body handles header offset */
    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;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
}

.page-about__main-title {
    color: var(--gold-color);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-about__intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary-color);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-about__section {
    padding: 80px 20px;
    background-color: var(--deep-navy-color);
    border-top: 1px solid var(--divider-color);
    border-bottom: 1px solid var(--divider-color);
}

.page-about__section:nth-of-type(even) {
    background-color: var(--primary-color);
}

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

.page-about__section-title {
    font-size: 2.5rem;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-about__sub-title {
    font-size: 1.8rem;
    color: var(--text-main-color);
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.page-about__text-block {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
}

.page-about__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-about__text-content {
    flex: 1;
}

.page-about__image-block {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-about__image-block img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-about__why-choose-section {
    background-color: var(--deep-navy-color);
}

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

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

.page-about__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

.page-about__card-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__card-title a {
    color: var(--gold-color);
    text-decoration: none;
}

.page-about__card-title a:hover {
    text-decoration: underline;
}

.page-about__card-description {
    font-size: 0.95rem;
    color: var(--text-secondary-color);
    line-height: 1.6;
}

.page-about__game-types-section {
    background-color: var(--primary-color);
}

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

.page-about__game-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-about__game-card .page-about__card-title {
    padding: 15px 20px 5px;
    margin-bottom: 0;
    text-align: left;
}

.page-about__game-card .page-about__card-description {
    padding: 0 20px 20px;
    text-align: left;
}

.page-about__safety-responsibility-section {
    background-color: var(--deep-navy-color);
}

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

.page-about__commitment-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__commitment-item .page-about__sub-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-about__cta-block {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px dashed var(--divider-color);
}

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

.page-about__faq-list {
    margin-top: 40px;
}

details.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-about__faq-item summary.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    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: rgba(var(--primary-color), 0.8);
}

.page-about__faq-qtext {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main-color);
}

.page-about__faq-toggle {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--gold-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

details.page-about__faq-item .page-about__faq-answer {
    padding: 0 25px 25px;
    background: var(--deep-navy-color);
    border-radius: 0 0 10px 10px;
    color: var(--text-secondary-color);
}

.page-about__faq-answer p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.page-about__latest-news-section {
    background-color: var(--deep-navy-color);
}

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

.page-about__news-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-about__news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__news-image {
    width: 100%;
    height: 220px; /* Ensure sufficient height for content images */
    object-fit: cover;
    display: block;
}

.page-about__news-card .page-about__card-title {
    padding: 15px 20px 5px;
    margin-bottom: 0;
    text-align: left;
    flex-grow: 1;
}

.page-about__news-card .page-about__card-description {
    padding: 0 20px 10px;
    text-align: left;
    font-size: 0.9rem;
}

.page-about__read-more-link {
    display: inline-block;
    color: var(--gold-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0 20px 20px;
    transition: color 0.3s ease;
}

.page-about__read-more-link:hover {
    color: var(--glow-color);
    text-decoration: underline;
}

.page-about__view-all-button-container {
    text-align: center;
    margin-top: 50px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-about__hero-image img {
        border-radius: 8px;
    }
    .page-about__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-about__section-title {
        font-size: 2.2rem;
    }
    .page-about__sub-title {
        font-size: 1.6rem;
    }
    .page-about__text-block {
        font-size: 1rem;
    }
    .page-about__content-wrapper {
        flex-direction: column;
    }
    .page-about__image-block {
        margin-top: 30px;
    }
    .page-about__feature-icon {
        width: 80px;
        height: 80px;
    }
    .page-about__card-title {
        font-size: 1.3rem;
    }
    .page-about__card-description {
        font-size: 0.9rem;
    }
}

@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 {
        margin-bottom: 20px;
    }
    .page-about__hero-image img {
        border-radius: 4px;
    }
    .page-about__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-about__intro-text {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 1rem;
        margin-top: 15px;
        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__section {
        padding: 50px 15px;
    }
    .page-about__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 1.4rem;
    }
    .page-about__text-block {
        font-size: 0.9rem;
    }
    .page-about__features-grid, .page-about__game-cards-grid, .page-about__commitment-grid, .page-about__news-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__feature-card, .page-about__game-card, .page-about__commitment-item, .page-about__news-card {
        padding: 20px;
    }
    .page-about__feature-icon {
        width: 60px;
        height: 60px;
    }
    .page-about__card-title {
        font-size: 1.2rem;
    }
    .page-about__game-image, .page-about__news-image {
        height: 180px;
    }
    details.page-about__faq-item summary.page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-qtext {
        font-size: 1rem;
    }
    .page-about__faq-toggle {
        font-size: 1.5rem;
        width: 25px;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 20px 20px;
    }
    .page-about__faq-answer p {
        font-size: 0.9rem;
    }
    .page-about__cta-block {
        margin-top: 40px;
        padding-top: 20px;
    }
    /* Mobile image adaptation */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__section, .page-about__card, .page-about__container, .page-about__hero-container,
    .page-about__cta-buttons, .page-about__button-group, .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-about__section-title {
        font-size: 1.6rem;
    }
    .page-about__sub-title {
        font-size: 1.2rem;
    }
    .page-about__cta-button {
        font-size: 0.95rem;
        padding: 10px 25px;
    }
    .page-about__feature-card, .page-about__game-card, .page-about__commitment-item, .page-about__news-card {
        padding: 15px;
    }
    .page-about__game-image, .page-about__news-image {
        height: 150px;
    }
}