/* ============================================
   ENHANCED BLOG STYLES - PREMIUM DESIGN
   SyncApp Technologies Blog System
   ============================================ */

/* Blog Listing Page
   ========================================= */

.blog-hero {
    background: linear-gradient(135deg, #1775c1 0%, #0d5a9a 100%);
    color: white;
    padding: 80px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>') repeat;
    opacity: 0.3;
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 16px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    letter-spacing: -0.5px;
}

.blog-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 35px;
    line-height: 1.6;
}

.blog-hero .subscribe-quick {
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    background: rgba(255,255,255,0.15);
    padding: 8px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.blog-hero .subscribe-quick input {
    flex: 1;
    padding: 16px 24px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    font-size: 1rem;
    background: rgba(255,255,255,0.95);
    transition: all 0.3s ease;
}

.blog-hero .subscribe-quick input:focus {
    outline: none;
    border-color: white;
    background: white;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.2);
}

.blog-hero .subscribe-quick button {
    padding: 16px 36px;
    background: white;
    color: #1775c1;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.blog-hero .subscribe-quick button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Category Filters */
.category-filters {
    background: white;
    padding: 28px 0;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.category-filters .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.filter-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #4b5563;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(23, 117, 193, 0.1);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
}

.filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1775c1;
    color: white;
    border-color: #1775c1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 117, 193, 0.3);
}

/* Blog Grid */
.blog-grid-section {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.blog-grid-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-grid-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
}

/* Blog Cards Grid */
.blog-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    align-items: start;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    max-width: 100%;
    height: fit-content;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1775c1, #0d5a9a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: #1775c1;
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card-image {
    width: 100%;
    height: 240px;
    min-height: 240px;
    max-height: 240px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.blog-card-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: fit-content;
}

.blog-card .category-badge {
    display: inline-block;
    padding: 7px 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1775c1;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    align-self: flex-start;
    border: 1px solid rgba(23, 117, 193, 0.2);
}

.blog-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.35;
}

.blog-card h3 a {
    color: #1f2937;
    text-decoration: none;
    background: linear-gradient(to right, #1775c1 0%, #1775c1 100%);
    background-size: 0 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
    padding-bottom: 2px;
}

.blog-card h3 a:hover {
    background-size: 100% 2px;
}

.blog-card-excerpt {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    font-size: 0.9rem;
    color: #9ca3af;
}

.blog-card .read-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-card .arrow-link {
    color: #1775c1;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.blog-card .arrow-link:hover {
    gap: 14px;
}

.blog-card .arrow-link::after {
    content: '→';
    font-size: 1.2rem;
}

/* Blog Sidebar */
.blog-sidebar {
    display: list-item;
    list-style: none;
    /* position: sticky; */
    top: 24px;
    /* max-height: calc(100vh - 48px); */
    /* overflow-y: auto; */
    /* overflow-x: hidden; */
}
.blog-sidebar > * {
    margin-bottom: 15px;
}

.blog-sidebar > *:last-child {
    margin-bottom: 0;
}

/* Custom scrollbar for sidebar */
.blog-sidebar::-webkit-scrollbar {
    width: 6px;
}

.blog-sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.blog-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.blog-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.sidebar-card h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 16px;
    color: #1f2937;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* CTA Sidebar Card */
.sidebar-cta {
    background: linear-gradient(135deg, #1775c1 0%, #0d5a9a 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sidebar-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

.sidebar-cta h3 {
    color: white;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.sidebar-cta p {
    opacity: 0.95;
    margin-bottom: 24px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.sidebar-cta .btn {
    background: white;
    color: #1775c1;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.sidebar-cta .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* Recent Posts Sidebar */
.recent-post-item {
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-item:hover {
    padding-left: 8px;
}

.recent-post-item a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.6;
    display: block;
    transition: color 0.3s ease;
}

.recent-post-item a:hover {
    color: #1775c1;
}

.recent-post-item .post-date {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 8px;
    display: block;
}

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

.category-list a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 700;
    padding: 14px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e5e7eb;
}

.category-list a:hover {
    background: linear-gradient(135deg, #1775c1 0%, #0d5a9a 100%);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(23, 117, 193, 0.3);
}

.category-list .count {
    font-size: 0.85rem;
    opacity: 0.7;
    background: rgba(0,0,0,0.05);
    padding: 4px 10px;
    border-radius: 50px;
}

.category-list a:hover .count {
    background: rgba(255,255,255,0.2);
    opacity: 1;
}

/* Email Signup Sidebar */
.sidebar-email {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
}

.sidebar-email h3 {
    color: #92400e;
}

.sidebar-email p {
    color: #78350f;
}

.sidebar-email-text {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.6;
}

.sidebar-email input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #fbbf24;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.sidebar-email input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
}

.sidebar-email button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.sidebar-email button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}


/* ============================================
   INDIVIDUAL BLOG POST STYLES - ENHANCED
   ============================================ */

/* Blog Post Hero */
.blog-post-hero {
    padding: 30px 0 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-bottom: 1px solid #e5e7eb;
}

.blog-post-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.breadcrumbs {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 16px;
    font-weight: 500;
}

.breadcrumbs a {
    color: #1775c1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #0d5a9a;
    text-decoration: underline;
}

.blog-post-hero .category-badge {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1775c1;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    border: 2px solid rgba(23, 117, 193, 0.2);
}

.blog-post-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #1f2937;
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    display: none; /* Hidden per user request */
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 800;
    color: #1f2937;
    font-size: 1.05rem;
}

.author-title {
    font-size: 0.9rem;
    color: #1775c1;
    font-weight: 600;
}

.meta-divider {
    color: #d1d5db;
}

.publish-date,
.read-time {
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 600;
}

.featured-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.featured-image:hover {
    transform: scale(1.01);
}

/* Blog Post Layout */
.blog-post-layout {
    padding: 30px 0 80px;
    background: #fafbfc;
}

.blog-post-layout .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
}

/* Main Article Content */
.article-content {
    background: white;
    padding: 60px;
    border-radius: 20px;
    line-height: 1.9;
    font-size: 1.125rem;
    color: #374151;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.article-content h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1f2937;
    margin-top: 50px;
    margin-bottom: 24px;
    line-height: 1.3;
    padding-bottom: 16px;
    border-bottom: 3px solid #1775c1;
}

.article-content h3 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1f2937;
    margin-top: 38px;
    margin-bottom: 18px;
}

.article-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 28px;
    margin-bottom: 14px;
}

