/* =================================================================
   About Page Stylesheet
   - Aligned with the home-page palette: black + light green
   ================================================================= */

:root {
    --abcl-black: #0f172a;
    --abcl-black-deep: #020617;
    --abcl-light-green: #d4f0d4;
    --abcl-light-green-soft: #e6f4e8;
    --abcl-green-accent: #86efac;
}

/* --- General Section Styling --- */
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

/* --- Hero Section — animated tech background --- */
.about-hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--abcl-light-green);
    background: linear-gradient(135deg, #0f172a 0%, #112d1f 45%, #0f3a25 100%);
    background-size: 200% 200%;
    animation: about-bg-shift 18s ease-in-out infinite;
    padding: 2rem 0;
    overflow: hidden;
}
@keyframes about-bg-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 240, 212, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 240, 212, 0.07) 1px, transparent 1px);
    background-size: 44px 44px, 44px 44px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: rgba(212, 240, 212, 0.9);
}

.hero-button {
    background-color: var(--abcl-light-green);
    color: var(--abcl-black);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--abcl-light-green);
    text-decoration: none;
}

.hero-button:hover {
    background-color: transparent;
    color: var(--abcl-light-green);
    transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
    .about-hero { animation: none; }
}

/* --- Overview Section --- */
.overview-section {
    padding: 5rem 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media(min-width: 992px) {
    .overview-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.overview-text .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.overview-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.overview-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* --- Mission, Vision & Goal Section --- */
.values-section {
    padding: 5rem 0;
    background-color: var(--off-white);
}

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.purpose-card {
    background-color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.purpose-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.purpose-icon {
    font-size: 1.8rem;
    color: var(--abcl-light-green);
    background: var(--abcl-black);
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.purpose-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.purpose-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* --- Timeline Section --- */
.timeline-section {
    padding: 5rem 0;
}

.timeline-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media(min-width: 768px) {
    .timeline-wrapper {
        grid-template-columns: 1fr 1fr;
    }
    .timeline-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        height: 100%;
        width: 3px;
        background-color: var(--border-color);
    }
    .timeline-item:nth-child(odd) {
        padding-right: 3rem;
        text-align: right;
    }
    .timeline-item:nth-child(even) {
        padding-left: 3rem;
    }
    .timeline-item:nth-child(odd) .timeline-year::after {
        right: -39px;
    }
    .timeline-item:nth-child(even) .timeline-year::after {
        left: -39px;
    }
}

.timeline-item {
    position: relative;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--abcl-black);
    margin-bottom: 0.5rem;
    position: relative;
}

.timeline-year::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-color: var(--abcl-light-green);
    border: 3px solid var(--abcl-black);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content h5 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.timeline-content p {
    color: #6c757d;
    margin: 0;
}

/* --- Meet Our Leadership Section (Final Redesign) --- */
.leadership-section-final {
    padding: 5rem 0;
    background-color: var(--off-white);
}

.team-grid-final {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-card-final {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card-final:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.team-photo-final {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    border: 5px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.team-name-final {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--text-color);
}

.team-designation-final {
    color: var(--abcl-black);
    background: var(--abcl-light-green);
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.team-bio-final {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
    min-height: 85px; /* Ensures consistent card height */
}

.team-socials-final a {
    color: #adb5bd;
    margin: 0 0.6rem;
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.3s;
}

.team-socials-final a:hover {
    color: var(--abcl-black);
    transform: scale(1.1);
}


/* --- Final CTA Section --- */
.final-cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #112d1f 50%, #0f3a25 100%);
    color: var(--abcl-light-green);
    padding: 5rem 0;
    text-align: center;
}

.final-cta-section h2 {
    font-size: 2.2rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: #ffffff;
}

.cta-button-light {
    background-color: var(--abcl-light-green);
    color: var(--abcl-black);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid var(--abcl-light-green);
}

.cta-button-light:hover {
    background-color: transparent;
    color: var(--abcl-light-green);
    transform: scale(1.05);
}


/* --- Responsive Adjustments --- */
@media (max-width: 1199px) {
    .team-grid-final {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
    
    .team-grid-final {
        grid-template-columns: 1fr;
    }

    .team-bio-final {
        min-height: auto; /* Remove fixed height on mobile */
    }
}