/* 
 * Research Nester - About Page Styles (Aesthetic Green Theme)
 * Minimalistic Design with Background Colors
 */

/* Page Banner Styles */
.page-banner {
    background-color: var(--light-bg-color); 
    padding: var(--space-xxl) 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-banner h1 {
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    font-size: 2.8rem;
}

.page-banner p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* About Intro Section */
.about-intro {
    padding: var(--space-xxl) 0;
    background-color: white; 
}

.about-content {
    display: flex;
    align-items: center;
    gap: var(--space-xxl);
}

.about-text {
    flex: 1.2; /* More space for text */
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: var(--space-lg);
    font-size: 2.4rem; /* Slightly larger */
}

.about-text .lead {
    font-size: 1.25rem; /* Larger lead paragraph */
    color: var(--text-color);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.about-text p {
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.about-image {
    flex: 1;
    text-align: center; /* Center image if it's smaller */
}

.about-image img {
    width: 100%;
    max-width: 500px; /* Control max image size */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg); /* More prominent shadow */
}

/* Our History Section */
.our-history {
    background-color: var(--light-bg-color); 
    padding: var(--space-xxl) 0;
}

.timeline {
    position: relative;
    max-width: 900px; /* Slightly narrower for better focus */
    margin: 0 auto;
    padding: var(--space-xl) 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px; /* Thicker line */
    background-color: var(--primary-color);
    left: 30px; /* Adjust for icon placement */
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-xl);
    padding-left: 80px; /* More space for icon/year */
}
.timeline-item::before { /* Icon for timeline point */
    content: "\f111"; /* Font Awesome circle icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900; /* Solid icon */
    position: absolute;
    left: 22px; /* Centered on the line (30px - 16px/2) */
    top: 8px; /* Adjust vertical alignment */
    font-size: 1rem; /* Icon size */
    color: white;
    background-color: var(--primary-color);
    width: 16px; /* Circle size */
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1; /* Ensure icon is centered */
    z-index: 1;
    box-shadow: 0 0 0 4px var(--light-bg-color); /* Match background for cutout effect */
}
/* Different icons for different timeline points (optional, keep simple for minimalism) */
.timeline-item:nth-child(1)::before { content: "\f0c8"; } /* Foundation - fa-square, could be more abstract */
.timeline-item:nth-child(2)::before { content: "\f0ac"; } /* Global Expansion - fa-globe */
.timeline-item:nth-child(3)::before { content: "\f0eb"; } /* Research Innovation - fa-lightbulb */
.timeline-item:nth-child(4)::before { content: "\f108"; } /* Digital Transformation - fa-desktop */
.timeline-item:nth-child(5)::before { content: "\f005"; } /* Present Day - fa-star */



.timeline-year {
    position: absolute;
    left: -10px; /* Position year to the left of the icon */
    top: 3px; /* Align with icon */
    width: auto; /* Fit content */
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-color);
    background-color: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    z-index: 2; /* Above timeline line */
}

.timeline-content {
    background-color: white;
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md); /* Slightly more shadow */
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
    font-size: 1.2rem;
}

.timeline-content p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Our Values Section */
.our-values {
    background-color: var(--light-bg-color); 
    padding: var(--space-xxl) 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl); /* More gap */
}

.value-card {
    background-color: white;
    padding: var(--space-xl);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.value-card:hover {
    transform: translateY(-8px); /* More lift */
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 2.8rem; /* Larger icon */
    color: var(--primary-color);
    margin-bottom: var(--space-lg);
}

.value-card h3 {
    font-size: 1.4rem; /* Larger heading */
    margin-bottom: var(--space-md);
    color: var(--text-dark);
}

.value-card p {
    color: var(--text-light);
    font-size: 1rem; /* Slightly larger */
    line-height: 1.7;
}

/* Our Team Section */
.our-team {
    background-color: white; 
    padding: var(--space-xxl) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl); /* More gap */
}

