/* style/about.css */

.page-about {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for PC */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: #000000; /* Dark background for hero to make text pop */
    color: #ffffff; /* Light text on dark hero background */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly dim the background image */
    z-index: 0;
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FCBC45; /* Emphasize title with login button color */
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-about__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-about__hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-about__hero-button--register {
    background-color: #FCBC45; /* Login button color for register CTA */
    color: #000000; /* Dark text on light background */
    border: 2px solid #FCBC45;
}

.page-about__hero-button--register:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
}

.page-about__hero-button--login {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-about__hero-button--login:hover {
    background-color: #ffffff;
    color: #000000;
}


/* Story Section */
.page-about__story-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-about__story-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 60px;
    color: #000000;
}

.page-about__story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__story-text p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #333333;
}

.page-about__story-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

/* Values Section */
.page-about__values-section {
    padding: 80px 0;
    background-color: #f5f5f5; /* Slightly different background for visual separation */
}

.page-about__values-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 60px;
    color: #000000;
}

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

.page-about__value-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-about__value-card:hover {
    transform: translateY(-5px);
}

.page-about__value-icon {
    width: 100%; /* Occupy card main visual area */
    height: auto;
    max-width: 400px; /* Max width for consistency */
    display: block;
    margin: 0 auto 25px auto;
    border-radius: 5px;
    object-fit: cover;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

.page-about__value-heading {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #000000;
}

.page-about__value-description {
    font-size: 1em;
    color: #555555;
}

/* CTA Section */
.page-about__cta-section {
    padding: 80px 0;
    background-color: #000000; /* Dark background for CTA */
    color: #ffffff;
    text-align: center;
}

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

.page-about__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FCBC45;
}

.page-about__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin: 0 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-about__cta-button--register {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-about__cta-button--register:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
}

.page-about__cta-button--download {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-about__cta-button--download:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Animation for JS */
.page-about__story-section,
.page-about__values-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page-about__story-section--visible,
.page-about__values-section--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__story-title,
    .page-about__values-title,
    .page-about__cta-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-about {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
    }
    .page-about__hero-section {
        padding: 60px 15px;
    }
    .page-about__hero-title {
        font-size: 2.5em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__story-grid {
        grid-template-columns: 1fr;
    }
    .page-about__story-section,
    .page-about__values-section,
    .page-about__cta-section {
        padding: 60px 0;
    }
    .page-about__values-grid {
        grid-template-columns: 1fr;
    }
    .page-about__value-icon {
        max-width: 250px; /* Adjust max-width for smaller screens */
    }
    .page-about__cta-title {
        font-size: 2.2em;
    }
    .page-about__cta-button {
        margin: 10px 0;
    }
    /* Ensure images are responsive and do not overflow */
    .page-about img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 2em;
    }
    .page-about__story-title,
    .page-about__values-title,
    .page-about__cta-title {
        font-size: 1.8em;
    }
    .page-about__hero-button,
    .page-about__cta-button {
        width: 100%;
        box-sizing: border-box;
    }
}