/* style/about.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.08);
    --border-color-dark-mode: rgba(255, 255, 255, 0.15);
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark-bg); /* Body background is dark #121212 */
    background-color: transparent; /* Inherit from body or shared */
}

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

.page-about__section-title {
    font-size: 38px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #3a0000 100%);
    overflow: hidden;
    min-height: 600px;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 40px;
}

.page-about__main-title {
    font-size: 56px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-about__hero-description {
    font-size: 20px;
    color: #f0f0f0;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: var(--primary-color);
    color: var(--text-color-light-bg);
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    white-space: nowrap;
}

.page-about__cta-button:hover {
    background: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.page-about__cta-button--secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-about__cta-button--secondary:hover {
    background: var(--primary-color);
    color: var(--text-color-light-bg);
    transform: translateY(-3px);
}

.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;
}

/* Vision & Mission Section */
.page-about__vision-mission-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.page-about__vision-mission-section .page-about__section-title {
    color: var(--primary-color);
}

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

.page-about__grid-item {
    background-color: var(--card-bg-dark-mode);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-color-dark-bg);
}

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

.page-about__grid-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #e0e0e0;
}

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

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

.page-about__feature-card {
    background-color: var(--card-bg-dark-mode);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color-dark-mode);
}

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

.page-about__feature-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
}

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

.page-about__feature-card p {
    font-size: 16px;
    color: #cccccc;
}

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

.page-about__journey-section .page-about__section-title {
    color: var(--primary-color);
}

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

.page-about__timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.page-about__timeline-item {
    padding: 10px 0;
    position: relative;
    width: 50%;
}

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

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

.page-about__timeline-year {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    width: 100px;
    z-index: 1;
}

.page-about__timeline-item:nth-child(odd) .page-about__timeline-year {
    right: -50px;
    text-align: center;
}

.page-about__timeline-item:nth-child(even) .page-about__timeline-year {
    left: -50px;
    text-align: center;
}

.page-about__timeline-year::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid #3a0000;
    z-index: 1;
}

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

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

.page-about__timeline-content {
    background-color: var(--card-bg-dark-mode);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color-dark-mode);
}

.page-about__timeline-content h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 10px;
}

.page-about__timeline-content p {
    font-size: 15px;
    color: #e0e0e0;
}

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

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

.page-about__responsible-item {
    background-color: var(--card-bg-dark-mode);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color-dark-mode);
}

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

.page-about__responsible-item p {
    font-size: 16px;
    color: #cccccc;
}

.page-about__responsible-cta {
    text-align: center;
    margin-top: 60px;
}

/* Fairness & Security Section */
.page-about__fairness-security-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.page-about__fairness-security-section .page-about__section-title {
    color: var(--primary-color);
}

.page-about__features-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.page-about__feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: var(--card-bg-dark-mode);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color-dark-mode);
}

.page-about__feature-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    object-fit: contain;
}

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

.page-about__feature-text p {
    font-size: 16px;
    color: #e0e0e0;
}

/* Call to Action Section */
.page-about__call-to-action-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 48px;
    }
    .page-about__hero-description {
        font-size: 18px;
    }
    .page-about__section-title {
        font-size: 32px;
    }
    .page-about__section-intro {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding: 80px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-about__main-title {
        font-size: 38px;
    }
    .page-about__hero-description {
        font-size: 16px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__cta-button {
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 14px 20px;
    }
    .page-about__section-title {
        font-size: 28px;
    }
    .page-about__section-intro {
        font-size: 15px;
        margin-bottom: 40px;
    }
    .page-about__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-about__grid,
    .page-about__features-grid,
    .page-about__responsible-content {
        grid-template-columns: 1fr;
    }

    .page-about__timeline::before {
        left: 15px;
    }

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

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

    .page-about__timeline-item:nth-child(even) {
        left: 0;
    }

    .page-about__timeline-year {
        left: 0;
        text-align: left;
        width: auto;
        padding-left: 15px;
    }

    .page-about__timeline-item:nth-child(odd) .page-about__timeline-year {
        right: auto;
    }

    .page-about__timeline-item:nth-child(even) .page-about__timeline-year {
        left: 0;
    }

    .page-about__timeline-year::after {
        left: 8px !important;
    }

    .page-about__feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .page-about__feature-icon {
        margin-bottom: 15px;
    }
    
    /* Mobile image and video overflow prevention */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__hero-image-wrapper, .page-about__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Adjust height to maintain aspect ratio */
        object-fit: cover;
    }
    .page-about__feature-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
    }
    .page-about__feature-icon {
        max-width: 60px !important;
        height: 60px !important;
        width: 60px !important;
    }

}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 32px;
    }
    .page-about__hero-description {
        font-size: 15px;
    }
    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-about__section-title {
        font-size: 24px;
    }
    .page-about__grid-title, .page-about__feature-title, .page-about__item-title {
        font-size: 20px;
    }
    .page-about__grid-item p, .page-about__feature-card p, .page-about__responsible-item p, .page-about__feature-text p {
        font-size: 14px;
    }
    .page-about__timeline-year {
        font-size: 20px;
    }
    .page-about__timeline-content h3 {
        font-size: 18px;
    }
    .page-about__timeline-content p {
        font-size: 14px;
    }
}