/**
 * Modern Blog Section Styles
 * Enhances blog presentation with modern design and functionality
 */

/* ===============================
   1. Modern Blog Section Structure
   =============================== */
.modern-blog-section {
    position: relative;
    background-color: #fff;
    overflow: hidden;
}

.modern-blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/patterns/dot-pattern.png');
    opacity: 0.03;
    z-index: 0;
}

.mb-60 {
    margin-bottom: 60px;
}

/* ===============================
   2. Modern Title Area
   =============================== */
.modern-title-area {
    position: relative;
    margin-bottom: 2.5rem;
}

.title-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 104, 26, 0.08);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.title-badge i {
    color: #FF681A;
    font-size: 1rem;
}

.title-badge .sec-subtitle {
    color: #FF681A;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin: 0;
}

.modern-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
}

.text-gradient {
    background: linear-gradient(135deg, #FF681A 0%, #ff8a4c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

/* ===============================
   3. Blog Filter Tabs
   =============================== */
.blog-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.blog-filter-btn {
    background: #f8f9fa;
    border: none;
    color: #555;
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-filter-btn:hover {
    background: rgba(255, 104, 26, 0.1);
    color: #FF681A;
    transform: translateY(-2px);
}

.blog-filter-btn.active {
    background: #FF681A;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 104, 26, 0.3);
}

/* ===============================
   4. Modern Blog Grid
   =============================== */
.modern-blog-grid {
    position: relative;
    z-index: 1;
}

.blog-masonry {
    margin-bottom: 3rem;
}

.blog-item {
    margin-bottom: 30px;
    display: flex;
    align-items: stretch;
}

.blog-item .modern-blog-card {
    width: 100%;
}

/* ===============================
   5. Modern Blog Card
   =============================== */
.modern-blog-card {
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

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

.modern-blog-card.featured-post {
    grid-column: span 2;
    min-height: 580px;
}

/* ===============================
   6. Blog Image Container
   =============================== */
.blog-image-container {
    position: relative;
    overflow: hidden;
}

.blog-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-top: 56.25%; /* Aspect ratio 16:9 for consistency */
}

.featured-post .blog-image-wrapper {
    padding-top: 45%; /* Different aspect ratio for featured post */
}

.blog-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* ===============================
   Enhanced CSS for News Pages
   =============================== */

/* Widget Modern Styles (used in both news pages) */
.widget-modern {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.widget-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.widget-title-modern {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
    position: relative;
    padding-bottom: 0.5rem;
}

.widget-title-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #FF681A 0%, #ff8a4c 100%);
    border-radius: 2px;
}

/* Categories List Modern */
.categories-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list-modern li {
    margin-bottom: 0.8rem;
}

.categories-list-modern a {
    color: #666;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.categories-list-modern a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 104, 26, 0.1) 50%, transparent 100%);
    transition: left 0.5s ease;
}

.categories-list-modern a:hover::before {
    left: 100%;
}

.categories-list-modern a:hover,
.categories-list-modern a.active {
    background: rgba(255, 104, 26, 0.1);
    color: #FF681A;
    border-color: rgba(255, 104, 26, 0.2);
    transform: translateX(5px);
}

/* Social Modern Styles */
.social-modern {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-modern a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

.social-modern a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-modern a:hover::before {
    opacity: 1;
}

.social-modern a:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.social-modern .facebook { 
    background: #1877f2; 
}

.social-modern .facebook:hover {
    box-shadow: 0 15px 35px rgba(24, 119, 242, 0.4);
}

.social-modern .instagram { 
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); 
}

.social-modern .instagram:hover {
    box-shadow: 0 15px 35px rgba(188, 24, 136, 0.4);
}

.social-modern .pinterest { 
    background: #bd081c; 
}

.social-modern .pinterest:hover {
    box-shadow: 0 15px 35px rgba(189, 8, 28, 0.4);
}

.social-modern .twitter { 
    background: #1da1f2; 
}

.social-modern .twitter:hover {
    box-shadow: 0 15px 35px rgba(29, 161, 242, 0.4);
}

/* Enhanced Loading Animations */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 3rem;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FF681A;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Slide In Animation */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

/* Enhanced Hover Effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Enhanced Typography */
.text-gradient {
    background: linear-gradient(135deg, #FF681A 0%, #ff8a4c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Glass Morphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF681A 0%, #ff8a4c 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e55a17 0%, #e57a43 100%);
}

/* Enhanced Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 104, 26, 0.2);
    border-color: #FF681A;
}

/* Enhanced Button Animations */
.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-animated::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 ease;
}

.btn-animated:hover::before {
    left: 100%;
}

/* Responsive Enhancements */
@media (max-width: 1200px) {
    .social-modern {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .widget-modern {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .widget-title-modern {
        font-size: 1.2rem;
    }
    
    .social-modern {
        justify-content: center;
    }
    
    .social-modern a {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .categories-list-modern a {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .widget-modern {
        padding: 1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .widget-modern {
        background: #2c2c2c;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .widget-title-modern {
        color: #e0e0e0;
    }
    
    .categories-list-modern a {
        color: #b0b0b0;
    }
    
    .categories-list-modern a:hover {
        color: #FF681A;
    }
}

/* Print Styles */
@media print {
    .social-modern,
    .widget-modern,
    .loading-spinner {
        display: none;
    }
}

/* Enhanced Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .widget-modern {
        border: 2px solid #000;
    }
    
    .categories-list-modern a:hover {
        background: #000;
        color: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
    transform: scale(1.05);
}

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-blog-card:hover .blog-overlay {
    opacity: 1;
}

.blog-meta-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-category {
    background: #FF681A;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-bookmark {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.blog-bookmark:hover {
    background: white;
    color: #FF681A;
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff9d2f 0%, #ff6126 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 5px 15px rgba(255, 104, 26, 0.3);
    z-index: 2;
}

.featured-badge i {
    font-size: 0.8rem;
}

/* ===============================
   7. Blog Content
   =============================== */
.modern-blog-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    min-height: 260px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #777;
    font-size: 0.8rem;
}

.meta-item i {
    color: #FF681A;
    font-size: 0.9rem;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
    min-height: 3.36rem; /* Consistent title height for 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-post .blog-title {
    font-size: 1.6rem;
    min-height: 4.16rem; /* Adjust for larger font in featured posts */
}

.blog-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #FF681A;
}

.blog-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.56rem; /* Consistent excerpt height for 3 lines */
    max-height: 4.56rem;
}

/* ===============================
   8. Blog Actions
   =============================== */
.blog-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    min-height: 48px;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #FF681A;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #e55a17;
    transform: translateX(5px);
}

.read-more-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

.blog-social-actions {
    display: flex;
    gap: 0.8rem;
}

.social-btn {
    background: none;
    border: none;
    color: #777;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    color: #FF681A;
    transform: translateY(-2px);
}

.social-btn span {
    font-size: 0.8rem;
}

.like-btn.active {
    color: #e74c3c;
}

.like-btn.active i {
    font-weight: 900;
}

/* ===============================
   9. Blog CTA Section
   =============================== */
.blog-cta-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem;
    border-radius: 15px;
    margin-top: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.blog-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 104, 26, 0.1) 0%, rgba(255, 104, 26, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.cta-content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.modern-btn.blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.modern-btn.blog-btn.primary {
    background: #FF681A;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 104, 26, 0.3);
}

.modern-btn.blog-btn.primary:hover {
    background: #e55a17;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 104, 26, 0.4);
}

.modern-btn.blog-btn.secondary {
    background: white;
    color: #333;
    border: 1px solid #ddd;
}

.modern-btn.blog-btn.secondary:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    color: #FF681A;
    border-color: #FF681A;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.modern-btn.blog-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.modern-btn.blog-btn:hover i {
    transform: translateX(3px);
}

/* ===============================
   10. Newsletter Modal
   =============================== */
.newsletter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.newsletter-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 2;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #777;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #FF681A;
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 104, 26, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.modal-icon i {
    font-size: 2rem;
    color: #FF681A;
}

.modal-header h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #333;
}

.modal-header p {
    color: #666;
    margin-bottom: 0;
    font-size: 1rem;
}

.newsletter-form {
    width: 100%;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.newsletter-input {
    width: 100%;
    padding: 1rem 4rem 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #FF681A;
    box-shadow: 0 0 0 3px rgba(255, 104, 26, 0.1);
}

.newsletter-submit {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #FF681A;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-submit:hover {
    background: #e55a17;
    transform: scale(1.1);
}

.form-options {
    text-align: left;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    position: relative;
    padding-left: 25px;
    user-select: none;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 3px;
}

.checkbox-label:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #FF681A;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ===============================
   11. Animations
   =============================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.animate-heart {
    animation: heartBeat 0.6s ease-in-out;
}

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

.animate-in {
    animation: slideInFromBottom 0.6s ease-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hover-active {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

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

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Modal open class to prevent body scroll */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ===============================
   12. Equal Height Grid System
   =============================== */
.row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* Ensure consistent spacing */
.blog-masonry {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.blog-masonry .blog-item {
    padding: 15px;
    margin-bottom: 0;
}

/* ===============================
   13. Responsive Design
   =============================== */
@media (max-width: 1200px) {
    .modern-title {
        font-size: 2.5rem;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .featured-post .blog-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 992px) {
    .modern-title {
        font-size: 2.2rem;
    }
    
    .modern-subtitle {
        font-size: 1rem;
    }
    
    .blog-cta-section {
        padding: 2.5rem;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-actions {
        margin-top: 1.5rem;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .mb-60 {
        margin-bottom: 40px;
    }
    
    .modern-title {
        font-size: 1.8rem;
    }
    
    .blog-filter-tabs {
        gap: 0.3rem;
    }
    
    .blog-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .modern-blog-content {
        padding: 1.5rem;
    }
    
    .blog-title {
        font-size: 1.1rem;
    }
    
    .featured-post .blog-title {
        font-size: 1.3rem;
    }
    
    .blog-excerpt {
        font-size: 0.9rem;
    }
    
    .blog-cta-section {
        padding: 2rem;
        text-align: center;
    }
    
    .cta-actions {
        justify-content: center;
    }
    
    .modal-content {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .title-badge {
        padding: 0.6rem 1.2rem;
    }
    
    .modern-title {
        font-size: 1.5rem;
    }
    
    .modern-subtitle {
        font-size: 0.9rem;
    }
    
    .blog-filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .blog-filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    
    .blog-item {
        margin-bottom: 20px;
    }
    
    .modern-blog-content {
        padding: 1.2rem;
    }
    
    .blog-title {
        font-size: 1rem;
    }
    
    .featured-post .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-cta-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .cta-content h3 {
        font-size: 1.3rem;
    }
    
    .cta-content p {
        font-size: 0.9rem;
    }
    
    .modern-btn.blog-btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-icon {
        width: 60px;
        height: 60px;
    }
    
    .modal-header h4 {
        font-size: 1.5rem;
    }
}