.article-content p {
    margin-bottom: 24px;
    line-height: 1.9;
}

.article-content ul,
.article-content ol {
    margin-bottom: 28px;
    padding-left: 32px;
}

.article-content li {
    margin-bottom: 14px;
    line-height: 1.8;
    list-style: disc;
}

.article-content ol li {
    list-style: decimal;
}

.article-content strong {
    font-weight: 800;
    color: #1f2937;
}

.article-content a {
    color: #1775c1;
    text-decoration: underline;
    font-weight: 600;
}

.article-content a:hover {
    color: #0d5a9a;
}

.article-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 36px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.article-content blockquote {
    border-left: 5px solid #1775c1;
    padding-left: 28px;
    margin: 36px 0;
    font-style: italic;
    color: #4b5563;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 24px 28px;
    border-radius: 12px;
    font-size: 1.1rem;
}

.article-content code {
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #dc2626;
    font-weight: 600;
}

.article-content pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 28px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 32px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Table of Contents */
.table-of-contents {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 48px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.table-of-contents h3 {
    font-size: 1.3rem !important;
    font-weight: 800;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    color: #1f2937;
    border: none !important;
    padding: 0 !important;
}

.table-of-contents ul {
    padding-left: 0 !important;
}

.table-of-contents li {
    list-style: none !important;
    margin-bottom: 12px !important;
    padding-left: 24px;
    position: relative;
}

.table-of-contents li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #1775c1;
    font-weight: 700;
}

.table-of-contents a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.table-of-contents a:hover {
    color: #1775c1;
    padding-left: 8px;
}

/* Inline CTA Box */
.inline-cta {
    background: linear-gradient(135deg, #1775c1 0%, #0d5a9a 100%);
    color: white;
    padding: 45px;
    border-radius: 20px;
    text-align: center;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(23, 117, 193, 0.25);
}

.inline-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse-rotate 20s linear infinite;
}

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

.inline-cta h3 {
    color: white !important;
    font-size: 1.8rem !important;
    margin-bottom: 14px !important;
    margin-top: 0 !important;
    border: none !important;
    padding: 0 !important;
    position: relative;
    z-index: 1;
}

.inline-cta p {
    opacity: 0.95;
    margin-bottom: 28px;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.inline-cta .btn {
    background: white;
    color: #1775c1;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    font-size: 1.05rem;
}

.inline-cta .btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

/* Lead Magnet Box */
.lead-magnet-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 3px solid #f59e0b;
    border-radius: 20px;
    padding: 45px;
    margin: 50px 0;
    text-align: center;
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.2);
    position: relative;
    overflow: hidden;
}

.lead-magnet-box::before {
    content: '✨';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.2;
}

.lead-magnet-box h3 {
    font-size: 1.7rem !important;
    color: #92400e;
    margin-bottom: 14px !important;
    margin-top: 0 !important;
    border: none !important;
    padding: 0 !important;
    font-weight: 900;
}

