The IT Insider

Daily insights for IT leaders and decision-makers

AI news, Microsoft updates, security intelligence, and IT strategy for Tampa Bay businesses — published daily.

Security March 17, 2026

Safeguarding AI: Purview's Innovations for Fabric in Tampa Bay

Discover how Microsoft Purview's latest innovations for Fabric secure your AI transformation. Learn how Tampa Bay businesses can accelerate AI adoption safely with robust data governance.

Read more
AI News March 17, 2026

Nvidia’s NemoClaw: Securing the Future of Enterprise AI Agents

Nvidia's NemoClaw offers a new path to secure, governed AI agent deployments. Learn what this means for Tampa Bay businesses and their AI strategy.

Read more
AI News March 17, 2026

AI Agents: The Next Frontier for Tampa Bay Businesses

Picsart's AI agent marketplace signals a shift to autonomous AI. Learn what this means for enterprise leaders in Tampa Bay and how to navigate the new landscape.

Read more
Security March 17, 2026

Entra ID's New Attribute Support: A Game Changer for Governance

Discover how expanded attribute support in Entra ID Lifecycle Workflows enhances security, efficiency, and compliance for Tampa Bay businesses.

Read more
IT Services March 16, 2026

HIPAA Compliance: Safeguarding Tampa Bay Healthcare's Future

Uncover the critical IT controls required for HIPAA compliance, specifically for Tampa Bay's healthcare providers. Learn how to avoid hidden risks.

Read more
AI News March 16, 2026

AI's Legal Crossroads: What ByteDance's Pause Means for Your Business

A major AI video generator's delayed launch highlights critical legal and ethical challenges. BluetechGreen examines the business implications for Tampa Bay leaders.

Read more
AI News March 16, 2026

Beyond the Hype: Discerning True AI Innovation from 'Wrappers'

70% of AI pitches are 'wrappers.' Learn how business leaders identify genuine AI value and build sustainable strategies in the evolving AI landscape.

Read more
What's New March 16, 2026

Boost Business Security: Intune's New Protected Apps Arrive

Discover how Microsoft Intune's new protected apps, Jump and Mijn InPlanning, enhance data security and compliance for Tampa Bay businesses. Learn strategic deployment from BluetechGreen.

Read more
AI News March 15, 2026

Consolidating Power: Army's $20B AI Contract and Your IT Future

The US Army's $20B Anduril contract signals a major shift towards consolidated enterprise AI. Discover the implications for Tampa Bay businesses and your IT strategy.

Read more
Tips & Tricks March 15, 2026

Unlocking AI Agents: Natural Language Power in M365 Copilot

Discover how natural language agent creation in Microsoft 365 Copilot is transforming business efficiency for Tampa Bay leaders. Learn its strategic impact.

Read more
AI News March 14, 2026

AI's Iterative Reality: Lessons for Tampa Bay Businesses

Discover why even major AI labs are revamping their tools and what this means for your business's AI strategy in the Tampa Bay area. Learn to navigate AI complexities.

Read more
AI News March 14, 2026

Unlocking Business Agility with ChatGPT's New App Integrations

Explore how ChatGPT's new integrations with apps like Spotify, Canva, and Expedia can revolutionize business operations for Tampa Bay enterprises.

Read more
Compliance March 13, 2026

Protecting Sensitive Data: Microsoft Purview DLP for Tampa Bay Businesses

Learn how Microsoft Purview DLP safeguards sensitive data for Tampa Bay's healthcare, legal, and financial firms, ensuring compliance and preventing breaches.

Read more
Security March 13, 2026

Fake VPNs: The Stealthy Threat Hijacking Your Network Access

Storm-2561's SEO poisoning pushes fake VPNs, stealing credentials. Learn how to protect your Tampa Bay business from sophisticated credential theft.

Read more
AI News March 13, 2026

Quantum Leap: Preparing Your Enterprise for the Next Computing Revolution

Explore how Tampa Bay businesses can prepare for quantum computing's arrival. Learn about QuTwo's vision and BluetechGreen's strategies for future-proofing your IT.

Read more
What's New March 13, 2026

Secure Your Mobile Workforce: Intune's Evolving Protected App Ecosystem

