.blog-main{overflow-x:hidden}.blog-hero{background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;padding:100px 0 80px;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 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="blogGrid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23blogGrid)"/></svg>') repeat;opacity:.4}.hero-content{text-align:center;position:relative;z-index:2}.hero-title{font-size:3.2rem;font-weight:800;margin-bottom:1.5rem;text-shadow:0 2px 20px rgba(0,0,0,.2);letter-spacing:-.02em}.hero-subtitle{font-size:1.2rem;color:#ffffffe6;max-width:550px;margin:0 auto 3rem;line-height:1.6}.blog-stats{display:flex;justify-content:center;gap:3rem;flex-wrap:wrap;margin-top:2rem}.stat-item{text-align:center;background:#ffffff1a;padding:1.5rem 2rem;border-radius:15px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);transition:transform .3s ease}.stat-item:hover{transform:translateY(-3px)}.stat-number{display:block;font-size:2rem;font-weight:800;margin-bottom:.5rem;color:#fff}.stat-label{font-size:.9rem;opacity:.8;color:#fff}.blog-filters{background:#fff;padding:2rem 0;box-shadow:0 2px 10px #0000001a;position:sticky;top:80px;z-index:100}.filter-wrapper{display:grid;grid-template-columns:1fr auto auto;gap:2rem;align-items:center}.search-container{display:flex;position:relative;max-width:400px}.search-input{flex:1;padding:12px 20px 12px 45px;border:2px solid #e5e7eb;border-radius:25px;outline:none;transition:all .3s ease;font-size:.95rem}.search-input:focus{border-color:#4f46e5;box-shadow:0 0 0 3px #4f46e51a}.search-btn{position:absolute;left:15px;top:50%;transform:translateY(-50%);background:none;border:none;color:#6b7280;cursor:pointer;transition:color .3s ease}.search-input:focus+.search-btn{color:#4f46e5}.category-filter{display:flex;gap:.75rem;flex-wrap:wrap}.filter-btn{background:#f8fafc;border:2px solid #e2e8f0;color:#64748b;padding:8px 16px;border-radius:20px;font-weight:600;cursor:pointer;transition:all .3s ease;font-size:.9rem;white-space:nowrap}.filter-btn:hover{background:#f1f5f9;border-color:#cbd5e1;color:#475569}.filter-btn.active{background:#4f46e5;border-color:#4f46e5;color:#fff;box-shadow:0 4px 12px #4f46e54d}.sort-container{min-width:150px}.sort-select{width:100%;padding:10px 15px;border:2px solid #e5e7eb;border-radius:8px;outline:none;background:#fff;font-size:.9rem;cursor:pointer;transition:border-color .3s ease}.sort-select:focus{border-color:#4f46e5}.featured-posts{padding:4rem 0;background:#f8fafc}.section-title{font-size:2.2rem;font-weight:700;color:#1f2937;margin-bottom:3rem;text-align:center}.featured-grid{display:grid;grid-template-columns:2fr 1fr;gap:2rem;margin-bottom:2rem}.featured-main{background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 10px 40px #0000001a;transition:transform .4s ease}.featured-main:hover{transform:translateY(-5px)}.featured-main .post-image{position:relative;height:300px;overflow:hidden}.featured-main .post-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}.featured-main:hover .post-image img{transform:scale(1.05)}.featured-main .post-content{padding:2rem}.featured-main .post-title{font-size:1.8rem;font-weight:700;line-height:1.3;margin-bottom:1rem}.featured-main .post-title a{color:#1f2937;text-decoration:none;transition:color .3s ease}.featured-main .post-title a:hover{color:#4f46e5}.featured-main .post-excerpt{font-size:1.1rem;color:#6b7280;line-height:1.6;margin-bottom:1.5rem}.featured-sub{display:flex;flex-direction:column;gap:1.5rem}.post-card-small{background:#fff;border-radius:15px;overflow:hidden;box-shadow:0 4px 20px #00000014;transition:all .3s ease;display:flex;height:120px}.post-card-small:hover{transform:translateY(-3px);box-shadow:0 8px 30px #0000001f}.post-image-small{width:120px;flex-shrink:0;overflow:hidden}.post-image-small img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}.post-card-small:hover .post-image-small img{transform:scale(1.1)}.post-content-small{padding:1rem;display:flex;flex-direction:column;justify-content:space-between;flex:1}.post-content-small h4{font-size:.95rem;font-weight:600;line-height:1.4;margin:.5rem 0}.post-content-small h4 a{color:#1f2937;text-decoration:none;transition:color .3s ease}.post-content-small h4 a:hover{color:#4f46e5}.post-meta-small{display:flex;gap:1rem;font-size:.8rem;color:#9ca3af}.post-meta{display:flex;align-items:center;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}.post-category{background:#4f46e5;color:#fff;padding:4px 12px;border-radius:15px;font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.post-category[data-category=javascript]{background:#f59e0b}.post-category[data-category=design]{background:#8b5cf6}.post-category[data-category=web-development]{background:#10b981}.post-category[data-category=tools]{background:#f97316}.post-category[data-category=tips]{background:#06b6d4}.post-date,.post-read-time{color:#6b7280;font-size:.9rem}.post-badge{position:absolute;top:15px;right:15px;padding:6px 12px;border-radius:15px;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.post-badge.featured{background:linear-gradient(135deg,#f59e0b,#f97316);color:#fff}.post-badge.new{background:linear-gradient(135deg,#10b981,#059669);color:#fff}.post-stats{display:flex;gap:1.5rem;margin-top:1rem}.stat{display:flex;align-items:center;gap:.5rem;font-size:.9rem;color:#6b7280}.stat .icon{font-size:1rem}.recent-posts{padding:4rem 0;background:#fff}.posts-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:3rem}.view-toggle{display:flex;background:#f1f5f9;border-radius:8px;padding:4px}.toggle-btn{background:none;border:none;padding:8px 12px;border-radius:6px;cursor:pointer;transition:all .3s ease;color:#64748b}.toggle-btn.active{background:#fff;color:#4f46e5;box-shadow:0 2px 4px #0000001a}.posts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:2rem}.posts-grid.list-view{grid-template-columns:1fr}.posts-grid.list-view .post-card{display:flex;height:200px}.posts-grid.list-view .post-image{width:300px;flex-shrink:0}.posts-grid.list-view .post-content{display:flex;flex-direction:column;justify-content:space-between}.post-card{background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 4px 25px #00000014;transition:all .4s cubic-bezier(.4,0,.2,1);border:1px solid #f1f5f9}.post-card:hover{transform:translateY(-8px);box-shadow:0 20px 60px #00000026;border-color:#e2e8f0}.post-image{position:relative;height:240px;overflow:hidden}.post-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}.post-card:hover .post-image img{transform:scale(1.05)}.post-content{padding:1.5rem}.post-title{font-size:1.3rem;font-weight:700;line-height:1.4;margin-bottom:1rem}.post-title a{color:#1f2937;text-decoration:none;transition:color .3s ease}.post-title a:hover{color:#4f46e5}.post-excerpt{color:#6b7280;line-height:1.6;margin-bottom:1.5rem;font-size:.95rem}.post-author{display:flex;align-items:center;gap:.75rem;margin-top:1rem}.author-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;border:2px solid #f1f5f9}.author-name{font-size:.9rem;font-weight:600;color:#4b5563}.load-more-container{text-align:center;margin-top:4rem}.btn-load-more{background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;border:none;padding:15px 30px;border-radius:50px;font-weight:600;cursor:pointer;transition:all .3s ease;display:inline-flex;align-items:center;gap:.75rem;font-size:1rem}.btn-load-more:hover{transform:translateY(-2px);box-shadow:0 10px 30px #4f46e566}.btn-load-more svg{transition:transform .3s ease}.btn-load-more:hover svg{transform:translateY(2px)}.newsletter-signup{background:linear-gradient(135deg,#1e293b,#334155);color:#fff;padding:5rem 0;position:relative;overflow:hidden}.newsletter-signup:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="newsletterPattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23newsletterPattern)"/></svg>') repeat;opacity:.5}.newsletter-content{text-align:center;position:relative;z-index:2;max-width:600px;margin:0 auto}.newsletter-content h2{font-size:2.5rem;font-weight:800;margin-bottom:1rem;color:#fff}.newsletter-content p{font-size:1.1rem;color:#ffffffe6;margin-bottom:2.5rem;line-height:1.6}.newsletter-form{margin-bottom:3rem}.form-group{display:flex;gap:1rem;margin-bottom:.75rem;flex-wrap:wrap;justify-content:center}.newsletter-input{flex:1;min-width:280px;padding:15px 20px;border:2px solid rgba(255,255,255,.2);border-radius:50px;background:#ffffff1a;color:#fff;outline:none;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:1rem}.newsletter-input::placeholder{color:#ffffffb3}.newsletter-input:focus{border-color:#ffffff80;background:#fff3;box-shadow:0 0 0 3px #ffffff1a}.newsletter-btn{background:#fff;color:#1e293b;border:none;padding:15px 30px;border-radius:50px;font-weight:700;cursor:pointer;transition:all .3s ease;display:inline-flex;align-items:center;gap:.5rem;font-size:1rem;white-space:nowrap}.newsletter-btn:hover{background:#f8fafc;transform:translateY(-2px);box-shadow:0 10px 25px #0003}.newsletter-note{text-align:center;color:#ffffffb3;font-size:.9rem}.newsletter-stats{display:flex;justify-content:center;gap:3rem;flex-wrap:wrap}.newsletter-stats .stat{text-align:center;background:#ffffff1a;padding:1.5rem 2rem;border-radius:15px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2)}.newsletter-stats .number{display:block;font-size:1.8rem;font-weight:800;margin-bottom:.5rem;color:#fff}.newsletter-stats .label{font-size:.9rem;color:#fffc}@media (max-width: 1024px){.featured-grid{grid-template-columns:1fr;gap:2rem}.featured-main .post-image{height:250px}.posts-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}.filter-wrapper{grid-template-columns:1fr;gap:1.5rem}.category-filter{justify-content:center}.posts-header{flex-direction:column;gap:1.5rem;align-items:center}}@media (max-width: 768px){.blog-hero{padding:80px 0 60px}.hero-title{font-size:2.5rem}.hero-subtitle{font-size:1.1rem}.blog-stats{gap:1.5rem}.stat-item{padding:1rem 1.5rem}.blog-filters{position:static;top:auto}.filter-wrapper{gap:1rem}.category-filter{overflow-x:auto;padding-bottom:.5rem;justify-content:flex-start}.filter-btn{flex-shrink:0}.featured-sub{gap:1rem}.post-card-small{height:100px}.post-image-small{width:100px}.post-content-small{padding:.75rem}.post-content-small h4{font-size:.85rem}.posts-grid{grid-template-columns:1fr}.posts-grid.list-view .post-card{flex-direction:column;height:auto}.posts-grid.list-view .post-image{width:100%;height:200px}.newsletter-content h2{font-size:2rem}.form-group{flex-direction:column;align-items:center}.newsletter-input{width:100%;min-width:auto}.newsletter-btn{width:100%;justify-content:center}.newsletter-stats{gap:1.5rem}}@media (max-width: 480px){.hero-title{font-size:2rem}.hero-subtitle{font-size:1rem}.section-title{font-size:1.8rem}.featured-main .post-content{padding:1.5rem}.featured-main .post-title{font-size:1.5rem}.featured-main .post-excerpt{font-size:1rem}.post-content{padding:1.25rem}.post-title{font-size:1.1rem}.post-excerpt{font-size:.9rem}.newsletter-content h2{font-size:1.8rem}.newsletter-content p{font-size:1rem}.newsletter-stats .stat{padding:1rem 1.5rem}.newsletter-stats .number{font-size:1.5rem}}.post-card{opacity:1;transform:translateY(0);animation:slideInUp .6s ease forwards}.post-card:nth-child(1){animation-delay:.1s}.post-card:nth-child(2){animation-delay:.2s}.post-card:nth-child(3){animation-delay:.3s}.post-card:nth-child(4){animation-delay:.4s}.post-card:nth-child(5){animation-delay:.5s}.post-card:nth-child(6){animation-delay:.6s}@keyframes slideInUp{to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion: reduce){.post-card,.featured-main,.post-card-small,.filter-btn,.btn-load-more,.newsletter-btn{transition:none;animation:none}.post-card{opacity:1;transform:none}}.filter-btn:focus,.search-input:focus,.sort-select:focus,.toggle-btn:focus,.btn-load-more:focus,.newsletter-input:focus,.newsletter-btn:focus{outline:2px solid #4f46e5;outline-offset:2px}.post-title a:focus{outline:2px solid #4f46e5;outline-offset:3px;border-radius:4px}@media (prefers-color-scheme: dark){.blog-filters{background:#1f2937;border-bottom:1px solid #374151}.search-input,.sort-select{background:#374151;border-color:#4b5563;color:#fff}.search-input::placeholder{color:#9ca3af}.filter-btn{background:#374151;border-color:#4b5563;color:#d1d5db}.filter-btn:hover{background:#4b5563;border-color:#6b7280}.recent-posts{background:#111827}.featured-posts{background:#1f2937}.section-title{color:#fff}.post-card,.featured-main,.post-card-small{background:#1f2937;border-color:#374151}.post-title a{color:#fff}.post-excerpt,.author-name{color:#d1d5db}}
