/* ============================================
   BLOG - Hero Section
   ============================================ */

.blog-hero {
    background-color: #0a2540;
    padding: 3rem 0 2rem;
    color: #fff;
}

.blog-hero-compact {
    padding: 1.5rem 0;
}

.blog-breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.blog-breadcrumb .breadcrumb-item a {
    color: #8ba3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-breadcrumb .breadcrumb-item a:hover {
    color: #fff;
}

.blog-breadcrumb .breadcrumb-item.active {
    color: #ccc;
}

.blog-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #5a7a94;
}

.blog-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
}

.blog-hero-subtitle {
    font-size: 1.1rem;
    color: #8ba3b8;
    margin-bottom: 0;
}

/* ============================================
   BLOG - Content Section
   ============================================ */

.blog-content-section {
    padding: 3rem 0 4rem;
    background-color: #f5f7fa;
    min-height: 60vh;
}

/* ============================================
   BLOG - Post Grid
   ============================================ */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.blog-grid-related {
    grid-template-columns: repeat(3, 1fr);
}

/* ============================================
   BLOG - Post Card
   ============================================ */

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7ef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.blog-card-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

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

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

.blog-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8edf2 0%, #d1d9e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #a0b0c0;
}

.blog-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #0066ff;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.blog-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.blog-card-meta i {
    margin-right: 4px;
    color: #9ca3af;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

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

.blog-card-title a:hover {
    color: #0066ff;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.blog-card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0066ff;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.blog-card-link i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.blog-card-link:hover i {
    transform: translateX(3px);
}

/* ============================================
   BLOG - Pagination
   ============================================ */

.blog-pagination {
    margin-top: 2.5rem;
}

.blog-pagination .page-link {
    color: #1f2937;
    border-color: #e5e7ef;
    padding: 0.5rem 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    margin: 0 2px;
    transition: all 0.2s ease;
}

.blog-pagination .page-item.active .page-link {
    background-color: #0066ff;
    border-color: #0066ff;
    color: #fff;
}

.blog-pagination .page-link:hover {
    background-color: #f0f4ff;
    border-color: #0066ff;
    color: #0066ff;
}

/* ============================================
   BLOG - Empty State
   ============================================ */

.blog-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7ef;
}

.blog-empty-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.blog-empty h3 {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.blog-empty p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* ============================================
   BLOG - Sidebar
   ============================================ */

.blog-sidebar {
    position: sticky;
    top: 100px;
}

.blog-widget {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7ef;
}

.blog-widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #0066ff;
}

/* Search */
.blog-search-input-wrap {
    display: flex;
    border: 1px solid #e5e7ef;
    border-radius: 8px;
    overflow: hidden;
}

.blog-search-input {
    flex: 1;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    outline: none;
}

.blog-search-btn {
    background: #0066ff;
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.blog-search-btn:hover {
    background: #0052cc;
}

/* Category list */
.blog-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-category-list li {
    border-bottom: 1px solid #f3f4f6;
}

.blog-category-list li:last-child {
    border-bottom: none;
}

.blog-category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.5rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.blog-category-list li a:hover,
.blog-category-list li.active a {
    color: #0066ff;
    background: #f0f4ff;
    padding-left: 0.75rem;
}

.blog-category-count {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

.blog-category-list li.active .blog-category-count {
    background: #0066ff;
    color: #fff;
}

/* Recent posts */
.blog-recent-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.blog-recent-item:last-child {
    border-bottom: none;
}

.blog-recent-item:hover {
    opacity: 0.85;
}

.blog-recent-image {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.blog-recent-image-placeholder {
    width: 70px;
    height: 50px;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    flex-shrink: 0;
}

.blog-recent-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.blog-recent-date {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ============================================
   BLOG - Article (Show page)
   ============================================ */

.blog-article {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7ef;
    margin-bottom: 2rem;
}

.blog-article-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-article-header {
    padding: 2rem 2rem 0;
}

.blog-article-category {
    display: inline-block;
    background: #0066ff;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: background 0.2s ease;
}

.blog-article-category:hover {
    background: #0052cc;
    color: #fff;
}

.blog-article-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.blog-article-meta {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7ef;
    font-size: 0.9rem;
    color: #6b7280;
}

.blog-article-meta i {
    margin-right: 6px;
    color: #9ca3af;
}

/* Article content */
.blog-article-content {
    padding: 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
}

.blog-article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.blog-article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.blog-article-content p {
    margin-bottom: 1.25rem;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-article-content blockquote {
    border-left: 4px solid #0066ff;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f0f4ff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
}

.blog-article-content ul,
.blog-article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.blog-article-content li {
    margin-bottom: 0.5rem;
}

.blog-article-content a {
    color: #0066ff;
    text-decoration: underline;
}

.blog-article-content a:hover {
    color: #0052cc;
}

/* Tags */
.blog-article-tags {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7ef;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.blog-tags-label {
    font-weight: 600;
    color: #4b5563;
    font-size: 0.9rem;
}

.blog-tags-label i {
    margin-right: 4px;
}

.blog-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-tag:hover {
    background: #0066ff;
    color: #fff;
}

/* Share */
.blog-article-share {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7ef;
}

.blog-share-label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: block;
}

.blog-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.blog-share-btn span {
    pointer-events: none;
}

.blog-share-btn svg {
    flex-shrink: 0;
}

.blog-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
    text-decoration: none;
}

.blog-share-facebook {
    background: #1877f2;
}
.blog-share-facebook:hover {
    background: #0d65d9;
}

.blog-share-twitter {
    background: #0f1419;
}
.blog-share-twitter:hover {
    background: #272c30;
}

.blog-share-whatsapp {
    background: #25d366;
}
.blog-share-whatsapp:hover {
    background: #1ebe57;
}

.blog-share-copy {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.blog-share-copy:hover {
    background: #e2e8f0;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Related posts */
.blog-related {
    margin-bottom: 2rem;
}

.blog-related-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

/* ============================================
   BLOG - Responsive
   ============================================ */

@media (max-width: 991.98px) {
    .blog-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .blog-hero {
        padding: 2rem 0 1.5rem;
    }

    .blog-hero-title {
        font-size: 1.75rem;
    }

    .blog-hero-subtitle {
        font-size: 0.95rem;
    }

    .blog-content-section {
        padding: 1.5rem 0 2rem;
    }

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

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

    .blog-article-header {
        padding: 1.25rem 1.25rem 0;
    }

    .blog-article-title {
        font-size: 1.5rem;
    }

    .blog-article-content {
        padding: 1.25rem;
        font-size: 1rem;
    }

    .blog-article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blog-article-tags {
        padding: 1rem 1.25rem;
    }

    .blog-article-share {
        padding: 1rem 1.25rem;
    }

    .blog-share-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .blog-share-btn span {
        display: none;
    }

    .blog-card-title {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .blog-hero-title {
        font-size: 1.5rem;
    }

    .blog-article-title {
        font-size: 1.3rem;
    }

    .blog-article-content h2 {
        font-size: 1.25rem;
    }

    .blog-article-content h3 {
        font-size: 1.1rem;
    }
}