Discover how Microsoft Intune's expanding protected app ecosystem, including new additions like Jump and Mijn InPlanning, empowers Tampa Bay businesses to secure mobile productivity without compromise.

Read more
IT Services March 12, 2026

Mastering Hybrid Work: Secure IT for Tampa Bay's Future

Tampa Bay businesses need robust IT infrastructure for permanent hybrid work. Explore VPN alternatives, conditional access, and cloud-managed endpoints for lasting security and efficiency.

Read more
Security March 12, 2026

The Contagious Interview: When Recruitment Becomes a Cyber Threat

Learn how the 'Contagious Interview' campaign weaponizes job recruitment to steal data. BluetechGreen explains the business impact and how to protect your Tampa Bay organization.

Read more
AI News March 12, 2026

The Unrelatable AI: What Tilly Norwood's Song Teaches CIOs

An AI actor's deeply unrelatable song highlights crucial lessons for Tampa Bay businesses: AI's limits in human empathy and its true value in practical applications.

Read more
Tips & Tricks March 12, 2026

Beyond Chat: Interactive AI Widgets Reshape Business Productivity

Discover how interactive UI widgets for declarative agents are transforming Microsoft 365 Copilot, offering Tampa Bay businesses unparalleled efficiency and user experience.

Read more
Compliance March 11, 2026

Proactive eDiscovery: Safeguarding Your Business with Purview

Prepare for legal challenges with Microsoft Purview eDiscovery. Learn how proactive legal holds, custodian management, and review set analysis protect your Tampa Bay business.

Read more
Security March 11, 2026

March Patch Tuesday: Navigating Zero-Days and Critical Flaws

Microsoft's March Patch Tuesday addresses 84 flaws, including two public zero-days. Learn what this means for Tampa Bay businesses and how to strengthen your security posture.

Read more
AI News March 11, 2026

Amazon's Healthcare AI: A Blueprint for Business Transformation

Amazon's new healthcare AI assistant signals a pivotal shift. Discover its impact on efficiency, compliance, and strategic AI adoption for Tampa Bay businesses.

Read more
AI News March 11, 2026

AI's Multilingual Leap: What Gemini in Chrome Means for Your Business

Google Gemini's multilingual expansion in Chrome signals a new era for business. Discover how AI breaking language barriers impacts productivity, inclusivity, and competitive advantage for Tampa Bay organizations.

Read more
Security March 11, 2026

Enhanced Entra ID Workflows: Smarter Identity Management

Discover how Entra ID Lifecycle Workflows' expanded attribute support revolutionizes identity governance. Automate access, enhance security, and ensure compliance for your Tampa Bay business.

Read more
IT Services March 10, 2026

Unlock 20-30% Savings: Microsoft 365 Optimization for Tampa Bay

Tampa Bay businesses can save 20-30% on Microsoft 365 licenses. Discover common pitfalls, strategic optimization, and how to reclaim your IT budget.

Read more
AI News March 10, 2026

AI Supply Chain Under Scrutiny: What the Anthropic Lawsuit Means

Top AI talent defends Anthropic against a DoD supply-chain risk label. Explore the implications for AI trust, procurement, and risk management for Tampa Bay businesses.

Read more
Security March 9, 2026

The Hidden Risk: When Trusted Browser Extensions Turn Malicious

Discover how seemingly safe Chrome extensions can become a vector for data theft and code injection after ownership transfer. Learn proactive strategies to protect your Tampa Bay business.

Read more
AI News March 9, 2026

AI's Defense Dilemma: Trust, Ethics, and Government Contracts

Recent controversies highlight the complex ethical and regulatory landscape for AI startups partnering with defense. Understand the implications for your business.

Read more
AI News March 9, 2026

AI's Privacy Paradox: Navigating Facial Recognition in Business

Explore the complex privacy challenges of AI, particularly facial recognition, and how businesses can build trust and ensure compliance in the Tampa Bay area.

Read more
Tips & Tricks March 9, 2026

Copilot's Next Leap: Interactive Widgets Reshape Business AI

Discover how interactive UI widgets are transforming Microsoft 365 Copilot, enabling richer, action-oriented AI experiences for Tampa Bay businesses.

Read more
AI News March 8, 2026

AI's Ethical Crossroads: What the Latest Developments Mean for Your Business

