/* style/about.css */

:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --bg-card: #17191F;
    --bg-main: #0D0E12;
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
    --btn-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    --text-dark-contrast: #333333;
    --text-light-contrast: #ffffff;
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light-contrast); /* Default text color for dark body background */
    background-color: var(--bg-main);
}

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

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

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

.page-about__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    min-height: 600px;
    background-color: var(--bg-main);
}

.page-about__hero-image {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default cover for desktop */
    aspect-ratio: 16/9;
}

.page-about__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 15px;
}

.page-about__main-title {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.page-about__intro-text {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: var(--btn-gradient);
    color: var(--text-light-contrast);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

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

.page-about__btn-secondary:hover {
    background: rgba(255, 140, 26, 0.1);
    transform: translateY(-3px);
}

/* Content Grid for Mission/Vision & Responsibility */
.page-about__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

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

.page-about__text-block {
    flex: 1;
    min-width: 300px;
}

.page-about__image-block {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__image-block img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.page-about__sub-title {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

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

/* History Timeline */
.page-about__timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

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

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

.page-about__timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: var(--secondary-color);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.page-about__timeline-item:nth-child(odd) {
    left: 0;
}

.page-about__timeline-item:nth-child(even) {
    left: 50%;
}

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

.page-about__timeline-item h3 {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-about__timeline-item p {
    font-size: 16px;
    color: var(--text-main);
}

/* Core Values */
.page-about__core-values {
    background-color: var(--bg-card);
    padding: 80px 0;
}

.page-about__dark-section {
    background-color: var(--bg-card);
    color: var(--text-light-contrast);
}

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

.page-about__dark-section .page-about__section-description {
    color: var(--text-main);
}

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

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

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

.page-about__value-card img {
    
    
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--glow-color));
}

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

.page-about__value-card p {
    font-size: 16px;
    color: var(--text-main);
}

/* Why Choose Us */
.page-about__why-choose-us {
    background-color: var(--bg-main);
}

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

.page-about__advantage-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-about__advantage-item p {
    font-size: 16px;
    color: var(--text-main);
}

.page-about__cta-buttons--centered {
    margin-top: 50px;
}

/* Responsible Gaming */
.page-about__responsibility {
    background-color: var(--bg-card);
}

/* FAQ Section */
details.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--bg-main);
    box-shadow: 0 2px 8px 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 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: rgba(255, 140, 26, 0.05);
}
.page-about__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}
.page-about__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
    padding: 0 20px 20px;
    background: var(--bg-card);
    border-radius: 0 0 8px 8px;
    color: var(--text-main);
    font-size: 16px;
}

/* Final CTA */
.page-about__final-cta {
    background-color: var(--bg-main);
    text-align: center;
    padding: 80px 0;
}

/* General Image styles */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-section {
        min-height: 500px;
    }
    .page-about__main-title {
        font-size: clamp(30px, 4vw, 48px);
    }
    .page-about__intro-text {
        font-size: 18px;
    }
    .page-about__section-title {
        font-size: 32px;
    }
    .page-about__sub-title {
        font-size: 26px;
    }
    .page-about__timeline::before {
        left: 30px;
    }
    .page-about__timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }
    .page-about__timeline-item::after {
        left: 23px;
    }
    .page-about__timeline-item:nth-child(even) {
        left: 0;
    }
    .page-about__timeline-item:nth-child(even)::after {
        left: 23px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: 10px;
        padding-bottom: 40px;
        min-height: auto;
    }

    .page-about__hero-image img {
        object-fit: contain !important; /* Mobile: prevent cropping */
        aspect-ratio: unset !important;
    }

    .page-about__main-title {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 15px;
    }

    .page-about__intro-text {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

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

    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-about__section-description {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-about__content-grid {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 30px;
    }
    .page-about__content-grid--reverse {
        flex-direction: column;
    }

    .page-about__text-block,
    .page-about__image-block {
        width: 100%;
        min-width: unset;
        padding: 0 15px;
        box-sizing: border-box;
    }

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

    .page-about__sub-title {
        font-size: 22px;
    }

    .page-about__timeline::before {
        left: 15px;
    }

    .page-about__timeline-item {
        padding-left: 45px;
    }

    .page-about__timeline-item::after {
        left: 8px;
    }

    .page-about__timeline-item h3 {
        font-size: 20px;
    }

    .page-about__values-grid,
    .page-about__advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-about__value-card,
    .page-about__advantage-item {
        padding: 25px;
    }

    .page-about__value-title {
        font-size: 20px;
    }

    details.page-about__faq-item summary.page-about__faq-question {
        padding: 15px;
    }
    .page-about__faq-qtext {
        font-size: 16px;
    }
    .page-about__faq-toggle {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 15px 15px;
    }

    .page-about__final-cta {
        padding: 60px 0;
    }

    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-about__section-title,
    .page-about__section-description {
      padding-left: 15px;
      padding-right: 15px;
    }

    /* Ensure all content containers are responsive */
    .page-about__hero-content,
    .page-about__mission-vision .page-about__container,
    .page-about__history .page-about__container,
    .page-about__core-values .page-about__container,
    .page-about__why-choose-us .page-about__container,
    .page-about__responsibility .page-about__container,
    .page-about__faq-section .page-about__container,
    .page-about__final-cta .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    .page-about__faq-list {
        padding: 0 15px;
    }
}