/* style/about.css */

/* Base styles for the about page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Inherited from shared, but for clarity */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-about__section-title--centered {
    text-align: center;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Slightly lighter white for body text */
}

.page-about__text-block--centered {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background: linear-gradient(135deg, #CC0000, #8A0000); /* Brand red gradient */
    color: #ffffff;
    overflow: hidden;
    padding-bottom: 60px; /* Ensure space below content */
}

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

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for main title */
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #f0f0f0;
    line-height: 1.5;
}

.page-about__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
}

/* Buttons */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__cta-buttons--centered {
    margin-left: auto;
    margin-right: auto;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding doesn't push it out */
    text-align: center;
}

.page-about__btn-primary {
    background-color: #FFD700; /* Gold button */
    color: #CC0000; /* Dark red text */
    border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
    background-color: #CC0000;
    color: #FFD700;
    border-color: #CC0000;
}

.page-about__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-about__btn-secondary:hover {
    background-color: #FFD700;
    color: #CC0000;
}

/* Introduction Section */
.page-about__introduction-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #f0f0f0;
}

/* Mission, Vision, Values Section */
.page-about__mission-vision-values-section {
    padding: 80px 0;
    background-color: #CC0000; /* Brand red background */
    color: #ffffff;
}

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

.page-about__card {
    background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white card background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #ffffff; /* White text on card */
}

.page-about__card-title {
    font-size: 1.8em;
    color: #FFD700; /* Gold for card titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card-text {
    font-size: 1.05em;
    line-height: 1.7;
    color: #f0f0f0;
}

.page-about__value-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.page-about__value-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #f0f0f0;
}

.page-about__value-list strong {
    color: #FFD700;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    padding: 80px 0;
    background-color: #121212; /* Dark background */
    color: #f0f0f0;
}

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

.page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.08); /* Darker card background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-about__feature-icon {
    width: 200px; /* Minimum size */
    height: 200px; /* Minimum size */
    object-fit: cover; /* Use cover to fill space */
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-about__feature-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__feature-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Video Section */
.page-about__video-section {
    padding: 80px 0;
    background-color: #8A0000; /* Darker red background */
    color: #ffffff;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Apply header offset here if body doesn't have it */
}

.page-about__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
}

/* Team Section */
.page-about__team-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

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

.page-about__team-member {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.page-about__team-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #FFD700;
}

.page-about__team-name {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 5px;
    font-weight: bold;
}

.page-about__team-role {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.page-about__team-bio {
    font-size: 0.95em;
    color: #cccccc;
}

/* History Section */
.page-about__history-section {
    padding: 80px 0;
    background-color: #CC0000;
    color: #ffffff;
}

.page-about__timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 20px 0;
}

.page-about__timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #FFD700;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: 0;
}

.page-about__timeline-item {
    padding: 10px 0;
    position: relative;
    width: 50%;
    margin-bottom: 50px;
    z-index: 1;
}

.page-about__timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

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

.page-about__timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #FFD700;
    border: 4px solid #ffffff;
    top: 15px;
    z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::after {
    right: -10px;
}

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

.page-about__timeline-year {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-about__timeline-title {
    font-size: 1.3em;
    color: #ffffff;
    margin-bottom: 5px;
}

.page-about__timeline-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding: 80px 0;
    background-color: #121212;
    color: #f0f0f0;
}

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

.page-about__responsible-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.page-about__responsible-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__responsible-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: #CC0000;
    color: #ffffff;
}

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

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.page-about__faq-title {
    font-size: 1.2em;
    color: #FFD700;
    margin: 0;
    font-weight: bold;
}

.page-about__faq-toggle {
    font-size: 1.8em;
    color: #FFD700;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'X' or minus sign */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 15px 25px 20px;
}

.page-about__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #f0f0f0;
}

/* Call to Action Bottom Section */
.page-about__cta-bottom-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    text-align: center;
    color: #ffffff;
}

.page-about__cta-content {
    max-width: 800px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__hero-description {
        font-size: 1.2em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
    }

    .page-about__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-about__text-block {
        font-size: 1em;
    }

    .page-about__card-grid,
    .page-about__feature-grid,
    .page-about__team-grid,
    .page-about__responsible-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !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;
    }

    .page-about__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-about__video-wrapper {
        margin: 20px auto;
        padding-bottom: 56.25% !important; /* Ensure aspect ratio */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__timeline::before {
        left: 15px; /* Adjust timeline line position */
    }

    .page-about__timeline-item {
        width: 100%;
        padding-left: 40px;
        padding-right: 15px;
        text-align: left;
    }

    .page-about__timeline-item:nth-child(odd),
    .page-about__timeline-item:nth-child(even) {
        left: 0;
        padding-right: 15px; /* Reset padding */
        padding-left: 40px; /* Consistent left padding */
        text-align: left;
    }

    .page-about__timeline-item::after {
        left: 5px; /* Adjust dot position */
    }
    .page-about__timeline-item:nth-child(odd)::after {
        right: auto; /* Reset right */
        left: 5px; /* Consistent left */
    }
    .page-about__timeline-item:nth-child(even)::after {
        left: 5px; /* Consistent left */
    }

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

    .page-about__faq-title {
        font-size: 1.1em;
    }

    .page-about__faq-answer {
        padding: 0 20px;
    }

    .page-about__faq-item.active .page-about__faq-answer {
        padding: 10px 20px 15px;
    }

    .page-about__feature-icon,
    .page-about__team-image {
        width: 100%;
        max-width: 250px; /* Keep a reasonable max-width for smaller screens */
        height: auto;
        min-width: unset;
        min-height: unset;
    }
}

/* Color Contrast Safeguards */
.page-about__dark-bg {
  color: #ffffff; /* Deep dark background, use white text */
}

.page-about__light-bg {
  color: #333333; /* Light background, use dark text */
}

.page-about__dark-section {
  background: #CC0000;
  color: #ffffff;
}
.page-about__introduction-section {
    background-color: #1a1a1a; /* Dark background */
    color: #f0f0f0; /* Light text */
}
.page-about__why-choose-us-section {
    background-color: #121212; /* Dark background */
    color: #f0f0f0; /* Light text */
}
.page-about__team-section {
    background-color: #1a1a1a; /* Dark background */
    color: #f0f0f0; /* Light text */
}
.page-about__responsible-gaming-section {
    background-color: #121212; /* Dark background */
    color: #f0f0f0; /* Light text */
}