﻿/* This forces the very bottom layer of the site to match your content */
html, body {
    background-color: #f8fafc !important;
    margin: 0;
    padding: 0;
}

/* ========================= PAGE ========================= */
.about-main-content {
    min-height: calc(100vh - 80px);
    background-color: #f8fafc !important;
    padding-bottom: 0px;
    padding: 32px 0 48px;
    overflow-x: hidden;
}

/* ========================= LAYOUT ========================= */
.about-container {
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 430px) minmax(0, 1fr);
    gap: 36px;
    align-items: stretch;
}

.about-robot-panel {
    min-height: 760px;
    width: 100%;
    max-width: 430px; /* lock robot column width */
    border-radius: 24px;
    background-image: url('/images/Unknown-15.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    align-self: start; /* stop vertical stretching */
    justify-self: center; /* keep robot centered in its column */
    flex-shrink: 0;
}

.about-content-panel {
    min-width: 0;
}

/* ========================= HEADER ========================= */
.about-header {
    margin-bottom: 28px;
}

.page-title {
    margin: 0 0 12px;
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 1.08;
    font-weight: 900;
    color: #0f172a;
}

.page-subtitle {
    margin: 0;
    max-width: 900px;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.8;
    color: #64748b;
}

/* ========================= INNER SHELL ========================= */
.about-shell {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    min-width: 0;
}

/* ========================= TIMELINE NAV ========================= */
.timeline-nav {
    position: relative;
    padding: 12px 0;
    min-width: 0;
}

.timeline-line {
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 26px;
    width: 3px;
    background: #dbe3ec;
    border-radius: 999px;
}

.timeline-item {
    position: relative;
    z-index: 1;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0 0 30px;
    display: grid;
    grid-template-columns: 52px auto;
    column-gap: 18px;
    align-items: center;
    text-align: start;
    cursor: pointer;
}

    .timeline-item:last-child {
        margin-bottom: 0;
    }

.timeline-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
    box-shadow: 0 0 0 8px #f8fafc;
}

.timeline-label {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    white-space: nowrap;
}

.timeline-item.active .timeline-icon {
    background: #4A6FA5;
    color: #fff;
    transform: scale(1.03);
}

.timeline-item.active .timeline-label {
    color: #1e3a5f;
}

/* ========================= CONTENT AREA ========================= */
.timeline-content-area {
    min-width: 0;
    position: relative;
}

.timeline-content {
    display: none;
    width: 100%;
    min-height: 300px;
    background: #d9e1eb;
    border-radius: 24px;
    padding: clamp(22px, 3vw, 36px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    overflow-wrap: anywhere;
}

    .timeline-content.active {
        display: block;
    }

    /* little pointer */
    .timeline-content::before {
        content: "";
        position: absolute;
        top: 34px;
        left: -12px;
        width: 24px;
        height: 24px;
        background: #d9e1eb;
        transform: rotate(45deg);
        border-radius: 4px;
    }

    /* ========================= TEXT ========================= */
    .timeline-content p {
        margin: 0 0 16px;
        font-size: 1.1rem;
        line-height: 1.95;
        color: #1e293b;
    }

        .timeline-content p:last-child {
            margin-bottom: 0;
        }

.content-center {
    text-align: center;
}

/* ========================= TEAM ========================= */
.team-list {
    display: grid;
    gap: 14px;
    margin: 22px 0;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.42);
    border-radius: 16px;
    padding: 12px 14px;
}

.team-member-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.team-member-text {
    min-width: 0;
}

    .team-member-text h4 {
        margin: 0 0 4px;
        font-size: 1rem;
        line-height: 1.4;
        font-weight: 800;
        color: #0f172a;
    }

    .team-member-text p {
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.7;
        color: #475569;
    }

/* ========================= HIGHLIGHT ========================= */
.mission-highlight {
    margin: 22px 0;
    padding: 18px 20px;
    border-inline-start: 4px solid #6b87b6;
    background: rgba(255, 255, 255, 0.36);
    border-radius: 14px;
}

    .mission-highlight p {
        margin: 0;
    }

/* ========================= RTL SUPPORT ========================= */
html[dir="rtl"] .about-container {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
}

