
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Navigation */
nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #667eea;
}

/* Blog grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.blog-card h2 a {
    color: inherit;
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: #667eea;
}

.blog-card .date-line {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.blog-card .excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

 .blog-card .meta {
     font-size: 0.9rem;
     color: #888;
     display: flex;
     justify-content: flex-end;
     align-items: center;
     margin-top: 1rem;
 }

 .blog-card .first-link {
     margin: 1rem 0;
     padding: 0.75rem;
     background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
     border-radius: 8px;
     border-left: 4px solid #667eea;
     transition: transform 0.2s ease, box-shadow 0.2s ease;
 }

 .blog-card .first-link:hover {
     transform: translateX(5px);
     box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
 }

 .blog-card .primary-link {
     color: #667eea;
     text-decoration: none;
     font-weight: 600;
     font-size: 1rem;
     display: block;
     margin-bottom: 0.25rem;
 }

 .blog-card .primary-link:hover {
     color: #5a6fd8;
     text-decoration: underline;
 }

 .blog-card .link-description {
     color: #666;
     font-size: 0.9rem;
     display: block;
 }

.blog-card .tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Blog post page */
.blog-post {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.blog-post h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.blog-post .meta {
    color: #666;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.blog-post .content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-post .content h2,
.blog-post .content h3 {
    margin: 2rem 0 1rem 0;
    color: #333;
}

.blog-post .content p {
    margin-bottom: 1.5rem;
}

.blog-post .content ul,
.blog-post .content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

/* Links section */
.links-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.links-section h3 {
    margin-bottom: 1rem;
    color: #333;
}

.links-grid {
    display: grid;
    gap: 1rem;
}

.link-item {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s ease;
}

.link-item:hover {
    transform: translateX(5px);
}

.link-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.link-item a:hover {
    text-decoration: underline;
}

.link-item .description {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Images section */
.images-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.images-section h3 {
    margin-bottom: 1rem;
    color: #333;
}

.image-grid {
    display: grid;
    gap: 1rem;
}

.image-item {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.image-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-item .caption {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.link-item .description {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Images section */
.images-section {
    margin: 2rem 0;
}

.images-section h3 {
    margin-bottom: 1rem;
    color: #333;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.image-item {
    text-align: center;
}

.image-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-item .caption {
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-post {
        padding: 1.5rem;
    }
    
    .blog-post h1 {
        font-size: 2rem;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.back-to-top:hover {
    background: #5a6fd8;
}

.back-to-top.show {
    display: flex;
}
        