/* --- BLOG SPECIFIC STYLES --- */

/* Breadcrumbs */
.breadcrumb-nav {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.breadcrumb {
    display: flex;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-light);
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #cbd5e1;
    margin-right: 12px;
}

/* Post Header */
.post-header {
    background-size: cover;
    background-position: center;
    padding: 120px 24px;
    text-align: center;
    color: var(--white);
    position: relative;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.post-header h1, .post-header .post-meta {
    position: relative;
    z-index: 1;
}

.post-header h1 {
    font-size: 3rem;
    max-width: 900px;
    margin: 0 auto 20px;
    text-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Layout */
.page-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 24px;
    display: flex;
    gap: 60px;
}

.main-content {
    flex: 2;
}

.sidebar {
    flex: 1;
}

/* Blog Post Card (New) */
.blog-post-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    margin-bottom: 40px;
}

/* Post Content */
.post-content {
    font-size: 1.15rem;
    color: #334155;
    margin-bottom: 40px;
    line-height: 1.8;
}

.post-content h2 { 
    margin: 40px 0 20px; 
    color: #1e293b; 
    font-size: 1.8rem;
}

.post-content p { margin-bottom: 24px; }
.post-content ul { list-style: disc; margin-left: 24px; margin-bottom: 24px; }

/* Widgets */
.widget {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
    border: 1px solid #f1f5f9;
}

.widget h3 {
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    color: #1e293b;
    font-size: 1.2rem;
}

.widget-recent-posts ul li {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.widget-recent-posts img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.widget-recent-posts a {
    font-weight: 500;
    color: #334155;
    line-height: 1.4;
    display: block;
    margin-bottom: 4px;
}

.widget-recent-posts a:hover {
    color: var(--primary-color);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 12px;
    margin-top: 40px;
}

.btn-share {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1.2rem;
}

.btn-share:hover { 
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-facebook { background: #1877f2; }
.btn-twitter { background: #1da1f2; }
.btn-linkedin { background: #0a66c2; }
.btn-whatsapp { background: #25d366; }
.btn-email { background: #ea4335; }

/* Comments */
.comments-section {
    /* Removed top margin/border as it will be in a card now */
}

.comment-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.5rem;
}

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

.comment-header strong {
    font-size: 1.1rem;
    color: #1e293b;
}

.comment-header span {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Blog Grid (Main Page) */
.blog-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    color: var(--white);
    padding: 80px 24px 120px; /* Added bottom padding for search bar overlap */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.blog-hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Container (Copied from Directory) */
.search-container {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    margin-top: -40px;
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-form {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.input-group {
    flex: 1;
    position: relative;
    min-width: 250px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px; /* Space for icon */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f8fafc;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background-color: var(--white);
}


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

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.blog-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

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

.blog-meta {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
}

.blog-meta i {
    color: var(--primary-color);
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #1e293b;
    line-height: 1.4;
}

.blog-excerpt {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 1rem;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s;
}

.read-more:hover {
    gap: 12px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 60px 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-weight: 500;
    transition: all 0.2s;
}

.page-link:hover, .page-link.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .input-group {
        width: 100%;
    }
    
    .blog-post-card {
        padding: 24px;
    }
}
