@media (min-width: 1400px) {
    .container,.container-sm,.container-md,.container-lg,.container-xl,.container-xxl {
        /* max-width:1320px; */
        max-width: 100%;
    }
}

/* .header-carousel .row .col-md-6 {
    padding-left: 150px !important;  */
    /* Use !important to override any conflicting styles */
/* } */

/* @media (max-width: 768px) {
    .header-carousel .row .col-md-6 { */
        /* padding-left: 80px !important;  */
        /* Smaller padding for mobile devices */
    /* }
} */



.container, .container-sm, .container-md, .container-lg, .container-xl {
    max-width: 1320px;
}

.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%); /* Center vertically */
    display: flex; /* Enable flexbox for easy alignment */
    justify-content: space-between; /* Space buttons evenly */
}

.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav .owl-next {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: white; /* Text color */
    padding: 10px 15px; /* Padding for the buttons */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Change cursor on hover */
    transition: background-color 0.3s ease; /* Smooth transition */
}

.owl-carousel .owl-nav .owl-prev:hover,
.owl-carousel .owl-nav .owl-next:hover {
    background-color: rgba(0, 0, 0, 0.7); /* Darker background on hover */
}

.owl-carousel .owl-nav .owl-prev {
    left: 10px; /* Adjust left position */
}

.owl-carousel .owl-nav .owl-next {
    right: 10px; /* Adjust right position */
}

/* ============================================
   BLOG SECTION ENHANCEMENTS FOR CUSTOM.CSS
   ============================================ */

/* Enhanced CSS variables for consistency */
:root {
    --blog-primary: #0d6efd;
    --blog-primary-dark: #0a58ca;
    --blog-secondary: #6c757d;
    --blog-light: #f8f9fa;
    --blog-dark: #212529;
    --blog-white: #ffffff;
    --blog-gray-100: #f8f9fa;
    --blog-gray-200: #e9ecef;
    --blog-gray-300: #dee2e6;
    --blog-gray-400: #ced4da;
    --blog-gray-500: #adb5bd;
    --blog-gray-600: #6c757d;
    --blog-gray-700: #495057;
    --blog-gray-800: #343a40;
    --blog-gray-900: #212529;
    --blog-transition: all 0.3s ease;
}

/* ============================================
   ENHANCED BLOG POST STYLES
   ============================================ */

/* Additional enhancements for blog post items */
.blog-post-item {
    border: 1px solid var(--blog-gray-200);
    background: var(--blog-white);
    position: relative;
}

.blog-post-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blog-primary), var(--blog-primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-post-item:hover::before {
    opacity: 1;
}

/* Enhanced image overlay effects */
.blog-post-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-post-item:hover .blog-post-image::after {
    opacity: 1;
}

/* Enhanced post type badge styling */
.post-type-badge {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
}

.post-type-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    border-radius: inherit;
    z-index: -1;    
}

/* Enhanced blog post content */
.blog-post-content {
    position: relative;
}

.blog-post-title {
    position: relative;
    overflow: hidden;
}

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

/* Enhanced read more button */
.read-more-btn {
    position: relative;
    overflow: hidden;
}

.read-more-btn::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;
}

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

/* ============================================
   ENHANCED SIDEBAR STYLES
   ============================================ */

/* Enhanced sidebar card styling */
.sidebar-card {
    position: relative;
    border: 1px solid var(--blog-gray-200);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blog-primary), var(--blog-primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sidebar-card:hover::before {
    transform: scaleX(1);
}

/* Enhanced widget title */
.widget-title {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

/* .widget-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--blog-primary), var(--blog-primary-dark));
} */

/* Enhanced search input */
.wp-block-search__input {
    position: relative;
    background: var(--blog-white);
}

.wp-block-search__input:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.15);
}

.wp-block-search__inside-wrapper {
    position: relative;
}

.wp-block-search__inside-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    background: linear-gradient(45deg, var(--blog-primary), var(--blog-primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    transform: scale(1.02);
}

.wp-block-search__inside-wrapper:hover::before {
    opacity: 0.1;
}

/* Enhanced search button */
#wp-block-search__button {
    background: linear-gradient(135deg, var(--blog-primary), var(--blog-primary-dark));
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

#wp-block-search__button:hover {
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

/* Enhanced category list */
.category-list li {
    position: relative;
}

.category-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(135deg, var(--blog-primary), var(--blog-primary-dark));
    transition: height 0.3s ease;
}

