/* style/about.css */
/* Custom Color Variables */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg-color: #111111;
    --background-color: #0A0A0A;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --header-offset: 122px; /* Default, will be overridden by shared.css */
}

/* Base styles for the about page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Using custom color variable */
    background-color: var(--background-color); /* Using custom color variable */
    padding-bottom: 50px; /* Adjust as needed */
}

/* Ensure contrast for text on various backgrounds */
.page-about h1, .page-about h2, .page-about h3, .page-about h4, .page-about h5, .page-about h6 {
    color: var(--glow-color); /* Headings use glow color */
}
.page-about p, .page-about li, .page-about span {
    color: var(--text-main); /* Paragraphs and list items use main text color */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image then text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
    background: var(--card-bg-color); /* Darker background for hero section */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* H1 font size clamp */
    font-weight: 700;
    color: var(--glow-color); /* Using glow color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.6);
}

.page-about__description {
    font-size: 1.1em;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
    color: #111111; /* Dark text for bright button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #FFE080 0%, #E6B02C 100%);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background: var(--card-bg-color); /* Dark background for secondary button */
    color: var(--glow-color); /* Glow color for text */
    border: 2px solid var(--glow-color); /* Glow color for border */
    box-shadow: 0 2px 10px rgba(255, 211, 107, 0.2);
}

.page-about__btn-secondary:hover {
    background: var(--glow-color); /* Hover to glow color background */
    color: #111111; /* Dark text on hover */
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
    transform: translateY(-2px);
}

/* General Section Styling */
.page-about__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--glow-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 50px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 5px rgba(255, 211, 107, 0.4);
}

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

.page-about__text-block {
    font-size: 1.05em;
    color: var(--text-main);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

.page-about__dark-section {
    background-color: var(--background-color); /* Dark background for sections */
    padding: 60px 0;
}

.page-about__introduction-section .page-about__text-block {
    margin-bottom: 30px;
}

.page-about__image-content-block {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-about__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    padding: 60px 0;
    background-color: var(--card-bg-color); /* Card background for this section */
}

.page-about__mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.page-about__mv-card {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color); /* Custom border color */
    background: var(--card-bg-color); /* Card BG */
    color: var(--text-main); /* Text Main */
}

.page-about__mv-card-title {
    font-size: 1.8em;
    color: var(--glow-color);
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 0 3px rgba(255, 211, 107, 0.3);
}

.page-about__mv-card-text {
    font-size: 1.0em;
    margin-bottom: 10px;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    padding: 60px 0;
}

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

.page-about__feature-item {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color); /* Custom border color */
    background: var(--card-bg-color); /* Card BG */
    color: var(--text-main); /* Text Main */
    text-align: center;
}

.page-about__feature-title {
    font-size: 1.6em;
    color: var(--glow-color);
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 0 3px rgba(255, 211, 107, 0.3);
}

.page-about__feature-text {
    font-size: 1.0em;
}

/* Values Section */
.page-about__values-section {
    padding: 60px 0;
    background-color: var(--card-bg-color); /* Card background for this section */
}

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

.page-about__value-item {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color); /* Custom border color */
    background: var(--card-bg-color); /* Card BG */
    color: var(--text-main); /* Text Main */
    text-align: center;
}

.page-about__value-title {
    font-size: 1.6em;
    color: var(--glow-color);
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 0 3px rgba(255, 211, 107, 0.3);
}

.page-about__value-text {
    font-size: 1.0em;
}

/* Team Section */
.page-about__team-section {
    padding: 60px 0;
}

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

.page-about__team-member {
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color); /* Custom border color */
    background: var(--card-bg-color); /* Card BG */
    color: var(--text-main); /* Text Main */
    text-align: center;
}

