/* Modern Blog Design - Maintaining Website Colors */

/* Blog intro section */
.blog-list-intro {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-list-intro p {
    font-size: 18px;
    color: rgba(245, 247, 251, 0.8);
    margin-bottom: 0;
}

/* Override main styles.css constraints for blog layout */
.blog-section .form-section {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 30px 0 !important;
    border-radius: 0 !important;
}

/* Full-width container with proper spacing */
.content .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

/* Blog section styling */
.blog-section {
    min-height: 400px;
    text-align: left;
    width: 100%;
}

.blog-section .form-section {
    background: transparent;
    box-shadow: none;
    max-width: 100%;
    padding: 30px 0;
}

/* Modern responsive grid layout - full width with equal distribution */
.blog-section .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 0;
    width: 100%;
    align-items: stretch;
    justify-content: space-evenly;
    padding: 0;
}

.blog-section .row > [class*='col-'] {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    display: flex;
}

/* Modern card design with consistent heights for uniform layout */
.blog-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: auto;
    min-height: 620px; /* Baseline height, allow growth */
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: fadeInUp 0.8s ease-out both;
    isolation: isolate;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Enhanced angled bottom edge with gradient animation */
.blog-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 50%, #f59e0b 100%);
    clip-path: polygon(0 100%, 0 25%, 8% 0, 92% 0, 100% 25%, 100% 100%);
    transition: all 0.4s ease;
}

/* Enhanced hover effects with better scaling and lighting */
.blog-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.25),
        0 8px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 215, 0, 0.6);
}

.blog-card:hover::after {
    height: 24px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 30%, #f59e0b 70%, #ec8f05 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Enhanced image section with better loading states and overlays */
.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    filter: saturate(1.1) contrast(1.05);
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.blog-card img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover img {
    transform: scale(1.08);
    filter: saturate(1.2) contrast(1.1) brightness(1.05);
}

.blog-card:hover img::before {
    opacity: 1;
}

/* Enhanced card top section with better badge layout */
.blog-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, 
        rgba(13, 23, 32, 0.95) 0%, 
        rgba(24, 37, 50, 0.95) 50%,
        rgba(13, 23, 32, 0.95) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.blog-card-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
}

.top-badge-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-card-date-badge {
    margin-left: auto;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}
.blog-card-date-badge i {
    color: #ffffff;
}

/* Enhanced card body with consistent spacing and proper content distribution */
.blog-card-body {
    padding: 20px 22px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, 
        rgba(13, 23, 32, 0.92) 0%, 
        rgba(18, 28, 38, 0.94) 50%,
        rgba(24, 37, 50, 0.96) 100%);
    color: #e9eef7;
    justify-content: space-between; /* Key change for consistent spacing */
    position: relative;
    z-index: 2;
    overflow: hidden; /* Prevent content overflow */
}

/* Title with consistent height and proper truncation */
.blog-card-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.3px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    min-height: 70px; /* Support longer headlines */
    max-height: 98px; /* Up to ~3 lines at this size */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.blog-card-title:hover {
    color: #ffd700;
    transform: translateY(-1px);
    text-shadow: 0 3px 8px rgba(255, 215, 0, 0.3);
}

/* Meta section with consistent height */
.blog-card-meta {
    color: rgba(233, 238, 247, 0.8);
    font-size: 13px;
    margin-bottom: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap; /* Prevent wrapping */
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    height: 40px; /* Fixed height */
    flex-shrink: 0;
}

.blog-card:hover .blog-card-meta {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
}

.blog-card-meta i {
    color: #ffd700;
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Excerpt with fixed height and proper truncation */
.blog-card-excerpt {
    color: rgba(233, 238, 247, 0.9);
    margin: 0 0 16px;
    line-height: 1.6;
    font-size: 14px;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    height: 96px; /* Fixed height for 6 lines max */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

/* Tags with consistent spacing */
.blog-card-tags {
    margin-bottom: 16px;
    min-height: 32px; /* Fixed minimum height */
    max-height: 64px; /* Max height for 2 rows */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    overflow: hidden;
    align-content: flex-start;
    flex-shrink: 0;
}

.blog-tag {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 50%, #f59e0b 100%);
    color: #1a202c;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 11px;
    margin: 0;
    font-weight: 800;
    box-shadow: 
        0 4px 12px rgba(255, 215, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.3);
}

/* Enhanced primary button with modern gradient and animations */
.btn-read-more {
    align-self: center;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 800;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 25%, #f59e0b 75%, #d97706 100%);
    border: none;
    color: #1a202c;
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
    margin-top: auto;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    justify-content: center;
    width: 100%;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn-read-more:hover {
    color: #1a202c;
    transform: translateY(-3px);
    box-shadow: 
        0 10px 30px rgba(255, 215, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #ffed4a 0%, #ffd700 25%, #f59e0b 75%, #ea580c 100%);
}

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

.btn-read-more:active {
    transform: translateY(-1px);
}

/* Enhanced secondary button - better visibility and contrast */
.btn-secondary-action {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.22) 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: 12px;
    align-self: center;
    width: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-secondary-action::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.6s ease;
}

.btn-secondary-action:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.35) 0%, 
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.32) 100%);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

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

