/* ==========================================================================
   milestones.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Section Override
   -------------------------------------------------------------------------- */
.milestones-hero {
    width: 100%;
    height: 363px;
    background: linear-gradient(to right, #014a9f, #83a6cf);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 100px;
    color: var(--white);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.milestones-hero::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 380px;
    background-image: url('../img/batik-bg.png');
    background-size: cover;
    background-position: left center;
    opacity: 0.55;
    pointer-events: none;
}

.milestones-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 20px;
    margin-bottom: 25px;
}

.milestones-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.milestones-hero .breadcrumb a:hover {
    text-decoration: underline;
    color: var(--white);
}

.milestones-hero .breadcrumb .breadcrumb-icon {
    width: 13px;
    height: 13px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
}

.milestones-hero .breadcrumb .current {
    color: var(--white);
}

.milestones-hero h1 {
    font-size: 50px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.1;
}

.milestones-hero p {
    font-size: 20px;
    font-weight: 400;
}


/* --------------------------------------------------------------------------
   Timeline Section
   -------------------------------------------------------------------------- */
.timeline-section {
    padding: 80px 5%;
    background-color: var(--background-light);
}

.timeline-header {
    margin-bottom: 60px;
}

.timeline-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.timeline-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.timeline-title span {
    position: relative;
    display: inline-block;
}

.timeline-title span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
}

.timeline-title span {
    position: relative;
    display: inline-block;
    margin-right: 12px;
}

/* Timeline Layout Container */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Center Line */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    border-left: 2px dashed #d1d5db;
    height: 100%;
}

/* Individual Item */
.timeline-item {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 60px;
    width: 100%;
}

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

/* Number Circle Indicator */
.timeline-number {
    width: 46px;
    height: 46px;
    background-color: var(--white);
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* Line connecting circle to card */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 37px;
    /* 60px padding - 23px circle radius */
    height: 0;
    border-bottom: 2px dashed #d1d5db;
    z-index: 1;
}

.timeline-item.left::after {
    right: calc(50% + 23px);
}

.timeline-item.right::after {
    left: calc(50% + 23px);
}

/* Card Content Container */
.timeline-content-wrapper {
    width: 50%;
    padding: 0 60px;
    position: relative;
    box-sizing: border-box;
}

/* Flex positioning for left and right elements */
.timeline-item.left .timeline-content-wrapper {
    left: -25%;
    text-align: right;
}

.timeline-item.right .timeline-content-wrapper {
    left: 25%;
    text-align: left;
}

/* The actual Card inside wrapper */
.timeline-card {
    position: relative;
    z-index: 2;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    display: inline-block;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.timeline-card-year {
    display: inline-block;
    background-color: var(--white);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 500;
    position: absolute;
    top: 0;
    transform: translateY(-50%);
}

.timeline-item.left .timeline-card-year {
    right: 20px;
}

.timeline-item.right .timeline-card-year {
    left: 20px;
}

.timeline-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-card p {
    color: var(--primary-color);
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 25px;
    }

    .timeline-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        left: 25px;
    }

    .timeline-item {
        justify-content: flex-start;
    }

    .timeline-item::after {
        display: none;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 40px;
    }

    .timeline-item.left .timeline-content-wrapper,
    .timeline-item.right .timeline-content-wrapper {
        left: 0;
        width: 100%;
        padding: 0 0 0 70px;
        text-align: left;
    }

    .timeline-item.left .timeline-card-year,
    .timeline-item.right .timeline-card-year {
        left: 20px;
        right: auto;
    }

    .timeline-card {
        max-width: 100%;
    }

    .timeline-title {
        font-size: 2.2rem;
    }
}