/*
01. Page layout and photo heading
02. Titles and tabs
03. Editor content
04. History timeline
05. Shared button
06. Board table
07. Responsive layout
*/

/* 01. Page layout and photo heading */
.about-page {
    --about-green: #07512c;
    --about-red: #a50022;
    color: #293b36;
    background: #fff;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.9;
}

.about-page *,
.about-page *::before,
.about-page *::after {
    box-sizing: border-box;
}

.about-wrap {
    width: calc(100% - 64px);
    max-width: 1140px;
    margin: 0 auto;
}

.about-head {
    position: relative;
    display: grid;
    min-height: 230px;
    padding: 32px 0;
    overflow: hidden;
    isolation: isolate;
    place-items: center;
    background: #f6f7fb;
    text-align: center;
}

.about-photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center 44%;
}

.about-head::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .95) 35%, #fff 50%, rgba(255, 255, 255, .95) 65%, rgba(255, 255, 255, .2));
    content: "";
}

.about-heading {
    margin: 0;
    color: var(--about-green);
    font-size: clamp(30px, 3.5vw, 42px);
    font-weight: 900;
    line-height: 1.5;
}

.about-body {
    padding: 36px 0 16px;
}

.about-panel {
    min-width: 0;
    margin-bottom: 56px;
    scroll-margin-top: 120px;
}

.about-panel[hidden] {
    display: none;
}

/* 02. Titles and tabs */
.about-title {
    margin: 0 0 28px;
    color: var(--about-green);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.5;
    text-align: center;
}

.about-title::after {
    display: block;
    width: 52px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 4px;
    background: #528b24;
    content: "";
}

.about-title span {
    color: var(--about-red);
}

.about-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.about-page .about-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 24px;
    border: 1px solid #dce7df;
    border-radius: 30px;
    color: var(--about-green);
    background: #f4f7f4;
    font-size: .9rem;
    font-weight: 750;
    line-height: 1.7;
    text-align: center;
    text-decoration: none;
}

.about-page .about-tab:hover {
    background: #eaf2eb;
}

.about-page .about-tab[aria-selected="true"] {
    border-color: transparent;
    color: #352610;
    background: var(--accent-orange, #ffa628);
}

.about-tab:focus-visible,
.about-btn:focus-visible {
    outline: 3px solid #528b24;
    outline-offset: 4px;
}

/* 03. Editor content */
.about-text {
    overflow-wrap: anywhere;
}

.about-text p {
    margin: 0 0 16px;
}

.about-text h2,
.about-text h3 {
    margin: 28px 0 16px;
    color: var(--about-green);
    font-weight: 850;
    line-height: 1.7;
}

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

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

.about-text a {
    color: var(--about-green);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.about-text img,
.about-text video,
.about-text iframe {
    max-width: 100%;
}

.about-text img {
    height: auto;
}

.about-text ul,
.about-text ol {
    margin: 18px 0;
    padding-right: 24px;
}

.about-text ul {
    list-style: disc;
}

.about-text li {
    margin: 8px 0;
    list-style: inherit;
    line-height: 1.9;
}

.about-text li::marker {
    color: #528b24;
}

.about-after {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #e7eeea;
}

/* Legacy curved timeline; scoped to the About history section only. */
.about-page #About .about-history-title {
    margin-top: 40px;
}

.about-page #About .main-timeline {
    position: relative;
    padding: 20px 0;
}

.about-page #About .main-timeline::before,
.about-page #About .main-timeline::after {
    position: absolute;
    top: -15px;
    left: 50%;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 10px solid #303334;
    border-radius: 50%;
    background: #e7e7e7;
    content: "";
    transform: translateX(-50%);
}

.about-page #About .main-timeline::after {
    top: auto;
    bottom: 15px;
}

.about-page #About .main-timeline .timeline {
    position: relative;
    z-index: 1;
    margin-top: -30px;
    padding: 35px 0;
}

.about-page #About .main-timeline .timeline::before,
.about-page #About .main-timeline .timeline::after {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 50%;
    height: 100%;
    border: 15px solid var(--brand-green);
    border-right: 0;
    border-radius: 100px 0 0 100px;
    content: "";
}

.about-page #About .main-timeline .timeline::after {
    top: 15px;
    left: 12px;
    width: calc(50% - 12px);
    height: calc(100% - 30px);
}

.about-page #About .main-timeline .timeline-content {
    padding: 20px;
}

.about-page #About .main-timeline .timeline-year {
    display: block;
    padding: 30px;
    color: var(--brand-green);
    font-size: 30px;
    font-weight: 600;
    text-align: left;
}

.about-page #About .main-timeline .timeline-img {
    padding: 30px;
}

.about-page #About .main-timeline .timeline-img img {
    height: 100px;
}

.about-page #About .main-timeline .content {
    padding: 20px;
    color: #909090;
}

.about-page #About .main-timeline .title {
    margin: 0 0 5px;
    color: var(--brand-green);
    font-size: 30px;
    font-weight: 600;
}

.about-page #About .main-timeline .description {
    margin: 0;
    font-size: 15px;
}

.about-page #About .main-timeline .timeline:nth-child(even)::before {
    right: 0;
    left: auto;
    border: 15px solid var(--brand-green);
    border-left: 0;
    border-radius: 0 100px 100px 0;
}

