/* Service release 3.9: Gutenberg content with a shared, responsive reading system. */
.hanet-service-overhaul-v390{--hn39-ink:#11354b;--hn39-muted:#506b7d;--hn39-line:#dbe8ee;color:var(--hn39-ink);line-height:2;max-width:none!important;width:100%!important;}
.hanet-service-overhaul-v390 .hn39-hero{box-sizing:border-box;width:min(1120px,calc(100% - 32px))!important;max-width:1120px!important;margin:24px auto!important;border-radius:24px;background:radial-gradient(ellipse at 0 0,#126c8d,transparent 65%),#06334b;padding:clamp(28px,5vw,58px)!important;color:#fff;}
.hanet-service-overhaul-v390 .hn39-hero :is(h1,p){color:#fff!important;-webkit-text-fill-color:#fff!important;}
.hanet-service-overhaul-v390 .hn39-hero h1{font-size:clamp(26px,3.3vw,44px)!important;line-height:1.6!important;max-width:920px!important;}
.hanet-service-overhaul-v390 .hn39-hero p{max-width:860px!important;}
.hanet-service-overhaul-v390 .hn39-section{box-sizing:border-box;width:min(1120px,calc(100% - 32px))!important;max-width:1120px!important;margin:0 auto!important;padding:34px 0!important;scroll-margin-top:100px;}
.hanet-service-overhaul-v390 .hn39-section>*{max-width:none!important;}
.hanet-service-overhaul-v390 .hn39-section>h2{margin-block:0 18px!important;font-size:clamp(22px,2.4vw,30px)!important;line-height:1.65!important;}
.hanet-service-overhaul-v390 .hn39-section>p{max-width:960px!important;margin-inline:0!important;color:var(--hn39-muted);}
.hanet-service-overhaul-v390 .hn39-section+.hn39-section{border-top:1px solid var(--hn39-line);}
.hanet-service-overhaul-v390 .hn39-toc{box-sizing:border-box;display:flex;flex-wrap:wrap;gap:10px;width:min(1120px,calc(100% - 32px));max-width:1120px!important;margin:0 auto 18px!important;padding:12px;background:#f2f8fa;border:1px solid var(--hn39-line);border-radius:16px;}
.hanet-service-overhaul-v390 .hn39-toc a{display:flex;align-items:center;min-height:44px;padding:4px 14px;border-radius:10px;background:#fff;color:#075b83;text-decoration:none;font-weight:700;}
.hanet-service-overhaul-v390 :is(a,button,summary):focus-visible{outline:3px solid #ec9b29;outline-offset:4px;}
.hanet-service-overhaul-v390 .hanet-editorial__card{border:1px solid var(--hn39-line);border-radius:18px;padding:24px!important;background:#f8fbfc;}
.hanet-service-overhaul-v390 .hanet-editorial__card h3{font-size:21px!important;margin-block:0 14px!important;}
.hanet-service-overhaul-v390 .wp-block-details{padding:18px;border:1px solid var(--hn39-line);border-radius:14px;margin-block:12px!important;background:#fff;}
.hanet-service-overhaul-v390 summary{cursor:pointer;min-height:44px;font-weight:700;}
.hanet-service-overhaul-v390 #hanet-project-request{padding:28px!important;border:1px solid var(--hn39-line);border-radius:22px;background:#f2f8fa;margin-block:24px!important;}
.hanet-service-overhaul-v390 :is(.hanet-contact-request,.hanet-design-request){box-sizing:border-box;width:100%!important;max-width:none!important;grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr);}
.hanet-service-overhaul-v390 :is(.hanet-contact-request__grid,.hanet-design-request__grid)>*{min-width:0;}
.hanet-service-overhaul-v390 :is(input:not([type=checkbox]):not([type=radio]),textarea,select){max-width:100%;box-sizing:border-box;}
@media(max-width:900px){.hanet-service-overhaul-v390 :is(.hanet-contact-request,.hanet-design-request){grid-template-columns:minmax(0,1fr)!important;}}
@media(max-width:640px){
 .hanet-service-overhaul-v390 :is(.hanet-editorial__cards,.hanet-editorial__steps,.hanet-contact-request__grid,.hanet-design-request__grid){grid-template-columns:minmax(0,1fr)!important;}
 .hanet-service-overhaul-v390 .hn39-section{padding-block:24px!important;}
 .hanet-service-overhaul-v390 #hanet-project-request{padding:16px!important;}
 .hanet-service-overhaul-v390 .hn39-toc a{flex:1 1 auto;justify-content:center;}
 .hanet-service-overhaul-v390 :is(p,li,h1,h2,h3,a){overflow-wrap:break-word;}
 .hanet-service-overhaul-v390 :is(input,select,textarea){font-size:16px!important;}
}
/* 3.9.1: fix constrained-block child margins and the orphaned hero title. */
.hanet-editorial-v389 .hanet-editorial__hero{display:block!important;text-align:right!important;padding:clamp(28px,4vw,52px)!important;}
.hanet-editorial-v389 .hanet-editorial__hero>h1{box-sizing:border-box;width:100%!important;max-width:none!important;margin:12px 0 20px!important;font-size:clamp(25px,2.65vw,38px)!important;line-height:1.65!important;letter-spacing:0!important;word-break:normal!important;overflow-wrap:normal!important;text-wrap:balance;}
.hanet-editorial-v389 .hanet-editorial__hero>p{width:100%!important;max-width:930px!important;margin:0 0 20px!important;font-size:clamp(16px,1.15vw,18px)!important;line-height:2.1!important;text-wrap:pretty;}
.hanet-editorial-v389 .hanet-editorial__hero>.wp-block-buttons{max-width:none!important;margin:24px 0 0!important;justify-content:flex-start!important;}
.hanet-editorial-v389 .hanet-editorial__hero .wp-block-button__link{min-height:46px;background:#fff!important;color:#07364f!important;-webkit-text-fill-color:#07364f!important;font-size:15px!important;font-weight:700;}
.hanet-editorial-v389 .hanet-editorial__hero>p.hanet-editorial__eyebrow{font-size:13px!important;line-height:1.8!important;margin:0 0 12px!important;}
.hanet-service-overhaul-v390 .hn39-section>p{font-size:17px!important;line-height:2.1!important;}
.hanet-service-overhaul-v390 .hanet-editorial__card p{font-size:16px!important;line-height:2!important;}
@media(max-width:640px){.hanet-editorial-v389 .hanet-editorial__hero{padding:26px 20px!important;border-radius:18px;}.hanet-editorial-v389 .hanet-editorial__hero>h1{font-size:clamp(24px,6.3vw,29px)!important;}.hanet-service-overhaul-v390 .hn39-section>p{font-size:16px!important;}}
/* 1.0.2: shared layout and form sizing, scoped to the eleven new services. */
.hanet-services-seo-release{box-sizing:border-box;direction:rtl;width:100%!important;max-width:none!important;margin-inline:auto!important;font-family:Vazirmatn,Vazir,Tahoma,sans-serif;}
.hanet-services-seo-release .hn39-hero{margin-block:24px!important;}
.hanet-services-seo-release .hn39-hero a{color:#fff!important;text-decoration:underline;text-underline-offset:5px;}
.hanet-services-seo-release .hn39-section{border-radius:0;background:transparent;}
.hanet-services-seo-release #hanet-faq .wp-block-details{width:100%!important;max-width:none!important;box-sizing:border-box;}
.hanet-services-seo-release #hanet-project-request{margin-inline:auto!important;}
.hanet-services-seo-release .hanet-design-request{display:grid!important;grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr)!important;width:100%!important;max-width:none!important;margin:24px 0 0!important;padding:20px!important;gap:24px!important;align-items:start!important;}
.hanet-services-seo-release .hanet-design-request>*{min-width:0;max-width:none!important;}
.hanet-services-seo-release .hanet-design-request__intro{position:static!important;width:auto!important;padding:24px!important;}
.hanet-services-seo-release .hanet-design-request__intro h2{font-size:clamp(22px,2.2vw,28px)!important;line-height:1.7!important;word-break:normal!important;overflow-wrap:normal!important;}
.hanet-services-seo-release .hanet-design-request__form{width:100%!important;min-width:0!important;max-width:none!important;}
.hanet-services-seo-release .hanet-design-request__form fieldset{box-sizing:border-box;width:100%!important;min-width:0!important;max-width:none!important;margin-inline:0!important;}
.hanet-services-seo-release .hanet-design-request__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.hanet-services-seo-release .hanet-design-request__grid>*{min-width:0;}
.hanet-services-seo-release .hanet-design-request__form :is(input:not([type=checkbox]):not([type=radio]),select,textarea){width:100%;min-width:0;max-width:100%;box-sizing:border-box;}
.hanet-services-seo-release .hanet-design-request__checks{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.hanet-services-seo-release .hanet-design-request__checks label{min-width:0;white-space:normal;}
.hanet-services-seo-release .hanet-design-request__form :is(input[type=checkbox],input[type=radio]){width:18px!important;height:18px!important;min-width:18px!important;flex:0 0 18px;}
@media(max-width:960px){.hanet-services-seo-release .hanet-design-request{grid-template-columns:minmax(0,1fr)!important;}.hanet-services-seo-release .hanet-design-request__intro{padding:20px!important;}}
@media(max-width:640px){.hanet-services-seo-release .hanet-design-request{padding:12px!important;gap:16px!important;}.hanet-services-seo-release .hanet-design-request__grid,.hanet-services-seo-release .hanet-design-request__checks{grid-template-columns:minmax(0,1fr)!important;}.hanet-services-seo-release .hn39-hero{width:calc(100% - 24px)!important;}.hanet-services-seo-release .hn39-section{width:calc(100% - 24px)!important;}.hanet-services-seo-release #hanet-project-request{padding:14px!important;}.hanet-services-seo-release .hanet-design-request__form :is(input,select,textarea){font-size:16px!important;}}

/* Chashnikhane case study: preserve full screenshots and space bordered panels. */
.hnseo-chashni-case{padding:clamp(20px,4vw,48px)!important;margin-block:32px!important;min-width:0}
.hnseo-chashni-case .wp-block-image{margin:24px 0!important;min-width:0}
.hnseo-chashni-case .wp-block-image a{display:block;border:1px solid #dce3ed;padding:8px;border-radius:16px;background:#fff;overflow:hidden}
.hnseo-chashni-case .wp-block-image img{display:block;width:100%;max-width:100%;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important;border-radius:10px}
.hnseo-chashni-case figcaption{margin-top:12px;line-height:1.9;text-align:right;color:#536176;font-size:.9rem}
.hnseo-chashni-case .wp-block-columns{gap:24px!important;align-items:flex-start!important}
.hnseo-chashni-case .wp-block-column{min-width:0}
.hnseo-chashni-case .wp-block-buttons{display:flex!important;flex-direction:row!important;flex-wrap:wrap;gap:12px!important;margin-block:24px!important}
@media(max-width:781px){.hnseo-chashni-case .wp-block-columns{flex-direction:column!important}.hnseo-chashni-case .wp-block-column{width:100%!important;flex-basis:100%!important}.hnseo-chashni-case .wp-block-buttons .wp-block-button{width:100%}.hnseo-chashni-case .wp-block-buttons a{box-sizing:border-box;width:100%;text-align:center}}

/* Compact related-link directory, scoped to these blocks. */
.hnseo-related-directory{padding:clamp(20px,3vw,36px)!important;margin-block:32px!important;border:1px solid #dce5f2;border-radius:22px;background:linear-gradient(145deg,#fff,#f5f8fd);min-width:0}
.hnseo-related-directory .hnseo-link-category{padding:14px 0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;min-width:0}
.hnseo-related-directory .hnseo-link-category+.hnseo-link-category{border-top:1px solid #e3eaf4!important}
.hnseo-related-directory h3{font-size:1rem!important;line-height:1.8!important;margin:0 0 12px!important}
.hnseo-related-directory .hnseo-chip-group.wp-block-buttons{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;justify-content:flex-start!important;align-items:center!important;gap:8px!important;margin:0!important;padding:0!important;max-width:100%!important}
.hnseo-related-directory .hnseo-chip-group>.wp-block-button{display:inline-flex!important;flex:0 1 auto!important;width:auto!important;max-width:100%!important;margin:0!important}
.hnseo-related-directory .hnseo-chip-group>.wp-block-button>a.wp-block-button__link{display:inline-flex!important;justify-content:center;align-items:center;width:auto!important;max-width:100%;box-sizing:border-box;padding:9px 14px!important;min-height:44px;border:1px solid #d2deee!important;border-radius:12px!important;background:#fff!important;color:#213b63!important;font-size:.87rem!important;font-weight:500!important;line-height:1.65!important;text-decoration:none!important;white-space:normal;overflow-wrap:anywhere;box-shadow:none!important}
.hnseo-related-directory .hnseo-chip-group>.wp-block-button>a.wp-block-button__link:hover{background:#eef4ff!important;border-color:#496ea8!important;color:#143a78!important}
.hnseo-related-directory .hnseo-chip-group>.wp-block-button>a.wp-block-button__link:focus-visible{outline:3px solid #3069c5!important;outline-offset:3px}
@media(max-width:600px){.hnseo-related-directory .hnseo-chip-group{gap:7px!important}.hnseo-related-directory .hnseo-chip-group>.wp-block-button>a.wp-block-button__link{font-size:.82rem!important;padding:8px 11px!important}}

.hn-chatbot-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px!important;margin-block:20px!important}.hn-chatbot-card{border:1px solid #dce5ef;border-radius:16px;background:#f7faff;padding:24px!important;margin:0!important;min-width:0}.hn-chatbot-card h3{font-size:20px!important;line-height:1.8}.hn-chatbot-landing #hanet-chatbot-price{background:linear-gradient(135deg,#f0f5ff,#fff);padding:clamp(22px,4vw,40px)!important;border:1px solid #d3dff2;border-radius:20px}.hn-chatbot-landing .wp-block-buttons{display:flex!important;flex-direction:row!important;flex-wrap:wrap;gap:12px!important}.hn-chatbot-landing .wp-block-button{flex:0 1 auto;width:auto!important;max-width:100%}.hn-chatbot-landing .wp-block-button a{white-space:normal!important;overflow-wrap:anywhere;line-height:1.8!important}@media(max-width:700px){.hn-chatbot-grid{grid-template-columns:1fr}.hn-chatbot-landing .wp-block-buttons .wp-block-button{width:100%!important}.hn-chatbot-landing .wp-block-buttons a{width:100%;text-align:center;box-sizing:border-box}}
