/* style/about.css */

/* Variables for colors */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color-page: #08160F; /* Specific page background */
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
    --light-bg-text: #333333; /* For light backgrounds */
}

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

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

.page-about__dark-bg {
    background-color: var(--background-color-page);
    color: var(--text-main);
}

.page-about__light-bg {
    background-color: #ffffff;
    color: var(--light-bg-text);
}

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

.page-about__section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--gold-color);
}

.page-about__sub-title {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-about__paragraph {
    font-size: 18px;
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__text-main {
    color: var(--text-main);
}

.page-about__text-secondary {
    color: var(--text-secondary);
}

.page-about__link {
    color: var(--glow-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__link:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

/* Hero Section */
.page-about__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding as body handles header offset */
    padding-bottom: 60px;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

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

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

.page-about__main-title {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--gold-color);
}

.page-about__hero-description {
    font-size: clamp(18px, 2.5vw, 24px);
    margin-bottom: 30px;
    color: var(--text-secondary);
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    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;
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-about__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-about__introduction .page-about__section-title {
    color: var(--primary-color);
}

.page-about__image-text-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-about__image-text-block .page-about__image-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-about__image-text-block .page-about__text-content {
    flex: 2;
    min-width: 300px;
}

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

/* Advantages Section */
.page-about__advantages {
    background-color: var(--deep-green);
}

.page-about__advantages .page-about__section-title {
    color: var(--gold-color);
}

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

.page-about__card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    border: 1px solid var(--border-color);
}

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

.page-about__card-image {
    width: 100%; /* Ensure card images are large */
    height: 200px; /* Fixed height for consistency, adjust as needed */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-about__card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gold-color);
}

.page-about__card-description {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Core Values Section */
.page-about__core-values .page-about__section-title {
    color: var(--primary-color);
}

.page-about__values-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-about__value-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.page-about__value-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--glow-color);
}

.page-about__value-description {
    font-size: 16px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
    background-color: var(--deep-green);
}

.page-about__responsible-gaming .page-about__section-title {
    color: var(--gold-color);
}

.page-about__responsible-gaming-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-about__responsible-gaming-content .page-about__text-block {
    flex: 2;
    min-width: 300px;
}

.page-about__responsible-gaming-content .page-about__image-wrapper {
    flex: 1;
    min-width: 300px;
}

/* Team Section */
.page-about__team .page-about__section-title {
    color: var(--primary-color);
}

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

.page-about__team-member-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid var(--border-color);
}

.page-about__team-member-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--glow-color);
    min-width: 200px;
    min-height: 200px;
}

.page-about__member-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--gold-color);
}

.page-about__member-role {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.page-about__member-description {
    font-size: 15px;
    color: var(--text-secondary);
}

.page-about__team-culture {
    margin-top: 40px;
    font-style: italic;
}

/* Contact Section */
.page-about__contact {
    background-color: var(--deep-green);
}

.page-about__contact .page-about__section-title {
    color: var(--gold-color);
}

.page-about__contact-info {
    margin-top: 30px;
}

.page-about__contact-item {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-main);
}

/* FAQ Section */
.page-about__faq .page-about__section-title {
    color: var(--primary-color);
}

.page-about__faq-list {
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--gold-color);
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--border-color);
}

.page-about__faq-item[open] .page-about__faq-question {
    border-bottom: 1px solid var(--divider-color);
}

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

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

.page-about__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-about__faq-toggle {
    font-size: 24px;
    line-height: 1;
    color: var(--glow-color);
}

.page-about__faq-answer {
    padding: 20px 25px;
    font-size: 16px;
    color: var(--text-secondary);
}

.page-about__faq-answer p {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-about__hero-image-wrapper {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }

    .page-about__hero-section {
        padding-bottom: 40px;
    }

    .page-about__hero-image-wrapper {
        max-height: 300px;
    }

    .page-about__main-title {
        font-size: 32px;
    }

    .page-about__hero-description {
        font-size: 16px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-about__image-text-block,
    .page-about__responsible-gaming-content {
        flex-direction: column;
        gap: 20px;
    }

    .page-about__image-text-block .page-about__image-wrapper,
    .page-about__image-text-block .page-about__text-content,
    .page-about__responsible-gaming-content .page-about__image-wrapper,
    .page-about__responsible-gaming-content .page-about__text-block {
        min-width: unset;
        width: 100%;
    }

    .page-about__card-image,
    .page-about__team-member-image,
    .page-about__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__image-text-block,
    .page-about__responsible-gaming-content,
    .page-about__advantages-grid,
    .page-about__values-list,
    .page-about__team-grid,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

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

    .page-about__faq-answer {
        padding: 15px 20px;
    }
    
    .page-about__hero-section {
        padding-top: 10px !important; 
    }
}