.btn-secondary-action:active {
    transform: translateY(-1px);
}

.btn-secondary-action i {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Enhanced badges with better animations */
.blog-read-time, .blog-featured-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 50%, #f59e0b 100%);
    color: #1a202c;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 
        0 4px 12px rgba(255, 215, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-read-time:hover, .blog-featured-badge:hover {
    transform: scale(1.05);
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.3);
}

/* Enhanced loading states */
.loading {
    text-align: center;
    padding: 120px 20px;
    font-size: 18px;
    color: rgba(233, 238, 247, 0.85);
}

.loading i {
    font-size: 48px;
    color: #ffd700;
    display: block;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
    text-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Enhanced empty state */
.no-posts-message {
    text-align: center;
    padding: 100px 20px;
    color: rgba(233, 238, 247, 0.75);
}

.no-posts-message i {
    font-size: 72px;
    color: rgba(255, 215, 0, 0.6);
    margin-bottom: 24px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.no-posts-message h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 24px;
}

.no-posts-message p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Enhanced animation keyframes with spring physics */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* More sophisticated staggered animations */
.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }
.blog-card:nth-child(7) { animation-delay: 0.7s; }
.blog-card:nth-child(8) { animation-delay: 0.8s; }

/* Enhanced hover effect overlay with better gradients */
.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(255, 215, 0, 0.03) 0%, 
        rgba(34, 49, 63, 0.02) 40%,
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 1;
}

.blog-card:hover::before {
    opacity: 1;
}

/* Enhanced top accent line with animation */
.blog-card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ffd700 25%, 
        #ffed4a 50%, 
        #f59e0b 75%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-card:hover .blog-card-body::before {
    opacity: 1;
}

/* Enhanced typography with better font smoothing */
.blog-card-body * {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1, "liga" 1;
}

/* Accessibility improvements */
.blog-card:focus-within {
    outline: 2px solid #ffd700;
    outline-offset: 4px;
    transform: translateY(-4px);
}

.btn-read-more:focus,
.btn-secondary-action:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card img,
    .btn-read-more,
    .btn-secondary-action,
    .blog-tag {
        transition: none !important;
        animation: none !important;
    }
    
    .blog-card:hover {
        transform: none !important;
    }
}

/* Dark mode enhancements (if needed) */
@media (prefers-color-scheme: dark) {
    .blog-card {
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.3),
            0 1px 3px rgba(0, 0, 0, 0.2);
    }
    
    .blog-card:hover {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.4),
            0 8px 16px rgba(0, 0, 0, 0.3);
    }
}

/* Loading skeleton animation for better UX */
.blog-card.loading-skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

/* Enhanced meta item styling */
.blog-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.blog-card:hover .blog-card-meta-item {
    background: rgba(255, 215, 0, 0.1);
}

.blog-card-meta-item i {
    margin-right: 0;
    font-size: 12px;
}

/* Enhanced button actions container */
.blog-card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    align-items: center;
    width: 100%;
}

/* Better content overflow handling with enhanced text effects */
.blog-card-title,
.blog-card-excerpt {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.blog-card-excerpt {
    position: relative;
}

/* Gradient text fade effect for long excerpts */
.blog-card-excerpt::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, rgba(24, 37, 50, 0.96));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.blog-card-excerpt.has-overflow::after {
    opacity: 1;
}

/* Enhanced grid stability improvements */
.blog-section .row > [class*='col-'] {
    min-width: 0;
    contain: layout style;
}

/* Performance optimizations */
.blog-card {
    will-change: transform, box-shadow;
    contain: layout style paint;
}

.blog-card img {
    will-change: transform, filter;
}

/* Simplified and effective responsive design with !important overrides and consistent heights */

