/* About Us page specific styles */

.about-intro-section,
.our-values-section,
.team-section,
.certificates-section {
    padding: 60px 0;
    text-align: center;
}

.our-values-section {
    background-color: var(--complementary-color-lighter);
}

.team-section {
    background-color: var(--complementary-color-light);
}

.certificates-section {
    background-color: var(--complementary-color-lighter);
}

.about-heading,
.values-heading,
.team-heading,
.certificates-heading {
    margin-bottom: 10px;
    color: var(--text-color);
}

.about-subheading,
.values-subheading,
.team-subheading,
.certificates-subheading {
    margin-bottom: 40px;
    color: #666;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About intro content */
.about-intro-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 90%;
    margin: 0 auto;
}

.about-intro-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-intro-text {
    text-align: left;
}

.about-intro-text p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.about-intro-text p:last-child {
    margin-bottom: 0;
}

/* Values section */
.values-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 90%;
    margin: 0 auto;
}

.value-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.value-icon {
    margin-bottom: 20px;
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
}

.value-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon img {
    transform: scale(1.05);
}

.value-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color-dark);
}

.value-card p {
    color: #555;
    line-height: 1.6;
}

/* Team section */
.team-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 90%;
    margin: 0 auto;
}

.team-member {
    background-color: white;
    border-radius: 8px;
    padding-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.member-image {
    height: 250px;
    overflow: hidden;
    margin-bottom: 20px;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.member-position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.member-description {
    padding: 0 20px;
    color: #555;
    line-height: 1.6;
}

/* Certificates section */
.certificates-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 90%;
    margin: 0 auto;
}

.certificate {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.certificate img {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.certificate p {
    font-weight: 500;
    color: var(--text-color);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .about-intro-content {
        flex-direction: row;
        align-items: center;
    }

    .about-intro-image {
        flex: 1;
    }

    .about-intro-text {
        flex: 1;
        padding-left: 30px;
    }

    .values-container,
    .team-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .certificates-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    /* Modified for 3 values and 3 team members */
    .values-container,
    .team-container {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }

    /* Keep certificates as 4 columns for symmetry */
    .certificates-container {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
    }

    .about-intro-content {
        max-width: 1200px;
    }
}

/* Add enhanced spacing for 3-column layout */
@media (min-width: 1200px) {
    .values-container,
    .team-container {
        column-gap: 40px; /* Increased gap for better spacing with 3 columns */
    }
    
    .value-card,
    .team-member {
        padding: 35px 30px; /* Slightly larger padding for better proportions */
    }
}