.lead-magnet-box p {
    color: #78350f;
    margin-bottom: 28px;
    font-size: 1.1rem;
    font-weight: 600;
}

.lead-magnet-box form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
}

.lead-magnet-box input {
    flex: 1;
    padding: 16px 22px;
    border: 2px solid #f59e0b;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.lead-magnet-box input:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.lead-magnet-box button {
    padding: 16px 36px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
    font-size: 1rem;
}

.lead-magnet-box button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

/* Sidebar Lead Magnet Styles */
.sidebar-lead-magnet {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    position: relative;
    overflow: hidden;
}

.sidebar-lead-magnet::before {
    content: '📥';
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 2.5rem;
    opacity: 0.15;
}

.sidebar-lead-magnet h3 {
    color: #92400e !important;
    font-size: 1.4rem !important;
    position: relative;
    z-index: 1;
}

.sidebar-lead-magnet p {
    color: #78350f;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.sidebar-lead-magnet .btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
    font-size: 0.95rem;
}

.sidebar-lead-magnet .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.4);
}

/* Sidebar Stats Card */
.sidebar-stats {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border: 2px solid #8b5cf6;
}

.sidebar-stats h3 {
    color: #5b21b6 !important;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.stat-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 900;
    color: #5b21b6;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
}

/* Sidebar Quick Links with Icons */
.quick-links-enhanced {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #1f2937;
    font-weight: 600;
    border: 1px solid #e5e7eb;
}

.quick-link-item:hover {
    background: #1775c1;
    color: white;
    transform: translateX(6px);
    border-color: #1775c1;
}

.quick-link-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.quick-link-text {
    flex: 1;
    font-size: 0.95rem;
}


/* Author Bio */
.author-bio {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 20px;
    padding: 38px;
    margin: 60px 0 48px;
    display: flex;
    gap: 24px;
    align-items: center;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.author-bio-avatar {
    display: none; /* Hidden per user request */
}

.author-bio-content h4 {
    font-size: 1.5rem !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    color: #1f2937;
    font-weight: 900;
}

.author-bio-title {
    font-size: 1rem;
    color: #1775c1;
    font-weight: 700;
    margin-bottom: 14px;
}

.author-bio-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 0;
}

/* Social Share */
.social-share {
    padding: 32px 0;
    border-top: 2px solid #e5e7eb;
    border-bottom: 2px solid #e5e7eb;
    margin: 48px 0;
}

.social-share h4 {
    font-size: 1.2rem !important;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    color: #4b5563;
    font-weight: 800;
}

.share-buttons {
    display: flex;
    gap: 14px;
}

.share-btn {
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #00669c 100%);
    color: white;
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d90e0 100%);
    color: white;
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #1560d8 100%);
    color: white;
}

/* Related Posts */
.related-posts {
    margin-top: 70px;
    padding-top: 48px;
    border-top: 3px solid #e5e7eb;
}

.related-posts h3 {
    font-size: 2rem !important;
    font-weight: 900;
    margin-bottom: 36px !important;
    margin-top: 0 !important;
    color: #1f2937;
    border: none !important;
    padding: 0 !important;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.related-post-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.04);
}

.related-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
    border-color: #1775c1;
}

.related-post-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post-card:hover .related-post-image {
    transform: scale(1.08);
}

.related-post-content {
    padding: 22px;
}

.related-post-content h4 {
    font-size: 1.15rem !important;
    margin-bottom: 12px !important;
    margin-top: 0 !important;
    font-weight: 800;
}

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

.related-post-content h4 a:hover {
    color: #1775c1;
}

.related-post-content p {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.6;
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 900px) {
    /* Blog Listing */
    .blog-grid-layout {
        grid-template-columns: 1fr;
    }

    .blog-cards {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        order: -1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .blog-hero h1 {
        font-size: 2.4rem;
    }

    /* Blog Post */
    .blog-post-layout .container {
        grid-template-columns: 1fr;
    }

    .blog-post-hero h1 {
        font-size: 2.2rem;
    }

    .article-content {
        padding: 40px 30px;
    }

    .article-content h2 {
        font-size: 1.8rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .lead-magnet-box form {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-hero .subscribe-quick {
        flex-direction: column;
    }

    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 12px;
    }

    .filter-btn {
        white-space: nowrap;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
        display: none; /* Hide sidebar on mobile */
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .article-content {
        padding: 30px 20px;
        font-size: 1.05rem;
    }

    .blog-post-hero h1 {
        font-size: 1.8rem;
    }
}

/* Success Message Styles */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 18px 28px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    animation: slideIn 0.4s ease;
    font-weight: 700;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 18px 28px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
    z-index: 1000;
    animation: slideIn 0.4s ease;
    font-weight: 700;
}
