/* Modern Blog Page Styles */

/* Blog Cards - Enhanced Modern Design */
.blog-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(14, 15, 59, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(14, 15, 59, 0.05);
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 15, 59, 0.02) 0%, rgba(247, 147, 30, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(14, 15, 59, 0.15);
    border-color: rgba(247, 147, 30, 0.2);
}

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

.blog-image {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: brightness(1.02) contrast(1.05);
}

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

.blog-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #F7931E 0%, #ff8c42 100%);
    color: white !important;
    padding: 10px;
    border-radius: 15px;
    text-align: center;
    font-weight: 700;
    min-width: 60px;
    box-shadow: 0 2px 8px rgba(247, 147, 30, 0.3);
    transition: all 0.3s ease;
}

/* High specificity override for date text color */
.blog-card .blog-image .blog-date,
.blog-card .blog-image .blog-date span,
.blog-date span:first-child,
.blog-date span:last-child,
.blog-card .blog-date *,
div.blog-date span {
    color: white !important;
    text-color: white !important;
}

.blog-date span {
    display: block;
    line-height: 1;
}

.blog-date span:first-child {
    font-size: 20px;
    margin-bottom: 2px;
}

.blog-date span:last-child {
    font-size: 12px;
    text-transform: uppercase;
}

.blog-card:hover .blog-date {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 147, 30, 0.4);
}

.blog-content {
    padding: 32px 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.blog-category {
    display: inline-block;
    background: linear-gradient(135deg, #F7931E 0%, #ff8c42 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(247, 147, 30, 0.3);
    transition: all 0.3s ease;
}

.blog-card:hover .blog-category {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 147, 30, 0.4);
}

.blog-content h5 {
    margin-bottom: 18px;
    font-weight: 800;
    line-height: 1.35;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.blog-content h5 a {
    color: #0E0F3B;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block;
}

.blog-content h5 a:hover {
    color: #F7931E;
    transform: translateY(-1px);
}

.blog-content p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
    font-size: 15px;
    font-weight: 400;
}

.blog-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.blog-meta span:hover {
    color: #F7931E;
}

.read-more {
    color: #F7931E;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 2px solid transparent;
}

.read-more:hover {
    color: #0E0F3B;
    gap: 14px;
    border-bottom-color: #F7931E;
    transform: translateX(4px);
}

.read-more i {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

.newsletter-section .section-heading h4 {
    color: white;
}

.newsletter-section .section-heading p {
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.newsletter-form .form-control {
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    border-radius: 50px 0 0 50px;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 15px 30px;
    font-weight: 600;
    border: none;
    background: #F7931E;
}

.newsletter-form .btn:hover {
    background: #e67e22;
}

/* Modern Pagination */
.pagination-wrapper {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.pagination {
    gap: 8px;
}

.pagination .page-link {
    color: #0E0F3B;
    border: 2px solid rgba(14, 15, 59, 0.1);
    padding: 12px 18px;
    margin: 0;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: white;
    box-shadow: 0 2px 8px rgba(14, 15, 59, 0.05);
}

.pagination .page-link:hover {
    background: #F7931E;
    color: white;
    border-color: #F7931E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 147, 30, 0.3);
}

.pagination .page-item.active .page-link {
    background: #0E0F3B;
    border-color: #0E0F3B;
    color: white;
    box-shadow: 0 4px 12px rgba(14, 15, 59, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #cbd5e1;
    border-color: #e2e8f0;
    background: #f8fafc;
    box-shadow: none;
}

/* Row Spacing for Blog Cards - Using Bootstrap gy-4 for better spacing */
.blog-card {
    margin-bottom: 0;
    height: 100%;
}

/* Enhanced Responsive Design */
@media (max-width: 992px) {
    .blog-content {
        padding: 28px 24px;
    }
    
    .blog-content h5 {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .blog-card {
        border-radius: 16px;
    }
    
    .blog-card:hover {
        transform: translateY(-8px) scale(1.01);
    }
    
    .blog-image {
        height: 220px;
    }
    
    .blog-content {
        padding: 24px 20px;
    }
    
    .blog-content h5 {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }
    
    .blog-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .read-more {
        font-size: 13px;
        padding: 10px 0;
    }
    
    .pagination .page-link {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .blog-image {
        height: 200px;
    }
    
    .blog-content {
        padding: 20px 16px;
    }
    
    .blog-category {
        padding: 6px 14px;
        font-size: 10px;
    }
    
    .pagination .page-link {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Enhanced Animation System */
.blog-card {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: modernFadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.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; }

@keyframes modernFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modern Hero Section for Blog */
.main-banner {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid rgba(14, 15, 59, 0.08);
}

.main-banner .left-content h2 {
    color: #0E0F3B;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.main-banner .left-content p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.7;
}

.main-banner .right-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(14, 15, 59, 0.1));
    transition: all 0.4s ease;
}

.main-banner .right-image img:hover {
    transform: translateY(-5px) scale(1.02);
    filter: drop-shadow(0 15px 40px rgba(14, 15, 59, 0.15));
}

/* Enhanced Section Heading */
.section-heading {
    margin-bottom: 50px;
    position: relative;
}

.section-heading h4 {
    color: #0E0F3B;
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-heading h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: #F7931E;
    border-radius: 2px;
}

.section-heading h4 em {
    color: #F7931E;
    font-style: normal;
    position: relative;
}

.section-heading img {
    display: none;
}

/* ===== RESPONSIVE FIXES FOR 14 INCH SCREENS ===== */
@media (min-width: 1200px) and (max-width: 1440px) {
    /* Main Banner Optimization */
    .main-banner {
        padding: 100px 40px 60px 40px !important;
    }
    
    .main-banner .left-content h2 {
        font-size: 40px !important;
        line-height: 52px !important;
        margin-bottom: 18px;
    }
    
    .main-banner .left-content p {
        font-size: 15px;
        line-height: 26px;
        margin-bottom: 30px;
    }
    
    /* Blog Cards */
    .blog-card {
        margin-bottom: 30px;
    }
    
    .blog-card .card-body {
        padding: 25px 20px;
    }
    
    .blog-card h5 {
        font-size: 20px;
        margin-bottom: 12px;
        line-height: 28px;
    }
    
    .blog-card p {
        font-size: 14px;
        line-height: 24px;
        margin-bottom: 15px;
    }
    
    .blog-card .blog-meta {
        font-size: 12px;
    }
    
    .blog-card .read-more {
        font-size: 13px;
        padding: 8px 20px;
    }
    
    /* Blog Sidebar */
    .blog-sidebar .widget {
        padding: 25px 20px;
        margin-bottom: 25px;
    }
    
    .blog-sidebar .widget h5 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .blog-sidebar .widget ul li {
        font-size: 13px;
        padding: 8px 0;
    }
    
    /* Section Spacing */
    .section {
        padding: 60px 0px;
    }
    
    .section-heading h4 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .section-heading p {
        font-size: 15px;
        line-height: 26px;
    }
    
    /* Pagination */
    .pagination .page-link {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* Extra optimization for 1366px screens */
@media (min-width: 1300px) and (max-width: 1400px) {
    .main-banner {
        padding: 90px 30px 50px 30px !important;
    }
    
    .main-banner .left-content h2 {
        font-size: 36px !important;
        line-height: 48px !important;
    }
    
    .blog-card .card-body {
        padding: 20px 18px;
    }
    
    .blog-card h5 {
        font-size: 18px;
        line-height: 26px;
    }
    
    .blog-card p {
        font-size: 13px;
        line-height: 22px;
    }
    
    .blog-sidebar .widget {
        padding: 20px 18px;
    }

    

}