/*
 * @package BusinessSaleTheme
 * Extracted from: home.css
 */
/* ============================================
   Blog Home Page Styles - Enhanced
   Scoped to page classes to avoid theme conflicts
   ============================================ */

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

/* Breadcrumb */
.blog-breadcrumb {
    background: #f9fafb;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.blog-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.blog-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #64748b;
}

.blog-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

/* Hero Section */
.blog-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    padding: 60px 0 80px;
    overflow: hidden;
}

.blog-hero .hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.blog-hero .hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(37,99,235,0.15) 0%, transparent 60%);
}

.blog-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.blog-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.blog-hero .hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
    color: white;
}

.blog-hero .highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.blog-hero .hero-description {
    font-size: 1.125rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 32px;
}

.blog-hero .hero-search {
    max-width: 500px;
    margin: 0 auto 32px;
}

.blog-search-form {
    display: flex;
    background: white;
    border-radius: 60px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.blog-search-form .search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.blog-search-form .search-btn {
    padding: 14px 28px;
    background: #2563eb;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.blog-search-form .search-btn:hover {
    background: #1d4ed8;
}

.blog-hero .category-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.blog-hero .cloud-label {
    color: #cbd5e1;
    font-size: 0.85rem;
}

.blog-hero .category-tag {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.75rem;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-hero .category-tag:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* Main Content */
.blog-main {
    background: white;
    padding: 60px 0;
}

/* Featured Section */
.featured-section {
    margin-bottom: 60px;
}

.featured-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.featured-section .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.featured-section .section-badge {
    background: linear-gradient(135deg, #ef4444, #f97316);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.featured-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.featured-card.featured-card-1 {
    grid-column: span 2;
    display: flex;
}

.featured-card.featured-card-1 .featured-card-image {
    flex: 1;
    height: auto;
}

.featured-card.featured-card-1 .featured-card-body {
    flex: 1;
}

.featured-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.featured-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #2563eb;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.featured-card-body {
    padding: 24px;
}

.featured-card-body .post-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.75rem;
    color: #4b5563;
}

.featured-card-title {
    font-size: 1.25rem;
    margin: 0 0 12px 0;
}

.featured-card-title a {
    color: #111827;
    text-decoration: none;
}

.featured-card-title a:hover {
    color: #2563eb;
}

.featured-card-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 16px;
}

.read-more-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
}

/* Blog Filters */
.blog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tab {
    padding: 8px 20px;
    background: #f3f4f6;
    border: none;
    border-radius: 40px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background: #e5e7eb;
}

.filter-tab.active {
    background: #2563eb;
    color: white;
}

.sort-select {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 40px;
    background: white;
    cursor: pointer;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.posts-grid .blog-card,
.blog-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-color: transparent;
}

.posts-grid .blog-card-image,
.blog-card-image {
    position: relative;
    flex: none;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.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);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .card-overlay {
    opacity: 1;
}

.overlay-read {
    background: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    color: #2563eb;
}

.blog-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.75rem;
    color: #4b5563;
}

.meta-left, .meta-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.blog-date, .blog-read-time, .blog-comments {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.blog-card-meta svg {
    width: 12px;
    height: 12px;
    vertical-align: middle;
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
    word-break: normal;
    overflow-wrap: break-word;
}

.blog-card-title a {
    color: #111827;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #2563eb;
}

.blog-card-excerpt {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

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

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

.post-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.author-name {
    font-size: 0.75rem;
    color: #374151;
}

.category-badge {
    background: #eff6ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #2563eb;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: #f3f4f6;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.btn-icon {
    transition: transform 0.2s ease;
}

.load-more-btn:hover .btn-icon {
    transform: translateY(3px);
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-widget {
    background: #f9fafb;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget .widget-title {
    font-size: 1.1rem;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

/* About Widget */
.about-widget {
    text-align: center;
}

.about-widget .widget-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.about-widget p {
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 16px;
}

.about-widget .widget-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Search Widget */
.search-widget .sidebar-search-form {
    display: flex;
    background: white;
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.search-widget input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    outline: none;
}

.search-widget button {
    padding: 10px 16px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Popular Posts */
.popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.popular-rank {
    width: 28px;
    height: 28px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.popular-content {
    flex: 1;
    min-width: 0;
}

.popular-title {
    color: #1f2937;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.popular-title:hover {
    color: #2563eb;
}

.popular-date {
    font-size: 0.7rem;
    color: #6b7280;
}

/* Categories Widget */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    text-decoration: none;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.category-item:hover {
    color: #2563eb;
    padding-left: 8px;
}

.category-count {
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
}

/* Newsletter Widget */
.newsletter-widget {
    text-align: center;
    background: linear-gradient(135deg, #eff6ff, white);
}

.newsletter-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.newsletter-widget p {
    font-size: 0.8rem;
    color: #4b5563;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 40px;
    outline: none;
}

.newsletter-form button {
    padding: 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-form button:hover {
    background: #1d4ed8;
}

.newsletter-note {
    font-size: 0.65rem;
    margin-top: 12px;
}

.newsletter-message {
    margin-top: 12px;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.75rem;
}

.newsletter-message.success {
    background: #d1fae5;
    color: #065f46;
}

.newsletter-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Tags Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    background: #e5e7eb;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: #2563eb;
    color: white;
}

/* Archive Widget */
.archive-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.archive-list a {
    color: #374151;
    text-decoration: none;
}

.archive-list a:hover {
    color: #2563eb;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
        margin-top: 40px;
    }
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .featured-card.featured-card-1 {
        grid-column: span 1;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .blog-hero .hero-title {
        font-size: 2rem;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .blog-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }
    .featured-section .section-title {
        font-size: 1.5rem;
    }
    .container {
        padding: 0 16px;
    }
    .blog-hero .hero-search {
        margin: 0 0 24px;
    }
    .search-btn span {
        display: none;
    }
}

@media (max-width: 640px) {
    .blog-hero {
        padding: 40px 0 60px;
    }
    .blog-hero .category-cloud {
        display: none;
    }
}

