/* ==========================================================================
   Maaz Digital Marketing theme: WordPress + blog styles.
   The shared site styles (tokens, buttons, header, footer, all landing pages) are in style.css;
   this file only adds what WordPress needs: core classes, the admin bar, blog, article and comments.
   ========================================================================== */

/* ---------- 1. WordPress core classes ---------- */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: #fff; clip: auto !important; clip-path: none; color: var(--navy-900); display: block; height: auto; left: 8px; top: 8px; padding: 12px 18px; width: auto; z-index: 100000; border-radius: 6px; box-shadow: var(--shadow); }
.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { text-align: center; font-size: .86rem; color: var(--muted); margin-top: 10px; }
.sticky, .bypostauthor { display: block; }

/* The sticky site header sits below the admin bar for logged-in users */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- 2. Blog header (list, archives, search, article, 404) ---------- */
.bl-hero { position: relative; overflow: hidden; text-align: center; background: var(--grad-dark); color: #cfdcf3; padding: 0 0 clamp(48px, 6vw, 88px); }
.bl-hero::before { content: ""; position: absolute; width: 640px; height: 640px; left: 50%; top: -320px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(1, 170, 238, .3), transparent 65%); pointer-events: none; }
.bl-hero > .container { position: relative; z-index: 1; }
.bl-hero .crumb { position: relative; z-index: 1; padding-bottom: clamp(20px, 3vw, 36px); text-align: left; }
.bl-hero h1 { color: #fff; max-width: 900px; margin: 20px auto 16px; font-size: clamp(2rem, 1.1rem + 3vw, 3.3rem); overflow-wrap: anywhere; }
.bl-hero .lead-lg { color: #b9c9e6; max-width: 680px; margin: 0 auto; }
.bl-hero .text-grad { background-image: linear-gradient(90deg, #4aa8ff, #1cc4ff); }

.bl-search { display: flex; gap: 6px; max-width: 520px; margin: 28px auto 0; background: #fff; border-radius: 8px; padding: 6px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); }
.bl-search input[type="search"] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 14px; font: 500 1rem var(--body); color: var(--navy-900); }
.bl-search input[type="search"]:focus { outline: 0; }
.bl-search:focus-within { box-shadow: 0 0 0 4px rgba(1, 170, 238, .35); }
.bl-search button { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 6px; background: var(--grad); color: #fff; font: 700 .95rem/1 var(--body); padding: 12px 18px; transition: .2s; }
.bl-search button:hover { filter: brightness(1.08); }
.bl-empty .bl-search { box-shadow: none; border: 1.5px solid #c8d9ef; }

/* ---------- 3. Post lists ---------- */
.bl-cats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 clamp(24px, 3vw, 36px); }
.bl-cats a { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #c8d9ef; background: #fff; color: var(--navy-800); font: 700 .86rem/1 var(--body); padding: 10px 14px; border-radius: 6px; transition: .2s; }
.bl-cats a:hover { border-color: var(--blue-500); color: var(--blue-600); }
.bl-cats a.is-active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-glow); }
.bl-cats small { font-weight: 600; opacity: .7; }

.bl-card { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: .28s; }
.bl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #b7d2f6; }
.bl-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grad-dark); }
.bl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.bl-card:hover .bl-thumb img, .bl-featured:hover .bl-thumb img { transform: scale(1.05); }
.bl-thumb-empty { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255, 255, 255, .22); font-size: 3.6rem; background: radial-gradient(circle at 70% 20%, rgba(1, 170, 238, .35), transparent 60%); }
.bl-chip { position: absolute; left: 14px; top: 14px; z-index: 2; background: #fff; color: var(--blue-600); font: 700 .66rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; box-shadow: var(--shadow-sm); }
.bl-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.bl-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.bl-meta i { color: var(--blue-500); margin-right: 6px; }
.bl-card h2, .bl-card h3 { font-size: 1.2rem; line-height: 1.3; margin: 12px 0 8px; }
.bl-card h2 a, .bl-card h3 a, .bl-featured h2 a { color: var(--navy-900); }
.bl-card h2 a:hover, .bl-card h3 a:hover, .bl-featured h2 a:hover { color: var(--blue-600); }
.bl-card p { flex: 1; margin: 0 0 16px; color: var(--muted); font-size: .94rem; }
.bl-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--blue-600); }
.bl-more i { transition: transform .2s; }
.bl-card:hover .bl-more i { transform: translateX(4px); }

.bl-featured { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: clamp(24px, 3vw, 36px); }
.bl-featured .bl-thumb { aspect-ratio: auto; min-height: 340px; height: 100%; }
.bl-featured .bl-body { justify-content: center; padding: clamp(24px, 3.5vw, 46px); }
.bl-featured h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.2; margin: 14px 0 12px; }
.bl-featured p { color: var(--muted); font-size: 1.02rem; margin: 0 0 22px; }