.category-list li:hover::before {
    height: 60%;
}

.category-list li a {
    position: relative;
    padding-left: 15px;
}

/* Enhanced recent posts */
.recent-post-item {
    border: 1px solid transparent;
    transition: var(--blog-transition);
}

.recent-post-item:hover {
    border-color: var(--blog-gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.recent-post-thumb {
    position: relative;
    overflow: hidden;
}

/* .recent-post-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--blog-primary), var(--blog-primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
} */

.recent-post-item:hover .recent-post-thumb::after {
    opacity: 0.2;
}

/* Enhanced tags */
.wp-block-tag-cloud a {
    position: relative;
    overflow: hidden;
}

.wp-block-tag-cloud a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.1), transparent);
    transition: left 0.5s ease;
}

.wp-block-tag-cloud a:hover::before {
    left: 100%;
}

/* Enhanced contact widget */
.zubuz-blog-contact {
    position: relative;
    overflow: hidden;
}

.zubuz-blog-contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    animation: contactShimmer 3s linear infinite;
}

@keyframes contactShimmer {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

.zubuz-blog-contact a {
    position: relative;
    overflow: hidden;
}

.zubuz-blog-contact a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.2), transparent);
    transition: left 0.5s ease;
}

.zubuz-blog-contact a:hover::before {
    left: 100%;
}

/* ============================================
   ENHANCED PAGINATION STYLES
   ============================================ */

/* Custom pagination wrapper enhancements */
.custom-pagination-wrapper {
    position: relative;
    padding: 20px 0;
}

.custom-pagination-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--blog-primary), var(--blog-primary-dark));
}

/* Enhanced pagination buttons */
.custom-page-btn {
    position: relative;
    overflow: hidden;
    font-weight: 600;
}

.custom-page-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blog-primary), var(--blog-primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.custom-page-btn:hover::before,
.custom-page-btn.active::before {
    opacity: 1;
}

.custom-page-btn:hover,
.custom-page-btn.active {
    color: var(--blog-white);
    border-color: var(--blog-primary);
}

/* ============================================
   ENHANCED SINGLE POST STYLES
   ============================================ */

/* Enhanced post header */
.post-header {
    position: relative;
    margin-bottom: 30px;
}

.post-header h1 {
    position: relative;
    display: inline-block;
}

.post-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--blog-primary), var(--blog-primary-dark));
}

/* Enhanced post meta */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.post-meta .d-flex {
    background: var(--blog-gray-100);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--blog-gray-200);
    transition: var(--blog-transition);
}

.post-meta .d-flex:hover {
    background: var(--blog-primary);
    color: var(--blog-white);
    transform: translateY(-2px);
}

.post-meta .d-flex:hover i {
    color: var(--blog-white) !important;
}

/* Enhanced post image */
.post-image-container {
    position: relative;
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(13, 110, 253, 0.1), rgba(10, 88, 202, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.post-image-container:hover::before {
    opacity: 1;
}

/* Enhanced testimonial item */
.testimonial-item {
    position: relative;
    /* border-left: 4px solid var(--blog-primary); */
    background: var(--blog-white);
}


/* Enhanced post content styling */
.post-content {
    position: relative;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    position: relative;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-content h1::before,
.post-content h2::before,
.post-content h3::before,
.post-content h4::before,
.post-content h5::before,
.post-content h6::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, var(--blog-primary), var(--blog-primary-dark));
    border-radius: 2px;
}

.post-content blockquote {
    position: relative;
    margin: 30px 0;
    padding: 25px 30px;
    font-style: italic;
    font-size: 1.1rem;
    border-left: 4px solid var(--blog-primary);
    background: linear-gradient(135deg, var(--blog-gray-100), var(--blog-white));
    border-radius: 0 10px 10px 0;
}

.post-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: var(--blog-primary);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.post-content a {
    position: relative;
    color: var(--blog-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--blog-transition);
}

.post-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blog-primary), var(--blog-primary-dark));
    transition: width 0.3s ease;
}

.post-content a:hover::after {
    width: 100%;
}

/* Enhanced lists */
.post-content ul li,
.post-content ol li {
    position: relative;
    padding-left: 10px;
    margin-bottom: 10px;
}

