/* 
  =========================================================
  BLOG.CSS — AXICON AUTOMATION
  Premium Industrial UI Design System
  =========================================================
*/

/* Blog Hero Section (Standardized with About Page) */
.blog-hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 10;
    transition: all 0.5s ease;
}

.blog-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-hero-section:hover .blog-hero-img {
    transform: scale(1.05);
}


/* Blog Grid Layout */
.blog-grid-section {
    padding: 5rem 0;
    background-color: #f8fafc;
}

/* Blog Card Styles (Premium Industrial UI) */
.blog-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 2rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.12);
    border-color: rgba(23, 115, 208, 0.2);
}

.card-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card:hover .card-image {
    transform: scale(1.1);
}

.card-category-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-dark);
    z-index: 10;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card-content {
    padding: 2.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-item i {
    color: var(--primary-light);
    margin-right: 0.4rem;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.blog-card:hover .card-title {
    color: var(--primary-color);
}

.card-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    padding-top: 1.75rem;
    border-top: 1px solid #f1f5f9;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    color: var(--primary-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.read-more-link i {
    font-size: 0.7rem;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.read-more-link:hover i {
    transform: translateX(6px);
}

/* =========================================================
   SIMPLIFIED BLOG DETAIL REDESIGN (PROFESSIONAL)
   ========================================================= */

#blog-post-view {
    animation: fadeIn 0.4s ease-out;
}

/* Typography & Content Layout */
.prose h2 {
    font-family: 'Outfit', sans-serif !important;
    color: var(--primary-dark);
    font-size: 2rem;
    font-weight: 800;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1.75rem;
    line-height: 1.8;
    color: #475569;
    font-size: 1.05rem;
}

.prose strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.prose blockquote {
    font-size: 1.35rem;
    line-height: 1.6;
    font-weight: 600;
    color: var(--primary-dark);
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-radius: 0 1rem 1rem 0;
    margin: 3rem 0;
    font-style: italic;
}

/* Component Simplification */
.prose ul li {
    list-style: none;
    position: relative;
}

/* Key Takeaways Box */
.takeaway-card-simple {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .prose h1 { font-size: 1.85rem !important; }
    .prose h2 { font-size: 1.5rem !important; }
    
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* Professional Card Styling */
.card-simple {
    border: 1px solid #f1f5f9;
    background: white;
    transition: border-color 0.3s ease;
}

.card-simple:hover {
    border-color: var(--primary-color);
}

/* Animation utilities for blog */
.animate-on-scroll {
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-grid-item {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
    .filter-bar {
        top: 60px;
        padding: 1rem 0;
    }
    
    .filter-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.75rem;
    }
    
    .card-content {
        padding: 1.75rem;
    }
    
    .card-title {
        font-size: 1.35rem;
    }
}

