/* Professional Posts Layout - Top USA Blogger Style */

/* ===== BREADCRUMB NAVIGATION ===== */
.breadcrumb-nav {
    margin: 24px 0 16px 0;
    font-size: 0.95rem;
    position: static;
    background: transparent;
    border: none;
    padding: 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

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

.breadcrumb-separator {
    margin: 0 8px;
    color: #bbb;
}

.breadcrumb-current {
    color: #222;
    font-weight: 600;
}

/* ===== BLOG POST LAYOUT WITH SIDEBAR ===== */
.blog-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--spacing-2xl);
    align-items: start;
}

.blog-post-main {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.blog-post-sidebar {
    position: sticky;
    top: 120px;
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    height: fit-content;
}

/* ===== SIDEBAR WIDGETS ===== */
.sidebar-widget {
    margin-bottom: var(--spacing-xl);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-primary);
}

/* Author Widget */
.author-widget {
    text-align: center;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.author-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    font-size: 0.85rem;
    color: var(--text-light);
}

.author-stat {
    text-align: center;
}

.author-stat-number {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
}

/* Popular Posts Widget */
.popular-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-post-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-light);
    transition: transform var(--transition-fast);
}

.popular-post-item:hover {
    transform: translateX(5px);
}

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

.popular-post-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.popular-post-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.popular-post-content a {
    text-decoration: none;
    color: inherit;
}

.popular-post-content a:hover h4 {
    color: var(--primary-color);
}

.popular-post-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Popular Posts Grid Layout */
.popular-posts-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.popular-post-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
}

.popular-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.popular-post-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.popular-post-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.popular-post-card:hover .popular-post-image-wrapper img {
    transform: scale(1.05);
}

.popular-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.popular-post-card:hover .popular-post-overlay {
    opacity: 1;
}

.popular-post-overlay .read-more {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--primary-color);
    border-radius: var(--radius-md);
    text-decoration: none;
}

.popular-post-content {
    padding: var(--spacing-lg);
}

.popular-post-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.popular-post-title a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

.popular-post-title a:hover {
    color: var(--primary-color);
}

.popular-post-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

/* Popular Posts Header */
.popular-posts-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.popular-posts-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.popular-posts-icon svg {
    width: 100%;
    height: 100%;
}

.popular-posts-widget h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.category-item:hover {
    padding-left: var(--spacing-sm);
    background: rgba(255, 71, 87, 0.05);
    border-radius: var(--radius-sm);
}

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

.category-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.category-link:hover {
    color: var(--primary-color);
}

.category-count {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
}

.newsletter-widget h3 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.newsletter-widget p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.newsletter-input {
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.9);
}

.newsletter-input::placeholder {
    color: var(--text-secondary);
}

.newsletter-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.newsletter-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Social Media Widget */
.social-widget {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast);
}

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

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Tags Widget */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    list-style: none;
    padding: 0;
    margin: 0;
}

.tag-item {
    background: var(--gradient-primary);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tag-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.tag-link {
    text-decoration: none;
    color: inherit;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .blog-post-container {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-xl);
        display: flex !important;
        flex-direction: column !important;
    }
    
    .blog-post-main {
        order: 1 !important;
        width: 100% !important;
    }
    
    .blog-post-sidebar {
        position: static !important;
        order: 2 !important;
        width: 100% !important;
    }
    
    .sidebar-widget {
        margin-bottom: var(--spacing-lg);
    }
    
    .popular-post-image-wrapper {
        height: 180px;
    }
    
    .popular-post-content {
        padding: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .breadcrumb-container {
        padding: 0 var(--spacing-md);
    }
    
    .blog-post-container {
        padding: 0 var(--spacing-md);
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
    }
    
    .blog-post-main {
        padding: var(--spacing-lg);
        order: 1 !important;
        width: 100% !important;
    }
    
    .blog-post-sidebar {
        padding: var(--spacing-lg);
        order: 2 !important;
        width: 100% !important;
        position: static !important;
    }
    
    .breadcrumb-list {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
    
    .author-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .social-links {
        gap: var(--spacing-sm);
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
    
    /* Header social link responsive for posts */
    .header-top .social-link {
        font-size: 0.85rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .header-top .social-link svg {
        width: 16px;
        height: 16px;
    }
} 

/* ===== POSTS SECTION ===== */
.latest-posts {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.latest-posts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-lg);
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    position: relative;
    letter-spacing: -0.02em;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===== POSTS CONTAINER ===== */
.posts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    position: relative;
    z-index: 2;
}

/* ===== BLOG POST CONTENT IMPROVEMENTS ===== */
.blog-post {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-xl);
}

.post-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    color: var(--text-primary);
    font-weight: 600;
}

.post-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 0;
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-sm);
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.post-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

