/* Hero Blog Carousel Styles */
.hbc-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    box-sizing: border-box;
    position: relative;
    min-height: 600px;
}

.hbc-hero {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hbc-hero-content {
    width: 100%;
    position: relative;
}

.hbc-hero-heading {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 16px 0;
    color: #000;
    letter-spacing: -0.02em;
}

.hbc-hero-subheading {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 20px 0;
    color: #333;
    opacity: 0.9;
}

.hbc-hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 32px;
    color: #666;
    font-weight: 400;
}

.hbc-hero-cta {
    margin-bottom: 40px;
}

.hbc-hero-btn {
    display: inline-block;
    padding: 16px 40px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid #000;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hbc-hero-btn:hover {
    background: transparent;
    color: #000;
}

/* Progress Bar */
.hbc-progress-container {
    margin: 0;
    width: 100%;
}

.hbc-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.hbc-progress-fill {
    height: 100%;
    width: 50%;
    background: #000;
    transition: width 0.1s linear;
    border-radius: 2px;
}

/* Carousel */
.hbc-carousel {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    box-sizing: border-box;
}

.hbc-card {
    box-sizing: border-box;
    padding: 10px;
    height: auto;
}

.hbc-card-inner {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.08);
}

.hbc-card-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.hbc-card-top {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 24px 24px 20px;
    position: relative;
}

.hbc-author-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #f8f9fa;
}

.hbc-author-meta {
    flex: 1;
}

.hbc-author-name {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2px;
}

.hbc-author-role {
    font-size: 13px;
    color: #718096;
}

.hbc-post-time {
    font-size: 13px;
    color: #718096;
    position: absolute;
    top: 24px;
    right: 24px;
}

.hbc-thumb {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 24px 20px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.hbc-thumb-empty {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.hbc-card-body {
    padding: 0 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hbc-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.hbc-card-cat {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #667eea;
}

.hbc-card-date {
    font-size: 12px;
    color: #718096;
}

.hbc-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #2d3748;
}

.hbc-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hbc-card-title a:hover {
    color: #667eea;
}

/* Navigation - হিরো এবং কার্ডের মাঝখানে */
.hbc-nav-prev,
.hbc-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    color: #2d3748;
    border: 2px solid rgba(0,0,0,0.1);
}

.hbc-nav-prev:hover,
.hbc-nav-next:hover {
    background: #000;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.hbc-nav-prev {
    left: -28px;
}

.hbc-nav-next {
    right: -28px;
}

.hbc-nav-prev svg,
.hbc-nav-next svg {
    width: 24px;
    height: 24px;
}

/* Pagination */
.hbc-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 12px;
}

.hbc-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hbc-pagination-bullet-active {
    background: #000;
    transform: scale(1.3);
}

/* Blog Grid Styles */
.hbc-blog-grid-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

.hbc-grid-container {
    display: grid;
    gap: 24px;
    margin-bottom: 40px;
}

.hbc-grid-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.hbc-grid-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.hbc-grid-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.hbc-grid-item {
    box-sizing: border-box;
}

.hbc-grid-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hbc-grid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.hbc-grid-card-top {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 20px 20px 16px;
    position: relative;
}

.hbc-grid-author-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #f8f9fa;
}

.hbc-grid-author-meta {
    flex: 1;
}

.hbc-grid-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2px;
}

.hbc-grid-author-role {
    font-size: 12px;
    color: #718096;
}

.hbc-grid-post-time {
    font-size: 12px;
    color: #718096;
    position: absolute;
    top: 20px;
    right: 20px;
}

.hbc-grid-thumb {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 20px 16px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.hbc-grid-thumb-empty {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.hbc-grid-card-body {
    padding: 0 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hbc-grid-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.hbc-grid-card-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #667eea;
}

.hbc-grid-card-date {
    font-size: 11px;
    color: #718096;
}

.hbc-grid-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #2d3748;
}

.hbc-grid-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hbc-grid-card-title a:hover {
    color: #667eea;
}

/* Load More Button */
.hbc-load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.hbc-load-more-btn {
    display: inline-block;
    padding: 16px 40px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid #000;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 200px;
}

.hbc-load-more-btn:hover {
    background: transparent;
    color: #000;
}

.hbc-load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.hbc-grid-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
    grid-column: 1 / -1;
}

/* Responsive for Hero Carousel */
@media (max-width: 1024px) {
    .hbc-wrapper {
        gap: 30px;
        padding: 60px 20px;
    }
    
    .hbc-hero-heading {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hbc-wrapper {
        flex-direction: column;
        gap: 40px;
        padding: 40px 20px;
        min-height: auto;
    }
    
    .hbc-hero,
    .hbc-carousel {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .hbc-hero {
        text-align: center;
    }
    
    .hbc-hero-heading {
        font-size: 2.25rem;
        margin-bottom: 12px;
    }
    
    .hbc-hero-subheading {
        font-size: 1.125rem;
        margin-bottom: 16px;
    }
    
    .hbc-hero-description {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .hbc-nav-prev {
        left: 10px;
    }
    
    .hbc-nav-next {
        right: 10px;
    }
    
    .hbc-card-top,
    .hbc-card-body {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hbc-thumb {
        margin: 0 20px 20px;
        height: 200px;
    }
    
    .hbc-nav-prev,
    .hbc-nav-next {
        width: 48px;
        height: 48px;
    }
    
    .hbc-nav-prev svg,
    .hbc-nav-next svg {
        width: 20px;
        height: 20px;
    }
}

/* Responsive for Blog Grid */
@media (max-width: 1024px) {
    .hbc-grid-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hbc-grid-columns-4,
    .hbc-grid-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hbc-blog-grid-wrapper {
        padding: 40px 20px;
    }
    
    .hbc-grid-card-top,
    .hbc-grid-card-body {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .hbc-grid-thumb {
        margin: 0 16px 16px;
        height: 180px;
    }
    
    .hbc-grid-post-time {
        position: static;
        margin-top: 4px;
    }
    
    .hbc-grid-card-top {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hbc-hero-heading {
        font-size: 2rem;
    }
    
    .hbc-thumb {
        height: 180px;
    }
    
    .hbc-grid-columns-4,
    .hbc-grid-columns-3,
    .hbc-grid-columns-2 {
        grid-template-columns: 1fr;
    }
    
    .hbc-grid-thumb {
        height: 160px;
    }
    
    .hbc-load-more-btn {
        padding: 14px 32px;
        font-size: 15px;
        min-width: 180px;
    }
    
    .hbc-nav-prev,
    .hbc-nav-next {
        width: 44px;
        height: 44px;
    }
    
    .hbc-nav-prev svg,
    .hbc-nav-next svg {
        width: 18px;
        height: 18px;
    }
}