/* About Us page — Techmagnate reference layout */

.about-page .tm-breadcrumb li + li::before {
    content: '>';
}

/* Hero */
.about-hero {
    background: linear-gradient(135deg, #0570AE 0%, #0570AE 55%, #023B5E 100%);
    padding: 3.75rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 60%, rgba(255,255,255,.1) 0%, transparent 45%),
                radial-gradient(circle at 85% 25%, rgba(5, 112, 174,.15) 0%, transparent 40%);
    pointer-events: none;
}

.about-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2.5rem;
    align-items: center;
}

.about-hero-text h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.about-hero-text p {
    color: rgba(255,255,255,.92);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 1.75rem;
}

.about-hero-text .hero-sub {
    font-size: .95rem;
    opacity: .88;
    margin-top: -.75rem;
    margin-bottom: 1.5rem;
}

.btn-about-enquire {
    background: #fff;
    color: #0570AE;
    padding: .8rem 1.85rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: all .2s;
}

.btn-about-enquire:hover {
    background: #C3C3C3;
    color: #023B5E;
    transform: translateY(-2px);
}

.about-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-hero-visual img,
.about-hero-visual .page-hero-img {
    width: auto;
    max-width: min(300px, 100%);
    max-height: 220px;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    margin: 0 auto;
}

/* Page wrap */
.about-page-wrap {
    background: #ffffff;
}

.about-section {
    padding: 4rem 0;
}

.about-section--alt {
    background: #fff;
}

.about-section-title {
    font-size: clamp(1.65rem, 3.5vw, 2.15rem);
    font-weight: 800;
    color: #023B5E;
    margin-bottom: 1.25rem;
    line-height: 1.25;
}

.about-section-lead {
    font-size: 1.05rem;
    color: #767B79;
    line-height: 1.75;
    max-width: 900px;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-intro-grid img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(6,33,62,.12);
    object-fit: cover;
    max-height: 360px;
}

/* Vision & Mission */
.about-vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.about-vm-card {
    display: flex;
    gap: 1.35rem;
    background: #ffffff;
    color: #023B5E;
    border: 1px solid #C3C3C3;
    border-radius: 20px;
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.about-vm-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 5px; height: 100%;
    background: linear-gradient(180deg, #023B5E, #0570AE);
}

.about-vm-card::after {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    background: rgba(5, 112, 174, .06);
    border-radius: 50%;
}

.about-vm-card:hover {
    transform: translateY(-6px);
    border-color: #0570AE;
    box-shadow: 0 18px 44px rgba(2, 59, 94, .12);
}

.about-vm-card .vm-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, #023B5E, #0570AE);
    box-shadow: 0 10px 24px rgba(5, 112, 174, .28);
    position: relative;
    z-index: 1;
}

.about-vm-card--mission .vm-icon {
    background: linear-gradient(135deg, #0570AE, #023B5E);
}

.about-vm-card .vm-body {
    position: relative;
    z-index: 1;
}

.about-vm-card .vm-label {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #0570AE;
    margin-bottom: .4rem;
}

.about-vm-card .vm-title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 .6rem;
    color: #023B5E;
}

.about-vm-card p {
    font-size: .98rem;
    line-height: 1.65;
    margin: 0;
    color: #767B79;
    position: relative;
    z-index: 1;
}

/* Core values */
.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.about-value-card {
    background: #fff;
    border: 1px solid #C3C3C3;
    border-radius: 14px;
    padding: 1.5rem;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

.about-value-card:hover {
    border-color: #C3C3C3;
    box-shadow: 0 10px 32px rgba(11,92,171,.1);
    transform: translateY(-3px);
}

.about-value-card .value-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff, #C3C3C3);
    color: #0570AE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: .85rem;
}

.about-value-card h4 {
    font-size: .98rem;
    font-weight: 700;
    color: #023B5E;
    margin-bottom: .45rem;
}

.about-value-card p {
    font-size: .88rem;
    color: #767B79;
    margin: 0;
    line-height: 1.6;
}

