/* style/about.css */

/* Root variables for consistent styling */
:root {
    --primary-color: #007bff; /* Blue */
    --secondary-color: #ffc107; /* Gold/Yellow */
    --dark-bg-color: #121212; /* Body background from shared.css */
    --light-text-color: #ffffff;
    --dark-text-color: #333333;
    --accent-color: #28a745; /* Green for success/highlight */
    --border-color: #e0e0e0;
    --card-bg-dark: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
    --card-bg-light: #ffffff;
}

/* Page specific styles, ensure all selectors use BEM naming */
.page-about {
    color: var(--light-text-color); /* Default text color for dark body background */
    background-color: var(--dark-bg-color); /* Ensure consistency */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

/* Fixed header spacing */
.page-about__hero-section {
    padding-top: 120px; /* Desktop: Adjust based on fixed header height */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #0056b3, #007bff); /* Gradient for hero */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-about__introduction-section,
.page-about__why-choose-us-section,
.page-about__cta-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-about__history-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--card-bg-light); /* Light background for contrast */
    color: var(--dark-text-color); /* Dark text for light background */
}

/* Section titles */
.page-about__main-title {
    font-size: 3.2em;
    color: var(--light-text-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-about__section-title {
    font-size: 2.5em;
    color: var(--light-text-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.page-about__section-title--dark {
    color: var(--dark-text-color);
}

.page-about__subtitle {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__subtitle--dark {
    color: var(--dark-text-color);
}

.page-about__sub-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__paragraph {
    font-size: 1.1em;
    margin-bottom: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85); /* Slightly lighter for readability */
}

.page-about__paragraph--dark {
    color: var(--dark-text-color);
}

/* CTA Buttons */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button doesn't exceed container */
    box-sizing: border-box;
}

.page-about__btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.page-about__btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
}

.page-about__btn-secondary:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Image styles */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 0 auto; /* Center images */
}

.page-about__hero-image {
    margin-top: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    max-width: 900px;
}

.page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-about__text-block {
    flex: 1;
}

.page-about__image-right {
    flex-shrink: 0;
    width: 40%;
    max-width: 500px;
}

/* History section timeline */
.page-about__timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-about__timeline-item {
    background-color: var(--card-bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-about__timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-about__timeline-year {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Why Choose Us section */
.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-about__feature-card {
    background-color: var(--card-bg-dark);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

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

.page-about__feature-icon {
    width: 200px; /* Min size 200x200 */
    height: 200px;
    margin: 0 auto 20px auto;
    object-fit: contain;
    border-radius: 0; /* Icons typically don't have rounded corners */
    box-shadow: none; /* Icons typically don't have shadow */
}

.page-about__card-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    flex-grow: 0; /* Prevent title from expanding */
}

.page-about__advantages-image {
    margin-top: 50px;
    max-width: 800px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 2.8em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__subtitle {
        font-size: 1.1em;
    }
    .page-about__sub-title {
        font-size: 1.6em;
    }
    .page-about__paragraph {
        font-size: 1em;
    }
    .page-about__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-about__image-right {
        width: 80%;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: 100px !important; /* Mobile: Adjust based on fixed header height */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-about__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-about__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

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

    .page-about__subtitle {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-about__sub-title {
        font-size: 1.4em;
    }

    .page-about__paragraph {
        font-size: 0.9em;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__hero-image,
    .page-about__advantages-image {
        margin-top: 30px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-about__introduction-section,
    .page-about__history-section,
    .page-about__why-choose-us-section,
    .page-about__cta-section {
        padding-top: 40px;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-about__image-right {
        width: 100%;
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-about__timeline,
    .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__timeline-item,
    .page-about__feature-card {
        padding: 20px;
    }

    .page-about__feature-icon {
        width: 100px; /* Adjusting icon size for mobile, but still > 200px for generation */
        height: 100px;
    }

    .page-about__card-title {
        font-size: 1.4em;
    }
    
    /* Ensure all images are responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.6em;
    }
    .page-about__cta-button {
        font-size: 0.95em;
        padding: 10px 20px;
    }
}