* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 20px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    color: #007bff;
    margin: 0;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav a:hover {
    background: #f0f0f0;
}

/* Footer Styles */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

.footer p {
    margin: 0;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex: 1;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

h2 {
    color: #333;
    margin-bottom: 20px;
}

h3 {
    color: #007bff;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* FAQ Styles */
.faq-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.faq-section p, .faq-section ol, .faq-section ul {
    color: #555;
    line-height: 1.6;
}

.faq-section ol li, .faq-section ul li {
    margin: 10px 0;
}

/* Blog Styles */
.blog-post {
    margin-bottom: 40px;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.blog-post:last-child {
    border-bottom: none;
}

.post-date {
    color: #888;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 10px;
}

.blog-post p, .blog-post ul {
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
}

.blog-post ul li {
    margin: 8px 0;
}

/* Blog Listing Styles */
.blog-intro {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.blog-list {
    display: grid;
    gap: 25px;
}

.blog-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.blog-card h3 a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card h3 a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.blog-card p {
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
}

.read-more {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: color 0.2s;
}

.read-more:hover {
    color: #0056b3;
}

/* Blog Article Styles */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
}

.blog-article h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.blog-article h3 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-article h4 {
    font-size: 20px;
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.blog-article p, .blog-article ul {
    color: #555;
    line-height: 1.8;
    margin: 15px 0;
    font-size: 16px;
}

.blog-article ul {
    padding-left: 25px;
}

.blog-article ul li {
    margin: 10px 0;
}

.blog-article a {
    color: #007bff;
    text-decoration: none;
}

.blog-article a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* FAQ Styles - Enhanced */
.faq-intro {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.faq-grid {
    display: grid;
    gap: 15px;
}

.faq-item {
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    transition: background 0.2s;
}

.faq-item:hover {
    background: #f0f0f0;
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.faq-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.faq-content {
    padding: 0 20px 20px 60px;
    color: #555;
    line-height: 1.6;
}

.faq-content p, .faq-content ol, .faq-content ul {
    margin: 10px 0;
}

.faq-content ol li, .faq-content ul li {
    margin: 8px 0;
}

.faq-content strong {
    color: #333;
}

.faq-help {
    margin-top: 40px;
    padding: 20px;
    background: #e3f2fd;
    border-radius: 8px;
    text-align: center;
}

.faq-help p {
    margin: 0;
    font-size: 16px;
    color: #555;
}

.faq-help a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.faq-help a:hover {
    text-decoration: underline;
}

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    flex-wrap: wrap;
}

#imageInput {
    padding: 5px;
}

#pixelSize {
    width: 150px;
}

#pixelSizeValue {
    font-weight: bold;
    min-width: 30px;
}

button {
    padding: 8px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background: #0056b3;
}

.canvas-container {
    text-align: center;
    margin-bottom: 20px;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fafafa;
    border-radius: 5px;
    padding: 20px;
}

#canvas {
    max-width: 100%;
    height: auto;
    cursor: crosshair;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.instructions {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #2196f3;
}

.instructions p {
    margin: 5px 0;
    color: #555;
}
