/* style/about.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --bg-color-main: #08160F;
    --bg-color-card: #11271B;
    --text-color-main: #F2FFF6;
    --text-color-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

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

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

.page-about__section--mission-vision {
    background-color: var(--bg-color-main);
}

.page-about__section--history,
.page-about__section--games,
.page-about__section--why-choose-us {
    background-color: var(--deep-green-color);
}

.page-about__section--cta {
    background-color: var(--primary-color);
    text-align: center;
}

.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding */
    background-color: var(--bg-color-main);
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Adjust based on image aspect ratio 16:9 for 1200x675 */
    overflow: hidden;
}

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

.page-about__hero-content-wrapper {
    position: relative;
    width: 100%;
    padding: 40px 0;
    text-align: center;
    background-color: var(--bg-color-main); /* Ensure consistent background below image */
}

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

.page-about__description {
    font-size: 1.1rem;
    color: var(--text-color-secondary);
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    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: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-about__btn-secondary {
    background: var(--bg-color-card);
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-about__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--bg-color-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

.page-about__section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.page-about__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gold-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

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

.page-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__grid--2-cols-reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__grid--2-cols-reverse .page-about__image-wrapper {
    order: 2;
}

.page-about__grid--2-cols-reverse .page-about__text-block {
    order: 1;
}

.page-about__image-wrapper {
    text-align: center;
}

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

.page-about__text-block p,
.page-about__text-block li {
    color: var(--text-color-main);
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.page-about__text-block ul {
    list-style: none;
    padding: 0;
}

.page-about__text-block li::before {
    content: '✅';
    margin-right: 10px;
    color: var(--gold-color);
}

.page-about__timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 40px 0;
}

.page-about__timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--divider-color);
    transform: translateX(-50%);
}

.page-about__timeline-item {
    width: 50%;
    padding: 20px 0;
    position: relative;
    box-sizing: border-box;
}

.page-about__timeline-item:nth-child(odd) {
    align-self: flex-start;
    padding-right: 60px;
    text-align: right;
}

.page-about__timeline-item:nth-child(even) {
    align-self: flex-end;
    padding-left: 60px;
    text-align: left;
}

.page-about__timeline-item::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border: 4px solid var(--gold-color);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::before {
    right: -10px;
}

.page-about__timeline-item:nth-child(even)::before {
    left: -10px;
}

.page-about__timeline-year {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__timeline-item p {
    color: var(--text-color-secondary);
    font-size: 1rem;
}

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

.page-about__card {
    background-color: var(--bg-color-card);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-color-main);
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__value-title,
.page-about__game-title,
.page-about__commitment-title,
.page-about__feature-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__game-list {
    list-style: none;
    padding: 0;
}

.page-about__game-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--divider-color);
}

.page-about__game-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-about__game-item p {
    color: var(--text-color-secondary);
    font-size: 1.05rem;
}

.page-about__commitment-list {
    list-style: none;
    padding: 0;
}

.page-about__commitment-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--divider-color);
}

.page-about__commitment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-about__commitment-item p {
    color: var(--text-color-secondary);
    font-size: 1.05rem;
}

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

.page-about__feature-card {
    text-align: center;
}

.page-about__feature-card p {
    color: var(--text-color-secondary);
}

.page-about__image-wrapper--center {
    margin-top: 50px;
}

.page-about__cta-content {
    padding: 40px 20px;
}

.page-about__cta-content .page-about__section-title {
    color: #ffffff;
}

.page-about__cta-content .page-about__section-title::after {
    background: #ffffff;
}

.page-about__cta-content .page-about__description {
    color: #ffffff;
}

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

.page-about__faq-item {
    background-color: var(--bg-color-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    background-color: var(--bg-color-card);
    transition: background-color 0.3s ease;
    list-style: none;
}

.page-about__faq-question::-webkit-details-marker {
    display: none;
}

.page-about__faq-question:hover {
    background-color: var(--border-color);
}

.page-about__faq-qtext {
    flex-grow: 1;
}

.page-about__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold-color);
    margin-left: 15px;
}

.page-about__faq-item[open] .page-about__faq-question {
    background-color: var(--border-color);
}

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05rem;
    color: var(--text-color-secondary);
    line-height: 1.6;
}

/* Responsive styles */
@media (max-width: 992px) {
    .page-about__grid,
    .page-about__grid--2-cols-reverse {
        grid-template-columns: 1fr;
    }

    .page-about__grid--2-cols-reverse .page-about__image-wrapper,
    .page-about__grid--2-cols-reverse .page-about__text-block {
        order: unset;
    }

    .page-about__timeline::before {
        left: 20px;
        transform: translateX(0);
    }

    .page-about__timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
        text-align: left;
    }

    .page-about__timeline-item:nth-child(odd),
    .page-about__timeline-item:nth-child(even) {
        align-self: auto;
        padding-left: 60px;
        padding-right: 20px;
        text-align: left;
    }

    .page-about__timeline-item:nth-child(odd)::before,
    .page-about__timeline-item:nth-child(even)::before {
        left: 10px;
        right: auto;
    }

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

    .page-about__hero-content-wrapper {
        padding: 30px 0;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__container {
        padding: 0 15px;
    }

    .page-about__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__hero-content-wrapper,
    .page-about__hero-image-wrapper,
    .page-about__cta-buttons,
    .page-about__values-grid,
    .page-about__features-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__hero-section {
        padding-top: 10px !important;
    }

    .page-about__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        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-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .page-about__faq-answer {
        padding: 0 20px 15px;
    }
}