/* company.css */

.page-main-company {
    background-color: #fff;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 40px;
}

.company-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Company Section Block */
.company-section {
    display: flex;
    margin-bottom: 5rem;
    gap: 3rem;
    margin-top: 3rem;
    flex-direction: column;
}

.company-section__header {
    flex-shrink: 0;
    text-align: left;
}

.company-section__title {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--font-serif);
    color: #000;
    line-height: 1.2;
    margin: 0;
}

.company-section__subtitle {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-serif);
    color: #333;
    margin-top: 1rem;
}

.company-section__content {
    flex: 1;
    min-width: 0;
}

/* For sections where title is inline (like Image 4 seems inline but could also be structural) */
.company-section--history .company-section__title {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    white-space: nowrap;
}

/* Table Style */
.company-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e2e8f0;
}

.company-table th,
.company-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: middle;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

.company-table th {
    width: 220px;
    background-color: #f8fafc;
    font-weight: 600;
    color: #333;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.company-table td {
    color: #0f172a;
    line-height: 1.6;
    background-color: #fff;
}



/* Map Style */
.company-map {
    width: 100%;
    height: 450px;
    background-color: #eee;
}

.company-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Timeline Style */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 20px;
    bottom: 0;
    width: 1px;
    background-color: #666;
}

.timeline-item {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-year-wrapper {
    padding-right: 2.5rem;
    text-align: right;
    position: relative;
    padding-top: 5px;
}

.timeline-year {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--font-serif);
    color: #000;
    line-height: 1;
}

.timeline-year.boxed {
    display: inline-block;
    border: 1px solid #444;
    padding: 0.5rem;
    font-size: 1.5rem;
    margin-top: -10px;
}

.timeline-dot {
    position: absolute;
    top: 15px;
    /* center on the 1px line independently of text length */
    left: 120.5px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: #d1121d;
    /* red dot */
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    padding-left: 2.5rem;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-serif);
    color: #000;
    margin-bottom: 0.8rem;
}

.timeline-desc {
    font-size: 1rem;
    line-height: 1.6;
    font-family: var(--font-serif);
    color: #000;
    margin-bottom: 1.5rem;
}

.timeline-gallery {
    display: flex;
    gap: 1.5rem;
}

.timeline-gallery img {
    width: calc(50% - 0.5rem);
    height: 300px;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 900px) {
    .company-section {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 4rem;
        margin-top: 2.5rem;
    }

    .company-section__header {
        width: 100%;
    }

    .company-section--history .company-section__title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        white-space: normal;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        padding-left: 45px;
    }

    .timeline-year-wrapper {
        width: 100%;
        text-align: left;
        padding-right: 0;
        margin-bottom: 1rem;
        padding-top: 0;
    }

    .timeline-year {
        font-size: 1.5rem;
    }

    .timeline-dot {
        left: -25px;
        transform: translateX(-50%);
        right: auto;
        top: 6px;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding-left: 0;
    }

    .timeline-gallery {
        flex-direction: row;
        gap: 0.5rem;
    }

    .timeline-gallery img {
        width: calc(50% - 0.25rem);
        height: 150px;
        object-fit: cover;
    }
}

/* Outlook Section */
.outlook-desc {
    font-size: 1rem;
    line-height: 1.8;
    font-family: var(--font-serif);
    color: #000;
    margin-bottom: 3rem;
    text-align: left;
}

.outlook-gallery {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.outlook-circle {
    position: relative;
    width: 336px;
    height: 336px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outlook-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

@media (max-width: 900px) {
    .outlook-gallery {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .outlook-circle {
        width: 100px;
        height: 100px;
        max-width: none;
    }
}

@media (max-width: 600px) {

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
    }

    .company-table th {
        background-color: #f8fafc;
        border-bottom: none;
        padding-bottom: 0.8rem;
        text-align: center;
    }

    .company-table td {
        border-top: none;
        padding-top: 0.8rem;
    }
}