/* ===== Project overrides on top of the Zaira template ===== */
.skip-link{position:absolute;left:-9999px;top:0;z-index:9999;background:#000;color:#fff;padding:8px 16px}
.skip-link:focus{left:8px;top:8px}
.archive-header{border-bottom:1px solid var(--tg-border-1, #e4e4e4);padding-bottom:20px}
.archive-title{font-size:32px;margin-bottom:8px}
.archive-intro{color:var(--tg-body-color,#666)}
.post-sapo{font-size:18px;line-height:1.7}
.blog-details-thumb{margin:0 0 30px}
.blog-details-thumb img{width:100%;height:auto}
.post-figcaption{font-size:14px;font-style:italic;text-align:center;margin-top:8px;color:#888}
.post-content{font-size:17px;line-height:1.8;word-wrap:break-word}
.post-content img{max-width:100%;height:auto;border-radius:6px;margin:15px 0}
.post-content h2{font-size:26px;margin:30px 0 15px}
.post-content h3{font-size:22px;margin:25px 0 12px}
.post-content ul,.post-content ol{padding-left:24px;margin-bottom:20px}
.post-content ul li{list-style:disc}
.post-content ol li{list-style:decimal}
.post-content table{width:100%;border-collapse:collapse;margin-bottom:20px}
.post-content td,.post-content th{border:1px solid #ddd;padding:8px}
.post-content iframe{max-width:100%}
.post-content a{text-decoration:underline}
.post-toc{background:var(--tg-gray, #f5f5f5);border-left:4px solid var(--tg-theme-primary,#2A4970);padding:18px 24px;margin:0 0 30px;border-radius:4px}
.post-toc-title{font-weight:700;margin-bottom:10px}
.post-toc ol{margin:0;padding-left:20px}
.post-toc li{list-style:decimal;margin-bottom:4px}
.post-toc .toc-level-3{margin-left:18px;list-style:circle}
[tg-theme=dark] .post-toc{background:#1d1d1d}
.stories-post-two .number{display:block;font-weight:700}
.section-title .title a{color:inherit}
.header-search-wrap input[type=search]::-webkit-search-cancel-button{display:none}
.logo h1 img{max-height:inherit}
/* Template capitalizes every word — wrong for Vietnamese sentences. Keep text as written. */
h1,h2,h3,h4,h5,h6,p,li,a,span,.post-title,.title,blockquote p{text-transform:none}
.post-tag,.post-tag-two,.post-tag-four,.blog-post-meta .list-wrap li,.btn,.link-btn{text-transform:uppercase}
.blog-details-content blockquote p{text-transform:none}
.post-toc ol{list-style:none;padding-left:0;counter-reset:toc}
.post-toc li{list-style:none}
.post-toc .toc-level-2{counter-increment:toc}
.post-toc .toc-level-2::before{content:counter(toc) ". ";font-weight:600}
.post-toc .toc-level-3{margin-left:22px}
.post-toc .toc-level-3::before{content:"– "}
.post-type-tag{background:#2A4970 !important;color:#fff !important;margin-left:6px}

/* Photo gallery posts */
.post-gallery{margin:0 0 30px}
.post-gallery-count{font-weight:600;margin-bottom:12px}
.post-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.post-gallery-item{margin:0}
.post-gallery-item a{display:block;overflow:hidden;border-radius:6px}
.post-gallery-item img{width:100%;height:200px;object-fit:cover;transition:transform .3s}
.post-gallery-item a:hover img{transform:scale(1.04)}
.post-gallery-item figcaption{font-size:14px;color:#777;margin-top:6px;line-height:1.4}
.post-gallery-grid .post-gallery-item:first-child{grid-column:1/-1}
.post-gallery-grid .post-gallery-item:first-child img{height:auto;max-height:520px}
@media (max-width:575px){.post-gallery-grid{grid-template-columns:repeat(2,1fr)}.post-gallery-item img{height:140px}}
.post-gallery{clear:both}

/* Video posts */
.post-video{margin:0 0 30px}
.post-video video,.post-video iframe,.post-video-facade{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:8px;background:#000}
.post-video-facade{position:relative;padding:0;cursor:pointer;overflow:hidden}
.post-video-facade img{width:100%;height:100%;object-fit:cover;opacity:.92;transition:opacity .2s}
.post-video-facade:hover img{opacity:1}
.post-video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:78px;height:78px;border-radius:50%;background:rgba(220,38,38,.92);color:#fff;display:flex;align-items:center;justify-content:center;font-size:26px;box-shadow:0 6px 24px rgba(0,0,0,.35);transition:transform .2s}
.post-video-facade:hover .post-video-play{transform:translate(-50%,-50%) scale(1.08)}
.post-video-play i{margin-left:5px}
.post-figcaption a{color:inherit;text-decoration:underline}
.weekly-post-thumb{position:relative}
.weekly-post-thumb .paly-btn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:54px;height:54px;display:flex;align-items:center;justify-content:center;background:var(--tg-white,#fff);color:var(--tg-heading-color,#111);border-radius:50%;font-size:18px;box-shadow:0 4px 16px rgba(0,0,0,.25)}
.weekly-post-thumb .paly-btn:hover{background:var(--tg-theme-primary,#e9573f);color:#fff}
.post-video{clear:both}