/* Clients first */
.about-clients-section {
    background: linear-gradient(135deg, #023B5E 0%, #0570AE 100%);
    color: #fff;
    padding: 4rem 0;
}

.about-clients-section .about-section-title {
    color: #fff;
}

.about-clients-section .about-section-lead {
    color: rgba(255,255,255,.88);
}

.about-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.about-stat-box {
    text-align: center;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    padding: 2rem 1.25rem;
    backdrop-filter: blur(4px);
}

.about-stat-box .num {
    font-size: 2.5rem;
    font-weight: 800;
    color: #C3C3C3;
    line-height: 1;
    margin-bottom: .5rem;
}

.about-stat-box .lbl {
    font-size: .95rem;
    color: rgba(255,255,255,.9);
    font-weight: 600;
    margin: 0;
}

/* History timeline — alternating vertical */
.about-timeline {
    position: relative;
    margin: 3rem auto 0;
    max-width: 1000px;
    padding: 1rem 0;
}

/* center vertical line */
.about-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: linear-gradient(180deg, #023B5E, #0570AE, #C3C3C3);
    border-radius: 3px;
}

.about-tl-item {
    position: relative;
    width: 50%;
    padding: 0 2.75rem 2.5rem;
    box-sizing: border-box;
}

.about-tl-item.is-left {
    left: 0;
    text-align: right;
}

.about-tl-item.is-right {
    left: 50%;
    text-align: left;
}

/* marker on the center line */
.about-tl-marker {
    position: absolute;
    top: 4px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #023B5E, #0570AE);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    box-shadow: 0 6px 16px rgba(2, 59, 94, .3);
    border: 3px solid #fff;
    z-index: 2;
}

.about-tl-item.is-left .about-tl-marker {
    right: -20px;
}

.about-tl-item.is-right .about-tl-marker {
    left: -20px;
}

.about-tl-card {
    position: relative;
    background: #fff;
    border: 1px solid #C3C3C3;
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 8px 26px rgba(2, 59, 94, .07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.about-tl-card:hover {
    transform: translateY(-4px);
    border-color: #0570AE;
    box-shadow: 0 16px 40px rgba(2, 59, 94, .12);
}

.about-tl-year {
    display: inline-block;
    font-size: .95rem;
    font-weight: 800;
    color: #fff;
    background: #0570AE;
    padding: .25rem .85rem;
    border-radius: 50px;
    margin-bottom: .85rem;
}

.about-tl-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-tl-card li {
    position: relative;
    font-size: .9rem;
    color: #767B79;
    line-height: 1.55;
    padding-left: 1.35rem;
    margin-bottom: .5rem;
    text-align: left;
}

.about-tl-card li:last-child {
    margin-bottom: 0;
}

.about-tl-card li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: .7rem;
    color: #0570AE;
    position: absolute;
    left: 0;
    top: 3px;
}

@media (max-width: 767px) {
    .about-timeline::before {
        left: 20px;
    }

    .about-tl-item,
    .about-tl-item.is-left,
    .about-tl-item.is-right {
        width: 100%;
        left: 0;
        text-align: left;
        padding: 0 0 2rem 3.25rem;
    }

    .about-tl-item.is-left .about-tl-marker,
    .about-tl-item.is-right .about-tl-marker {
        left: 0;
        right: auto;
    }
}

/* Awards */
.about-awards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.about-award-card {
    background: #fff;
    border: 1px solid #C3C3C3;
    border-left: 4px solid #0570AE;
    border-radius: 0 12px 12px 0;
    padding: 1.35rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: box-shadow .2s;
}

.about-award-card:hover {
    box-shadow: 0 8px 28px rgba(11,92,171,.1);
}

.about-award-card .award-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, #C3C3C3);
    color: #023B5E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.about-award-card strong {
    display: block;
    font-size: .95rem;
    color: #023B5E;
    margin-bottom: .25rem;
}

.about-award-card span {
    font-size: .85rem;
    color: #767B79;
}

/* Leadership */
.about-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.about-team-card {
    background: #fff;
    border: 1px solid #C3C3C3;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    transition: box-shadow .2s, transform .2s;
}

.about-team-card:hover {
    box-shadow: 0 12px 36px rgba(6,33,62,.1);
    transform: translateY(-4px);
}

.about-team-card .team-photo {
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff, #C3C3C3);
}

.about-team-card .team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-team-card .team-body {
    padding: 1.25rem 1rem 1.5rem;
}

.about-team-card h4 {
    font-size: .95rem;
    font-weight: 700;
    color: #023B5E;
    margin-bottom: .25rem;
}

.about-team-card p {
    font-size: .8rem;
    color: #767B79;
    margin: 0;
}

.about-founder-block {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    background: #fff;
    border: 1px solid #C3C3C3;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.about-founder-block .founder-photo {
    border-radius: 14px;
    overflow: hidden;
    height: 300px;
}

.about-founder-block .founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-founder-block h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #023B5E;
    margin-bottom: .25rem;
}

