/* Modern Blog Styles */

/* Blog Container */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.blog-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px 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 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.blog-card-image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-content {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #5a6b7b;
}

.blog-card-author {
    font-weight: 600;
}

.blog-card-date {
    color: #999;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card-title a {
    color: #0d2438;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-title a:hover {
    color: #28a745;
}

.blog-card-excerpt {
    color: #5a6b7b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card-link {
    color: #28a745;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-link:hover {
    color: #218838;
}

/* No Posts */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #fff;
}

.no-posts svg {
    margin-bottom: 20px;
}

.no-posts h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.no-posts p {
    color: rgba(255, 255, 255, 0.7);
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 16px;
    background: white;
    color: #0d2438;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background: #28a745;
    color: white;
}

.pagination-btn.active {
    background: #28a745;
    color: white;
}

/* Article Page */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.article {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0d2438;
    line-height: 1.2;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 12px;
    color: #5a6b7b;
    font-size: 0.95rem;
}

.article-author {
    font-weight: 600;
}

.article-separator {
    color: #ccc;
}

.article-date {
    color: #999;
}

.article-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-footer {
    padding-top: 30px;
    border-top: 1px solid #e1e8ed;
}

.back-to-blog {
    color: #28a745;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.back-to-blog:hover {
    color: #218838;
}

/* Comments Section */
.comments-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.comments-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0d2438;
    margin-bottom: 30px;
}

/* Comment Form */
.comment-form {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.comment-form h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #0d2438;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0d2438;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #0d2438;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #28a745;
}

.form-textarea {
    resize: vertical;
}

.comment-submit-btn {
    background: #28a745;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.comment-submit-btn:hover {
    background: #218838;
}

/* Comment Alert */
.comment-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.comment-alert-success {
    background: #d4edda;
    color: #155724;
}

.comment-alert-error {
    background: #f8d7da;
    color: #721c24;
}

/* Comments List */
.comments-list {
    margin-top: 30px;
}

.comment {
    padding: 24px;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    margin-bottom: 20px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.comment-info {
    flex: 1;
}

.comment-author {
    font-weight: 700;
    color: #0d2438;
    margin-bottom: 4px;
}

.comment-date {
    font-size: 0.85rem;
    color: #999;
}

.comment-body {
    color: #333;
    line-height: 1.6;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .article {
        padding: 24px;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .comment-form {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .comments-section {
        padding: 24px;
    }
}