.page-about__team-image {
    width: 250px; /* Fixed width as per requirement */
    height: 350px; /* Fixed height as per requirement */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__team-name {
    font-size: 1.4em;
    color: var(--glow-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.page-about__team-role {
    font-size: 1.0em;
    color: #bbb; /* Slightly lighter for role */
    margin-bottom: 10px;
}

.page-about__team-description {
    font-size: 0.95em;
    color: var(--text-main);
}

/* History Section */
.page-about__history-section {
    padding: 60px 0;
    background-color: var(--card-bg-color); /* Card background for this section */
}

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

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

.page-about__timeline-item {
    padding: 10px 40px;
    position: relative;
    background: inherit;
    width: 50%;
    box-sizing: border-box;
}

.page-about__timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--glow-color);
    border: 4px solid var(--card-bg-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

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

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

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

.page-about__timeline-year {
    font-size: 1.5em;
    color: var(--glow-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.page-about__timeline-description {
    font-size: 1.0em;
    color: var(--text-main);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
    padding: 60px 0;
}

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

.page-about__rg-item {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color); /* Custom border color */
    background: var(--card-bg-color); /* Card BG */
    color: var(--text-main); /* Text Main */
    text-align: center;
}

.page-about__rg-title {
    font-size: 1.6em;
    color: var(--glow-color);
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 0 3px rgba(255, 211, 107, 0.3);
}

.page-about__rg-text {
    font-size: 1.0em;
}

/* Contact CTA Section */
.page-about__contact-cta-section {
    padding: 60px 0;
    background-color: var(--card-bg-color); /* Card background for this section */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-about__section-title {
        font-size: clamp(1.8em, 4vw, 2.5em);
    }
    .page-about__mv-grid,
    .page-about__features-grid,
    .page-about__values-list,
    .page-about__team-grid,
    .page-about__responsible-gaming-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .page-about__timeline::after {
        left: 30px;
    }
    .page-about__timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
        left: 0 !important;
    }
    .page-about__timeline-item::after {
        left: 20px !important;
        margin-left: 0;
    }
    .page-about__timeline-item:nth-child(even)::after {
        left: 20px !important;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px;
    }
    .page-about__hero-content {
        padding: 0 15px;
    }
    .page-about__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-about__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin-left: auto;
        margin-right: auto;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-about__cta-buttons--center {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin-left: auto;
        margin-right: auto;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 15px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 30px;
        padding-top: 30px;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__dark-section,
    .page-about__mission-vision-section,
    .page-about__why-choose-us,
    .page-about__values-section,
    .page-about__team-section,
    .page-about__history-section,
    .page-about__responsible-gaming,
    .page-about__contact-cta-section {
        padding: 40px 0;
    }

    /* Image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-about__hero-image-wrapper,
    .page-about__image-content-block,
    .page-about__team-member {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    .page-about__content-image,
    .page-about__team-image {
        width: 100%; /* Ensure images fill their container */
        height: auto;
        max-width: 100%;
    }
    .page-about__team-image {
        width: 200px; /* Adjust for mobile if 250px is too wide for some layouts */
        height: 280px; /* Maintain aspect ratio */
    }

    .page-about__mv-grid,
    .page-about__features-grid,
    .page-about__values-list,
    .page-about__team-grid,
    .page-about__responsible-gaming-grid {
        grid-template-columns: 1fr; /* Single column layout for most grids */
        gap: 20px;
    }

    .page-about__mv-card,
    .page-about__feature-item,
    .page-about__value-item,
    .page-about__team-member,
    .page-about__rg-item {
        padding: 20px;
    }
    .page-about__mv-card-title,
    .page-about__feature-title,
    .page-about__value-title,
    .page-about__rg-title {
        font-size: 1.4em;
    }

    .page-about__timeline::after {
        left: 20px;
    }
    .page-about__timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
        left: 0 !important;
    }
    .page-about__timeline-item::after {
        left: 10px !important;
        margin-left: 0;
    }
    .page-about__timeline-item:nth-child(even)::after {
        left: 10px !important;
    }
}