/* style/about.css */

/* Variables for consistent styling */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #1E90FF; /* Deep Blue */
    --text-dark: #333333; /* Dark text for light backgrounds */
    --text-light: #FFFFFF; /* Light text for dark backgrounds */
    --background-light: #F8F8F8; /* Light background */
    --background-medium: #EFEFEF; /* Medium light background */
    --border-color: #E0E0E0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
}

/* General Page Styling */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff; /* White background for main content */
}

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

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

.page-about-section:nth-of-type(even) {
    background-color: var(--background-light); /* Alternate section background */
}

.page-about-heading {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 1px 1px 2px var(--shadow-light);
}

.page-about-title {
    font-size: 3.5em;
    color: var(--text-light); /* White text on dark/blue background */
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px var(--shadow-medium);
}

.page-about-description {
    font-size: 1.2em;
    color: var(--text-light); /* White text on dark/blue background */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about p {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark); /* Ensure high contrast for body text */
}

/* CTA Buttons */
.page-about .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color); /* Gold button */
    color: var(--text-dark); /* Dark text for gold button */
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-light);
    border: none;
}

.page-about .cta-button:hover {
    background: #FFC107; /* Slightly darker gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-medium);
    color: var(--text-dark);
}

.page-about .secondary-button {
    background: var(--secondary-color); /* Deep blue button */
    color: var(--text-light); /* Light text for blue button */
}

.page-about .secondary-button:hover {
    background: #107FC9; /* Slightly darker blue on hover */
    color: var(--text-light);
}

/* Hero Section */
.page-about-hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px; /* Adjust padding for better spacing */
    background: linear-gradient(135deg, #FFD700, #1E90FF); /* Gradient background for visual appeal */
}

.page-about .hero-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above potential overlays */
}

.page-about .hero-image {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    object-fit: cover; /* Cover the area, crop if needed */
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px var(--shadow-medium);
    display: block; /* Ensure img behaves as a block element */
}

.page-about .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 20px; /* Add some padding around content */
}

/* Introduction Section - Values */
.page-about-introduction .page-about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-about-introduction .value-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-about-introduction .value-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.page-about-introduction .value-item h3 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-top: 20px;
    margin-bottom: 15px;
}

.page-about-introduction .value-item p {
    font-size: 1em;
    color: var(--text-dark);
    line-height: 1.7;
}

.page-about-introduction .value-icon {
    width: 100px; /* Ensure icons are large enough */
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* History Section - Timeline */
.page-about-history {
    background-color: var(--background-medium);
}

.page-about-history .page-about-timeline {
    position: relative;
    margin: 50px auto;
    padding: 0 20px;
    max-width: 900px;
}

.page-about-history .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-history .timeline-item {
    padding: 10px 0;
    position: relative;
    width: 50%;
}

.page-about-history .timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
    text-align: right;
}

.page-about-history .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
    text-align: left;
}

.page-about-history .timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

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

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

.page-about-history .timeline-year {
    position: absolute;
    top: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    z-index: 1;
}

.page-about-history .timeline-item:nth-child(odd) .timeline-year {
    right: 0;
    transform: translateX(calc(100% + 15px));
}

.page-about-history .timeline-item:nth-child(even) .timeline-year {
    left: 0;
    transform: translateX(calc(-100% - 15px));
}

.page-about-history .timeline-content {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--shadow-light);
    position: relative;
    border: 1px solid var(--border-color);
}

.page-about-history .timeline-content h3 {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-about-history .timeline-content p {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.page-about-history .timeline-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 5px;
    margin-top: 15px;
    box-shadow: 0 2px 8px var(--shadow-light);
}

/* Why Choose Section - Features Grid */
.page-about-why-choose .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-about-why-choose .feature-card {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-about-why-choose .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.page-about-why-choose .feature-card h3 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-top: 20px;
    margin-bottom: 15px;
}

.page-about-why-choose .feature-card p {
    font-size: 1em;
    color: var(--text-dark);
    line-height: 1.7;
}

.page-about-why-choose .feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Responsible Gaming Section */
.page-about-responsible-gaming {
    background-color: var(--background-light);
}

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

.page-about-responsible-gaming .rg-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-about-responsible-gaming .rg-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.page-about-responsible-gaming .rg-item h3 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-top: 20px;
    margin-bottom: 15px;
}

