/* style/about.css */

/* Variables for colors and spacing */
:root {
    --page-about-primary-color: #1A2A4A;
    --page-about-secondary-color: #FFD700;
    --page-about-text-light: #F0F2F5; /* Light grey for text on dark backgrounds */
    --page-about-text-dark: #333333; /* Dark grey for text on light backgrounds */
    --page-about-spacing-xl: 80px;
    --page-about-spacing-lg: 60px;
    --page-about-spacing-md: 40px;
    --page-about-spacing-sm: 20px;
    --page-about-border-radius: 8px;
}

.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-about-text-dark); /* Default text color for light sections */
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--page-about-spacing-sm);
}

.page-about__container--flex {
    display: flex;
    align-items: center;
    gap: var(--page-about-spacing-lg);
}

.page-about__container--reverse {
    flex-direction: row-reverse;
}

.page-about__hero {
    background-color: var(--page-about-primary-color);
    background-image: linear-gradient(135deg, var(--page-about-primary-color) 0%, #3a4d70 100%); /* Subtle gradient */
    color: var(--page-about-text-light);
    padding: var(--page-about-spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* Make it a subtle background */
    z-index: 0;
}

.page-about__hero .page-about__container {
    position: relative;
    z-index: 1;
}

.page-about__title {
    font-size: 3.2em;
    margin-bottom: var(--page-about-spacing-sm);
    font-weight: bold;
    color: var(--page-about-secondary-color); /* Gold for main title */
}

.page-about__subtitle {
    font-size: 1.4em;
    margin-bottom: var(--page-about-spacing-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--page-about-border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
    border: 2px solid transparent;
}

.page-about__btn--primary {
    background-color: var(--page-about-secondary-color);
    color: var(--page-about-primary-color);
    border-color: var(--page-about-secondary-color);
}

.page-about__btn--primary:hover {
    background-color: #e6c200; /* Slightly darker gold */
    color: var(--page-about-primary-color);
}

.page-about__btn--secondary {
    background-color: transparent;
    color: var(--page-about-secondary-color);
    border-color: var(--page-about-secondary-color);
    margin-left: var(--page-about-spacing-sm);
}

.page-about__btn--secondary:hover {
    background-color: var(--page-about-secondary-color);
    color: var(--page-about-primary-color);
}


.page-about__section {
    padding: var(--page-about-spacing-xl) 0;
    background-color: #ffffff;
}

.page-about__section:nth-of-type(even) {
    background-color: #f9f9f9;
}

.page-about__section--mission,
.page-about__section--vision,
.page-about__section--team {
    background-color: #ffffff;
}

.page-about__section--mission .page-about__container--flex,
.page-about__section--vision .page-about__container--flex,
.page-about__section--team .page-about__container--flex {
    align-items: flex-start; /* Align content to top for better readability */
}

.page-about__heading {
    font-size: 2.2em;
    color: var(--page-about-primary-color);
    margin-bottom: var(--page-about-spacing-md);
    font-weight: bold;
}

.page-about__heading--center {
    text-align: center;
}

.page-about__text {
    font-size: 1.1em;
    color: var(--page-about-text-dark);
    margin-bottom: var(--page-about-spacing-sm);
}

.page-about__text strong {
    color: var(--page-about-primary-color);
}

.page-about__text--center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__content {
    flex: 1;
    min-width: 0; /* Allow content to shrink */
}

.page-about__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: var(--page-about-border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--page-about-spacing-md);
    margin-top: var(--page-about-spacing-lg);
}

.page-about__value-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: var(--page-about-border-radius);
    padding: var(--page-about-spacing-md);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-about__value-icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--page-about-spacing-sm);
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1));
}

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

.page-about__value-text {
    font-size: 0.95em;
    color: var(--page-about-text-dark);
}

.page-about__section--cta {
    background-color: var(--page-about-primary-color);
    color: var(--page-about-text-light);
    text-align: center;
    padding: var(--page-about-spacing-xl) 0;
}

.page-about__section--cta .page-about__heading {
    color: var(--page-about-secondary-color);
    margin-bottom: var(--page-about-spacing-sm);
}

.page-about__section--cta .page-about__text {
    color: var(--page-about-text-light);
    margin-bottom: var(--page-about-spacing-md);
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--page-about-spacing-sm);
    flex-wrap: wrap;
}

/* Animation for sections */
.page-about .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page-about .fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-about__container--flex {
        flex-direction: column;
    }
    .page-about__container--reverse {
        flex-direction: column; /* Revert order for smaller screens */
    }
    .page-about__title {
        font-size: 2.8em;
    }
    .page-about__heading {
        font-size: 2em;
    }
    .page-about__section {
        padding: var(--page-about-spacing-lg) 0;
    }
}

@media (max-width: 768px) {
    .page-about__title {
        font-size: 2.4em;
    }
    .page-about__subtitle {
        font-size: 1.2em;
    }
    .page-about__heading {
        font-size: 1.8em;
    }
    .page-about__values-grid {
        grid-template-columns: 1fr;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-about__btn--secondary {
        margin-left: 0;
        margin-top: var(--page-about-spacing-sm);
    }
}

@media (max-width: 480px) {
    .page-about__title {
        font-size: 2em;
    }
    .page-about__subtitle {
        font-size: 1em;
    }
    .page-about__heading {
        font-size: 1.6em;
    }
    .page-about__btn {
        padding: 10px 20px;
        font-size: 1em;
    }
    .page-about__spacing-sm {
        padding: 15px;
    }
}