/*
Theme Name: Hazari Eye Hospital Blog
Theme URI: https://www.hazarieyehospital.com/blog/
Author: Traffic Mantra
Author URI: https://trafficmantra.co.in
Description: Custom lightweight blog theme matching the Hazari Eye Hospital website. Reuses the main site's header, footer, appointment modal, chatbot and CSS. Elementor-ready (pages and posts).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: hazari-blog
*/

/* ── WP admin bar vs sticky nav ── */
.admin-bar #main-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar #main-nav { top: 46px; } }

/* ── Listing ── */
.hz-grid-section { padding: 72px 0; }
.hz-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.hz-filter a { font-family: var(--font-head); font-size: 13.5px; font-weight: 700; padding: 8px 18px; border-radius: 50px; border: 1px solid var(--border); color: var(--navy); background: #fff; text-decoration: none; transition: all var(--t-fast); }
.hz-filter a:hover, .hz-filter a.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.blog-card > a { color: inherit; text-decoration: none; display: block; height: 100%; }
.hz-img-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bg-soft), var(--bg-lt)); color: var(--blue); }
.hz-img-fallback i { font-size: 2.6rem; opacity: .75; }
.hz-empty { text-align: center; padding: 60px 20px; color: var(--text-2); }

/* ── Pagination ── */
.hz-pagination { margin-top: 48px; display: flex; justify-content: center; }
.hz-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.hz-pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50px; border: 1px solid var(--border); background: #fff; color: var(--navy); font-weight: 700; font-family: var(--font-head); text-decoration: none; }
.hz-pagination .page-numbers.current, .hz-pagination a.page-numbers:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ── Single post ── */
.hz-post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: rgba(255,255,255,.8); font-size: 14px; margin-top: 18px; }
.hz-post-meta i { margin-right: 6px; color: var(--sky); }
.hz-single { padding: 64px 0 80px; background: var(--bg-section); }
.hz-article { background: #fff; border: 1px solid var(--border-lt); border-radius: var(--r-xl); box-shadow: var(--sh-xs); padding: 44px; }
.hz-featured { border-radius: var(--r-lg); overflow: hidden; margin: -8px 0 32px; }
.hz-featured img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
@media (max-width: 767px) { .hz-article { padding: 26px 20px; border-radius: var(--r-lg); } .hz-single { padding: 36px 0 56px; } }

/* Post content typography (Gutenberg / classic) */
.hz-prose { color: var(--text-2); font-size: 16.5px; line-height: 1.9; }
.hz-prose > *:first-child { margin-top: 0; }
.hz-prose p { margin-bottom: 1.2em; }
.hz-prose h2, .hz-prose h3, .hz-prose h4 { font-family: var(--font-head); color: var(--navy); font-weight: 800; line-height: 1.3; margin: 1.8em 0 .7em; }
.hz-prose h2 { font-size: 1.6rem; }
.hz-prose h3 { font-size: 1.3rem; }
.hz-prose h4 { font-size: 1.1rem; }
.hz-prose a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hz-prose strong { color: var(--text); }
.hz-prose ul, .hz-prose ol { padding-left: 1.3em; margin-bottom: 1.3em; }
.hz-prose li { margin-bottom: .45em; }
.hz-prose ul li::marker { color: var(--accent); }
.hz-prose img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.hz-prose figure { margin: 1.8em 0; }
.hz-prose figcaption { font-size: 13px; color: var(--text-3); text-align: center; margin-top: 8px; }
.hz-prose blockquote { border-left: 4px solid var(--accent); background: var(--bg-lt); padding: 18px 24px; border-radius: 0 var(--r-md) var(--r-md) 0; margin: 1.6em 0; color: var(--navy); font-weight: 500; }
.hz-prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; display: block; overflow-x: auto; }
.hz-prose th, .hz-prose td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.hz-prose th { background: var(--bg-lt); color: var(--navy); font-family: var(--font-head); }
.hz-prose .alignleft { float: left; margin: 0 1.5em 1em 0; }
.hz-prose .alignright { float: right; margin: 0 0 1em 1.5em; }
.hz-prose .aligncenter { margin-left: auto; margin-right: auto; display: block; }

.hz-tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.hz-tags a { font-size: 13px; padding: 5px 14px; border-radius: 50px; background: var(--bg-lt); color: var(--blue); text-decoration: none; font-weight: 600; }
.hz-author { display: flex; gap: 16px; align-items: center; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border-lt); }
.hz-author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; }
.hz-author-name { font-family: var(--font-head); font-weight: 800; color: var(--navy); }
.hz-author-role { font-size: 13.5px; color: var(--text-2); }
.hz-inline-cta { margin-top: 32px; padding: 26px 28px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--bg-lt), var(--bg-soft)); border: 1px solid var(--border-lt); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.hz-inline-cta h3 { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.15rem; margin: 0 0 4px; }
.hz-inline-cta p { margin: 0; font-size: 14.5px; color: var(--text-2); }

/* Sidebar */
.hz-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.hz-box { background: #fff; border: 1px solid var(--border-lt); border-radius: var(--r-lg); box-shadow: var(--sh-xs); padding: 26px; }
.hz-box-title { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.05rem; margin-bottom: 16px; }
.hz-box-appt { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); border: none; color: #fff; }
.hz-box-appt .hz-box-title { color: #fff; }
.hz-box-appt p { color: rgba(255,255,255,.72); font-size: 14px; margin-bottom: 18px; }
.hz-list { list-style: none; padding: 0; margin: 0; }
.hz-list li { border-bottom: 1px solid var(--border-lt); }
.hz-list li:last-child { border-bottom: 0; }
.hz-list a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.hz-list a:hover { color: var(--blue); }
.hz-list .count { color: var(--text-3); font-size: 13px; }
.hz-search { display: flex; gap: 8px; }
.hz-search input { flex: 1; min-width: 0; border: 1.5px solid var(--border); border-radius: var(--r-sm); padding: 10px 14px; font-size: 15px; }
.hz-search button { border: 0; background: var(--blue); color: #fff; border-radius: var(--r-sm); padding: 0 16px; }
@media (max-width: 991px) { .hz-side { position: static; margin-top: 32px; } }

.hz-related { padding: 0 0 80px; background: var(--bg-section); }

/* Elementor full-width pages */
.hz-elementor-main { min-height: 40vh; }
