/* style/about.css */
:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --dark-bg-color: #121212;
    --light-text-color: #ffffff;
    --dark-text-color: #333333;
    --card-bg-light: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-hover-color: rgba(0, 0, 0, 0.2);
}

.page-about {
    color: var(--light-text-color); /* Body background is dark, so text should be light */
    background-color: var(--dark-bg-color);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: 120px; /* Desktop: Adjust for fixed header */
}

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

.page-about__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--light-text-color);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

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

.page-about__hero-intro-section {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    padding: 80px 0 60px;
    text-align: center;
}

.page-about__hero-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--light-text-color);
    margin-bottom: 20px;
}

.page-about__hero-description {
    font-size: 20px;
    color: #e0e0e0;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-description a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-about__hero-description a:hover {
    color: #ffd700;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--dark-text-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.page-about__cta-button:hover {
    background: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow-hover-color);
}

.page-about__keyword {
    font-weight: bold;
    color: var(--secondary-color);
}

.page-about__dark-section {
    background-color: #1a1a1a;
    color: var(--light-text-color);
}

.page-about__mission-vision-section {
    padding: 60px 0;
}

.page-about__grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-about__vision-card,
.page-about__mission-card {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
    background: var(--card-bg-light);
    color: var(--dark-text-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__vision-card:hover,
.page-about__mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px var(--shadow-hover-color);
}

.page-about__card-icon {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__card-text {
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
}

.page-about__values-section {
    padding: 60px 0;
}

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

.page-about__value-item {
    background: var(--card-bg-light);
    color: var(--dark-text-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px var(--shadow-hover-color);
}

.page-about__value-icon {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__value-text {
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
}

.page-about__why-choose-us-section {
    padding: 60px 0;
}

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

.page-about__feature-item {
    background: var(--card-bg-light);
    color: var(--dark-text-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px var(--shadow-hover-color);
}

.page-about__feature-icon {
    width: 90px;
    height: auto;
    margin-bottom: 20px;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__feature-text {
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
}

.page-about__feature-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-about__feature-text a:hover {
    color: #0056b3;
}

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

.page-about__responsible-gaming-section {
    padding: 60px 0;
}

.page-about__responsible-gaming-content {
    background: var(--card-bg-light);
    color: var(--dark-text-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--shadow-color);
    margin-top: 40px;
}

.page-about__responsible-gaming-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #555555;
}

.page-about__responsible-gaming-content p:last-child {
    margin-bottom: 0;
}

.page-about__responsible-gaming-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-about__responsible-gaming-content a:hover {
    color: #0056b3;
}

.page-about__future-outlook-section {
    padding: 60px 0;
}

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

.page-about__future-item {
    background: var(--card-bg-light);
    color: var(--dark-text-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__future-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px var(--shadow-hover-color);
}

.page-about__future-icon {
    width: 90px;
    height: auto;
    margin-bottom: 20px;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__future-text {
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
}

.page-about__faq-section {
    padding: 60px 0;
}

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

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: box-shadow 0.3s ease;
}

.page-about__faq-item:hover {
    box-shadow: 0 4px 12px var(--shadow-hover-color);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 25px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 10px 10px;
    color: var(--dark-text-color);
}

.page-about__faq-answer p {
    color: #555555;
    font-size: 15px;
}

.page-about__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-about__faq-answer a:hover {
    color: #0056b3;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--card-bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--dark-text-color);
}

.page-about__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-about__faq-question:active {
    background: #eeeeee;
}

.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--dark-text-color);
}

.page-about__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__section-title {
        font-size: 32px;
    }
    .page-about__hero-title {
        font-size: 40px;
    }
    .page-about__hero-description {
        font-size: 18px;
    }
    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 18px;
    }
    .page-about__grid {
        flex-direction: column;
        align-items: center;
    }
    .page-about__values-grid,
    .page-about__features-grid,
    .page-about__future-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-about {
        padding-top: 100px !important; /* Mobile: Adjust for fixed header */
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__section-title {
        font-size: 28px;
        padding-top: 30px;
    }
    .page-about__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-about__hero-intro-section {
        padding: 60px 0 40px;
    }
    .page-about__hero-title {
        font-size: 32px;
    }
    .page-about__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-about__cta-button {
        padding: 10px 25px;
        font-size: 16px;
    }
    .page-about__mission-vision-section,
    .page-about__values-section,
    .page-about__why-choose-us-section,
    .page-about__responsible-gaming-section,
    .page-about__future-outlook-section,
    .page-about__faq-section {
        padding: 40px 0;
    }
    .page-about__vision-card,
    .page-about__mission-card,
    .page-about__value-item,
    .page-about__feature-item,
    .page-about__future-item {
        padding: 25px;
    }
    .page-about__card-icon,
    .page-about__value-icon,
    .page-about__feature-icon,
    .page-about__future-icon {
        width: 70px;
        margin-bottom: 15px;
    }
    .page-about__card-title,
    .page-about__value-title,
    .page-about__feature-title,
    .page-about__future-title {
        font-size: 20px;
    }
    .page-about__card-text,
    .page-about__value-text,
    .page-about__feature-text,
    .page-about__future-text {
        font-size: 14px;
    }
    .page-about__responsible-gaming-content {
        padding: 25px;
    }
    .page-about__responsible-gaming-content p {
        font-size: 15px;
    }
    .page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-question h3 {
        font-size: 16px;
    }
    .page-about__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px !important;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-about img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}