/* Blog Styles */

/* Blog Integration Features */
.blog-integration {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #3B82F6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.integration-header {
    text-align: center;
    margin-bottom: 2rem;
}

.integration-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.integration-header p {
    color: #6b7280;
    font-size: 1rem;
}

/* Products Integration */
.products-integration {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left-color: #0ea5e9;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 1rem;
}

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

.product-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    margin-bottom: 1rem;
}

.product-price .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
}

/* Contact Form Integration */
.contact-form-integration {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left-color: #22c55e;
}

.blog-contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.blog-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-contact-form .form-group {
    margin-bottom: 1rem;
}

.blog-contact-form label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.blog-contact-form input,
.blog-contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-contact-form input:focus,
.blog-contact-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.blog-contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* CTA Integration */
.cta-integration {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: #f59e0b;
    text-align: center;
}

.cta-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cta-content .btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.cta-content .btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-integration {
        margin: 2rem 0;
        padding: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .blog-contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .integration-header h3 {
        font-size: 1.25rem;
    }
    
    .cta-content h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .blog-integration {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .product-card {
        padding: 1rem;
    }
    
    .product-image {
        height: 150px;
    }
}

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

/* Blog Hero Visual */
.blog-hero-visual {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-2xl, 1rem); /* Fallback: 16px */
    padding: var(--space-6, 1.5rem); /* Fallback: 24px */
    gap: var(--space-6, 1.5rem); /* Fallback: 24px */
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15);
    /* HTTPS compatibility fixes */
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

/* Blog Stats */
.blog-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4, 1rem); /* Fallback: 16px */
    margin-bottom: var(--space-4, 1rem); /* Fallback: 16px */
}

.stat-item {
    text-align: center;
    padding: var(--space-4, 1rem); /* Fallback: 16px */
    background: white;
    border-radius: var(--radius-lg, 0.5rem); /* Fallback: 8px */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* HTTPS compatibility */
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: var(--text-2xl, 1.5rem); /* Fallback: 24px */
    font-weight: 700;
    color: var(--primary-color, #1e3a8a); /* Fallback: blue */
    margin-bottom: var(--space-1, 0.25rem); /* Fallback: 4px */
    line-height: 1.2;
}

.stat-label {
    font-size: var(--text-sm, 0.875rem); /* Fallback: 14px */
    color: var(--text-secondary, #6b7280); /* Fallback: gray */
    font-weight: 500;
    line-height: 1.3;
}

/* Blog Preview Cards */
.blog-preview-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-3, 0.75rem); /* Fallback: 12px */
    flex: 1;
}

.preview-card {
    display: flex;
    align-items: center;
    padding: var(--space-4, 1rem); /* Fallback: 16px */
    background: white;
    border-radius: var(--radius-lg, 0.5rem); /* Fallback: 8px */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary-color, #1e3a8a); /* Fallback: blue */
    /* HTTPS compatibility */
    min-height: 60px;
}

.preview-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color, #1e3a8a), var(--accent-color, #10b981)); /* Fallback colors */
    border-radius: var(--radius-lg, 0.5rem); /* Fallback: 8px */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-4, 1rem); /* Fallback: 16px */
    flex-shrink: 0;
}

.card-icon i {
    font-size: var(--text-lg, 1.125rem); /* Fallback: 18px */
    color: white;
}

