/* Blog Styles */

/* General */
.blog-section {
    padding: 80px 0;
}

.blog-section .col-lg-8 {
    margin-left:auto;
    margin-right:auto;
}

.blog-section .col-md-4 {
    margin-bottom:30px;
}

/* Blog Cards */
.blog-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    background-color: #fff;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-category {
    color: #0D6EFD;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    display: inline-block;
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #0D6EFD;
}

.blog-excerpt {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.7;
}

.blog-meta {
    font-size: 14px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-meta .author {
    display: flex;
    align-items: center;
}

.blog-meta .author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination .page-item {
    margin: 0 5px;
}

.pagination .page-link {
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    color: #333;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #0D6EFD;
    color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: #0D6EFD;
    color: #fff;
}

/* Custom styles for Zid themes page */
.zid-themes-header {
    background: linear-gradient(45deg, #0A2463, #0D6EFD);
    padding: 170px 0 100px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.zid-themes-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('../../../assets/images/bgMove.webp');
    opacity: 0.05;
    animation: bgMove 20s linear infinite;
    pointer-events: none;
}


@keyframes bgMove {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

.zid-themes-header h1 {
    font-weight: 800;
    font-size: 2.5rem;
    line-height:55px;
    margin-bottom: 35px;
}

.zid-themes-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 35px;
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar {
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .blog-section {
        padding: 40px 0;
    }
    
    .blog-content {
        padding: 15px;
    }
    
    .blog-title {
        font-size: 18px;
    }
}

/* Blog Single Post Styles */
.blog-single {
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.blog-single .col-lg-8 {
  margin-left:auto;
  margin-right:auto;
}

.blog-single-header {
    margin-bottom: 30px;
}

.blog-single-title {
    font-size: 28px;
    font-weight: 700;
    line-height:44px;
    margin-bottom: 20px;
}

.blog-single-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .blog-single-meta {
        flex-direction: column;
        gap:10px;
        align-items: start;
    }
}

.blog-single-meta .author {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.blog-single-meta .author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
}

.blog-single-meta .date, .blog-single-meta .category {
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.blog-single-meta i {
    margin-left: 5px;
}

.blog-single-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.blog-single-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.blog-single-content {
    line-height: 1.8;
    color: #555;
}

.blog-single-content p {
    margin-bottom: 20px;
}

.blog-single-content h2, .blog-single-content h3, .blog-single-content h4, .blog-single-content h5, .blog-single-content h6 {
    margin: 30px 0 15px;
    font-weight: 700;
    color:#000;
}

.blog-single-content ul, .blog-single-content ol {
    margin-bottom: 20px;
    padding-right: 20px;
}

.blog-single-content li {
    margin-bottom: 10px;
}

.blog-single-tags {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.blog-single-tags span {
    font-weight: 600;
    margin-left: 10px;
}

@media (max-width: 767px) {
    .blog-single-tags span {
        display: block;
        margin-bottom: 15px;
    }
}

.blog-single-tags a {
    display: inline-block;
    margin-left: 5px;
    margin-bottom: 5px;
    padding: 5px 15px;
    background: #f8f9fa;
    border-radius: 30px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
}

.blog-single-tags a:hover {
    background: #0D6EFD;
    color: #fff!important;
}

.blog-single-share {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.blog-single-share span {
    font-weight: 600;
    margin-left: 15px;
}

.blog-single-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #666;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.blog-single-share a:hover {
    background: #0D6EFD;
    color: #fff;
}

.blog-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    margin-bottom: 40px;
}

.blog-navigation .nav-previous,
.blog-navigation .nav-next {
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 48%;
}

.blog-navigation .nav-previous:hover,
.blog-navigation .nav-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-navigation .nav-previous span,
.blog-navigation .nav-next span {
    display: block;
    color: #888;
    font-size: 14px;
    margin-bottom: 5px;
}

.blog-navigation .nav-previous h4,
.blog-navigation .nav-next h4 {
    font-size: 16px;
    margin: 0;
}

.blog-navigation .nav-previous a,
.blog-navigation .nav-next a {
    color: #333;
    text-decoration: none;
}

.blog-navigation .nav-previous a:hover,
.blog-navigation .nav-next a:hover {
    color: #0D6EFD;
}