.about-founder-block .founder-role {
    font-size: .88rem;
    font-weight: 700;
    color: #0570AE;
    margin-bottom: 1rem;
}

.about-founder-block p {
    font-size: .92rem;
    color: #767B79;
    line-height: 1.7;
    margin-bottom: .75rem;
}

/* Office presence */
.about-presence-section {
    background: #ffffff;
    padding: 4rem 0;
}

.about-presence-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.about-presence-tab {
    border: 1px solid #C3C3C3;
    background: #fff;
    padding: .55rem 1.25rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    color: #767B79;
    cursor: pointer;
    transition: all .2s;
}

.about-presence-tab.active,
.about-presence-tab:hover {
    background: #023B5E;
    color: #C3C3C3;
    border-color: #023B5E;
}

.about-presence-panel {
    display: none;
    background: #fff;
    border: 1px solid #C3C3C3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(6,33,62,.08);
}

.about-presence-panel.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.about-presence-panel .presence-img img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.about-presence-panel .presence-body {
    padding: 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-presence-panel .presence-label {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #0570AE;
    margin-bottom: .5rem;
}

.about-presence-panel h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #023B5E;
    margin-bottom: 1rem;
}

.about-presence-panel p {
    font-size: .95rem;
    color: #767B79;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.about-presence-panel .presence-contact a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #0570AE;
    font-weight: 600;
    text-decoration: none;
    font-size: .92rem;
    margin-right: 1.25rem;
}

.about-presence-panel .presence-contact a:hover {
    text-decoration: underline;
}

/* Job alert */
.about-job-alert {
    background: #ffffff;
    border: 1px solid #C3C3C3;
    border-radius: 14px;
    padding: 2rem 2.25rem;
    margin-top: 0;
}

.about-job-alert h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #023B5E;
    margin-bottom: 1rem;
}

.about-job-alert p,
.about-job-alert li {
    font-size: .9rem;
    color: #023B5E;
    line-height: 1.65;
}

.about-job-alert ul {
    margin: .75rem 0 0;
    padding-left: 1.25rem;
}

.about-job-alert li {
    margin-bottom: .4rem;
}

/* Responsive */
@media (max-width: 991px) {
    .about-hero-inner,
    .about-intro-grid,
    .about-vm-grid,
    .about-presence-panel.active {
        grid-template-columns: 1fr;
    }

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

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

    .about-founder-block {
        grid-template-columns: 1fr;
    }

    .about-founder-block .founder-photo {
        height: 260px;
    }
}

@media (max-width: 576px) {
    .about-values-grid,
    .about-stats-row,
    .about-awards-grid,
    .about-team-grid {
        grid-template-columns: 1fr;
    }

    .about-section {
        padding: 2.75rem 0;
    }

    .about-hero-visual img,
    .about-intro-grid img,
    .about-founder-block .founder-photo img,
    .about-presence-panel .presence-img img {
        max-height: none;
        height: auto;
    }
}