The collision of the Pro-Human Declaration and a major AI developer's ethical standoff signals a new era for AI governance. Learn what this means for Tampa Bay businesses.

Read more
Security March 8, 2026

Dynamic Identity: Entra ID's Enhanced Lifecycle Workflows Redefine Automation

Discover how Entra ID's expanded attribute support in Lifecycle Workflows boosts automation, security, and compliance for Tampa Bay businesses. Proactive identity governance simplified.

Read more
AI News March 7, 2026

AI Stability: Claude's Availability & Your Business Continuity

Recent news around Anthropic Claude's availability raises questions. Learn how major platforms ensure continuity for your business, especially in Tampa Bay.

Read more
What's New March 7, 2026

Expanding Intune's Reach: New Protected Apps Bolster Enterprise Security

Microsoft Intune adds new protected apps, Jump and Mijn InPlanning, enhancing mobile security for businesses. Learn the strategic impact on data protection and productivity.

Read more
IT Services March 6, 2026

The True Cost of IT Downtime for St. Petersburg Businesses

Discover how IT downtime costs St. Petersburg SMBs $8K-$25K per hour, impacting revenue, reputation, and trust. Learn proactive strategies for resilience.

Read more
Security March 6, 2026

Cultivating Cyber Resilience: The Strategic Imperative of Diverse Teams

Explore how fostering women in cybersecurity at every career stage strengthens organizational defenses, addresses talent gaps, and drives innovation for Tampa Bay businesses.

Read more
AI News March 6, 2026

AI's Disruptive Force: Reshaping M&A and Market Intelligence

Explore how AI voice agents are making M&A research affordable, and what this means for Tampa Bay businesses seeking competitive market intelligence.

Read more
AI News March 6, 2026

AI Vendor Risk: Why a DOD Label Matters for Your Business

A recent challenge to a DOD supply-chain risk label for a major AI firm highlights critical vendor management issues for Tampa Bay businesses. Learn to secure your AI strategy.

Read more
Security March 6, 2026

Mastering Dynamic Identities: Entra ID's Expanded Attribute Support

Discover how Entra ID Lifecycle Workflows' expanded attribute support transforms identity governance, security, and compliance for Tampa Bay businesses. Proactive, automated identity management.

Read more
Security March 5, 2026

Tycoon2FA Down: What This AiTM Phishing Takedown Means for Tampa Bay

Microsoft's takedown of the Tycoon2FA AiTM phishing kit is a win, but the threat evolves. Learn what this means for your Tampa Bay business and how to fortify your defenses.

Read more
AI News March 5, 2026

Nvidia's AI Pivot: What Jensen Huang's Silence Really Means for Your Business

Jensen Huang's cryptic comments about Nvidia's investments in OpenAI and Anthropic signal a major shift in the AI landscape. Anthony Harwelik of BluetechGreen explains the business impact for Tampa Bay CIOs.

Read more
Tips & Tricks March 5, 2026

Agent Builder in GCCH: Secure AI for Regulated Industries

Discover how Agent Builder's GCCH availability empowers secure, compliant AI for government contractors & regulated sectors in Tampa Bay. Anthony Harwelik explains the impact.

Read more
Security March 5, 2026

Entra ID: New Attribute Triggers Transform Identity Governance

Anthony Harwelik discusses how Entra ID's expanded attribute support in Lifecycle Workflows enhances security, efficiency, and compliance for businesses.

Read more
What's New March 5, 2026

New Intune Protected Apps: Elevating Your Mobile Security Posture

Discover how new Intune protected apps like Jump and Mijn InPlanning enhance data security and compliance for Tampa Bay businesses, empowering secure mobile work.

Read more
Tips & Tricks March 4, 2026

Secure AI Unleashed: Agent Builder Arrives in GCCH

Anthony Harwelik of BluetechGreen discusses how Agent Builder in GCCH empowers secure, custom AI for regulated sectors in Tampa Bay and beyond.

Read more
Security March 4, 2026

Entra ID's New Power: Deeper Automation, Stronger Security

Anthony Harwelik reveals how Entra ID's expanded attribute triggers revolutionize identity governance, security, and operational efficiency for Tampa Bay businesses.

Read more
What's New March 4, 2026