.card-content h4 {
    font-size: var(--text-base, 1rem); /* Fallback: 16px */
    font-weight: 600;
    color: var(--text-primary, #111827); /* Fallback: dark gray */
    margin: 0 0 var(--space-1, 0.25rem) 0; /* Fallback: 4px */
    line-height: 1.3;
}

.card-content p {
    font-size: var(--text-sm, 0.875rem); /* Fallback: 14px */
    color: var(--text-secondary, #6b7280); /* Fallback: gray */
    margin: 0;
    line-height: 1.4;
}

/* Ensure blog content clears the fixed site header on this page */
.blog-page {
    margin-top: 80px;
}

.main-content {
    margin-top: 80px;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Blog Controls (search + filters) */
.blog-controls {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.blog-controls .container {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.controls-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-controls .search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-controls .search-box input {
    width: 320px;
    max-width: 70vw;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-controls .search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.blog-controls .search-box .btn {
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.blog-controls .filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-controls .filters select {
    padding: 0.65rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #374151;
}

/* Posts grid spacing polish */
.posts-grid {
    gap: 1.5rem;
}

.post-card {
    border: 1px solid #eef2f7;
}

.post-card .read-more {
    color: #2563eb;
}

.post-card .read-more:hover {
    color: #1d4ed8;
}

/* Load more (align with site buttons) */
.load-more, .load-more-container {
    text-align: center;
}

.load-more .btn, .load-more-container .btn {
    border-radius: 10px;
}

/* Featured section polish */
.featured-post-card {
    border: 1px solid #eef2f7;
}

/* Sidebar tag widget spacing */
.tags-cloud {
    gap: 0.6rem;
}

.tag-link {
    border: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .blog-controls .search-box input {
        width: 100%;
    }
    .controls-grid {
        align-items: stretch;
    }
    .blog-controls .filters {
        width: 100%;
        justify-content: flex-start;
    }
}

.blog-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.blog-main {
    min-height: 500px;
}

/* Featured Posts */
.featured-posts {
    margin-bottom: 3rem;
}

.featured-posts h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1f2937;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.featured-post-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.featured-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.featured-post-image .image-container {
    width: 100%;
    height: 100%;
}

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

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

.featured-post-image .no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 2rem;
}

.featured-post-content {
    padding: 1.5rem;
}

/* All Posts Section */
.all-posts h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1f2937;
}

.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.posts-filters {
    display: flex;
    gap: 1rem;
}

.filter-dropdown select {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    min-width: 150px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-items: center;
}

.post-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

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

.post-image .image-container {
    width: 100%;
    height: 100%;
}

.post-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-image .no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 2rem;
}

/* Image Loading States */
.image-container {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.image-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
}

.loading-branded-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #10b981 100%);
    transition: all 0.3s ease;
}

.loading-branded-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 50%);
    opacity: 0.6;
    animation: loadingPatternPulse 2s ease-in-out infinite;
}

.loading-branded-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.loading-branded-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.loading-branded-logo {
    margin-bottom: 1rem;
}

.loading-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.loading-logo-accent {
    color: #10b981;
}

.loading-spinner {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
    animation: spin 1s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.loading-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

@keyframes loadingPatternPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Image loading fade-in effect */
.image-container img[style*="display: block"] {
    animation: imageFadeIn 0.5s ease-in-out;
}

@keyframes imageFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Error state styling */
.image-container.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.image-container.error::after {
    content: "Immagine non disponibile";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

/* Branded Placeholders with Interactive Effects */
.branded-placeholder {
    position: relative;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.branded-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #10b981 100%);
    transition: all 0.3s ease;
}

.branded-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 50%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.branded-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.branded-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    color: white;
}

.branded-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.branded-logo-small {
    margin-bottom: 0.5rem;
}

.logo-text-small {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.logo-accent-small {
    color: #10b981;
}

.branded-category {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.branded-interaction {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.interaction-hint {
    background: rgba(255, 255, 255, 0.9);
    color: #1e3a8a;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Featured Branded Placeholder */
.featured-branded-placeholder {
    min-height: 300px;
}

.featured-branded-placeholder .branded-content {
    padding: 2rem;
}

.featured-branded-placeholder .branded-logo {
    margin-bottom: 1rem;
}

.featured-branded-placeholder .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0.25rem;
}

.featured-branded-placeholder .logo-accent {
    color: #10b981;
}

.featured-branded-placeholder .logo-tagline {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.featured-branded-placeholder .branded-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.featured-branded-placeholder .branded-category {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.featured-branded-placeholder .branded-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    max-width: 100%;
}

.featured-branded-placeholder .interaction-hint span {
    display: inline;
}

/* Related Branded Placeholder */
.related-branded-placeholder {
    min-height: 120px;
}

.related-branded-placeholder .branded-content {
    padding: 0.75rem;
}

.related-branded-placeholder .branded-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.related-branded-placeholder .branded-logo-mini {
    margin-bottom: 0;
}

.logo-text-mini {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.logo-accent-mini {
    color: #10b981;
}

/* Article Branded Placeholder */
.article-branded-placeholder {
    min-height: 400px;
    width: 100%;
}

.article-branded-placeholder .branded-content {
    padding: 3rem 2rem;
}

.article-branded-placeholder .branded-logo {
    margin-bottom: 2rem;
}

.article-branded-placeholder .logo-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}

.article-branded-placeholder .logo-accent {
    color: #10b981;
}

.article-branded-placeholder .logo-tagline {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.article-branded-placeholder .branded-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.article-branded-placeholder .branded-category {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.article-branded-placeholder .branded-title {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    max-width: 100%;
}

.article-branded-placeholder .interaction-hint span {
    display: inline;
    font-size: 0.9rem;
}

/* Hover Effects */
.branded-placeholder:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.branded-placeholder:hover .branded-background {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #059669 100%);
}

.branded-placeholder:hover .branded-pattern {
    opacity: 0.8;
    transform: scale(1.05);
}

.branded-placeholder:hover .branded-overlay {
    background: rgba(0, 0, 0, 0.05);
}

.branded-placeholder:hover .branded-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.branded-placeholder:hover .branded-interaction {
    opacity: 1;
    transform: translateY(-5px);
}

.branded-placeholder:hover .interaction-hint {
    transform: scale(1.05);
}

/* Animation for new placeholders */
@keyframes brandedPlaceholderAppear {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.branded-placeholder {
    animation: brandedPlaceholderAppear 0.5s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .branded-placeholder .branded-icon {
        font-size: 2rem;
    }
    
    .featured-branded-placeholder .branded-icon {
        font-size: 2.5rem;
    }
    
    .featured-branded-placeholder .logo-text {
        font-size: 1.2rem;
    }
    
    .branded-interaction {
        opacity: 1; /* Always show on mobile */
    }
    
    .interaction-hint span {
        display: none; /* Hide text on mobile */
    }
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 14px;
    color: #6b7280;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-title {
    margin-bottom: 1rem;
}

.post-title a {
    color: #1f2937;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #3b82f6;
}

.post-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 14px;
    color: #6b7280;
}

.read-more {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #1e40af;
}

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

.load-more-container .btn {
    padding: 1rem 2rem;
    font-size: 16px;
    font-weight: 500;
}

/* Sidebar */
.blog-sidebar {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    margin-bottom: 2rem;
}

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

.sidebar-widget h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

/* Search Box */
.search-box {
    position: relative;
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
}

.search-box button {
    padding: 0.75rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #2563eb;
}

/* Categories List */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.category-link:hover {
    background: #e5e7eb;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.recent-post:hover {
    background: #e5e7eb;
}

.recent-post-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.recent-post-content h4 a {
    color: #1f2937;
    text-decoration: none;
}

.recent-post-content h4 a:hover {
    color: #3b82f6;
}

.recent-post-date {
    font-size: 12px;
    color: #6b7280;
}

/* Single Post Page */
.blog-post-layout {
    display: block;
    margin-top: 2rem;
}

.blog-post-main {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 14px;
    color: #6b7280;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Post Header */
.post-header {
    margin-bottom: 2rem;
}

.post-header .post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 14px;
    color: #6b7280;
}

.post-header .post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1f2937;
}

.post-header .post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Featured Image - single article: standard size, not raw upload size */
.post-featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    max-height: 420px;
    height: 420px;
    position: relative;
    background: #f3f4f6;
}

.post-featured-image .image-container {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .post-featured-image {
        max-height: 280px;
        height: 280px;
    }
    .post-featured-image img {
        max-height: 280px;
    }
}

.featured-no-image {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #111827;
}

.featured-no-image-text {
    text-align: center;
}

.featured-no-image-text .brand-line {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.featured-no-image-text .tagline {
    margin-top: 0.25rem;
    font-size: 1rem;
    color: #4b5563;
}

/* Post navigation (prev/next) */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.post-nav-item {
    min-width: 0;
}

.post-nav-prev {
    text-align: left;
}

.post-nav-next {
    text-align: right;
}

.post-nav-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
    max-width: 100%;
}

.post-nav-next .post-nav-link {
    align-items: flex-end;
    margin-left: auto;
}

.post-nav-link:hover {
    color: #111827;
}

.post-nav-link:hover .post-nav-title {
    text-decoration: underline;
}

.post-nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.post-nav-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post-nav-arrow {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.post-nav-next .post-nav-arrow {
    margin-bottom: 0;
    margin-top: 0.25rem;
}

@media (max-width: 640px) {
    .post-nav {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .post-nav-next .post-nav-link {
        align-items: flex-start;
        margin-left: 0;
    }
}

/* Post Content */
.post-content {
    line-height: 1.8;
    color: #374151;
    font-size: 16px;
}

.post-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #1f2937;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: #1f2937;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

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

.post-content strong {
    font-weight: 600;
    color: #1f2937;
}

/* Post Footer */
.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.post-share h4 {
    margin-bottom: 1rem;
    color: #1f2937;
}

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

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.comments-section h3 {
    margin-bottom: 2rem;
    color: #1f2937;
}

.comment {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-header strong {
    color: #1f2937;
}

.comment-date {
    font-size: 14px;
    color: #6b7280;
}

.comment-content {
    line-height: 1.6;
    color: #374151;
}

/* Add Comment Form */
.add-comment {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 8px;
}

.add-comment h4 {
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Related Posts */
.related-post {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.related-post:hover {
    background: #f3f4f6;
}

.related-post-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
}

.related-post-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.related-post-content h4 a {
    color: #1f2937;
    text-decoration: none;
}

.related-post-content h4 a:hover {
    color: #3b82f6;
}

.related-post-date {
    font-size: 12px;
    color: #6b7280;
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px dashed #d1d5db;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout,
    .blog-post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .blog-hero-content h1 {
        font-size: 2rem;
    }
    
    .blog-hero-content p {
        font-size: 1rem;
    }
    
    .posts-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .posts-filters {
        width: 100%;
        justify-content: space-between;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .share-btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 2rem 0;
    }
    
    .blog-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .blog-hero-visual {
        padding: var(--space-4);
        gap: var(--space-4);
    }
    
    .blog-stats {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    
    .stat-item {
        padding: var(--space-3);
    }
    
    .stat-number {
        font-size: var(--text-xl);
    }
    
    .preview-card {
        padding: var(--space-3);
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        margin-right: var(--space-3);
    }
    
    .card-content h4 {
        font-size: var(--text-sm);
    }
    
    .card-content p {
        font-size: var(--text-xs);
    }
    
    .post-header h1 {
        font-size: 1.75rem;
    }
    
    .blog-post-main {
        padding: 1rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
}