/* Extra large screens - explicit 4 columns */
@media (min-width: 1400px) {
    .blog-section .row {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 24px !important;
        max-width: none !important;
        margin: 0 !important;
    }
    
    .content .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    
    .blog-card {
        height: auto !important;
        min-height: 620px !important;
    }
}

/* Large screens - max 3 columns to prevent squishing */
@media (max-width: 1399px) and (min-width: 1100px) {
    .blog-section .row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px !important;
    }
    
    .content .container {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }
    
    .blog-card {
        height: auto !important;
        min-height: 620px !important;
    }
}

/* Medium screens - comfortable 2-3 columns */
@media (max-width: 1099px) and (min-width: 768px) {
    .blog-section .row {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        gap: 20px !important;
    }
    
    .content .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .blog-card {
        height: auto !important;
        min-height: 580px !important;
    }
    
    .blog-card-title {
        font-size: 20px;
        min-height: 64px;
        max-height: 90px;
        -webkit-line-clamp: 3;
    }
    
    .blog-card-excerpt {
        height: 84px;
        -webkit-line-clamp: 5;
    }
}

/* Small-medium screens - 2 columns max */
@media (max-width: 767px) and (min-width: 580px) {
    .blog-section .row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .content .container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
    
    .blog-card {
        height: auto !important;
        min-height: 540px !important;
    }
    
    .blog-card img {
        height: 150px;
    }
    
    .blog-card-body {
        padding: 18px 20px 22px;
    }
    
    .blog-card-title {
        font-size: 19px;
        min-height: 60px;
        max-height: 86px;
        -webkit-line-clamp: 3;
    }
    
    .blog-card-excerpt {
        font-size: 13px;
        height: 78px;
        -webkit-line-clamp: 5;
    }
    
    .blog-card-meta {
        height: 34px;
        font-size: 12px;
        padding: 9px 12px;
    }
}

/* Mobile screens - single column */
@media (max-width: 579px) {
    .blog-section .row {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        justify-items: stretch !important;
    }
    
    .content .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .blog-card {
        height: auto !important;
        min-height: 520px !important;
        max-width: none !important;
        width: 100% !important;
    }
    
    .blog-card img {
        height: 160px;
    }
    
    .blog-card-body {
        padding: 18px 20px;
    }
    
    .blog-card-title {
        font-size: 19px;
        min-height: 64px;
        max-height: 92px;
        line-height: 1.3;
        -webkit-line-clamp: 3;
    }
    
    .blog-card-excerpt {
        font-size: 14px;
        height: 84px;
        line-height: 1.5;
        -webkit-line-clamp: 6;
    }
    
    .blog-card-meta {
        font-size: 12px;
        padding: 10px 12px;
        gap: 12px;
        flex-direction: row;
        height: 38px;
    }
}

/* Very small mobile screens */
@media (max-width: 360px) {
    .blog-card {
        height: auto !important;
        min-height: 500px !important;
    }
    
    .blog-card-title {
        font-size: 18px;
        min-height: 60px;
        max-height: 88px;
        -webkit-line-clamp: 3;
    }
    
    .blog-card-excerpt {
        font-size: 13px;
        height: 78px;
        -webkit-line-clamp: 5;
    }
    
    .blog-card-body {
        padding: 16px 18px;
    }
    
    .content .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Additional modern enhancements while maintaining website style */
.blog-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.blog-card-meta-item i {
    margin-right: 5px;
}

/* Actions container with fixed bottom positioning */
.blog-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
    margin-top: auto; /* Push to bottom */
    flex-shrink: 0;
}

/* Enhanced secondary button - better visibility and contrast with WHITE text */
.btn-secondary-action {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.22) 100%);
    color: #ffffff !important; /* Force white text */
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: 12px;
    align-self: center;
    width: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7) !important; /* Strong text shadow */
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-secondary-action::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.6s ease;
}

.btn-secondary-action:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff !important; /* Force white text on hover */
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.35) 0%, 
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.32) 100%);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8) !important; /* Even stronger shadow on hover */
}

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

.btn-secondary-action:active {
    transform: translateY(-1px);
}

.btn-secondary-action i {
    color: #ffffff !important; /* Force white icon color */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
}

/* Improved grid stability */
.blog-section .row > [class*='col-'] {
    min-width: 0; /* Prevents grid blowout */
}

/* Better content overflow handling */
.blog-card-title,
.blog-card-excerpt {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Enhanced card spacing on large screens */
@media (min-width: 1200px) {
    .blog-card {
        min-height: 620px;
    }
}

main.content {
    overflow-x: hidden !important;
}
