/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    color: #ffffff; /* Light text on dark body background */
    background-color: transparent; /* Inherit from body */
    line-height: 1.6;
    font-family: Arial, sans-serif;
    padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

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

.page-about__section-title {
    font-size: 2.8em;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-transform: uppercase;
}

.page-about__section-title--light {
    color: #ffffff;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0; /* Adjusted padding */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Ensure hero section has a minimum height */
}

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

.page-about__hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for text readability */
    border-radius: 10px;
}

.page-about__hero-title {
    font-size: 3.5em;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

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

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

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

.page-about__button--primary {
    background-color: #FFD700;
    color: #1A1A1A;
}

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

.page-about__button--secondary {
    background-color: #1A1A1A;
    color: #FFD700;
    border: 2px solid #FFD700;
}

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

.page-about__button--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Mission & Vision Section */
.page-about__mission-vision {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background */
}

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

.page-about__card {
    background-color: #1A1A1A; /* Dark grey card background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__card-image {
    width: 250px; /* Ensuring minimum size for card images */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-about__card-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card-text {
    font-size: 1em;
    color: #cccccc;
}

/* Core Values Section */
.page-about__core-values {
    padding: 80px 0;
    background-color: #000000;
}

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

.page-about__value-item {
    background-color: #1A1A1A;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__value-icon {
    width: 200px; /* Ensuring minimum size for value icons */
    height: auto;
    object-fit: cover;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-about__value-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__value-description {
    font-size: 0.95em;
    color: #cccccc;
}

/* Join Us Section */
.page-about__join-us {
    padding: 100px 0;
    background: linear-gradient(45deg, #1A1A1A, #333333); /* Gradient dark background */
    text-align: center;
}

.page-about__join-us-content {
    max-width: 800px;
}

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

/* Animation for sections */
.page-about__mission-vision,
.page-about__core-values,
.page-about__join-us {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-about {
        padding-top: var(--header-offset, 80px); /* Adjust padding for mobile header */
    }

    .page-about__hero-section {
        min-height: 400px;
        padding: 60px 0;
    }

    .page-about__hero-title {
        font-size: 2.5em;
    }

    .page-about__hero-description {
        font-size: 1.1em;
    }

    .page-about__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__button {
        width: 80%;
        margin: 0 auto;
    }

    .page-about__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-about__mission-vision,
    .page-about__core-values,
    .page-about__join-us {
        padding: 60px 0;
    }

    /* Mobile image constraint */
    .page-about img {
        max-width: 100%;
        height: auto;
    }

    .page-about__card-image,
    .page-about__value-icon {
        width: 100%; /* Allow images to scale down */
        height: auto;
        min-width: 200px; /* Maintain minimum width */
        min-height: 200px; /* Maintain minimum height */
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 2em;
    }

    .page-about__hero-description {
        font-size: 1em;
    }

    .page-about__button {
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-about__section-title {
        font-size: 1.8em;
    }
}