/* style/about.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --background-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
}

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

/* HERO Section */
.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, header offset handled by body */
    background-color: var(--primary-color);
    color: var(--text-light);
    overflow: hidden;
}

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

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

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

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-about__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--text-light);
    /* Using clamp for responsive font size */
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-description {
    font-size: 1.1rem;
    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); /* Using specific login color */
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__cta-button:hover {
    background: darken(var(--login-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-about__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    line-height: 1.3;
}

.page-about__section-title--white {
    color: var(--text-light);
}

.page-about__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: -20px auto 50px auto;
    line-height: 1.7;
}

.page-about__section-description--white {
    color: var(--secondary-color);
}

/* Mission & Vision Section */
.page-about__mission-vision {
    padding: 80px 0;
    background-color: var(--background-color);
}

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

.page-about__content-wrapper:last-child {
    margin-bottom: 0;
}

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

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

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.page-about__text-block ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.page-about__text-block li {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

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

.page-about__image-block img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-about__subtitle {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

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

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

.page-about__card {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-about__card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-about__card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.page-about__cta-wrapper {
    text-align: center;
    margin-top: 60px;
}

.page-about__btn-primary {
    background: var(--login-color);
    color: var(--text-light);
}

.page-about__btn-primary:hover {
    background: darken(var(--login-color), 10%);
}

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

.page-about__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
    padding: 80px 0;
    background-color: var(--background-color);
}

/* Our Values Section */
.page-about__our-values {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.page-about__value-item {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

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

.page-about__value-item p {
    font-size: 1rem;
    line-height: 1.6;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.page-about__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

details.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--secondary-color);
}

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-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-dark);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-about__content-wrapper--reverse {
        flex-direction: column;
    }

    .page-about__text-block, .page-about__image-block {
        width: 100%;
        flex: none;
    }

    .page-about__hero-content h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .page-about__hero-description {
        font-size: 1rem;
    }

    .page-about__section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    .page-about__subtitle {
        font-size: 1.6rem;
    }

    .page-about__grid, .page-about__values-grid {
        grid-template-columns: 1fr;
    }
}

@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__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-about__subtitle {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .page-about__text-block p, .page-about__text-block li {
        font-size: 0.95rem;
    }

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

    .page-about__card-title, .page-about__value-title {
        font-size: 1.3rem;
    }

    details.page-about__faq-item summary.page-about__faq-question {
        padding: 15px;
    }
    .page-about__faq-qtext {
        font-size: 15px;
    }
    .page-about__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 15px 15px;
    }
    
    /* Ensure images are responsive */
    .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-section, .page-about__mission-vision, .page-about__why-choose-us, .page-about__responsible-gaming, .page-about__our-values, .page-about__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-about__hero-section {
        padding: 30px 10px;
    }
    .page-about__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-about__hero-description {
        font-size: 0.9rem;
    }
    .page-about__cta-button {
        padding: 10px 25px;
        font-size: 15px;
    }
    .page-about__container {
        padding: 20px 10px;
    }
    .page-about__section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-about__subtitle {
        font-size: 1.2rem;
    }
    .page-about__card-title, .page-about__value-title {
        font-size: 1.2rem;
    }
    .page-about__card p, .page-about__value-item p {
        font-size: 0.9rem;
    }
}

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

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

/* Ensure all links have sufficient contrast */
.page-about a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Button specific color for login */
.page-about__btn-primary {
    background-color: var(--login-color);
    color: var(--text-light);
}

.page-about__btn-primary:hover {
    background-color: darken(var(--login-color), 10%);
}

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

.page-about__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}