/* Timeline Wrapper */
.ctb-timeline-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    font-family: var(--font-family, inherit);
}

/* Timeline Item */
.ctb-timeline-item {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

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

.ctb-timeline-item:last-child .ctb-connector-line-bottom {
    display: none;
}

/* Left Side - Image Container */
.ctb-timeline-left {
    position: relative;
}

.ctb-image-container {
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.ctb-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Center - Timeline Line and Year */
.ctb-timeline-center {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; /* vertical center */
    align-items: center !important;      /* horizontal center */
    width: 180px;
    height: 100% !important;
    min-height: 120px;
}

/* Top Connector Line */
.ctb-connector-line-top {
    position: absolute;
    width: 2px;
    background: var(--line-color, #cccccc);
    left: 50%;
    transform: translateX(-50%);
    top: -40px;
    bottom: 50%;
}

.ctb-timeline-item:first-child .ctb-connector-line-top {
    display: none;
}

/* Middle Section with Dot, Badge, and Arrow */
.ctb-middle-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

/* Dot - positioned behind year badge */
.ctb-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--dot-color, #3498db);
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 3px var(--dot-color, #3498db);
    z-index: 1;
}

/* Year Badge */
.ctb-year-badge {
    position: relative;
    padding: 12px 25px;
    color: #ffffff;
    font-size: var(--year-font-size, 24px);
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
    min-width: 100px;
    text-align: center;
}

/* Bottom Connector Line */
.ctb-connector-line-bottom {
    position: absolute;
    width: 2px;
    background: var(--line-color, #cccccc);
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    bottom: -40px;
}

/* Dotted Lines to Year Badge */
.ctb-middle-section::before,
.ctb-middle-section::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 40px;
    border-top: 2px dotted var(--line-color, #cccccc);
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.ctb-middle-section::before {
    left: -40px;
}

.ctb-middle-section::after {
    right: -40px;
}

/* Arrow Right */
.ctb-arrow-right {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid var(--arrow-color, #3498db);
    z-index: 2;
}

/* Right Side - Content */
.ctb-timeline-right {
    display: flex;
    align-items: center;
}

.ctb-content-wrapper {
    width: 100%;
}

.ctb-title {
font-family: "Barlow Condensed", sans-serif;
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    line-height: 1.3;
}

.ctb-content {
font-family: Rubik, sans-serif;
    font-size: var(--content-font-size, 15px);
    line-height: 1.8;
    color: #666666;
    margin: 0;
    display: block;
}

.ctb-content p {
    margin: 0 0 10px 0;
    display: block;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .ctb-timeline-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .ctb-timeline-left {
        justify-self: center;
    }

    .ctb-timeline-center {
        justify-self: center;
    }

    .ctb-middle-section::before,
    .ctb-middle-section::after {
        display: none;
    }

    .ctb-arrow-right {
        display: none;
    }

    .ctb-connector-line-top,
    .ctb-connector-line-bottom {
        display: none;
    }
}