.about-page #About .main-timeline .timeline:nth-child(even)::after {
    right: 12px;
    left: auto;
    border: 15px solid var(--brand-green);
    border-left: 0;
    border-radius: 0 100px 100px 0;
}

.about-page #About .main-timeline .timeline:nth-child(5n + 2)::before,
.about-page #About .main-timeline .timeline:nth-child(5n + 2)::after {
    border-color: var(--dark-red);
}

.about-page #About .main-timeline .timeline:nth-child(5n + 2) .timeline-year,
.about-page #About .main-timeline .timeline:nth-child(5n + 2) .title {
    color: var(--dark-red);
}

.about-page #About .main-timeline .timeline:nth-child(5n + 3)::before,
.about-page #About .main-timeline .timeline:nth-child(5n + 3)::after {
    border-color: var(--brand-green);
}

.about-page #About .main-timeline .timeline:nth-child(5n + 3) .timeline-year,
.about-page #About .main-timeline .timeline:nth-child(5n + 3) .title {
    color: var(--brand-green);
}

.about-page #About .main-timeline .timeline:nth-child(5n + 4)::before,
.about-page #About .main-timeline .timeline:nth-child(5n + 4)::after {
    border-color: var(--dark-red);
}

.about-page #About .main-timeline .timeline:nth-child(5n + 4) .timeline-year,
.about-page #About .main-timeline .timeline:nth-child(5n + 4) .title {
    color: var(--dark-red);
}

.about-page #About .main-timeline .timeline:nth-child(5n + 5)::before,
.about-page #About .main-timeline .timeline:nth-child(5n + 5)::after {
    border-color: var(--brand-green);
}

.about-page #About .main-timeline .timeline:nth-child(5n + 5) .timeline-year,
.about-page #About .main-timeline .timeline:nth-child(5n + 5) .title {
    color: var(--brand-green);
}

@media (max-width: 1199.98px) {
    .about-page #About .main-timeline .timeline::after {
        border-radius: 88px 0 0 88px;
    }

    .about-page #About .main-timeline .timeline:nth-child(even)::after {
        border-radius: 0 88px 88px 0;
    }
}

@media (max-width: 767.98px) {
    .about-page #About .main-timeline .timeline {
        margin-top: -19px;
    }

    .about-page #About .main-timeline .timeline::before {
        border-width: 10px;
        border-radius: 50px 0 0 50px;
    }

    .about-page #About .main-timeline .timeline::after {
        top: 9px;
        left: 9px;
        width: calc(50% - 9px);
        height: calc(100% - 18px);
        border-width: 10px;
        border-radius: 43px 0 0 43px;
    }

    .about-page #About .main-timeline .timeline:nth-child(even)::before {
        border-width: 10px;
        border-radius: 0 50px 50px 0;
    }

    .about-page #About .main-timeline .timeline:nth-child(even)::after {
        top: 9px;
        right: 9px;
        width: calc(50% - 9px);
        height: calc(100% - 18px);
        border-width: 10px;
        border-radius: 0 43px 43px 0;
    }

    .about-page #About .main-timeline .timeline-img,
    .about-page #About .main-timeline .content,
    .about-page #About .main-timeline .timeline-year {
        padding: 10px;
    }
}

@media (max-width: 575.98px) {
    .about-page #About .main-timeline .title,
    .about-page #About .main-timeline .timeline-year {
        font-size: 20px;
    }

    .about-page #About .main-timeline .description {
        font-size: 14px;
    }

    .about-page #About .main-timeline .timeline-img img {
        height: 80px;
    }
}


/* 05. Shared button */
.about-more {
    margin-top: 32px;
    text-align: center;
}

.about-page .about-btn {
    display: inline-flex;
    max-width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 24px;
    border: 1px solid transparent;
    border-radius: 30px;
    color: #352610;
    background: var(--accent-orange, #ffa628);
    font-size: .9rem;
    font-weight: 750;
    line-height: 1.7;
    text-decoration: none;
}

.about-btn svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (hover: hover) {
    .about-page .about-btn:hover {
        color: #352610;
        background: #ffb749;
        box-shadow: 0 5px 14px rgba(116, 69, 0, .12);
    }
}

/* 06. Board table */
.about-table {
    overflow-x: auto;
}

.about-table table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.8;
}

.about-table td,
.about-table th {
    padding: 14px 16px;
    border: 1px solid #e4ece6;
    color: #293b36;
    background: #fff;
    text-align: right;
    vertical-align: top;
}

.about-table tr:nth-child(even) td {
    background: #f7faf7;
}

.about-table tr:first-child td,
.about-table th {
    color: #fff;
    background: var(--about-green);
    font-weight: 750;
}

/* 07. Responsive layout */
@media (max-width: 767px) {
    .about-wrap {
        width: calc(100% - 40px);
    }

    .about-head {
        min-height: 180px;
    }
}

@media (max-width: 599px) {
    .about-wrap {
        width: calc(100% - 32px);
    }

    .about-body {
        padding-top: 24px;
    }

    .about-title {
        font-size: 26px;
    }

    .about-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 32px;
    }

    .about-page .about-tab {
        min-height: 58px;
        padding: 8px;
        font-size: 13px;
    }
}

/* 08. Motion preference */
@media (prefers-reduced-motion: reduce) {
    .about-page a {
        transition: none;
    }
}
