/* ==========================================================================
   Sharif Accountants - blog, pages, services, courses, forms, comments and WordPress core classes.
   ========================================================================== */

/* ---------- Page header band ---------- */
.page-hero { padding: 34px 0 40px; }
.page-hero__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.page-hero__kicker {
	display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; border-radius: 30px;
	background: var(--brand-soft); color: var(--brand-strong); font-size: 12.5px; font-weight: 700;
}
.page-hero__title { font-size: 28px; font-weight: 800; line-height: 1.7; }
.page-hero__lede { max-width: 680px; font-size: 14.5px; color: var(--text); }
.page-hero__meta { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.page-hero__meta .icon { width: 17px; height: 17px; margin-inline-end: 4px; color: var(--purple); }
.page-hero__search { width: 100%; max-width: 560px; margin-top: 10px; }

.crumbs { font-size: 12.5px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; }
.crumbs li + li::before { content: "/"; margin-inline: 8px; opacity: .5; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-strong); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Listing ---------- */
.listing { padding-bottom: 60px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-grid .post-card__title a { white-space: normal; overflow: visible; }
.empty { max-width: 560px; margin: 20px auto 40px; text-align: center; }
.empty h2 { font-size: 20px; }
.empty p { margin: 8px 0 20px; color: var(--muted); }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
	border-radius: 11px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink);
}
.pagination .page-numbers.current { background: var(--brand-grad); border-color: transparent; color: var(--ink); box-shadow: var(--shadow-brand); }
.pagination a.page-numbers:hover { border-color: #ffd59a; color: var(--brand-strong); }
.pagination .icon { width: 18px; height: 18px; }

/* ---------- Article ---------- */
.article { max-width: calc(800px + var(--gutter) * 2); padding-bottom: 60px; }
.article__thumb { margin: 0 0 30px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.article__thumb img { width: 100%; }
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.article__tags a { padding: 4px 14px; border-radius: 30px; background: var(--surface); font-size: 12.5px; color: var(--text); }
.article__tags a:hover { background: var(--brand-soft); color: var(--brand-strong); }

.entry-content { font-size: 16px; line-height: 2.15; color: #3a3f55; }
.entry-content > * + * { margin-top: 1.2em; }
/* Spacing and link styles are for the text itself, not for the theme blocks placed by shortcodes. */
.entry-content > :is(h2, h3, h4) { margin-top: 1.8em; }
.entry-content h2 { font-size: 22px; }
.entry-content h3 { font-size: 18px; }
.entry-content a:where(:not([class])) { color: var(--brand-strong); text-decoration: underline; text-decoration-color: #f7c48a; text-underline-offset: 4px; }
.entry-content :is(.sharif-wide, .offices) a:not([class]) { color: inherit; text-decoration: none; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content li + li { margin-top: .4em; }
.entry-content img { border-radius: var(--r); }
.entry-content blockquote, .wp-block-quote {
	margin-inline: 0; padding: 18px 24px; border-inline-start: 4px solid var(--brand); border-radius: var(--r);
	background: var(--brand-tint); color: var(--ink);
}
.wp-block-quote cite { display: block; margin-top: 8px; font-size: 13px; font-style: normal; color: var(--muted); }
.entry-content code { padding: 2px 6px; border-radius: 6px; background: var(--surface); font-size: .9em; direction: ltr; unicode-bidi: embed; }
.entry-content pre, .wp-block-code {
	padding: 18px 22px; border-radius: var(--r); background: var(--night); color: #e6e8f2; overflow-x: auto;
	direction: ltr; text-align: left; font-size: 13.5px; line-height: 1.8;
}
.entry-content pre code { padding: 0; background: none; color: inherit; }
.entry-content table, .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--line); text-align: start; }
.entry-content th { background: var(--surface); color: var(--ink); }
.entry-content thead, .wp-block-table thead { border-bottom: 1px solid var(--line); }
.wp-block-button__link { display: inline-flex; padding: 12px 24px; border-radius: 10px; background: var(--brand-grad); color: var(--ink) !important; font-weight: 700; text-decoration: none !important; box-shadow: var(--shadow-brand); }
.is-style-outline .wp-block-button__link { background: #fff; color: var(--brand-strong) !important; border: 1px solid var(--line); box-shadow: none; }
.front-content { max-width: calc(900px + var(--gutter) * 2); }

.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.alignleft { float: left; margin: .4em 0 1em 1.6em; }
.alignright { float: right; margin: .4em 1.6em 1em 0; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .wp-element-caption, figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.sticky, .bypostauthor, .gallery-caption { /* Required by the theme review; styled by context. */ }

.page-links { display: flex; gap: 8px; margin-top: 24px; }

/* Previous / next post */
.post-navigation { margin-top: 40px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: flex; flex-direction: column; height: 100%; padding: 16px 20px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.post-navigation a:hover { border-color: #ffd59a; }
.post-navigation .nav-next { text-align: end; }
.post-nav__label { font-size: 12px; color: var(--muted); }
.post-nav__title { font-weight: 700; color: var(--ink); }

/* ---------- Comments ---------- */
.comments { margin-top: 50px; }
.comments__title, .comment-reply-title { font-size: 19px; margin-bottom: 18px; }
.comment-list, .comment-list .children { list-style: none; }
.comment-list .children { padding-inline-start: 34px; }
.comment-body { position: relative; margin-bottom: 16px; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin-top: 2px; font-size: 12px; color: var(--muted); }
.comment-metadata a { color: var(--muted); }
.comment-content { margin-top: 10px; font-size: 14.5px; }
.reply { margin-top: 8px; font-size: 13px; font-weight: 700; }
.reply a { color: var(--brand-strong); }
.comments__closed { color: var(--muted); }
.comment-respond { margin-top: 30px; padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); font-size: 14px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: #ffc46b; background: #fff; }
.comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-notes, .logged-in-as { font-size: 13px; color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { max-width: 620px; padding: 40px var(--gutter) 90px; text-align: center; }
.notfound__code { font-size: 120px; font-weight: 800; line-height: 1; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { margin-top: 10px; font-size: 24px; }
.notfound > p:not(.notfound__code) { margin: 10px 0 24px; color: var(--muted); }
.notfound .search-pill { margin-bottom: 20px; }

/* ---------- Courses ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.course { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; padding-bottom: 20px; }
.course__side { position: sticky; top: calc(var(--header-h) + 20px); }
.course__box {
	display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--r-lg);
	background: linear-gradient(170deg, var(--tone-1) 0%, #fff 60%); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.course__icon {
	display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--tone-solid); color: #fff;
	box-shadow: 0 0 0 7px rgba(255, 255, 255, .8), 0 16px 24px -12px var(--tone-solid);
}
.course__icon .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.course__details { display: grid; gap: 10px; margin: 0; }
.course__details div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.course__details dt { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.course__details dt .icon { width: 17px; height: 17px; color: var(--tone-accent); }
.course__details dd { margin: 0; font-weight: 700; color: var(--ink); text-align: end; }
.course__cta { width: 100%; }
.course__call { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.course__call .icon { width: 17px; height: 17px; color: var(--green); }

.register { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; margin-top: 50px; padding: 34px; border-radius: 26px; background: var(--surface); }
.listing .register { margin-top: 60px; }

/* ---------- Service pages ---------- */
.service { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; padding-bottom: 10px; }
.service__side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.service__card {
	display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 24px 24px; border-radius: var(--r-lg);
	background: linear-gradient(170deg, var(--tone-1) 0%, var(--tone-2) 100%); box-shadow: var(--shadow);
}
.service__art { align-self: center; width: 190px; height: 190px; margin-bottom: 4px; }
.service__card-title { font-size: 17px; font-weight: 800; }
.service__card-text { font-size: 13px; line-height: 2; color: var(--text); }
.service__cta { width: 100%; margin-top: 6px; }
.service__card .course__call { align-self: center; }
.service__others { padding: 20px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.service__others-title { margin-bottom: 8px; font-size: 15px; font-weight: 800; }
.service__others ul { list-style: none; }
.service__others a { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px dashed var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.service__others li:last-child a { border-bottom: 0; }
.service__others a:hover { color: var(--tone-accent); }
.service__dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: var(--tone-solid); box-shadow: 0 0 0 4px var(--tone-1); }
.service__arrow { width: 16px; height: 16px; margin-inline-start: auto; color: var(--muted); }

/* ---------- Full-width pages: text in a readable column, theme blocks full width ---------- */
.wide-page { padding-bottom: 50px; }
.entry-content--wide > * { max-width: 820px; }
.entry-content--wide > .sharif-wide,
.entry-content--wide > .alignwide,
.entry-content--wide > .alignfull { max-width: none; }
.entry-content > .sharif-wide { margin-top: 1.6em; }
.entry-content .cta { margin-top: 2.4em; }
.entry-content .ccard__title { font-size: 15.5px; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.service-grid .pick { height: auto; min-height: 420px; }
.service-grid .pick__img { width: 70%; }

.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0 !important; }
.partners li { margin: 0 !important; }
.partner {
	display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 18px; border-radius: var(--r-lg); text-align: center;
	background: linear-gradient(170deg, var(--tone-1), #fff); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.partner__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--tone-solid); color: #fff; box-shadow: 0 14px 22px -12px var(--tone-solid); }
.partner__icon .icon { width: 28px; height: 28px; }
.partner__name { margin-top: 8px; font-size: 17px; font-weight: 800; color: var(--ink); }
.partner__label { font-size: 12.5px; color: var(--tone-accent); font-weight: 700; }

/* ---------- Contact page shortcodes ---------- */
.entry-content .rform-card, .entry-content .offices { margin-top: 1.4em; }
.entry-content .rform-card + .offices { margin-top: 24px; }
.entry-content .office__name { margin-top: 0; font-size: 15px; }
.entry-content .office a, .entry-content .socials a { text-decoration: none; }
.entry-content .socials { padding: 0; }

@media (max-width: 1000px) {
	.post-grid, .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.course, .service { grid-template-columns: 1fr; }
	.course__side, .service__side { position: static; }
	.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.register { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
}
@media (max-width: 640px) {
	.post-grid, .course-grid, .service-grid, .partners { grid-template-columns: 1fr; }
	.service-grid .pick { min-height: 380px; }
	.page-hero__title { font-size: 22px; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.comment-list .children { padding-inline-start: 14px; }
	.register { padding: 18px 14px; border-radius: 20px; }
}