Secure Your Mobile Workforce: New Intune Protected Apps Arrive

Discover how new Intune protected apps like Jump and Mijn InPlanning enhance data security and productivity for your mobile workforce. Learn the business impact.

Read more
Tips & Tricks March 4, 2026

GCCH Just Got Smarter: AI for Secure Government

Agent Builder in GCCH unlocks AI-driven automation for government agencies. Discover the impact on efficiency and security.

Read more
Security March 4, 2026

Entra ID: Automate More, Risk Less

Entra ID Lifecycle Workflows just got smarter. Automate more identity changes, reduce manual errors, and boost security for your business.

Read more
What's New March 4, 2026

Your Apps Just Got Smarter with Intune

Expand your Intune protected apps. Discover new integrations and secure your mobile workforce with enhanced app protection.

Read more
Tips & Tricks March 3, 2026

GCCH Gets AI Superpowers: Agent Builder Unleashed

Government agencies in GCCH can now leverage Agent Builder for custom AI solutions. Discover the impact on efficiency and security.

Read more
Security March 3, 2026

Entra ID: Automate Identity Changes, Faster.

New Entra ID Lifecycle Workflows feature expands attribute support, empowering IT leaders to automate more identity-related processes with precision.

Read more
What's New March 3, 2026

Your Apps Just Got Smarter with Intune

Unlock new levels of mobile security and control. See how Intune's expanded protected apps list benefits your business.

Read more
Tips & Tricks March 2, 2026

GCCH just got smarter: AI Agents are here

Unlock powerful AI capabilities for your GCCH environment. Discover how Agent Builder changes the game for government IT.

Read more
Security March 2, 2026

Unshackle Your AD Users: Cloud Authority Now Possible!

Transition AD-synced users to cloud-managed with Entra ID's new Source of Authority switching. Boost agility and control.

Read more
What's New March 2, 2026

AVD Users Just Got a Privilege Upgrade.

Unlock new security and flexibility for your AVD environment with Intune Endpoint Privilege Management. See how.

Read more
Tips & Tricks February 27, 2026

Copilot Data Access: No License Required (Preview)

Unlock Microsoft 365 Copilot's data power without the add-on. Discover how the pay-as-you-go Retrieval API changes the game.

Read more
Security February 27, 2026

AD Sync? Now Unleash Your Cloud Users.

Stop AD sync bottlenecks. Entra ID now allows direct cloud management for your users. Learn the business impact.

Read more
What's New February 27, 2026

AVD Users Just Got a Privilege Upgrade

Microsoft Intune's Endpoint Privilege Management now supports Azure Virtual Desktop. Boost security & productivity.

Read more
Tips & Tricks February 26, 2026

Copilot Power: Now Accessible Without the Premium Price Tag

Unlock Microsoft 365 Copilot's data retrieval capabilities with new pay-as-you-go access. Drive AI innovation without upfront license costs.

Read more
Security February 26, 2026

Ditch AD Sync for Good: Cloud Identity Just Got Easier

Microsoft Entra ID now lets you flip the switch on AD-synced users, moving them to cloud-managed. See the business impact.

Read more
What's New February 26, 2026

Unlocking Privileges for AVD Users

Endpoint Privilege Management now supports Azure Virtual Desktop. Elevate user productivity and security.

Read more
Tips & Tricks February 25, 2026

Copilot AI Access Just Got Easier (No Add-on Needed!)

Unlock Microsoft 365 Copilot's data retrieval power without the add-on license. See how this changes your AI strategy.

Read more
Security February 25, 2026

Untangle Your User Identity: AD Sync No Longer a Lifelong Sentence

Stop being tied to on-premises AD. Microsoft Entra ID now lets you switch user sources, offering true cloud flexibility. Learn how.

Read more
What's New February 25, 2026

Privilege Management Now Powers AVD: Big Win!

Unlock secure admin rights for your AVD users. Learn how Microsoft Endpoint Privilege Management changes the game for Azure Virtual Desktop.

Read more
Tips & Tricks February 24, 2026

Copilot Access Just Got Easier

Unlock M365 Copilot's power without the add-on. Discover the new pay-as-you-go Retrieval API.

Read more
Security February 24, 2026

AD Sync Got a Major Upgrade: Take Control of Your Users

