:root {
    --bg: #0f172a;
    --card-bg: #1e293b;
    --accent: #38bdf8;
    --text: #f1f5f9;
    --text-dim: #94a3b8;
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: var(--bg); 
    color: var(--text); 
    line-height: 1.6; 
    margin: 0; 
    padding: 20px; 
}

header { 
    text-align: center; 
    padding: 40px 0; 
}

header h1 { 
    color: var(--accent); 
    margin: 0; 
    font-size: 2.5rem; 
}

.top-links {
    margin-top: 15px;
    text-decoration: none;
}

.top-links a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 10px;
}

.container { 
    max-width: 1000px; 
    margin: auto; 
}

.section-title { 
    display: inline-block; 
    margin: 40px 0 20px; 
    padding-bottom: 5px; 
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 20px; 
}

.card { 
    background: var(--card-bg); 
    padding: 20px; 
    border-radius: 8px; 
    border: 1px solid #334155; 
    transition: transform 0.2s; 
}

.card:hover { 
    transform: translateY(-5px); 
    border-color: var(--accent); 
}

.card h3 { 
    margin-top: 0; 
    color: var(--accent); 
    text-decoration: none;
    font-weight: bold;
}

.card p { 
    color: var(--text-dim);
    text-decoration: none;
    font-weight: bold;
}

.card a { 
    color: var(--text); 
    text-decoration: none; 
    font-weight: bold; 
    display: block; 
    margin-top: 10px; 
}

footer {
    text-align: center; 
    padding: 50px; 
    color: var(--text-dim);
}

/* Header inside the card to separate Title from Tutorials */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #334155;
    padding-bottom: 10px;
}

.download-btn {
    background: var(--accent);
    color: var(--bg) !important;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
}

/* Small Tutorial Grid inside the card */
.tutorial-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sub-card {
    background: #0f172a; /* Slightly darker than card-bg */
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-dim) !important;
    text-decoration: none;
    border: 1px solid transparent;
    transition: 0.2s;
}

.sub-card:hover {
    border-color: var(--accent);
    color: var(--text) !important;
    background: #1e293b;
}