
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); min-height: 100vh; }
header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 1rem 5%; box-shadow: 0 4px 6px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
nav ul { display: flex; list-style: none; gap: 15px; flex-wrap: wrap; }
nav a { text-decoration: none; color: white; font-weight: bold; font-size: 0.9rem; transition: all 0.3s; padding: 5px 10px; border-radius: 5px; }
nav a:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.logo { font-size: 1.5rem; color: white; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
main { max-width: 900px; margin: 2rem auto; padding: 0 1rem; min-height: 60vh; }
footer { text-align: center; padding: 2rem; background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); color: #fff; margin-top: 3rem; }
footer a { color: #3498db; text-decoration: underline; margin: 0 10px; transition: color 0.3s; }
footer a:hover { color: #5dade2; }
h1 { margin-bottom: 0.5rem; font-size: 2.2rem; color: #2c3e50; text-shadow: 1px 1px 2px rgba(0,0,0,0.1); }
h2 { margin: 2rem 0 1rem 0; font-size: 1.8rem; color: #34495e; }
h3 { margin-top: 1.5rem; font-size: 1.3rem; color: #2c3e50; }
.subtitle { margin-bottom: 2rem; color: #555; font-size: 1.1rem; }
.intro-text { margin-bottom: 2rem; line-height: 1.8; color: #555; background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

/* Colorful template cards with different accent colors */
.template-card { 
    background: white; 
    border: 1px solid #e0e0e0; 
    border-left: 5px solid #3498db; 
    border-radius: 8px; 
    padding: 1.5rem; 
    margin-bottom: 2rem; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
    transition: all 0.3s; 
}
.template-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(52,152,219,0.3); 
    border-left-color: #2980b9;
}
.template-card:nth-child(2) { border-left-color: #e74c3c; }
.template-card:nth-child(2):hover { box-shadow: 0 8px 20px rgba(231,76,60,0.3); border-left-color: #c0392b; }
.template-card:nth-child(3) { border-left-color: #2ecc71; }
.template-card:nth-child(3):hover { box-shadow: 0 8px 20px rgba(46,204,113,0.3); border-left-color: #27ae60; }
.template-card:nth-child(4) { border-left-color: #f39c12; }
.template-card:nth-child(4):hover { box-shadow: 0 8px 20px rgba(243,156,18,0.3); border-left-color: #d68910; }
.template-card:nth-child(5) { border-left-color: #9b59b6; }
.template-card:nth-child(5):hover { box-shadow: 0 8px 20px rgba(155,89,182,0.3); border-left-color: #8e44ad; }
.template-card:nth-child(6) { border-left-color: #1abc9c; }
.template-card:nth-child(6):hover { box-shadow: 0 8px 20px rgba(26,188,156,0.3); border-left-color: #16a085; }
.template-card:nth-child(7) { border-left-color: #e67e22; }
.template-card:nth-child(7):hover { box-shadow: 0 8px 20px rgba(230,126,34,0.3); border-left-color: #d35400; }
.template-card:nth-child(8) { border-left-color: #34495e; }
.template-card:nth-child(8):hover { box-shadow: 0 8px 20px rgba(52,73,94,0.3); border-left-color: #2c3e50; }

.template-card h3 { margin-top: 0; margin-bottom: 0.5rem; font-size: 1.3rem; color: #2c3e50; display: flex; align-items: center; justify-content: space-between; }
.context { 
    margin-bottom: 12px; 
    font-size: 0.9rem; 
    color: #555; 
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%); 
    display: inline-block; 
    padding: 5px 12px; 
    border-radius: 20px; 
    font-weight: 600;
}
textarea { 
    width: 100%; 
    height: 130px; 
    padding: 12px; 
    border: 2px solid #e0e0e0; 
    border-radius: 8px; 
    background-color: #fafafa; 
    resize: vertical; 
    font-family: monospace; 
    font-size: 0.95rem; 
    margin-bottom: 12px; 
    color: #333; 
    transition: border-color 0.3s;
}
textarea:focus { border-color: #667eea; outline: none; }
button { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    border: none; 
    padding: 12px 28px; 
    border-radius: 25px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: all 0.3s; 
    box-shadow: 0 4px 6px rgba(102,126,234,0.3);
}
button:hover { 
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 12px rgba(102,126,234,0.4);
}

/* Colorful grid items */
.grid-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 2rem; }
.grid-item { 
    display: block; 
    background: white; 
    padding: 2rem; 
    text-align: center; 
    text-decoration: none; 
    color: #333; 
    border: 2px solid #e0e0e0; 
    border-radius: 12px; 
    font-weight: bold; 
    transition: all 0.3s; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
    position: relative;
    overflow: hidden;
}
.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s;
}
.grid-item:hover::before { transform: scaleX(1); }
.grid-item:hover { 
    transform: translateY(-8px); 
    border-color: #667eea; 
    color: #667eea; 
    box-shadow: 0 12px 24px rgba(102,126,234,0.2); 
}

/* Specific colors for each category */
.grid-item:nth-child(1) { border-top: 4px solid #3498db; }
.grid-item:nth-child(1):hover { border-color: #3498db; color: #3498db; }
.grid-item:nth-child(2) { border-top: 4px solid #e74c3c; }
.grid-item:nth-child(2):hover { border-color: #e74c3c; color: #e74c3c; }
.grid-item:nth-child(3) { border-top: 4px solid #2ecc71; }
.grid-item:nth-child(3):hover { border-color: #2ecc71; color: #2ecc71; }
.grid-item:nth-child(4) { border-top: 4px solid #f39c12; }
.grid-item:nth-child(4):hover { border-color: #f39c12; color: #f39c12; }
.grid-item:nth-child(5) { border-top: 4px solid #9b59b6; }
.grid-item:nth-child(5):hover { border-color: #9b59b6; color: #9b59b6; }
.grid-item:nth-child(6) { border-top: 4px solid #1abc9c; }
.grid-item:nth-child(6):hover { border-color: #1abc9c; color: #1abc9c; }
.grid-item:nth-child(7) { border-top: 4px solid #e67e22; }
.grid-item:nth-child(7):hover { border-color: #e67e22; color: #e67e22; }
.grid-item:nth-child(8) { border-top: 4px solid #34495e; }
.grid-item:nth-child(8):hover { border-color: #34495e; color: #34495e; }

.count-badge { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white;
    padding: 3px 10px; 
    border-radius: 12px; 
    font-size: 0.75rem; 
    margin-left: 5px; 
    font-weight: bold;
}

.hero { 
    text-align:center; 
    padding: 4rem 2rem; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    border-radius: 16px; 
    margin-bottom: 2rem; 
    box-shadow: 0 10px 30px rgba(102,126,234,0.3);
}
.hero h1 { 
    color: white; 
    margin-bottom: 1rem; 
    font-size: 2.5rem; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}
.hero p { font-size: 1.2rem; opacity: 0.95; }

.faq-section { 
    margin-top: 3rem; 
    background: white; 
    padding: 2rem; 
    border-radius: 12px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-left: 5px solid #3498db;
}
.faq-item { 
    margin-bottom: 1.5rem; 
    padding: 1rem; 
    background: #f8f9fa; 
    border-radius: 8px;
    transition: background 0.3s;
}
.faq-item:hover { background: #e9ecef; }
.faq-question { 
    font-weight: bold; 
    color: #2c3e50; 
    margin-bottom: 0.5rem; 
    font-size: 1.1rem;
}

.related-links { 
    margin-top: 2rem; 
    padding: 1.5rem; 
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%); 
    border-radius: 12px; 
    border-left: 5px solid #9b59b6;
}
.related-links h3 { margin-top: 0; color: #8e44ad; }
.related-links ul { margin-left: 1.5rem; margin-top: 1rem; }
.related-links li { margin-bottom: 0.5rem; }
.related-links a { color: #667eea; font-weight: 600; text-decoration: none; transition: color 0.3s; }
.related-links a:hover { color: #764ba2; text-decoration: underline; }

.blog-post { 
    background: white; 
    padding: 2rem; 
    margin-bottom: 2rem; 
    border-radius: 12px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    border-top: 5px solid #e74c3c;
}
.blog-post:nth-child(even) { border-top-color: #2ecc71; }
.blog-post:nth-child(3n) { border-top-color: #f39c12; }
.blog-post h2 { margin-top: 0; color: #2c3e50; }
.blog-meta { 
    color: white; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    font-size: 0.9rem; 
    margin-bottom: 1rem; 
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    h1 { font-size: 1.8rem; }
    nav ul { gap: 10px; }
    .hero { padding: 3rem 1rem; }
}