Manage your users more effectively with Entra ID's new Source of Authority switching. Boost agility and security for your business.

Read more
What's New February 24, 2026

AVD Security Just Got a Major Upgrade

Unlock enhanced endpoint security for your Azure Virtual Desktop users with Microsoft Intune Endpoint Privilege Management. Drive efficiency and reduce risk.

Read more
Tips & Tricks February 23, 2026

AI Access Unlocked: Copilot Without the Add-on

Microsoft 365 Copilot Retrieval API now accessible via pay-as-you-go. Unlock AI insights for your business data.

Read more
Security February 23, 2026

AD Sync? Now You Can Cut the Cord on Cloud Users.

Transition synced AD users to cloud-managed Entra ID accounts. Unlock agility, reduce complexity. A game-changer for your IT strategy.

Read more
What's New February 23, 2026

AVD Users Just Got a Privilege Upgrade

Microsoft Intune's Endpoint Privilege Management now supports Azure Virtual Desktop, streamlining access and boosting security for your remote workforce.

Read more
Tips & Tricks February 20, 2026

AI for Everyone: Unlocking Your Data Without Copilot Licenses

Microsoft's Retrieval API is now accessible pay-as-you-go. Discover how to leverage AI on your tenant data without a full Copilot add-on.

Read more
Security February 20, 2026

Stop AD Syncing: Your Users Can Be Cloud-Native

Take control of user identity. Microsoft Entra ID now lets you flip synced AD users to cloud-managed. Learn the impact.

Read more
What's New February 20, 2026

Unlocking AVD Security: Privilege Management Just Got Smarter

Boost AVD security and user efficiency. Microsoft Endpoint Privilege Management now supports Azure Virtual Desktop single-session VMs.

Read more
Tips & Tricks February 19, 2026

Copilot Power, Now Without the Premium Tag

Unlock M365 Copilot's AI for your data—without the add-on. See how.

Read more
Security February 19, 2026

Untether Your Users from On-Prem AD

New Entra ID feature lets you shift synced users to cloud-managed. Learn the business impact for your organization.

Read more
What's New February 19, 2026

AVD Users: Admin Rights Just Got Smarter

Unlock secure admin rights for your Azure Virtual Desktop users with Intune Endpoint Privilege Management.

Read more
Tips & Tricks February 18, 2026

Copilot Access Just Got Smarter for Your Business

Unlock Microsoft 365 Copilot data insights without the add-on. Explore pay-as-you-go API access for smarter business decisions.

Read more
Security February 18, 2026

AD Sync Got Smarter: Master Your User Authority

Unleash control: Convert on-prem AD users to cloud-managed Entra ID accounts. Seamlessly shift user authority for modern IT.

Read more
What's New February 18, 2026

AVD Users Just Got a Privilege Upgrade.

Microsoft Intune's Endpoint Privilege Management now supports Azure Virtual Desktop users. Empower your workforce securely.

Read more
Tips & Tricks February 17, 2026

Unlock AI Power: No Copilot License Needed (Yet!)

Microsoft's Retrieval API is now pay-as-you-go. Access AI for your tenant data without a full Copilot add-on. Learn what this means for your business.

Read more
Security February 17, 2026

AD Sync Headache Solved: Full Cloud Control Now!

Finally! Take direct control of your users in Entra ID, breaking free from on-prem AD sync. Streamline identity management and boost agility.

Read more
What's New February 17, 2026

Privilege Management Now Powers AVD Users

Unlock enhanced security and user flexibility for your Azure Virtual Desktop deployments with Intune Endpoint Privilege Management.

Read more
Tips & Tricks February 16, 2026

Unlock Copilot Power, No Add-on Needed (Yet!)

Microsoft 365 Copilot Retrieval API now pay-as-you-go. Access tenant data for AI insights without the full license. Learn what this means for your business.

Read more
Security February 16, 2026

Own Your Cloud Identity: AD Sync No Longer a Dead End

Finally, switch on-prem AD users to cloud-managed Entra ID. Unlock flexibility & streamline identity management for your business.

Read more
What's New February 16, 2026

AVD Users: Stop Waiting for Admin Rights!

Endpoint Privilege Management now supports AVD single-session. Empower users, boost productivity, and secure your virtual desktops.

