/* ========================================
   BLOG PAGES STYLES
======================================== */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #0791be 0%, #065a7a 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: #fff;
}

.blog-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.blog-hero p {
    font-size: 20px;
    opacity: 0.9;
}

/* Blog Layout */
.blog-page {
    padding: 80px 0;
    background: #f8f9fa;
}

.blog-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 20px;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.search-form button {
    padding: 12px 20px;
    background: #0791be;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-form button:hover {
    background: #065a7a;
}

/* Category List */
.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    transition: all 0.3s;
}

.category-list li a:hover,
.category-list li a.active {
    background: linear-gradient(135deg, #f56960 0%, #e55a52 100%);
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(245, 105, 96, 0.3);
}

.category-list li a span {
    color: inherit;
    opacity: 0.7;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    transition: all 0.3s;
}

.tag-cloud a:hover {
    background: #f56960;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(245, 105, 96, 0.3);
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.recent-post:hover {
    background: #e9ecef;
}

.recent-post img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.recent-post div {
    flex: 1;
}

.recent-post h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 5px;
    line-height: 1.4;
}

.recent-post span {
    font-size: 12px;
    color: #999;
}

/* Blog Grid */
.blog-grid-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.blog-image {
    position: relative;
    display: block;
    overflow: hidden;
    height: 240px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: #f56960;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(245, 105, 96, 0.3);
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #999;
}

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

.blog-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-content h2 a {
    color: #2C3E50;
    transition: color 0.3s;
}

.blog-content h2 a:hover {
    color: #f56960;
}

.blog-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f56960;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 12px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    font-weight: 600;
    transition: all 0.3s;
}

.page-link:hover:not(.disabled) {
    background: #f56960;
    border-color: #f56960;
    color: #fff;
}

.page-link.active {
    background: #f56960;
    border-color: #f56960;
    color: #fff;
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Blog Detail Page */
.blog-detail-hero {
    padding: 20px 0px;
    background: #f8f9fa;
}

.blog-tag{
	font-weight:500;
	font-size:16px;
}
.blog-detail-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    color: #666;
}

.blog-detail-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-detail-title {
    font-size: 42px;
    font-weight: 700;
    color: #2C3E50;
    margin: 0px;
}

.blog-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
}
.blog-content-wrapper img {
    margin-bottom: 20px;
}

.blog-detail-content {
    padding: 40px 0;
	font-family:sans-serif;
}


.blog-content-wrapper h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2C3E50;
    margin: 30px 0 15px;
}

.blog-content-wrapper h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2C3E50;
    margin: 25px 0 12px;
}

.blog-content-wrapper p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.blog-content-wrapper ul,
.blog-content-wrapper ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-content-wrapper li {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
}

.blog-content-wrapper blockquote {
    border-left: 4px solid #f56960;
    padding: 20px 30px;
    margin: 30px 0;
    background: #fff5f4;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #666;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 40px 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 20px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 8px;
}

.author-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin: 40px 0;
}

.social-share span {
    font-weight: 600;
    color: #2C3E50;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s;
}

.social-share a:hover {
    transform: translateY(-3px);
}

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

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

.social-share .linkedin {
    background: #0077b5;
}

.social-share .whatsapp {
    background: #25d366;
}

/* Related Posts */
.related-posts {
    padding: 60px 0;
    background: #f8f9fa;
}

.related-posts h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-row {
    display: flex;
    flex-direction: row;
	justify-content:space-between;
}
.blog-left{
	width:72%;
}
.blog-right {
    width: 25%;
    position: sticky;
    top: 80px;
    height: 100%;
}
.blog-left div#ez-toc-container {
    display: none;
}
div#ez-toc-container {
    width: 100%;
	background:#0791be;
	border:0px;
}
p.ez-toc-title {
    color: #fff !important;
}
span.ez-toc-icon-toggle-span svg {
    fill: white !important;
    color: #fff !important;
}
span.ez-toc-js-icon-con {
    border-color: #fff !important;
}
div#ez-toc-container nav ul li a {
    color: #fff !important;
}
.entry-content table {
    border-collapse: collapse;
	border:1px solid #555;
	margin-bottom:15px;
	
}
.entry-content table tr,.entry-content table td,.entry-content table th{
		border:1px solid #555;
}
.entry-content table td{
	padding:10px 15px;
}
.entry-content table td p{
	margin:0px;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 280px 1fr;
        gap: 30px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
	.blog-row{
		flex-direction:column;
	}
	.blog-left{
		width:100%;
	}
	div#ez-toc-container{
		display:none;
	}
	.blog-detail-meta {
		flex-flow: wrap;
		gap: 15px;
	}
}

@media (max-width: 767px) {
    .blog-hero h1 {
        font-size: 32px;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        order: 2;
    }

    .blog-grid-container {
        order: 1;
    }

    .blog-detail-title {
        font-size: 28px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
	.blog-detail-meta span {
		font-size: 14px;
	}
	.blog-detail-content {
		padding: 0px ;
	}
	.related-posts {
		padding: 30px 0;
		background: #f8f9fa;
	}
}