/* style/about.css */

/* Ensure content starts below the fixed header */
.page-about {
    padding-top: var(--header-offset, 120px); /* Desktop default */
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set background for content */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px; /* General padding for the hero content */
    min-height: 600px;
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF; /* Light text for dark background */
}

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

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container */
    opacity: 0.4; /* Slightly dim the image for text readability */
    display: block;
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-about__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FCBC45; /* Login button color for emphasis */
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #FFFFFF;
}

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

.page-about__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, transform 0.2s ease;
    min-width: 200px; /* Ensure buttons are not too small */
    text-align: center;
}

.page-about__button--primary {
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for primary button */
    border: 2px solid #FCBC45;
}

.page-about__button--primary:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

.page-about__button--secondary {
    background-color: transparent;
    color: #FFFFFF; /* Register button color for secondary */
    border: 2px solid #FFFFFF;
}

.page-about__button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

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

.page-about__story-section .page-about__container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-about__story-content {
    flex: 1;
}

.page-about__story-image-container {
    flex: 1;
    min-width: 400px; /* Ensure image container is not too small */
}

.page-about__story-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure no extra space below image */
}

.page-about__story-title,
.page-about__why-choose-us-title,
.page-about__cta-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #000000; /* Main text color */
}

.page-about__story-content h2 {
    text-align: left; /* Override center for content H2 */
}

.page-about__story-text {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
}

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

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

.page-about__feature-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.page-about__feature-icon {
    width: 200px; /* Minimum size enforced */
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-about__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #000000;
}

.page-about__feature-description {
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
}

/* Call to Action Section */
.page-about__cta-section {
    padding: 80px 0;
    background-color: #000000; /* Dark background */
    color: #FFFFFF; /* Light text */
    text-align: center;
}

.page-about__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__hero-title {
        font-size: 2.5em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__story-section .page-about__container {
        flex-direction: column;
    }
    .page-about__story-image-container {
        min-width: unset; /* Remove min-width on smaller screens */
        width: 100%;
        max-width: 600px; /* Constrain max width for image on smaller screens */
    }
    .page-about__story-content {
        order: 2; /* Content after image on mobile */
    }
    .page-about__story-image-container {
        order: 1; /* Image before content on mobile */
    }
    .page-about__story-title {
        text-align: center; /* Center align for mobile */
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding: 60px 15px;
        min-height: 500px;
    }
    .page-about__hero-title {
        font-size: 2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__button {
        width: 100%;
        max-width: 300px;
    }

    .page-about__story-section,
    .page-about__why-choose-us-section,
    .page-about__cta-section {
        padding: 60px 0;
    }

    .page-about__story-title,
    .page-about__why-choose-us-title,
    .page-about__cta-title {
        font-size: 2em;
    }

    /* Enforce min-width for all images in content area */
    .page-about img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    /* Specific check for feature icons, ensuring they are not too small */
    .page-about__feature-icon {
        width: 200px; /* Maintain minimum size */
        height: auto;
    }
    /* Ensure story image also respects min-width if it becomes too small */
    .page-about__story-image {
        min-width: 200px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__story-title,
    .page-about__why-choose-us-title,
    .page-about__cta-title {
        font-size: 1.8em;
    }
    .page-about__feature-title {
        font-size: 1.3em;
    }
}