.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu {
    display: none;
}

/* Blog Card Hover Effects */
.blog-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.blog-card:hover::before {
    left: 100%;
}

.blog-card-image {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.blog-card-content {
    position: relative;
    z-index: 2;
}

.blog-card-title {
    transition: all 0.3s ease;
    position: relative;
}

.blog-card:hover .blog-card-title {
    color: #2e517e;
}

.blog-card-title::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, #2e517e, #d95d8e);
    transition: width 0.3s ease;
}

.blog-card:hover .blog-card-title::after {
    width: 100%;
}

.blog-card-tags {
    transition: all 0.3s ease;
}

.blog-card:hover .blog-card-tags .tag {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tag {
    transition: all 0.2s ease;
}

.tag:hover {
    transform: scale(1.05) !important;
}

/* Staggered animation for tags */
.blog-card:hover .tag:nth-child(1) { transition-delay: 0.1s; }
.blog-card:hover .tag:nth-child(2) { transition-delay: 0.15s; }
.blog-card:hover .tag:nth-child(3) { transition-delay: 0.2s; }

/* Add glow effect */
.blog-card:hover {
    box-shadow: 0 20px 40px rgba(46, 81, 126, 0.15), 0 0 0 1px rgba(46, 81, 126, 0.1);
}

/* Pulse animation for read indicator */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.blog-card:hover .read-indicator {
    animation: pulse 2s infinite;
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.mobile-menu-nav {
    padding: 1rem 0;
}

.mobile-menu-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.mobile-menu-item:hover {
    background-color: #f9fafb;
    color: #2e517e;
}

.mobile-menu-submenu {
    background-color: #f9fafb;
}

.mobile-menu-submenu .mobile-menu-item {
    padding-left: 2rem;
    border-bottom: none;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 14px;
}

.mobile-menu-toggle-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle-btn:hover {
    color: #d1d5db;
}

/* Menu icon animation */
.menu-icon {
    width: 24px;
    height: 24px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: currentColor;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.menu-icon span:nth-child(1) {
    top: 0px;
}

.menu-icon span:nth-child(2) {
    top: 8px;
}

.menu-icon span:nth-child(3) {
    top: 16px;
}

.menu-icon.active span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-icon.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Image Lazy Loading Styles */
.lazy-image {
    transition: opacity 0.3s ease, filter 0.3s ease;
    opacity: 0;
    filter: blur(5px);
}

.lazy-image.loaded {
    opacity: 1;
    filter: blur(0);
}

.image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ccc"><path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.5;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Skeleton loading for blog cards */
.skeleton-card {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-line {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Loading spinner */
.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2e517e;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Error image placeholder */
.image-error {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    border: 1px dashed #dee2e6;
}

.image-error::before {
    content: '📷';
    font-size: 24px;
    margin-right: 8px;
}

/* Page loading overlay */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.page-loading.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Fade in animations */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered fade in for blog cards */
.blog-card.fade-in:nth-child(1) { animation-delay: 0.1s; }
.blog-card.fade-in:nth-child(2) { animation-delay: 0.2s; }
.blog-card.fade-in:nth-child(3) { animation-delay: 0.3s; }
.blog-card.fade-in:nth-child(4) { animation-delay: 0.4s; }
.blog-card.fade-in:nth-child(5) { animation-delay: 0.5s; }