.team-member {
    background-color: var(--light-bg-color); 
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.team-member:hover {
    transform: translateY(-8px); /* More lift */
    box-shadow: var(--shadow-md);
}

.member-image {
    height: 280px; /* Taller image */
    overflow: hidden;
}

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

.member-info {
    padding: var(--space-lg);
    text-align: center; /* Center align team info */
}

.member-info h3 {
    font-size: 1.3rem; /* Larger name */
    margin-bottom: var(--space-xs);
}

.member-role {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem; /* Slightly larger */
    margin-bottom: var(--space-md);
}

.member-bio {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.member-social {
    display: flex;
    gap: var(--space-md); /* More gap */
    justify-content: center; /* Center social icons */
}

.member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; /* Slightly larger */
    height: 38px;
    border-radius: 50%;
    background-color: white; 
    color: var(--primary-color);
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.member-social a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Our Methodology Section */
.our-methodology {
    background-color: var(--background-color); 
    padding: var(--space-xxl) 0;
}

.methodology-content {
    display: flex;
    align-items: center;
    gap: var(--space-xxl);
}

.methodology-text {
    flex: 1.2; /* More space for text */
}

.methodology-text h2 {
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    font-size: 2.4rem;
}

.methodology-text .lead {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.methodology-image {
    flex: 1;
    text-align: center;
}

.methodology-image img {
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.methodology-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.step {
    display: flex;
    align-items: flex-start; /* Align to top for multi-line text */
    gap: var(--space-lg);
    padding: var(--space-md) 0; /* Add some padding */
    border-bottom: 1px dashed var(--border-color); /* Subtle separator */
}
.step:last-child {
    border-bottom: none;
}


.step-number {
    font-size: 1.8rem; /* Smaller, but still prominent */
    font-weight: 700;
    color: var(--primary-color);
    min-width: 50px; /* Adjusted width */
    line-height: 1; /* Align with first line of text */
    margin-top: 0.2rem; /* Slight top margin */
}

.step-content h3 {
    font-size: 1.3rem; /* Larger heading */
    margin-bottom: var(--space-sm); /* More space */
}

.step-content p {
    color: var(--text-light);
    font-size: 1rem; /* Larger text */
    margin-bottom: 0;
    line-height: 1.7;
}

/* Global Presence Section */
.global-presence {
    background-color: white; 
    padding: var(--space-xxl) 0;
}

.global-map {
    margin: var(--space-xl) 0 var(--space-xxl); /* More space around map */
    text-align: center;
}

.global-map img {
    max-width: 80%; /* Slightly smaller map for more whitespace */
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl); /* More gap */
}

.office-card {
    background-color: var(--light-bg-color); 
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.office-card:hover {
    transform: translateY(-8px); /* More lift */
    box-shadow: var(--shadow-md);
}

.office-icon {
    font-size: 2.5rem; /* Larger icon */
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

.office-card h3 {
    font-size: 1.3rem; /* Larger heading */
    margin-bottom: var(--space-md);
    color: var(--text-dark);
}

.office-card p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1rem; /* Larger text */
}

/* Our Clients Section */
.our-clients {
    background-color: var(--background-color); 
    padding: var(--space-xxl) 0;
}

.clients-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* More flexible grid */
    gap: var(--space-xl); /* More gap */
    margin-top: var(--space-xl);
}

.client-logo {
    background-color: white;
    height: 100px; /* Slightly shorter */
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    padding: var(--space-sm); /* Add padding for logos */
    border: 1px solid var(--border-color);
}

.client-logo:hover {
    transform: scale(1.05) translateY(-3px); /* Combined effect */
    box-shadow: var(--shadow-md);
}

.client-logo img {
    max-width: 80%; /* Allow slightly larger logos */
    max-height: 80%;
    object-fit: contain;
    filter: grayscale(1); /* Keep grayscale for minimalism */
    opacity: 0.6; /* Slightly less opacity */
    transition: all var(--transition-normal);
}

.client-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Active Nav Item */
.nav-item a.active {
    color: var(--primary-color);
    font-weight: 600;
     /* border-bottom: 2px solid var(--primary-color); /* Consistent active indicator */
}

/* Responsive adjustments for the about page */
@media (max-width: 992px) {
    .about-content, 
    .methodology-content {
        flex-direction: column;
        gap: var(--space-xl);
    }
    .about-text, .methodology-text {
        flex: 1; /* Reset flex basis */
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid,
    .offices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
     .clients-logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .timeline:before {
        left: 15px; /* Adjust for smaller screens */
    }
    
    .timeline-item {
        padding-left: 50px; /* Adjust */
    }
    .timeline-item::before {
        left: 7px; /* Adjust icon */
        width: 16px;
        height: 16px;
        font-size: 1rem;
    }
    
    .timeline-year {
        position: relative; /* Stack year above content */
        left: auto;
        width: 100%;
        text-align: left;
        margin-bottom: var(--space-sm);
        background: transparent;
        box-shadow: none;
        padding: 0;
        font-size: 1.1rem;
        color: var(--secondary-color);
    }
    
    .clients-logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-banner h1 {
        font-size: 2.2rem;
    }
    .values-grid,
    .team-grid,
    .offices-grid {
        grid-template-columns: 1fr; /* Single column for smaller tablets */
    }
}

@media (max-width: 576px) {
    .values-grid,
    .team-grid,
    .offices-grid {
        grid-template-columns: 1fr;
    }
    .clients-logo-grid {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 columns even on small mobile for logos */
        gap: var(--space-md);
    }
    .page-banner h1 {
        font-size: 2rem;
    }
    .page-banner p {
        font-size: 1.1rem;
    }
    .about-text h2, .methodology-text h2 {
        font-size: 2rem;
    }
}