.bl-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(28px, 4vw, 48px); }
.bl-pagination .page-numbers { display: inline-grid; place-items: center; grid-auto-flow: column; gap: 6px; min-width: 44px; height: 44px; padding: 0 14px; border: 1.5px solid #c8d9ef; border-radius: 6px; background: #fff; font-weight: 700; color: var(--navy-800); transition: .2s; }
.bl-pagination .page-numbers.current, .bl-pagination a.page-numbers:hover { background: var(--grad); color: #fff; border-color: transparent; }
.bl-pagination .page-numbers.dots { border: 0; background: transparent; }

.bl-empty { text-align: center; padding: clamp(32px, 5vw, 64px) 16px; background: var(--ice); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.bl-empty > i { display: block; font-size: 2.6rem; color: #a9c4e6; margin-bottom: 10px; }
.bl-empty p { margin: 0; font-size: 1.05rem; }
.bl-empty a { color: var(--blue-600); font-weight: 600; }

/* ---------- 4. Article ---------- */
.bl-post-hero h1 { font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3rem); }
.bl-post-chip { display: inline-block; background: rgba(1, 170, 238, .16); border: 1px solid rgba(1, 170, 238, .35); color: var(--sky-200); font: 700 .7rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 9px 14px; border-radius: 6px; }
.bl-post-chip:hover { color: #fff; background: rgba(1, 170, 238, .3); }
.bl-post-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 24px; margin-top: 22px; color: #b9c9e6; font-size: .92rem; font-weight: 600; }
.bl-post-meta i { color: var(--sky-400); margin-right: 7px; }
.bl-post-meta .bl-author { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.bl-post-meta img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); }
.bl-post-hero.has-cover { padding-bottom: clamp(120px, 15vw, 210px); }
.bl-cover { position: relative; z-index: 2; margin-top: calc(clamp(120px, 15vw, 210px) * -1 + 44px); max-width: 1040px; }
.bl-cover img, .pg-cover img { width: 100%; height: auto; aspect-ratio: 1600 / 840; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); display: block; }
.pg-cover { max-width: 1040px; margin: 0 auto clamp(28px, 4vw, 44px); }
.bl-article { padding: clamp(36px, 5vw, 68px) 0 clamp(48px, 6vw, 84px); }

.entry-content { max-width: 760px; margin: 0 auto; font-size: 1.08rem; line-height: 1.8; color: var(--text); overflow-wrap: break-word; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > * { margin-top: 0; margin-bottom: 1.35em; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin: 1.8em 0 .6em; }
.entry-content h3 { font-size: 1.35rem; margin: 1.6em 0 .5em; }
.entry-content h4, .entry-content h5, .entry-content h6 { font-size: 1.12rem; margin: 1.5em 0 .5em; }
.entry-content a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--navy-900); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--blue-500); font-weight: 700; }
.entry-content blockquote { margin: 1.8em 0; padding: 20px 26px; border-left: 4px solid var(--blue-500); background: var(--ice); border-radius: 0 14px 14px 0; font-size: 1.12rem; color: var(--navy-900); }
.entry-content blockquote p:last-of-type { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 10px; font-size: .86rem; font-style: normal; color: var(--muted); }
.entry-content img { max-width: 100%; height: auto; border-radius: 14px; }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption { text-align: center; font-size: .86rem; color: var(--muted); margin-top: 10px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--ice-2); color: var(--navy-900); }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content pre { background: var(--navy-900); color: #dbe6fa; padding: 18px 20px; border-radius: 14px; overflow: auto; font-size: .9rem; line-height: 1.6; }
.entry-content code { background: var(--ice-2); padding: 2px 6px; border-radius: 6px; font-size: .92em; color: var(--navy-800); }
.entry-content pre code { background: transparent; padding: 0; color: inherit; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; opacity: 1; }
.entry-content .wp-block-button__link, .entry-content .wp-element-button { background: var(--grad); color: #fff; border-radius: 6px; font-weight: 600; padding: .8rem 1.5rem; text-decoration: none; box-shadow: var(--shadow-glow); }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--navy-900); border: 1.5px solid #b9cdea; box-shadow: none; }
.entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--line); }
.entry-content .wp-block-pullquote { border-top: 3px solid var(--blue-500); border-bottom: 3px solid var(--blue-500); padding: 1.4em 0; text-align: center; }
.entry-content .wp-block-pullquote blockquote { background: transparent; border: 0; padding: 0; margin: 0; font-size: 1.3rem; font-weight: 600; }
.entry-content iframe, .entry-content video { max-width: 100%; border-radius: 14px; }
.entry-content .alignwide { width: min(1040px, calc(100vw - 32px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull img { border-radius: 0; }

.bl-pages { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 700; }
.bl-pages .post-page-numbers { display: inline-grid; place-items: center; min-width: 38px; height: 38px; border: 1.5px solid #c8d9ef; border-radius: 6px; text-decoration: none; }
.bl-pages .post-page-numbers.current { background: var(--grad); color: #fff; border-color: transparent; }

.bl-tags, .bl-share, .bl-author-box, .bl-postnav, .bl-comments { max-width: 760px; margin-left: auto; margin-right: auto; }
.bl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.bl-tags a { font-size: .82rem; font-weight: 600; color: var(--navy-800); background: var(--ice-2); padding: 7px 12px; border-radius: 999px; }
.bl-tags a::before { content: "#"; color: var(--blue-500); }
.bl-tags a:hover { background: var(--grad); color: #fff; }
.bl-tags a:hover::before { color: #fff; }
.bl-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.bl-share span { font-weight: 700; color: var(--navy-900); margin-right: 6px; }
.bl-share a { display: grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid #c8d9ef; border-radius: 6px; color: var(--navy-800); font-size: 1.1rem; transition: .2s; }
.bl-share a:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-2px); }
.bl-author-box { display: flex; gap: 18px; margin-top: 32px; padding: 24px; background: var(--ice); border: 1px solid var(--line); border-radius: var(--radius); }
.bl-author-box img { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; }
.bl-author-box span { font: 700 .68rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-600); }
.bl-author-box h2 { font-size: 1.15rem; margin: 6px 0 6px; }
.bl-author-box p { margin: 0; color: var(--muted); font-size: .94rem; }
.bl-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.bl-postnav a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; transition: .2s; }
.bl-postnav a:hover { border-color: #b7d2f6; box-shadow: var(--shadow-sm); }
.bl-postnav a.next { text-align: right; }
.bl-postnav small { display: block; font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 6px; }
.bl-postnav strong { display: block; color: var(--navy-900); line-height: 1.35; }

/* ---------- 5. Comments ---------- */
.bl-comments { margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.bl-comments-title { font-size: 1.5rem; margin-bottom: 22px; }
.bl-comments .comment-list, .bl-comments .children { list-style: none; margin: 0; padding: 0; }
.bl-comments .children { padding-left: clamp(16px, 4vw, 40px); }
.bl-comments .comment-body { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.bl-comments .comment-author { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy-900); }
.bl-comments .comment-author img { border-radius: 50%; }
.bl-comments .comment-author .says { display: none; }
.bl-comments .comment-author a { color: inherit; }
.bl-comments .comment-metadata { font-size: .8rem; margin: 6px 0 10px; }
.bl-comments .comment-metadata a { color: var(--muted); }
.bl-comments .comment-content p:last-child { margin-bottom: 0; }
.bl-comments .comment-awaiting-moderation { display: block; font-size: .85rem; color: #8a6100; margin-top: 6px; }
.bl-comments .reply { margin-top: 10px; }
.bl-comments .reply a, .bl-comments #cancel-comment-reply-link { font-weight: 700; font-size: .85rem; color: var(--blue-600); }
.bl-comments #cancel-comment-reply-link { margin-left: 12px; }
.bl-comments-closed { color: var(--muted); }
.comment-respond { background: var(--ice); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); margin-top: 22px; }
.comment-reply-title { font-size: 1.3rem; margin-bottom: 6px; }
.comment-respond .comment-notes, .comment-respond .logged-in-as { font-size: .88rem; color: var(--muted); }
.comment-respond .logged-in-as a { color: var(--blue-600); }
.comment-respond p { margin-bottom: 16px; }
.comment-respond .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.comment-respond .comment-form-cookies-consent input { margin-top: 4px; }
.comment-respond .form-submit { margin-bottom: 0; }

/* ---------- 6. Plain page + 404 ---------- */
.pg-hero { position: relative; overflow: hidden; text-align: center; padding: 0 0 clamp(40px, 5vw, 64px); background: linear-gradient(180deg, #e4f2ff 0%, #f5faff 70%, #fff 100%); }
.pg-hero .crumb { padding-bottom: clamp(20px, 3vw, 36px); text-align: left; }
.pg-hero h1 { max-width: 900px; margin: 0 auto; font-size: clamp(2rem, 1.1rem + 3vw, 3.2rem); overflow-wrap: anywhere; }
.pg-hero + .bl-article { padding-top: clamp(24px, 3vw, 40px); }

.bl-404 { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(64px, 9vw, 130px); }
.bl-404-code { display: block; font: 800 clamp(5rem, 16vw, 10rem)/1 var(--head); letter-spacing: -.04em; background: linear-gradient(90deg, #4aa8ff, #1cc4ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ---------- 7. Small screens ---------- */
@media (max-width: 767.98px) {
  .bl-featured { grid-template-columns: 1fr; }
  .bl-featured .bl-thumb { min-height: 0; aspect-ratio: 16 / 10; }
  .bl-cover img, .pg-cover img { border-radius: 16px; }
}
@media (max-width: 575.98px) {
  .bl-search button span { display: none; }
  .bl-search button { padding: 12px 14px; }
  .bl-postnav { grid-template-columns: 1fr; }
  .bl-postnav a.next { text-align: left; }
  .bl-author-box { flex-direction: column; gap: 12px; padding: 20px; }
  .alignleft, .alignright { float: none; display: block; margin: 0 auto 1em; }
  .entry-content { font-size: 1.02rem; }
  .entry-content blockquote { padding: 16px 18px; }
}
