/* Pipefix blog and article templates – scoped to archive and single posts only. */
body.blog #content > .ast-container,
body.single-post #content > .ast-container {
  width: 100%; max-width: none; padding: 0; margin: 0; display: block;
}
body.blog #primary, body.single-post #primary {
  float: none; margin: 0; padding: 0; width: 100%; max-width: none; border: 0;
}
body.blog .ast-article-single, body.single-post .ast-article-single {
  background: transparent; border: 0; padding: 0;
}
body.blog #content,body.single-post #content { background: #fff; }
body.blog .site-content > .ast-container,
body.single-post .site-content > .ast-container {max-width:none;}
.hdmb-hero,
.hdmb-archive-section,
.hdmb-single-main { width:100%; min-width:0; direction:rtl; }
.hdmb-hero {color:#fff; border-bottom:5px solid #EDB93F;}
.hdmb-hero .elementor-widget-heading,
.hdmb-hero .elementor-widget-text-editor {max-width:100%;}
.hdmb-hero h1,.hdmb-hero h2,.hdmb-hero h3 {
  font-family:Cairo,Tahoma,Arial,sans-serif !important; color:#fff !important;
  font-weight:700 !important; text-align:right !important; letter-spacing:0;
  text-transform:none !important; overflow-wrap:anywhere;
}
.hdmb-hero .elementor-widget-text-editor p {
  font-family:Cairo,Tahoma,Arial,sans-serif; max-width:710px;
  color:#e5eaf3; line-height:1.95; text-align:right; font-size:16px;
  margin:0;
}
.hdmb-single-hero .hdmb-single-title h1 {
  color:#fff!important; font-family:Cairo,Tahoma,Arial,sans-serif!important;
  font-size:clamp(27px,3.15vw,45px)!important; line-height:1.55!important;
  font-weight:700!important; margin:0!important; max-width:1020px;
}
.hdmb-archive-section { background:#F2F8FF; }
.hdmb-archive-section > .e-con-inner {min-width:0;}
.hdmb-archive-grid,
.hdmb-archive-grid .elementor-widget-container {min-width:0;}
.hdmb-archive-grid .elementor-posts-container {
  display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px!important; align-items:stretch;
}
.hdmb-archive-grid .elementor-post {
  min-width:0; margin:0!important; width:100%; 
}
.hdmb-archive-grid .elementor-post__card {
  height:100%; min-width:0; background:#fff; 
  border-radius:12px; overflow:hidden; 
  border:1px solid #DADDE2; box-shadow:0 8px 30px rgba(0,29,70,.045);
}
.hdmb-archive-grid .elementor-post__thumbnail__link,
.hdmb-archive-grid .elementor-post__thumbnail,
.hdmb-archive-grid .elementor-post__thumbnail img {display:block;max-width:100%;}
.hdmb-archive-grid .elementor-post__thumbnail {aspect-ratio:16/10;overflow:hidden;}
.hdmb-archive-grid .elementor-post__thumbnail img {
  position:absolute!important;top:0!important;left:0!important;
  width:100%;height:100%;object-fit:cover;object-position:center;
  transform:none!important;transition:none!important;animation:none!important;
}
.hdmb-archive-grid .elementor-post:hover .elementor-post__thumbnail img {
  transform:none!important;transition:none!important;animation:none!important;
}
.hdmb-archive-grid .elementor-post__avatar,
.hdmb-archive-grid .elementor-post__author {display:none!important;}
.hdmb-archive-grid .elementor-post__text {min-width:0;text-align:right;}
.hdmb-archive-grid .elementor-post__title,.hdmb-archive-grid .elementor-post__title a {
  font-family:Cairo,Tahoma,Arial,sans-serif!important;color:#001D46!important;
  font-size:21px!important;line-height:1.7!important;letter-spacing:0;
  text-transform:none!important;text-align:right!important;overflow-wrap:anywhere;
}
.hdmb-archive-grid .elementor-post__title a:hover {color:#277ECB!important;}
.hdmb-archive-grid .elementor-post__excerpt,
.hdmb-archive-grid .elementor-post__excerpt p {
  font-family:Cairo,Tahoma,Arial,sans-serif!important;color:#5E676D!important;
  font-size:14px!important;line-height:1.9!important;text-align:right!important;
}
.hdmb-archive-grid .elementor-post__meta-data {text-align:right;font-size:12px;color:#79869B;}
.hdmb-archive-grid a.elementor-post__read-more {
  display:inline-flex;min-height:42px;align-items:center;justify-content:center;
  padding:9px 18px;margin-top:12px;background:#EDB93F;color:#001D46!important;
  border-radius:7px;font-family:Cairo,Tahoma,Arial,sans-serif!important;
  font-size:13px;font-weight:700;text-decoration:none;
}
.hdmb-archive-grid .elementor-posts-container:has(>.elementor-post:only-child) {
  grid-template-columns:1fr!important;
}
.hdmb-archive-grid .elementor-post:only-child .elementor-post__card {
  position:relative;display:grid;grid-template-columns:minmax(0,42%) minmax(0,1fr);
  grid-template-rows:1fr auto;align-items:stretch;min-height:360px;
}
.hdmb-archive-grid .elementor-post:only-child .elementor-post__thumbnail__link {
  grid-column:1;grid-row:1 / 3;height:100%;min-height:360px;
}
.hdmb-archive-grid .elementor-post:only-child .elementor-post__thumbnail {height:100%;aspect-ratio:auto;}
.hdmb-archive-grid .elementor-post:only-child .elementor-post__badge {
  position:absolute;top:18px;right:18px;z-index:2;
}
.hdmb-archive-grid .elementor-post:only-child .elementor-post__avatar {display:none;}
.hdmb-archive-grid .elementor-post:only-child .elementor-post__text {
  grid-column:2;grid-row:1;align-self:center;min-width:0;
  padding:30px 28px 8px!important;margin:0!important;
}
.hdmb-archive-grid .elementor-post:only-child .elementor-post__meta-data {
  grid-column:2;grid-row:2;align-self:end;min-width:0;
  padding:4px 28px 23px!important;margin:0!important;
}
.hdmb-archive-grid .elementor-post:only-child .elementor-post__title,
.hdmb-archive-grid .elementor-post:only-child .elementor-post__title a {
  font-size:clamp(23px,2vw,29px)!important;
}
.hdmb-archive-grid .elementor-pagination {
  display:flex;flex-wrap:wrap;gap:9px;align-items:center;justify-content:center;
  margin-top:35px;font-family:Cairo,Tahoma,Arial,sans-serif;
}
.hdmb-archive-grid .elementor-pagination a,
.hdmb-archive-grid .elementor-pagination span {
  min-height:38px;min-width:38px;padding:6px 12px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid #DADDE2;border-radius:6px;color:#001D46;
}
.hdmb-archive-grid .elementor-pagination .current {
  color:#fff;background:#001D46;border-color:#001D46;
}
/* Single post */
.hdmb-single-main {background:#fff;}
.hdmb-article-inner {min-width:0;}
.hdmb-single-image {min-width:0;}
.hdmb-single-image img {
  display:block;width:100%;max-width:100%;max-height:470px;
  height:auto;object-fit:cover;border-radius:15px;
}
.hdmb-reading,.hdmb-post-content,.hdmb-post-content .elementor-widget-container {min-width:0;}
.hdmb-post-content {direction:rtl;text-align:right;color:#26384A;}
.hdmb-post-content article,.hdmb-post-content .entry-content {
  width:100%!important; max-width:100%!important; margin-inline:auto!important;
}
.hdmb-post-content [style] {font-family:Cairo,Tahoma,Arial,sans-serif!important;}
.hdmb-post-content p,.hdmb-post-content li {
  font-family:Cairo,Tahoma,Arial,sans-serif!important;
  font-size:17px!important;line-height:2!important;color:#26384A!important;
  text-align:right;overflow-wrap:break-word;
}
.hdmb-post-content p {margin-bottom:18px;}
.hdmb-post-content :is(h2,h3,h4,h5,h6) {
  font-family:Cairo,Tahoma,Arial,sans-serif!important;letter-spacing:0!important;
  font-weight:700!important;line-height:1.6!important;text-align:right!important;
  scroll-margin-top:115px;overflow-wrap:anywhere;
}
.hdmb-post-content h2 {
  color:#001D46!important;font-size:clamp(24px,2.3vw,30px)!important;
  margin:40px 0 18px!important;
}
.hdmb-post-content h3 {color:#277ECB!important;font-size:22px!important;margin:29px 0 13px!important;}
.hdmb-post-content h4,.hdmb-post-content h5 {color:#001D46!important;font-size:19px!important;}
.hdmb-post-content h2 :is(span,strong,a),
.hdmb-post-content h3 :is(span,strong,a) {font:inherit!important;color:inherit!important;}
.hdmb-post-content img,.hdmb-post-content figure {
  max-width:100%!important;height:auto!important;
}
.hdmb-post-content img {object-fit:contain;}
.hdmb-post-content :is(ul,ol) {
  padding-inline-start:24px!important;margin-bottom:24px!important;
}
.hdmb-post-content li {margin-bottom:7px;}
.hdmb-post-content a:not(.elementor-button) {
  color:#135b9c;overflow-wrap:anywhere;text-underline-offset:3px;
}
.hdmb-post-content div, .hdmb-post-content section {max-width:100%;}
.hdmb-post-content .hdmb-table-scroll {
  max-width:100%;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;
  overscroll-behavior-inline:contain;direction:rtl;
  margin:24px 0;border:1px solid #DADDE2;border-radius:8px;
}
.hdmb-post-content .hdmb-table-scroll table {
  min-width:600px;width:100%!important;border-collapse:collapse!important;
  margin:0!important;table-layout:auto;
}
.hdmb-post-content table td,.hdmb-post-content table th {
  line-height:1.85!important;padding:12px 14px!important;
  border:1px solid #DADDE2!important;font-size:14px!important;
  vertical-align:top;text-align:right!important;
}
.hdmb-post-content table th {background:#001D46!important;color:#fff!important;}
.hdmb-post-content table th * {color:#fff!important;}
.hdmb-post-content blockquote {
  padding:18px 22px;border-inline-start:4px solid #EDB93F;
  background:#F2F8FF;border-radius:8px;margin:24px 0;
}
.hdmb-post-content :is(iframe,video,pre) {max-width:100%;}
.hdmb-post-content pre {overflow-x:auto;}
.hdmb-share-row {border-top:1px solid #DADDE2;margin-top:28px;}
.hdmb-share-buttons {min-width:0;}
.hdmb-share-buttons .elementor-share-btn {
  min-height:44px;border-radius:8px!important;
  font-family:Cairo,Tahoma,Arial,sans-serif;font-size:13px;
}
.hdmb-contact-button a.elementor-button {
  padding:13px 24px;background:#EDB93F;border-radius:8px;
  color:#001D46;font-family:Cairo,Tahoma,Arial,sans-serif;
  font-size:15px;font-weight:700;
}
@media(max-width:1024px) {
  .hdmb-archive-grid .elementor-posts-container {grid-template-columns:repeat(2,minmax(0,1fr));gap:18px!important;}
}
@media(max-width:767px) {
  .hdmb-hero h1 {line-height:1.6!important;}
  .hdmb-hero .elementor-widget-text-editor p {font-size:14px;}
  .hdmb-archive-grid .elementor-posts-container {grid-template-columns:1fr;gap:16px!important;}
  .hdmb-archive-grid .elementor-post:only-child .elementor-post__card {display:flex;flex-direction:column;}
  .hdmb-archive-grid .elementor-post:only-child .elementor-post__thumbnail__link {height:auto;min-height:0;}
  .hdmb-archive-grid .elementor-post:only-child .elementor-post__thumbnail {aspect-ratio:16/10;height:auto;}
  .hdmb-archive-grid .elementor-post:only-child .elementor-post__text {padding:22px 18px;}
  .hdmb-archive-grid .elementor-post__title,.hdmb-archive-grid .elementor-post__title a,
  .hdmb-archive-grid .elementor-post:only-child .elementor-post__title,
  .hdmb-archive-grid .elementor-post:only-child .elementor-post__title a {font-size:20px!important;}
  .hdmb-single-image img {max-height:none;aspect-ratio:16/10;object-fit:cover;border-radius:9px;}
  .hdmb-post-content p,.hdmb-post-content li {font-size:16px!important;line-height:1.95!important;}
  .hdmb-post-content h2 {font-size:24px!important;}
  .hdmb-post-content h3 {font-size:20px!important;}
  .hdmb-share-row {gap:12px;}
  .hdmb-contact-button {width:100%;}
  .hdmb-contact-button .elementor-button {width:100%;}
  .hdmb-post-content :is(ul,ol) {padding-inline-start:20px!important;}
}
@media(max-width:360px){
  .hdmb-post-content [style*="padding"] {max-width:100%;}
  .hdmb-post-content p,.hdmb-post-content li {font-size:15px!important;}
}
@media(max-width:767px){
  .hdmb-archive-grid .elementor-post:only-child .elementor-post__card {min-height:0;}
  .hdmb-archive-grid .elementor-post:only-child .elementor-post__meta-data {padding:0 18px 20px!important;}
  .hdmb-share-buttons .elementor-grid {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;}
  .hdmb-share-buttons .elementor-share-btn {width:100%;min-height:44px;}
  .hdmb-share-buttons .elementor-share-btn__text {display:none!important;}
  .hdmb-share-buttons .elementor-share-btn__icon {margin-inline:auto!important;}
}
@media(prefers-reduced-motion:reduce){
  .hdmb-archive-grid * {transition:none!important;}
}
