header {
    background: linear-gradient(to right, #2c3e50, #4a6491);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.content-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.code-block {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 18px;
    border-radius: 5px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    line-height: 1.5;
    position: relative;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px 5px 0 0;
}

.command {
    background: #34495e;
    color: #f39c12;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    display: inline-block;
    margin: 5px 0;
}

.note {
    background: #e8f4fd;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 5px 5px 0;
}

.warning {
    background: #fdf2e8;
    border-left: 4px solid #e67e22;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 5px 5px 0;
}

.workflow-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.workflow-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border-top: 4px solid #3498db;
}

.workflow-card:hover {
    transform: translateY(-5px);
}

.workflow-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.workflow-header h3 {
    margin: 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.workflow-header h3 i {
    margin-right: 10px;
    color: #3498db;
}

.workflow-body {
    padding: 20px;
}

.workflow-body ul {
    padding-left: 20px;
}

.workflow-body li {
    margin-bottom: 8px;
    position: relative;
}

.workflow-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.visualization {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #3498db;
}

.branch-visual {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    position: relative;
}

.branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 15px;
    position: relative;
}

.branch-name {
    background: #3498db;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.commit {
    width: 12px;
    height: 12px;
    background: #2c3e50;
    border-radius: 50%;
    margin: 5px 0;
    position: relative;
}

.commit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 30px;
    height: 2px;
    background: #bdc3c7;
    transform: translateY(-50%);
}

.branch:last-child .commit::after {
    display: none;
}

.step {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
}

.step-number {
    background: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}

.step-content {
    flex: 1;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th {
    background: #3498db;
    color: white;
    padding: 15px;
    text-align: left;
}

.comparison-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.comparison-table tr:nth-child(even) {
    background: #f8f9fa;
}

.comparison-table tr:hover {
    background: #e8f4fd;
}

.best-practices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.practice-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #27ae60;
}

.practice-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.practice-card h4 i {
    margin-right: 10px;
    color: #27ae60;
}

@media (max-width: 768px) {
    .workflow-cards {
        grid-template-columns: 1fr;
    }

    .best-practices {
        grid-template-columns: 1fr;
    }

    .branch-visual {
        flex-direction: column;
        align-items: center;
    }

    .branch {
        margin: 10px 0;
    }

    .commit::after {
        display: none;
    }
}
