/*
 * Courses Offered – VERTICAL TIMELINE layout (distinct from other pages)
 * KIIT Entrance Wings | Bootstrap 5
 */

.co-page { background: #f8fafc; padding-bottom: 4rem; }

/* Timeline wrapper */
.co-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2rem;
}
@media (min-width: 768px) {
    .co-timeline { padding-left: 0; }
}

/* Vertical line */
.co-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #0ea5e9, #0369a1);
    border-radius: 2px;
}
@media (min-width: 768px) {
    .co-timeline::before { left: 50%; transform: translateX(-50%); }
}

/* Each program = timeline node */
.co-node {
    position: relative;
    padding-bottom: 3rem;
    padding-left: 3rem;
}
@media (min-width: 768px) {
    .co-node { padding-left: 0; padding-right: 50%; padding-bottom: 3rem; text-align: right; }
    .co-node:nth-child(even) { padding-right: 0; padding-left: 50%; text-align: left; }
}

/* Dot on the line */
.co-node::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0.5rem;
    width: 24px;
    height: 24px;
    background: #0ea5e9;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #0ea5e9;
    z-index: 1;
}
@media (min-width: 768px) {
    .co-node::before { left: 50%; margin-left: -12px; }
}

/* Content card – different style per side */
.co-node-content {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.12);
    border: 1px solid #e0f2fe;
    text-align: left;
    transition: box-shadow 0.25s ease;
}
.co-node-content:hover { box-shadow: 0 8px 32px rgba(14, 165, 233, 0.18); }
@media (min-width: 768px) {
    .co-node:nth-child(even) .co-node-content { margin-left: 1.5rem; }
    .co-node:nth-child(odd) .co-node-content { margin-right: 1.5rem; }
}

.co-node-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.co-node-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0c4a6e;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.co-node-desc {
    font-size: 0.95rem;
    color: #475569;
    margin: 0;
    line-height: 1.7;
}

.co-node-icon {
    width: 48px;
    height: 48px;
    background: #e0f2fe;
    color: #0ea5e9;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}
