/* About Page */

/* ── Hero Banner ── */
.about-hero {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    background: url('/static/images/company.jpg') center / cover no-repeat;
    filter: blur(1px);
}

.about-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(1, 73, 144, 0.18);
}

.about-hero-inner {
    position: relative;
    z-index: 2;
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
}

.about-hero-title {
    display: inline-block;
    padding: 15px 150px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 38px;
    font-weight: 600;
    text-align: center;
    border-radius: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 12px 32px rgba(1, 73, 144, 0.25);
}

/* ── Section Title (shared) ── */
.about-section-title {
    text-align: left;
    color: var(--primary-color);
    font-size: 40px;
    position: relative;
    padding-left: 18px;
    margin-bottom: 20px;
}

.about-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 51%;
    transform: translateY(-50%);
    width: 4px;
    height: 40%;
    border-radius: 10px;
    background: var(--secondary-color);
}

/* ── Section 2: Purpose ── */
.about-purpose {
    padding-top: 100px;
}

.about-purpose-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: center;
}

.about-purpose-photo {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #dbe6f0;
    box-shadow: 0 8px 28px rgba(1, 73, 144, 0.08);
    min-height: 380px;
}

.about-purpose-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    max-height: 650px;
}

.about-purpose-content p {
    color: #3a4a53;
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-purpose-content p:first-of-type {
    font-size: 21px;
    color: #1a2e3f;
    font-weight: 500;
    border-top: 1px solid rgba(229, 24, 54, 0.12);
    padding-top: 18px;
}

.about-purpose-content p:last-child {
    margin-bottom: 0;
}

/* ── Section 3: Business Scope ── */
.about-scope-head {
    padding-bottom: 20px;
    background: #f8fafd;
}

.about-scope-main-title {
    color: var(--primary-color);
    font-size: 40px;
    margin-bottom: 10px;
}

.about-scope-head p {
    text-align: center;
    color: #3a4a53;
    font-size: 18px;
    max-width: 640px;
    margin: 0 auto;
}

.about-scope-part {
    padding: 60px 0;
    background: #ffffff;
}

.about-scope-part:nth-child(even) {
    background: #f8fafd;
}

.about-scope-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-scope-part--reverse .about-scope-grid {
    /* direction: rtl; */
}

.about-scope-part--reverse .about-scope-grid > * {
    direction: ltr;
}

.about-scope-photo {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #dbe6f0;
    box-shadow: 0 8px 28px rgba(1, 73, 144, 0.08);
    aspect-ratio: 4 / 3;
}

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

.about-scope-tag {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.about-scope-text h3 {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 14px;
    line-height: 1.3;
}

.about-scope-text p {
    color: #3a4a53;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-scope-text ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-scope-text ul li {
    position: relative;
    padding-left: 20px;
    color: #31475d;
    font-size: 17px;
    line-height: 1.6;
}

.about-scope-text ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--secondary-color);
}

/* ── Section 4: History Timeline (horizontal) ── */
.about-history {
    position: relative;
    padding: 60px 0 40px;
    overflow: hidden;
}

.about-history-bg {
    position: absolute;
    inset: 0;
    background: url('/static/images/company.jpg') center / cover no-repeat fixed;
}

.about-history-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(1, 40, 80, 0.72) 0%,
        rgba(1, 60, 110, 0.55) 45%,
        rgba(1, 40, 80, 0.75) 100%
    );
}

.about-history-inner {
    position: relative;
    z-index: 2;
}