Read more
Tips & Tricks February 13, 2026

Copilot Data Access: Now Without the Add-on?

Unlock Microsoft 365 Copilot's data power without the add-on license. See how this preview changes everything for your business intelligence.

Read more
Security February 13, 2026

Finally! Untether Your Users from On-Prem AD

Microsoft Entra ID now lets you switch user authority from AD to cloud. Unlock agility and simplify IT management.

Read more
What's New February 13, 2026

AVD Users: Ditch Local Admin Woes with Intune EPM

Intune Endpoint Privilege Management now supports Azure Virtual Desktop. Secure your VDI environment and empower users. Learn more.

Read more
Tips & Tricks February 12, 2026

Copilot Data Access Just Got Easier (and Cheaper!)

Microsoft 365 Copilot Retrieval API now pay-as-you-go. Unlock AI for your tenant data without the add-on. What this means for your business.

Read more
Security February 12, 2026

On-Prem AD Users Now Cloud-Native: Your Migration Just Got Easier

Seamlessly switch on-prem AD users to cloud-managed Entra ID accounts. Unlock agility and simplify identity management.

Read more
What's New February 12, 2026

Intune Win32 Apps: Unlock Smarter Deployments with PowerShell

Supercharge your Win32 app deployments in Intune. Discover how PowerShell scripts enable advanced installation workflows for better IT control.

Read more
Tips & Tricks February 11, 2026

Copilot Power, Now Without the Premium Price Tag

Unlock Microsoft 365 Copilot's data retrieval API without an add-on license. Explore pay-as-you-go for immediate AI-driven insights.

Read more
Security February 11, 2026

AD Sync? Now You Can Finally Cut the Cord.

Switch user authority from on-prem AD to Entra ID. Gain cloud flexibility without the migration headaches. Learn how.

Read more
What's New February 11, 2026

Intune Win32 Apps Just Got Smarter with PowerShell

Supercharge your Intune app deployments. Learn how PowerShell scripts unlock advanced Win32 app installations for your business.

Read more
Tips & Tricks February 10, 2026

AI Access Just Got Easier: Copilot Retrieval API Unlocked

Microsoft 365 Copilot Retrieval API now accessible via pay-as-you-go. Unlock your tenant data with AI, no add-on needed. Explore the impact.

Read more
Security February 10, 2026

Sink or Swim? AD Sync Just Got Smarter.

New Entra ID feature lets you ditch on-prem AD for cloud-managed users. Discover the business impact.

Read more
What's New February 10, 2026

Intune Win32 Apps Just Got Smarter

Unlock advanced Win32 app deployment with PowerShell in Intune. Automate complex installs, checks, and configs.

Read more
Tips & Tricks February 7, 2026

Windows Autopilot Troubleshooting Guide: Fixing the 5 Most Common Failures

Autopilot enrollment stuck at a spinning screen? ESP timing out? Here are the five most common Autopilot deployment failures and step-by-step fixes for each one.

Read more
Security February 6, 2026

Intune Conditional Access Best Practices for Zero Trust Security

Conditional Access is the backbone of Zero Trust in Microsoft environments. Learn the policies every Intune admin should configure, the common pitfalls to avoid, and how to test without locking yourself out.

Read more
Migration February 5, 2026

The Complete SCCM to Intune Migration Checklist for 2026

Microsoft has set the clock on SCCM. Whether you are running ConfigMgr 2403 or an older branch, here is the definitive checklist for planning and executing your migration to Intune.

Read more
Tips & Tricks February 4, 2026

Top 5 Intune Deployment Errors and How to Fix Them

Every Intune admin has seen error 0x87D13BA2 at least once. We break down the five most frequent Intune app and profile deployment errors, why they happen, and how to resolve them fast.

Read more
What's New February 3, 2026

Intune Suite and Remote Help: What's New in February 2026

Microsoft shipped several updates to the Intune Suite this month, including improvements to Remote Help session controls, new Endpoint Privilege Management policies, and expanded platform support.

Read more
1
AH

Anthony Harwelik

Principal Consultant & Founder at BluetechGreen with 25+ years in enterprise IT. Specializes in Microsoft Intune, Entra ID, endpoint security, and cloud migrations. Based in St. Petersburg, FL, serving Tampa Bay and Northern NJ.