.post-content p {
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    line-height: 1.8;
    color: var(--text-secondary);
}

.post-content ul,
.post-content ol {
    margin-bottom: var(--spacing-lg);
    padding-left: calc(var(--spacing-xl) + var(--spacing-md));
    padding-right: var(--spacing-md);
}

.post-content li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
    color: var(--text-secondary);
}

.post-content blockquote {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ===== FEATURED POST ===== */
.featured-post {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
    position: relative;
    display: flex;
    margin-bottom: var(--spacing-3xl);
    height: 600px;
}

.featured-post:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.featured-post .post-image {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-post .post-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.8), rgba(78, 205, 196, 0.8));
    z-index: 1;
}

.featured-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
    position: relative;
    z-index: 2;
}

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

.featured-post .post-overlay {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    z-index: 3;
}

.featured-badge {
    background: var(--gradient-primary);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-post .post-details {
    flex: 1;
    padding: var(--spacing-2xl);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-post .post-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.featured-post .category {
    background: var(--gradient-secondary);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-post .date {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.featured-post .post-details h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.featured-post .post-details p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

.featured-post .post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.featured-post .stats {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.featured-post .read-btn {
    background: var(--gradient-primary);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-post .read-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== POSTS GRID ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
    align-items: start;
}

/* ===== POST ITEMS ===== */
.post-item {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 3;
}

.post-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.post-item .post-image {
    height: 300px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-item .post-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.8), rgba(78, 205, 196, 0.8));
    z-index: 1;
}

.post-item .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
    position: relative;
    z-index: 2;
}

.post-item:hover .post-image img {
    transform: scale(1.05);
}

.post-item .post-details {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-item .post-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.post-item .category {
    background: var(--gradient-secondary);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-item .date {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.post-item .post-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    letter-spacing: -0.01em;
    flex-grow: 1;
}

.post-item .post-details p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

.post-item .post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.post-item .stats {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.post-item .read-btn {
    background: var(--gradient-primary);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-item .read-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ===== LOAD MORE ===== */
.load-more {
    text-align: center;
    margin-top: var(--spacing-3xl);
}

.load-more-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.load-more-btn svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-normal);
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
    
    .featured-post {
        height: 350px;
    }
    
    .featured-post .post-image {
        width: 45%;
    }
    
    .featured-post .post-details {
        padding: var(--spacing-xl);
    }
    
    .featured-post .post-details h3 {
        font-size: 1.75rem;
    }
    
    .featured-post .post-details p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .posts-container {
        padding: 0 var(--spacing-lg);
    }
    
    .blog-post {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .post-content h1,
    .post-content h2,
    .post-content h3,
    .post-content h4 {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
    
    .post-content h1 {
        font-size: 2rem;
    }
    
    .post-content h2 {
        font-size: 1.75rem;
    }
    
    .post-content h3 {
        font-size: 1.4rem;
    }
    
    .post-content h4 {
        font-size: 1.2rem;
    }
    
    .post-content p {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .post-content ul,
    .post-content ol {
        padding-left: calc(var(--spacing-lg) + var(--spacing-sm));
        padding-right: var(--spacing-sm);
    }
    
    .post-content blockquote {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .featured-post {
        flex-direction: column;
        height: auto;
    }
    
    .featured-post .post-image {
        width: 100%;
        height: 250px;
    }
    
    .featured-post .post-details {
        padding: var(--spacing-lg);
    }
    
    .featured-post .post-details h3 {
        font-size: 1.5rem;
    }
    
    .featured-post .post-details p {
        font-size: 1rem;
    }
    
    .post-item {
        height: auto;
    }
    
    .post-item .post-image {
        height: 200px;
    }
    
    .post-item .post-details {
        padding: var(--spacing-lg);
    }
    
    .post-item .post-details h3 {
        font-size: 1.25rem;
    }
    
    .post-item .post-footer {
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .load-more-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .posts-grid {
        gap: var(--spacing-md);
    }
    
    .post-item {
        height: auto;
    }
    
    .post-item .post-image {
        height: 160px;
    }
    
    .post-item .post-details {
        padding: var(--spacing-sm);
    }
    
    .post-item .post-details h3 {
        font-size: 1rem;
    }
    
    .post-item .post-details p {
        font-size: 0.8rem;
    }
    
    .post-item .stats {
        font-size: 0.7rem;
    }
    
    .post-item .read-btn {
        font-size: 0.7rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .featured-post .post-details {
        padding: var(--spacing-md);
    }
    
    .featured-post .post-details h3 {
        font-size: 1.25rem;
    }
    
    .featured-post .post-details p {
        font-size: 0.9rem;
    }
    
    .load-more-btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.8rem;
    }
    
    .load-more-btn svg {
        width: 16px;
        height: 16px;
    }
} 

/* Blog Post Styles with Professional Gallery Layout */

/* Professional Gallery Grid System */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 450px; /* Fixed height for all gallery items */
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Fixed Image Dimensions */
.gallery-item img {
    width: 100%;
    height: auto; /* Natural height for all images */
    object-fit: contain;
    object-position: center;
    border-radius: 12px 12px 0 0;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Caption */
.gallery-caption {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-caption h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.gallery-caption p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Featured Image */
.featured-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
}

/* Post Content Images */
.post-content img:not(.featured-image) {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    transition: transform 0.3s ease;
}

.post-content img:not(.featured-image):hover {
    transform: scale(1.02);
}

/* Related Posts Images */
.related-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Inspiration Gallery */
.inspiration-gallery {
    margin: 40px 0;
}

.inspiration-gallery h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    position: relative;
}

.inspiration-gallery h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
}

/* Gallery Section Styling */
.gallery-section {
    background: #f8f9fa;
    padding: 40px 0;
    margin: 40px 0;
    border-radius: 15px;
}

.gallery-section h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* Masonry-style Gallery (Alternative Layout) */
.masonry-gallery {
    columns: 3;
    column-gap: 20px;
    margin: 30px 0;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.masonry-item:hover {
    transform: translateY(-3px);
}

.masonry-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .masonry-gallery {
        columns: 2;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .gallery-item {
        height: 280px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .post-content img:not(.featured-image) {
        height: 250px;
    }
    
    .masonry-gallery {
        columns: 1;
    }
    
    .related-post img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-item {
        height: 260px;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    .featured-image {
        height: 250px;
    }
    
    .post-content img:not(.featured-image) {
        height: 200px;
    }
    
    .related-post img {
        height: 120px;
    }
}

/* Loading Animation */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Gallery Navigation */
.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.gallery-nav button {
    padding: 8px 16px;
    border: none;
    background: #ff6b6b;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gallery-nav button:hover {
    background: #ff5252;
}

.gallery-nav button.active {
    background: #4ecdc4;
}

/* Image Modal (for click to enlarge) */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin-top: 5%;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #bbb;
} 

/* ===== TABLE OF CONTENTS ===== */
.table-of-contents {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.table-of-contents::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.table-of-contents h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.table-of-contents h2::before {
    content: '📋';
    font-size: 1.25rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.toc-list a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    font-weight: 500;
}

.toc-list a:hover {
    color: var(--primary-color);
    background: rgba(255, 71, 87, 0.05);
}

.toc-list a:active {
    transform: translateY(1px);
}

/* Responsive TOC */
@media (max-width: 768px) {
    .table-of-contents {
        padding: var(--spacing-lg);
        margin: var(--spacing-xl) 0;
    }
    
    .table-of-contents h2 {
        font-size: 1.25rem;
    }
    
    .toc-list a {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.9rem;
    }
}

/* ===== ENHANCED IMAGE CONTAINERS AND CAPTIONS ===== */
.image-container {
    margin: 30px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.02);
}

.image-caption {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 1px solid #e9ecef;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    text-align: center;
    font-style: italic;
    position: relative;
}

.image-caption::before {
    content: '📸';
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
    opacity: 0.7;
}

/* ===== RESPONSIVE IMAGE STYLES ===== */
@media (max-width: 768px) {
    .image-container {
        margin: 20px 0;
        border-radius: 8px;
    }
    
    .image-caption {
        padding: 15px;
        font-size: 13px;
    }
    
    .image-caption::before {
        font-size: 16px;
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .image-container {
        margin: 15px 0;
    }
    
    .image-caption {
        padding: 12px;
        font-size: 12px;
    }
} 