/* Blog Styles */
footer a {
    color: #ffa500;
    text-decoration: none;
}

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #2c5aa0 0%, #1a3a6b 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-hero p {
    font-size: 20px;
    opacity: 0.9;
}

/* Blog Section */
.blog-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
    position: relative;
    display: block;
    overflow: hidden;
    height: 220px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #2c5aa0;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.blog-date,
.blog-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-title {
    margin: 0 0 15px 0;
    font-size: 22px;
    line-height: 1.4;
}

.blog-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #2c5aa0;
}

.blog-card-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.blog-tag {
    background: #e8f0fe;
    color: #2c5aa0;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.blog-likes {
    color: #666;
    font-size: 14px;
}

.blog-read-more {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    color: #1a3a6b;
    transform: translateX(3px);
}

/* Blog CTA */
.blog-cta {
    background: linear-gradient(135deg, #6b46c1 0%, #553c9a 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.blog-cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.blog-cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.blog-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #6b46c1;
}

/* Blog Post Page Styles */
.post-hero {
    background: linear-gradient(135deg, #2c5aa0 0%, #1a3a6b 100%);
    color: white;
    padding: 100px 20px 60px;
}

.post-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.post-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.post-hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 15px;
    opacity: 0.9;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Post Content */
.post-content-section {
    padding: 60px 20px;
    background: white;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
}

.post-content h2 {
    font-size: 32px;
    margin: 40px 0 20px;
    color: #1a1a1a;
}

.post-content h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #333;
}

.post-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 10px;
}

.post-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

.post-tip {
    background: #e8f0fe;
    border-left: 4px solid #2c5aa0;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}

.post-tip strong {
    color: #2c5aa0;
}

/* Post Tags */
.post-tags-section {
    max-width: 800px;
    margin: 40px auto;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.post-tags-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tag {
    background: #e8f0fe;
    color: #2c5aa0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tag:hover {
    background: #2c5aa0;
    color: white;
}

/* Post Actions */
.post-actions {
    max-width: 800px;
    margin: 30px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.post-like-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-like-btn:hover {
    border-color: #2c5aa0;
    color: #2c5aa0;
}

.post-like-btn.liked {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

.post-share {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 18px;
}

.share-btn:hover {
    border-color: #2c5aa0;
    background: #2c5aa0;
    color: white;
}

/* Comments Section */
.comments-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
}

.comments-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.comment-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.comment-form h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-comment-btn {
    background: linear-gradient(135deg, #2c5aa0 0%, #1a3a6b 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #2c5aa0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
}

.comment-date {
    color: #666;
    font-size: 13px;
}

.comment-text {
    color: #444;
    line-height: 1.6;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 36px;
    }
    
    .blog-hero p {
        font-size: 16px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .post-hero h1 {
        font-size: 32px;
    }
    
    .post-meta {
        gap: 15px;
    }
    
    .post-content h2 {
        font-size: 26px;
    }
    
    .post-content h3 {
        font-size: 20px;
    }
    
    .post-content p,
    .post-content li {
        font-size: 16px;
    }
    
    .post-actions {
        flex-direction: column;
        gap: 20px;
    }
    
    .comments-section {
        padding: 20px;
    }
    
    .comment-form {
        padding: 20px;
    }
}

