/* ======================================================= */
/* ====== DEVELOPMENT HISTORY CSS ======================== */
/* ======================================================= */

.history-section {
    background-color: white;
    padding: 5rem 0; /* py-20 */
}
.history-container {
    max-width: 72rem; /* max-w-6xl */
    margin: 0 auto;
    padding: 0 1rem;
}
.section-heading {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
    text-align: center;
}
@media (min-width: 1024px) { /* lg:text-left */
    .section-heading { text-align: left; }
}


/* --- DESKTOP TIMELINE --- */
.desktop-timeline {
    display: none; /* hidden on mobile */
    position: relative;
}
@media (min-width: 1024px) { /* lg:block */
    .desktop-timeline { display: block; }
}

.timeline-line {
    position: absolute;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: #d1d5db; /* bg-gray-300 */
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-half {
    width: 40%;
}
.timeline-half--left {
    float: left;
    text-align: left;
    padding-right: 3rem; /* pr-12 */
}
.timeline-half--right {
    float: right;
    text-align: left;
    padding-left: 3rem; /* pl-12 */
}
/* Clearfix to contain floats */
.timeline-item::after {
    content: "";
    display: table;
    clear: both;
}

.timeline-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    border: 1px solid #e5e7eb;
}
.timeline-content h4 {
    font-weight: 700;
    font-size: 1.125rem;
    color: #2563eb;
    margin: 0;
}
.timeline-content p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.timeline-year {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 8rem; /* w-32 */
    height: 2.5rem; /* h-10 */
    background-color: #2563eb;
    color: white;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}


/* --- MOBILE TIMELINE --- */
.mobile-timeline {
    display: block; /* Visible by default */
}
@media (min-width: 1024px) { /* lg:hidden */
    .mobile-timeline { display: none; }
}
.mobile-item {
    position: relative;
    padding-left: 2.5rem; /* pl-10 */
    padding-bottom: 2rem; /* pb-8 */
}
.mobile-item .dot {
    position: absolute;
    left: 0;
    top: 4px; /* Adjust as needed */
    width: 1rem;
    height: 1rem;
    background-color: #2563eb;
    border-radius: 9999px;
}
.mobile-item .line {
    position: absolute;
    left: 7px; /* dot-width/2 - line-width/2 */
    top: 4px;
    height: 100%;
    width: 2px;
    background-color: #d1d5db;
}
.mobile-item:last-child .line { display: none; }
.mobile-item .year {
    position: absolute;
    left: 2.5rem;
    top: -4px; /* -top-1 equivalent */
    font-weight: 700;
    color: #1f2937;
}
.mobile-item .content {
    padding-top: 1.25rem;
}
.mobile-item .content h4 {
    font-weight: 700;
    font-size: 1rem;
    color: #2563eb;
    margin: 0;
}
.mobile-item .content p {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #4b5563;
}