/* Blog Page Styles */

/* Blog Header */
.blog-page-header {
    background: linear-gradient(135deg, #f7f9ff 0%, #ffffff 100%);
    padding: 60px 0 40px;
    margin-top: 84px;
}

.blog-header-top {
    text-align: center;
    margin-bottom: 32px;
}

.blog-header-top h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: #0b1220;
    margin: 0 0 10px;
    line-height: 1.2;
}

.blog-header-top p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Blog Filters */
.blog-filters {
    max-width: 1200px;
    margin: 0 auto;
}

.filter-group {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.category-dropdown {
    padding: 12px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    font-size: 1rem;
    font-weight: 500;
    color: #0b1220;
    cursor: pointer;
    min-width: 200px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
    transition: all 0.2s;
}

.category-dropdown:hover,
.category-dropdown:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    max-width: 400px;
    flex: 1;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 1rem;
    color: #0b1220;
    outline: none;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-btn {
    padding: 12px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #1d4ed8;
}

/* Blog Content Layout */
.blog-content-section {
    padding: 60px 0;
    background: #f9fafb;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: #e5e7eb;
}

.blog-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #94a3b8;
    font-size: 3rem;
}

.blog-card-content {
    padding: 24px;
}

.blog-card-category {
    display: inline-block;
    padding: 6px 12px;
    background: #e0f2fe;
    color: #0284c7;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-card-title {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    line-height: 1.4;
    color: #0b1220;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: #2563eb;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #64748b;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-meta i {
    font-size: 0.85rem;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.blog-tag {
    padding: 4px 10px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
}

.blog-read-more:hover {
    gap: 12px;
    color: #1d4ed8;
}

/* Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #0b1220;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-number {
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #0b1220;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 42px;
    text-align: center;
}

.pagination-number:hover {
    background: #f1f5f9;
    border-color: #2563eb;
}

.pagination-number.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.pagination-dots {
    color: #94a3b8;
    padding: 10px 8px;
}

/* Empty State */
.blog-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
}

.blog-empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.blog-empty-state h3 {
    font-size: 1.5rem;
    color: #0b1220;
    margin: 0 0 10px;
}

.blog-empty-state p {
    color: #64748b;
    margin-bottom: 24px;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: #0b1220;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

/* Recent Posts */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #e5e7eb;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content {
    flex: 1;
}

.recent-post-content h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.recent-post-content h4 a {
    color: #0b1220;
    text-decoration: none;
    transition: color 0.2s;
}

.recent-post-content h4 a:hover {
    color: #2563eb;
}

.recent-post-date {
    font-size: 0.85rem;
    color: #64748b;
}

/* Categories List */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: #0b1220;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.category-item:hover {
    background: #f1f5f9;
    border-color: #e5e7eb;
}

.category-item.active {
    background: #e0f2fe;
    border-color: #2563eb;
    color: #0284c7;
    font-weight: 600;
}

.category-count {
    padding: 4px 10px;
    background: #fff;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.category-item.active .category-count {
    background: #2563eb;
    color: #fff;
}

/* Blog Detail Styles */
.blog-detail-header {
    background: #f9fafb;
    padding: 20px 0;
    margin-top: 84px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #1d4ed8;
}

.breadcrumb i {
    color: #94a3b8;
    font-size: 0.7rem;
}

.breadcrumb span {
    color: #64748b;
}

.blog-detail-main {
    padding: 40px 0;
    background: #fff;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.blog-detail-content {
    background: #fff;
}

.blog-detail-header-content {
    margin-bottom: 32px;
}

.blog-category-badge {
    display: inline-block;
    padding: 8px 16px;
    background: #e0f2fe;
    color: #0284c7;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.blog-detail-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #0b1220;
    margin: 0 0 20px;
    line-height: 1.3;
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    color: #64748b;
}

.blog-detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-detail-image {
    margin: 32px 0;
    border-radius: 16px;
    overflow: hidden;
    background: #e5e7eb;
}

.blog-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-detail-body {
    margin: 32px 0;
    line-height: 1.8;
    color: #334155;
    font-size: 1.05rem;
}

.blog-detail-body h2,
.blog-detail-body h3,
.blog-detail-body h4 {
    font-family: var(--font-display);
    color: #0b1220;
    margin: 32px 0 16px;
}

.blog-detail-body p {
    margin-bottom: 20px;
}

.blog-detail-body ul,
.blog-detail-body ol {
    margin: 20px 0;
    padding-left: 24px;
}

.blog-detail-body li {
    margin-bottom: 10px;
}

.blog-detail-body a {
    color: #2563eb;
    text-decoration: none;
}

.blog-detail-body a:hover {
    text-decoration: underline;
}

.blog-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

/* Tags */
.blog-detail-tags {
    margin: 32px 0;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
}

.blog-detail-tags h4 {
    margin: 0 0 16px;
    font-size: 1.1rem;
    color: #0b1220;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tag-item:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* Share Section */
.blog-share-section {
    margin: 40px 0;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
}

.blog-share-section h4 {
    margin: 0 0 16px;
    font-size: 1.1rem;
    color: #0b1220;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #0b1220;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-facebook:hover {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.share-twitter:hover {
    background: #1da1f2;
    color: #fff;
    border-color: #1da1f2;
}

.share-linkedin:hover {
    background: #0a66c2;
    color: #fff;
    border-color: #0a66c2;
}

.share-whatsapp:hover {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

.share-copy:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* Comments Section */
.blog-comments-section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 2px solid #e5e7eb;
}

.blog-comments-section h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #0b1220;
    margin: 0 0 24px;
}

.comment-alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #155724;
}

.comment-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #721c24;
}

/* Comment Form */
.comment-form {
    background: #f9fafb;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.comment-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.comment-field {
    margin-bottom: 16px;
}

.comment-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0b1220;
    font-size: 0.95rem;
}

.comment-field input,
.comment-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #0b1220;
    transition: border-color 0.2s;
}

.comment-field input:focus,
.comment-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-field textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-submit-btn {
    padding: 12px 24px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-submit-btn:hover {
    background: #1d4ed8;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comment-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
}

.comment-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-author {
    margin: 0;
    font-size: 1rem;
    color: #0b1220;
    font-weight: 600;
}

.comment-date {
    font-size: 0.85rem;
    color: #64748b;
}

.comment-text {
    margin: 0;
    line-height: 1.6;
    color: #334155;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 12px;
    color: #64748b;
}

/* Related Posts in Sidebar */
.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-post-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.related-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-post-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #e5e7eb;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content {
    flex: 1;
}

.related-post-content h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.related-post-content h4 a {
    color: #0b1220;
    text-decoration: none;
    transition: color 0.2s;
}

.related-post-content h4 a:hover {
    color: #2563eb;
}

.related-post-date {
    font-size: 0.85rem;
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-layout,
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .comment-form-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .blog-page-header {
        padding: 40px 0 30px;
    }
    
    .blog-content-section,
    .blog-detail-main {
        padding: 40px 0;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .share-buttons {
        justify-content: center;
    }
}