.page-about-responsible-gaming .rg-item p {
    font-size: 1em;
    color: var(--text-dark);
    line-height: 1.7;
}

.page-about-responsible-gaming .rg-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Future Vision Section */
.page-about-future {
    background-color: #FFFFFF;
}

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

.page-about-future .future-vision-list li {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-about-future .future-vision-list li:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.page-about-future .future-vision-list li h4 {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-top: 15px;
    margin-bottom: 10px;
}

.page-about-future .future-vision-list li p {
    font-size: 1em;
    color: var(--text-dark);
    line-height: 1.7;
}

.page-about-future .vision-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* FAQ Section */
.page-about-faq {
    background-color: var(--background-medium);
}

.page-about-faq .faq-list {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.page-about-faq .faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.page-about-faq .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-about-faq .faq-question:hover {
    background: var(--background-light);
}

.page-about-faq .faq-question h3 {
    font-size: 1.25em;
    color: var(--text-dark);
    margin: 0;
    flex-grow: 1;
}

.page-about-faq .faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.page-about-faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #f9f9f9;
    color: var(--text-dark);
}

.page-about-faq .faq-answer p {
    margin: 0;
    padding-bottom: 20px;
    font-size: 1em;
    line-height: 1.7;
}

.page-about-faq .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding: 20px 25px;
    transition: max-height 0.4s ease-in, padding 0.4s ease-in;
}

.page-about-faq .faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about-heading {
        font-size: 2em;
    }
    .page-about-title {
        font-size: 2.8em;
    }
    .page-about-description {
        font-size: 1.1em;
    }

    .page-about-history .page-about-timeline::before {
        left: 20px;
        margin-left: 0;
    }
    .page-about-history .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        left: 0;
        text-align: left;
    }
    .page-about-history .timeline-item:nth-child(odd)::before,
    .page-about-history .timeline-item:nth-child(even)::before {
        left: 10px;
        right: auto;
    }
    .page-about-history .timeline-item:nth-child(odd) .timeline-year,
    .page-about-history .timeline-item:nth-child(even) .timeline-year {
        position: relative;
        left: 0;
        transform: none;
        margin-bottom: 10px;
        display: block;
        text-align: left;
        padding-left: 50px;
        top: auto;
    }
}

@media (max-width: 768px) {
    .page-about-section {
        padding: 40px 0;
    }
    .page-about-container {
        padding: 15px;
    }
    .page-about-heading {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-about-title {
        font-size: 2.2em;
    }
    .page-about-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-about p {
        font-size: 0.95em;
    }
    .page-about .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }

    .page-about-introduction .page-about-values,
    .page-about-why-choose .features-grid,
    .page-about-responsible-gaming .responsible-gaming-grid,
    .page-about-future .future-vision-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about-introduction .value-item,
    .page-about-why-choose .feature-card,
    .page-about-responsible-gaming .rg-item,
    .page-about-future .future-vision-list li {
        padding: 25px;
    }

    .page-about-history .timeline-content {
        padding: 20px;
    }

    .page-about-faq .faq-question {
        padding: 15px 20px;
    }
    .page-about-faq .faq-question h3 {
        font-size: 1.1em;
    }
    .page-about-faq .faq-toggle {
        font-size: 1.5em;
    }
    .page-about-faq .faq-answer {
        padding: 0 20px;
    }
    .page-about-faq .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-about-hero {
        padding: 60px 15px;
    }
    .page-about-title {
        font-size: 1.8em;
    }
    .page-about-heading {
        font-size: 1.6em;
    }
    .page-about-description {
        font-size: 0.95em;
    }
    .page-about .hero-image {
        max-height: 300px;
    }
    .page-about-history .timeline-image {
        height: 200px;
    }
    .page-about-introduction .value-icon,
    .page-about-why-choose .feature-icon,
    .page-about-responsible-gaming .rg-icon,
    .page-about-future .vision-icon {
        width: 80px;
        height: 80px;
    }
}