.about-history-title {
    text-align: center;
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.about-timeline {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.about-timeline-track {
    --timeline-height: 560px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    min-height: var(--timeline-height);
    padding: 0 6px;
}

.about-timeline-item {
    flex: 1 1 0;
    min-width: 160px;
    max-width: 230px;
    position: relative;
    min-height: var(--timeline-height);
    padding-top: var(--step-offset);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.about-timeline-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Group 1: step up  →  Group 2: drop then step up */
.about-timeline-item[data-step="1"] { --step-offset: 220px; }
.about-timeline-item[data-step="2"] { --step-offset: 150px; }
.about-timeline-item[data-step="3"] { --step-offset: 80px; }
.about-timeline-item[data-step="4"] { --step-offset: 190px; }
.about-timeline-item[data-step="5"] { --step-offset: 120px; }
.about-timeline-item[data-step="6"] { --step-offset: 50px; }

.about-timeline-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.about-timeline-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-top: 3px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.about-timeline-line {
    position: absolute;
    left: 4px;
    top: calc(var(--step-offset) + 13px);
    bottom: 24px;
    width: 1px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.65) 0%,
        rgba(255, 255, 255, 0.35) 45%,
        rgba(255, 255, 255, 0.08) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}

.about-timeline-card {
    color: #ffffff;
    flex: 1;
    min-width: 0;
}

.about-timeline-period {
    display: block;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.about-timeline-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
    color: #fff;
    text-transform: uppercase;
    text-decoration: underline;
}

.about-timeline-card ul {
    list-style: disc;
    padding-left: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-timeline-card ul li {
    font-size: 13px;
    line-height: 1.55;
    opacity: 0.96;
    list-style: disc;
}

.about-timeline-card ul li::marker {
    color: rgba(255, 255, 255, 0.75);
    font-size: 10px;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .about-hero-title {
        font-size: 32px;
        padding: 14px 80px;
    }

    .about-purpose {
        padding-top: 80px;
    }

    .about-purpose-grid,
    .about-scope-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-scope-part--reverse .about-scope-grid {
        direction: ltr;
    }

    .about-purpose-photo {
        min-height: 280px;
    }

    .about-purpose-photo img {
        min-height: 280px;
    }

    .about-section-title,
    .about-scope-main-title {
        font-size: 32px;
    }

    .about-scope-text h3 {
        font-size: 24px;
    }

    .about-history-title {
        font-size: 34px;
        margin-bottom: 36px;
    }

    .about-timeline-track {
        --timeline-height: 500px;
        gap: 8px;
    }

    .about-timeline-item {
        min-width: 145px;
    }

    .about-timeline-item[data-step="1"] { --step-offset: 190px; }
    .about-timeline-item[data-step="2"] { --step-offset: 130px; }
    .about-timeline-item[data-step="3"] { --step-offset: 70px; }
    .about-timeline-item[data-step="4"] { --step-offset: 165px; }
    .about-timeline-item[data-step="5"] { --step-offset: 105px; }
    .about-timeline-item[data-step="6"] { --step-offset: 45px; }
}

@media (max-width: 767px) {
    .about-hero {
        min-height: 180px;
    }

    .about-hero-inner {
        bottom: -28px;
    }

    .about-hero-title {
        font-size: 23px;
        padding: 12px 30px;
        min-width: 180px;
    }

    .about-purpose {
        padding-top: 70px;
    }

    .about-section-title,
    .about-scope-main-title {
        font-size: 28px;
    }

    .about-purpose-content p,
    .about-scope-text p {
        font-size: 16px;
    }

    .about-scope-part {
        padding: 40px 0;
    }

    .about-history {
        padding: 50px 0 40px;
    }

    .about-history-bg {
        background-attachment: scroll;
    }

    .about-history-title {
        font-size: 28px;
        margin-bottom: 28px;
    }

    /* Vertical timeline on mobile */
    .about-timeline {
        overflow-x: visible;
        padding-bottom: 0;
    }

    .about-timeline-track {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        min-width: 0;
        gap: 0;
        padding-left: 24px;
        position: relative;
    }

    .about-timeline-track::before {
        content: "";
        position: absolute;
        left: 4px;
        top: 6px;
        bottom: 6px;
        width: 1px;
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.65) 0%,
            rgba(255, 255, 255, 0.35) 70%,
            rgba(255, 255, 255, 0) 100%
        );
    }

    .about-timeline-item {
        flex: none;
        min-width: 0;
        max-width: none;
        min-height: auto;
        padding-top: 0;
        padding-bottom: 36px;
    }

    .about-timeline-item:last-child {
        padding-bottom: 0;
    }

    .about-timeline-item[data-step="1"],
    .about-timeline-item[data-step="2"],
    .about-timeline-item[data-step="3"],
    .about-timeline-item[data-step="4"],
    .about-timeline-item[data-step="5"],
    .about-timeline-item[data-step="6"] {
        --step-offset: 0;
    }

    .about-timeline-head {
        position: relative;
        gap: 0;
        padding-left: 0;
    }

    .about-timeline-dot {
        position: absolute;
        left: -25px;
        top: 5px;
        margin: 0;
        z-index: 2;
    }

    .about-timeline-line {
        display: none;
    }

    .about-timeline-period {
        font-size: 15px;
    }

    .about-timeline-card h3 {
        font-size: 16px;
    }

    .about-timeline-card ul li {
        font-size: 13px;
    }
}