html[dir="rtl"] .about-robot-panel {
    order: 2;
}

html[dir="rtl"] .about-content-panel {
    order: 1;
}

html[dir="rtl"] .about-header,
html[dir="rtl"] .page-title,
html[dir="rtl"] .page-subtitle {
    text-align: center;
}

html[dir="rtl"] .about-shell {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
}

html[dir="rtl"] .timeline-nav {
    order: 2;
}

html[dir="rtl"] .timeline-content-area {
    order: 1;
}

html[dir="rtl"] .timeline-line {
    left: auto;
    right: 26px;
}

html[dir="rtl"] .timeline-item {
    grid-template-columns: auto 52px;
    justify-content: start;
    text-align: right;
    html [dir="rtl"] .timeline-icon


{
    box-shadow: 0 0 0 8px #f8fafc;
}

html[dir="rtl"] .timeline-content::before {
    left: auto;
    right: -12px;
    /* If it still looks slightly off, ensure the rotation is correct */
    transform: rotate(45deg);
}

html[dir="rtl"] .team-member {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .team-member-text {
    text-align: right;
}

html[dir="rtl"] .mission-highlight {
    border-inline-start: none;
    border-inline-end: 4px solid #6b87b6;
}

html[dir="rtl"] .content-center {
    text-align: center;
}

/* ========================= LARGE SCREENS ========================= */
@media (min-width: 1500px) {
    .about-container {
        width: min(1500px, calc(100% - 60px));
    }

    .about-robot-panel {
        min-height: 820px;
    }
}

/* ========================= TABLET ========================= */
@media (max-width: 1200px) {
    .about-container {
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 24px;
    }

    html[dir="rtl"] .about-container {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .about-shell {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 20px;
    }

    html[dir="rtl"] .about-shell {
        grid-template-columns: 1fr minmax(220px, 300px);
    }

    .timeline-label {
        font-size: 1.15rem;
    }

    .timeline-content p {
        font-size: 1rem;
    }
}

/* ========================= MOBILE / SMALL TABLET ========================= */
@media (max-width: 992px) {
    .about-main-content {
        padding-top: 20px;
    }

    .about-container {
        width: min(100%, calc(100% - 24px));
        grid-template-columns: 1fr;
        gap: 24px;
    }

    html[dir="rtl"] .about-container {
        grid-template-columns: 1fr;
    }

    .about-robot-panel {
        min-height: 340px;
        max-height: 420px;
        order: 1;
        background-position: center center;
        background-size: contain;
    }

    .about-content-panel {
        order: 2;
    }

    html[dir="rtl"] .about-robot-panel,
    html[dir="rtl"] .about-content-panel {
        order: initial;
    }

    .about-header {
        text-align: center;
        margin-bottom: 22px;
    }

    .about-shell {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    html[dir="rtl"] .about-shell {
        grid-template-columns: 1fr;
    }

    .timeline-nav {
        display: grid;
        gap: 12px 0;
        padding: 0;
    }

    .timeline-line {
        display: none;
    }

    .timeline-item,
    html[dir="rtl"] .timeline-item {
        grid-template-columns: 52px minmax(0, 1fr);
        text-align: start;
        margin-bottom: 0;
        padding: 8px 0;
    }

    html[dir="rtl"] .timeline-item {
        grid-template-columns: minmax(0, 1fr) 52px;
        text-align: end;
    }

    .timeline-icon {
        box-shadow: none;
    }

    .timeline-content {
        min-height: auto;
        padding: 22px 18px;
        border-radius: 20px;
    }

        .timeline-content::before {
            display: none;
        }

    .team-member,
    html[dir="rtl"] .team-member {
        align-items: flex-start;
    }
}

/* ========================= VERY SMALL MOBILE ========================= */
@media (max-width: 576px) {
    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .timeline-label {
        font-size: 1rem;
    }

    .timeline-content p {
        font-size: 0.98rem;
        line-height: 1.85;
    }

    .team-member {
        gap: 10px;
        padding: 10px 12px;
    }

    .team-member-photo {
        width: 54px;
        height: 54px;
    }

    .team-member-text h4 {
        font-size: 0.95rem;
    }

    .team-member-text p {
        font-size: 0.9rem;
    }
}