Connect on LinkedIn

/* dropdown handled by btg-animations.js */ document.querySelectorAll('.dd-link,.n-cta').forEach(l=>l.addEventListener('click',()=>nl.classList.remove('open'))); // Blog filtering, search, and pagination (function(){ const POSTS_PER_PAGE = 6; const filters = document.querySelectorAll('.blog-filter'); const searchInput = document.getElementById('blogSearch'); const grid = document.getElementById('blogGrid'); const pagination = document.getElementById('blogPagination'); let currentCategory = 'all'; let currentSearch = ''; let currentPage = 1; function getCards(){ return Array.from(grid.querySelectorAll('.blog-card')); } function filterCards(){ const cards = getCards(); const query = currentSearch.toLowerCase(); let visible = []; cards.forEach(card => { const cat = card.getAttribute('data-category'); const text = card.textContent.toLowerCase(); const catMatch = currentCategory === 'all' || cat === currentCategory; const searchMatch = !query || text.includes(query); if(catMatch && searchMatch){ visible.push(card); } }); return visible; } function render(){ const cards = getCards(); const visible = filterCards(); const totalPages = Math.max(1, Math.ceil(visible.length / POSTS_PER_PAGE)); if(currentPage > totalPages) currentPage = totalPages; const start = (currentPage - 1) * POSTS_PER_PAGE; const end = start + POSTS_PER_PAGE; cards.forEach(c => c.style.display = 'none'); visible.forEach((c, i) => { c.style.display = (i >= start && i < end) ? '' : 'none'; }); // Render pagination let html = ''; for(let p = 1; p <= totalPages; p++){ if(p === currentPage){ html += '' + p + ''; } else { html += '' + p + ''; } } pagination.innerHTML = html; } filters.forEach(btn => { btn.addEventListener('click', function(){ filters.forEach(f => f.classList.remove('active')); this.classList.add('active'); currentCategory = this.getAttribute('data-category'); currentPage = 1; render(); }); }); searchInput.addEventListener('input', function(){ currentSearch = this.value; currentPage = 1; render(); }); pagination.addEventListener('click', function(e){ if(e.target.tagName === 'A'){ e.preventDefault(); currentPage = parseInt(e.target.getAttribute('data-page'), 10); render(); window.scrollTo({top: grid.offsetTop - 100, behavior: 'smooth'}); } }); // --- Visual Enhancements --- function enhanceCards(){ const cards = getCards(); const now = new Date(); const todayStr = now.toISOString().split('T')[0]; const msPerDay = 86400000; cards.forEach(card => { const meta = card.querySelector('.blog-card-meta'); if(!meta) return; const dateSpan = meta.querySelectorAll('span:not(.cat):not(.blog-badge-new)'); if(!dateSpan.length) return; const ds = dateSpan[dateSpan.length - 1]; const dateText = ds.textContent.trim(); const parsed = new Date(dateText); if(isNaN(parsed)) return; const isoDate = parsed.toISOString().split('T')[0]; card.setAttribute('data-date', isoDate); // Relative timestamp const diffDays = Math.floor((now - parsed) / msPerDay); if(diffDays === 0) ds.textContent = 'Today'; else if(diffDays === 1) ds.textContent = 'Yesterday'; else if(diffDays <= 7) ds.textContent = diffDays + ' days ago'; // "New" badge for today's posts if(isoDate === todayStr && !meta.querySelector('.blog-badge-new')){ const badge = document.createElement('span'); badge.className = 'blog-badge-new'; badge.textContent = 'New'; meta.insertBefore(badge, meta.firstChild); } }); } function applyFeatured(){ const cards = getCards(); cards.forEach(c => c.classList.remove('featured')); const first = cards.find(c => c.style.display !== 'none'); if(first) first.classList.add('featured'); } // Hook into render const _origRender = render; function renderEnhanced(){ _origRender(); applyFeatured(); } // Patch the render calls filters.forEach(btn => { btn.addEventListener('click', () => setTimeout(applyFeatured, 0)); }); searchInput.addEventListener('input', () => setTimeout(applyFeatured, 0)); pagination.addEventListener('click', () => setTimeout(applyFeatured, 0)); enhanceCards(); render(); applyFeatured(); })();