/* ===== CLINICAL GUIDE SPECIFIC STYLES ===== */

/* ===== LAYOUT ===== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 30px 0;
}

.content-column {
    /* Main content area */
}

/* ===== SECTION STYLING ===== */
section {
    margin-bottom: 40px;
}

/* ===== HERO SECTION ===== */
.hero .card-header {
    font-size: 1.4rem;
}

/* ===== TREATMENT PHASES ===== */
.treatment-phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.phase-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    border-top: 4px solid var(--secondary);
}

.phase-header {
    background: rgba(42, 90, 140, 0.05);
    padding: 15px 20px;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--light-gray);
}

.phase-body {
    padding: 20px;
}

.phase-body ul {
    padding-left: 20px;
    margin: 15px 0;
}

.phase-body li {
    margin-bottom: 8px;
}

/* ===== TIMELINE COMPONENT ===== */
.timeline {
    position: relative;
    margin: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--secondary);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    width: calc(50% - 40px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-year {
    position: absolute;
    top: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* ===== REFERENCES ===== */
.reference-list {
    counter-reset: ref-counter;
    list-style: none;
    padding-left: 0;
}

.reference-item {
    counter-increment: ref-counter;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--light-gray);
    position: relative;
    padding-left: 35px;
}

.reference-item:last-child {
    border-bottom: none;
}

.reference-item::before {
    content: counter(ref-counter);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    color: var(--primary);
}

.reference-title {
    font-weight: 600;
    color: var(--primary);
}

.reference-authors,
.reference-journal {
    font-size: 0.95rem;
    color: var(--gray);
}

.reference-link {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 5px;
}

.reference-link:hover {
    text-decoration: underline;
}

/* ===== EVIDENCE SUMMARY ===== */
.evidence-summary {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-top: 30px;
}

.evidence-summary h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.evidence-item {
    display: flex;
    margin-bottom: 15px;
}

.evidence-level-small {
    min-width: 80px;
    font-weight: 500;
    color: var(--primary);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: -1;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }

    .timeline-year {
        left: 20px;
        transform: none;
    }
}