.post-content ul li::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, var(--blog-primary), var(--blog-primary-dark));
    border-radius: 50%;
}

/* ============================================
   ENHANCED ANIMATIONS
   ============================================ */

/* Fade in animation for blog posts */
@keyframes blogFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide in animation for sidebar */
@keyframes blogSlideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulse animation for active elements */
@keyframes blogPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

/* Apply animations */
.blog-post-item {
    animation: blogFadeInUp 0.6s ease-out both;
}

.sidebar-card {
    animation: blogSlideInRight 0.6s ease-out both;
}

.read-more-btn:hover,
.custom-page-btn.active {
    animation: blogPulse 1.5s infinite;
}

/* Stagger animations */
.blog-post-item:nth-child(1) { animation-delay: 0.1s; }
.blog-post-item:nth-child(2) { animation-delay: 0.2s; }
.blog-post-item:nth-child(3) { animation-delay: 0.3s; }
.blog-post-item:nth-child(4) { animation-delay: 0.4s; }
.blog-post-item:nth-child(5) { animation-delay: 0.5s; }

.sidebar-card:nth-child(1) { animation-delay: 0.2s; }
.sidebar-card:nth-child(2) { animation-delay: 0.3s; }
.sidebar-card:nth-child(3) { animation-delay: 0.4s; }
.sidebar-card:nth-child(4) { animation-delay: 0.5s; }

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */

@media (max-width: 992px) {
    .sidebar-card {
        animation: blogFadeInUp 0.6s ease-out both;
    }
    
    .post-content h1,
    .post-content h2,
    .post-content h3,
    .post-content h4,
    .post-content h5,
    .post-content h6 {
        margin-top: 30px;
        padding-left: 15px;
    }
}

@media (max-width: 768px) {
    .blog-post-item {
        margin-bottom: 25px;
    }
    
    .post-meta {
        gap: 10px;
    }
    
    .post-meta .d-flex {
        padding: 6px 12px;
        font-size: 0.875rem;
    }
    
    .custom-pagination-wrapper::before {
        width: 60px;
    }
}

@media (max-width: 576px) {
    .custom-page-links {
        gap: 5px;
    }
    
    .custom-page-btn {
        padding: 8px 12px;
        font-size: 0.875rem;
    }
    
    .post-content blockquote {
        padding: 20px 15px;
        margin: 20px 0;
        font-size: 1rem;
    }
    
    .post-content blockquote::before {
        font-size: 3rem;
        top: -5px;
        left: 5px;
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Focus states */
.blog-post-item:focus-within {
    outline: 3px solid rgba(13, 110, 253, 0.3);
    outline-offset: 2px;
}

.wp-block-search__input:focus,
.custom-page-btn:focus,
.category-list li a:focus,
.recent-post-link:focus,
.wp-block-tag-cloud a:focus {
    outline: 2px solid var(--blog-primary);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .blog-post-item,
    .sidebar-card,
    .read-more-btn,
    .custom-page-btn,
    .category-list li a,
    .recent-post-item,
    .wp-block-tag-cloud a {
        animation: none;
        transition: none;
    }
    
    .blog-post-item:hover,
    .sidebar-card:hover,
    .recent-post-item:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .blog-post-item,
    .sidebar-card {
        border-width: 2px;
        border-color: var(--blog-dark);
    }
    
    .post-type-badge,
    .read-more-btn,
    .custom-page-btn,
    #wp-block-search__button {
        border: 2px solid var(--blog-dark);
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* GPU acceleration for animations */
.blog-post-item,
.sidebar-card,
.read-more-btn,
.custom-page-btn {
    will-change: transform;
    transform: translateZ(0);
}

/* Optimize image rendering */
.blog-post-image img,
.recent-post-thumb img {
    image-rendering: optimizeQuality;
    image-rendering: -webkit-optimize-contrast;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .sidebar-card,
    .custom-pagination-wrapper,
    .zubuz-blog-contact,
    .read-more-btn {
        display: none !important;
    }
    
    .blog-post-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
        margin-bottom: 20px;
    }
    
    .blog-post-image {
        padding-top: 30%;
    }
    
    .post-content {
        color: #000;
    }
    
    .post-content a {
        color: #000;
        text-decoration: underline;
    }
}