
.blog-header-internal { text-align: center; margin-bottom: 50px; }
.blog-wrapper { display: flex; gap: 40px; align-items: flex-start; }
.blog-main-list, .blog-article { flex: 2.5; width: 0; }
.blog-sidebar { flex: 1; min-width: 300px; position: sticky; top: 20px; }
.blog-grid.two-columns { grid-template-columns: repeat(2, 1fr); }

.widget { background: #f8f9fa; padding: 25px; border-radius: 8px; margin-bottom: 30px; }
.widget h3 { font-size: 1.2rem; margin-bottom: 20px; color: #333; border-bottom: 2px solid #e0e0e0; padding-bottom: 10px; display: inline-block; }

.search-widget form { display: flex; position: relative; }
.search-widget input { width: 100%; padding: 12px 45px 12px 15px; border: 1px solid #ddd; border-radius: 4px; outline: none; }
.search-widget button { position: absolute; right: 5px; top: 5px; background: none; border: none; color: #888; height: 34px; width: 34px; cursor: pointer; }

.categories-widget ul { list-style: none; padding: 0; }
.categories-widget ul li { margin-bottom: 10px; border-bottom: 1px dashed #eee; padding-bottom: 10px; }
.categories-widget ul li:last-child { border: none; }
.categories-widget ul li a { color: #555; text-decoration: none; display: flex; justify-content: space-between; transition: color 0.2s; }
.categories-widget ul li a:hover { color: #007bff; }
.categories-widget ul li a span { background: #e9ecef; padding: 2px 8px; border-radius: 10px; font-size: 0.8rem; color: #666; }

.mini-post { display: flex; gap: 15px; margin-bottom: 15px; align-items: center; }
.mini-post .post-image { display: block; flex-shrink: 0; width: 70px; height: 70px; }
.mini-post img { width: 70px; height: 70px; object-fit: cover; border-radius: 4px; display: block; }
.mini-post div { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.mini-post a { font-size: 0.95rem; font-weight: 600; color: #333; line-height: 1.3; margin-bottom: 5px; text-decoration: none; }
.mini-post span { font-size: 0.75rem; color: #999; }

.banner-sidebar .cta-box { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); color: #fff; padding: 30px; border-radius: 8px; text-align: center; }
.banner-sidebar h4 { color: #fff; margin-bottom: 10px; }
.banner-sidebar p { color: #dceeff; font-size: 0.9rem; margin-bottom: 20px; }
.banner-sidebar .blue-button.small { padding: 10px 20px; font-size: 0.9rem; background: #fff; color: #1e3c72; }

.pagination-wrapper { margin-top: 50px; display: flex; justify-content: center; }
.pagination { list-style: none; display: flex; gap: 10px; padding: 0; }
.pagination a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #ddd; border-radius: 4px; color: #555; text-decoration: none; transition: all 0.3s; }
.pagination a:hover, .pagination a.active { background: #007bff; color: #fff; border-color: #007bff; }

.badge-category { background: #007bff; color: #fff; padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; text-transform: uppercase; font-weight: 700; }

.article-header h1 { font-size: 2.5rem; color: #222; margin: 15px 0; line-height: 1.2; }
.article-meta { color: #777; font-size: 0.9rem; margin-bottom: 30px; display: flex; gap: 20px; }
.article-meta i { margin-right: 5px; }
.article-featured-image { width: 100%; height: 400px; border-radius: 12px; overflow: hidden; margin-bottom: 40px; }
.article-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.article-content p { font-size: 1.05rem; line-height: 1.7; color: #444; margin-bottom: 25px; }
.article-content .lead { font-size: 1.2rem; color: #222; font-weight: 500; }
.article-content h2 { margin-top: 40px; margin-bottom: 20px; color: #222; }
.article-content h3 { margin-top: 30px; margin-bottom: 15px; color: #333; }
.article-content blockquote { border-left: 5px solid #007bff; background: #f1f8ff; margin: 30px 0; padding: 20px 30px; font-style: italic; color: #555; font-size: 1.1rem; }

.post-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 30px 0; }
.post-gallery[data-columns="1"] { grid-template-columns: 1fr; }
.post-gallery[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.post-gallery[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.post-gallery[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
.post-gallery span.figure, .post-gallery figure { margin: 0; overflow: hidden; border-radius: 6px; aspect-ratio: 1; }
.post-gallery span.figure img, .post-gallery figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s; cursor: pointer; }
.post-gallery span.figure img:hover, .post-gallery figure img:hover { transform: scale(1.05); }
/*@media (max-width: 768px) {
    .post-gallery,
    .post-gallery[data-columns="3"],
    .post-gallery[data-columns="4"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .post-gallery,
    .post-gallery[data-columns="2"],
    .post-gallery[data-columns="3"],
    .post-gallery[data-columns="4"] { grid-template-columns: 1fr; }
}*/
.article-content pre { background: #2d2d2d; color: #f8f8f2; padding: 20px; border-radius: 6px; overflow-x: auto; margin-bottom: 25px; }
.article-content ul, .article-content ol { margin-bottom: 25px; padding-left: 20px; }
.article-content li { margin-bottom: 10px; line-height: 1.6; }
.article-footer { border-top: 1px solid #eee; padding-top: 30px; margin-top: 50px; }
.share-buttons { display: flex; align-items: center; gap: 10px; }

.btn-share { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff !important; text-decoration: none; font-size: 1rem; transition: transform 0.2s; }
.btn-share:hover { transform: translateY(-3px); color: #fff; }
.btn-share.facebook { background: #3b5998; }
.btn-share.twitter { background: #1da1f2; }
.btn-share.whatsapp { background: #25d366; }

.post-navigation { display: flex; justify-content: space-between; margin-top: 40px; gap: 20px; }
.post-navigation a { flex: 1; border: 1px solid #eee; padding: 20px; border-radius: 8px; text-decoration: none; transition: background 0.3s; }
.post-navigation a:hover { background: #f9f9f9; }
.post-navigation a span { display: block; font-size: 0.85rem; color: #888; margin-bottom: 5px; }
.post-navigation a strong { display: block; color: #333; font-size: 1rem; }
.post-navigation .next-post { text-align: right; }

#glb-overlay { display: none; position: fixed; inset: 0; z-index: 9900; background: rgba(0, 0, 0, .92); align-items: center; justify-content: center; animation: glb-fadein .2s ease; }
#glb-overlay.open { display: flex; }
#glb-img-wrap { position: relative; max-width: 90vw; max-height: 88vh; display: flex; align-items: center; justify-content: center; }
#glb-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; box-shadow: 0 8px 40px rgba(0,0,0,.6); transition: opacity .18s ease; user-select: none; }
#glb-img.glb-loading { opacity: 0; }
#glb-close { position: fixed; top: 18px; right: 22px; width: 40px; height: 40px; background: rgba(255,255,255,.15); border: none; border-radius: 50%; color: #fff; font-size: 22px; cursor: pointer; line-height: 40px; text-align: center; z-index: 9910; transition: background .2s; }
#glb-close:hover { background: rgba(255,255,255,.3); }
.glb-arrow { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; background: rgba(255,255,255,.15); border: none; border-radius: 50%; color: #fff; font-size: 20px; cursor: pointer; z-index: 9910; transition: background .2s; display: flex; align-items: center; justify-content: center; }
.glb-arrow:hover { background: rgba(255,255,255,.3); }
#glb-prev { left: 18px; }
#glb-next { right: 18px; }
.glb-arrow.glb-hidden { opacity: .2; pointer-events: none; }

#glb-counter { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .9rem; font-family: Arial, sans-serif; letter-spacing: .05em; pointer-events: none; z-index: 9910; }

@keyframes glb-fadein { from { opacity: 0 } to { opacity: 1 } }

@media (max-width: 992px) {
    .blog-wrapper { flex-direction: column; }
    .blog-main-list, .blog-article { width: 100%; }
    .blog-article { order: 1; }
    .blog-sidebar { width: 100%; order: 2; }
    .blog-grid.two-columns { grid-template-columns: repeat(2, 1fr); }
    .article-header h1 { font-size: 2rem; }
}

@media (max-width: 600px) {
    .blog-grid.two-columns { grid-template-columns: 1fr; }
    .post-navigation { flex-direction: column; }
    .post-navigation .next-post { text-align: left; }
    .article-featured-image { height: 250px; }

    #glb-prev { left: 6px; }
    #glb-next { right: 6px; }
    .glb-arrow { width: 38px; height: 38px; font-size: 16px; }
}