/* OMC content templates 3.2.4
 * Service/article structure follows the approved reference layout.
 * Typography values are mapped from the user-supplied dr-amrelgazzar typography sheet.
 * Site-wide typography is enforced by reference-refresh.css.
 */
.omc-service-template,.omc-article-template{
  --omc-template-border:rgba(20,38,31,.12);
  --omc-template-muted:#65716c;
  --omc-template-copy:#14261F;
  --omc-content-font:"Almarai",sans-serif;
  --omc-reference-system-font:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  font-family:var(--omc-content-font);
  color:var(--omc-template-copy);
  background:#F7F2EC;
  direction:rtl;
}
.omc-service-template *,.omc-article-template *{box-sizing:border-box}
.omc-template-wrap{width:min(1180px,calc(100% - 40px));margin-inline:auto}

/* Full-width page-title banner, matching the reference structure with OMC visual identity. */
.omc-template-hero{
  width:100%;
  background-image:linear-gradient(rgba(20,38,31,.62),rgba(20,38,31,.62)),url("https://orthomisr.com/wp-content/uploads/2026/09/abstract-blur-beautiful-luxury-hospital-clinic-interior-background-1.webp");
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  padding:72px 0;
  min-height:260px;
  display:flex;
  align-items:center;
  border-bottom:0;
}
.omc-template-hero h1{
  font-family:var(--omc-content-font);
  font-size:40px;
  line-height:40px;
  color:#FFFFFF;
  font-weight:700;
  margin:0 0 13px;
  max-width:980px;
}
.omc-template-hero .omc-breadcrumbs{
  margin:0;
  color:rgba(255,255,255,.76);
  font-family:var(--omc-content-font);
  font-size:14px;
  line-height:24px;
}
.omc-template-hero .omc-breadcrumbs a{color:#fff;text-decoration:none}
.omc-template-hero .omc-breadcrumbs a:hover{color:#E6EEEA}
.omc-template-hero .omc-breadcrumbs li+li:before{color:rgba(255,255,255,.55)}
.omc-template-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px 12px;
  margin-top:9px;
  font-family:var(--omc-content-font);
  font-size:13px;
  line-height:22px;
  color:rgba(255,255,255,.72);
}
.omc-template-meta a{color:#fff;text-decoration:none}
.omc-template-meta a:hover{color:#E6EEEA}

/* Featured image: the first page/article image is sourced ONLY from WP Featured Image via PHP. */
.omc-template-main{padding:38px 0 62px}
.omc-featured-media{
  width:100%;
  margin:0 0 30px;
  border-radius:7px;
  overflow:hidden;
  border:0;
  background:var(--omc-green-10);
}
.omc-featured-media img{
  display:block;
  width:100%;
  height:auto;
  max-height:560px;
  object-fit:cover;
  margin:0!important;
  border-radius:0!important;
}
.omc-service-template .omc-featured-media img{aspect-ratio:16/8;max-height:520px}
.omc-article-template .omc-featured-media img{aspect-ratio:16/8.5;max-height:560px}

/* Exact typography mapping supplied by the user:
 * H2 32/38.4 weight 500, H3 18/21.6 weight 600,
 * paragraph 15/26 weight 400, article links 16/24, li 16/24.
 * Colors are translated to OMC visual identity only.
 */
.omc-rich-content{
  max-width:920px;
  margin-inline:auto;
  min-width:0;
  font-family:var(--omc-content-font);
  color:var(--omc-template-copy);
}
.omc-rich-content>:first-child{margin-top:0}
.omc-rich-content h2{
  font-family:var(--omc-content-font);
  font-size:32px;
  line-height:38.4px;
  color:#0E4434;
  font-weight:500;
  margin:39px 0 15px;
}
.omc-rich-content h3{
  font-family:var(--omc-content-font);
  font-size:18px;
  line-height:21.6px;
  color:#14261F;
  font-weight:600;
  margin:28px 0 11px;
}
.omc-rich-content h4{
  font-family:var(--omc-content-font);
  font-size:18px;
  line-height:24px;
  color:#14261F;
  font-weight:600;
  margin:24px 0 9px;
}
.omc-rich-content p{
  font-family:var(--omc-content-font);
  font-size:15px;
  font-weight:400;
  line-height:26px;
  color:#14261F;
  margin:0 0 18px;
}
.omc-rich-content ul,.omc-rich-content ol{margin:12px 0 22px;padding-inline-start:0;padding-inline-end:26px}
.omc-rich-content li{
  font-family:var(--omc-reference-system-font);
  font-size:16px;
  font-weight:400;
  line-height:24px;
  color:#14261F;
  margin-bottom:6px;
}
.omc-rich-content strong,.omc-rich-content b{font-weight:700;color:#14261F}
.omc-rich-content a{
  font-family:var(--omc-reference-system-font);
  font-size:16px;
  font-weight:400;
  line-height:24px;
  color:#B17A4A;
  text-decoration:underline;
  text-underline-offset:4px;
  text-decoration-thickness:1px;
}
.omc-rich-content a:hover{color:#0E4434;text-decoration-thickness:2px}
.omc-rich-content img{max-width:100%;height:auto;border-radius:7px;margin:18px 0 8px;display:block}
.omc-rich-content figure{max-width:100%;margin:22px 0 28px}
.omc-rich-content figure img{margin:0}
.omc-rich-content figcaption,.omc-rich-content .wp-caption-text{font-family:var(--omc-content-font);font-size:13px;line-height:22px;color:var(--omc-template-muted);margin-top:7px}
.omc-rich-content blockquote{margin:26px 0;background:#E6EEEA;border:0;border-inline-start:4px solid #0E4434;border-radius:7px;padding:18px 20px;color:#14261F}
.omc-rich-content blockquote p{font-size:15px;line-height:26px}
.omc-rich-content blockquote p:last-child{margin-bottom:0}
.omc-rich-content table{width:100%;border-collapse:collapse;margin:26px 0;font-family:var(--omc-content-font);font-size:15px;line-height:26px;display:table}
.omc-rich-content th{background:#0E4434;color:#fff;font-weight:700;padding:12px 14px;text-align:right;border:1px solid #0E4434}
.omc-rich-content td{padding:12px 14px;border:1px solid var(--omc-template-border);vertical-align:top;color:#14261F}
.omc-rich-content tr:nth-child(even) td{background:rgba(247,242,236,.7)}
.omc-template-admin-note{padding:14px 16px;border:1px dashed rgba(20,38,31,.3);border-radius:8px;background:#F7F2EC;color:var(--omc-template-muted);font-family:var(--omc-content-font);font-size:13px;line-height:22px}
.omc-featured-missing-note{margin:0 0 24px;padding:12px 14px;border:1px dashed rgba(177,122,74,.55);border-radius:7px;background:#fffaf5;color:#735334;font-family:var(--omc-content-font);font-size:13px;line-height:22px}

/* Central Contact Form 7 styling, shared by service and article templates. */
.omc-cf7-wrap{font-family:var(--omc-content-font);direction:rtl}
.omc-cf7-wrap .wpcf7,.omc-cf7-wrap .wpcf7 form{margin:0;direction:rtl}
.omc-cf7-wrap .wpcf7 p{margin:0 0 13px;font-size:15px;line-height:26px}
.omc-cf7-wrap .wpcf7 label{display:block;font-size:15px;font-weight:400;line-height:26px;color:#14261F;margin-bottom:6px}
.omc-cf7-wrap .wpcf7 input:not([type="submit"]),.omc-cf7-wrap .wpcf7 select,.omc-cf7-wrap .wpcf7 textarea{width:100%;max-width:100%;border:1px solid #dedede;background:#fff;color:#14261F;border-radius:5px;min-height:46px;padding:10px 12px;font-family:var(--omc-content-font);font-size:15px;line-height:26px;outline:none;transition:border-color .18s,box-shadow .18s}
.omc-cf7-wrap .wpcf7 textarea{min-height:105px;resize:vertical}
.omc-cf7-wrap .wpcf7 input:not([type="submit"]):focus,.omc-cf7-wrap .wpcf7 select:focus,.omc-cf7-wrap .wpcf7 textarea:focus{border-color:#0E4434;box-shadow:0 0 0 3px rgba(14,68,52,.08)}
.omc-cf7-wrap .wpcf7 input[type="submit"]{width:100%;min-height:48px;border:0;border-radius:5px;background:#B17A4A;color:#fff;font-family:var(--omc-content-font);font-weight:700;font-size:16px;line-height:24px;padding:11px 20px;cursor:pointer}
.omc-cf7-wrap .wpcf7 input[type="submit"]:hover{box-shadow:inset 0 0 0 2px rgba(255,255,255,.55)}
.omc-cf7-wrap .wpcf7 .wpcf7-not-valid-tip{font-size:12px;margin-top:4px}
.omc-cf7-wrap .wpcf7 .wpcf7-response-output{margin:14px 0 0;padding:10px 12px;border-width:1px;border-radius:6px;font-size:13px;line-height:22px}

/* Shared article/service reading surface.
 * The sand outer page provides the visible margin contrast; the reading column is white.
 */
.omc-service-shell,.omc-article-shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:40px;
  align-items:start;
  padding:38px 0 66px;
}
.omc-service-main,.omc-article-main{
  min-width:0;
  background:#fff;
  border:1px solid rgba(20,38,31,.09);
  border-radius:8px;
  padding:28px 30px 38px;
}
.omc-service-main .omc-rich-content,.omc-article-main .omc-rich-content{max-width:none;margin-inline:0}
.omc-service-sidebar,.omc-article-sidebar{
  position:sticky;
  top:calc(var(--omc-header-height,0px) + 24px);
  display:flex;
  flex-direction:column;
  gap:20px;
  min-width:0;
}
.omc-side-card{background:#fff;border:1px solid #e5e5e5;border-radius:8px;box-shadow:none;overflow:hidden}
.omc-side-card__head{padding:18px 18px 13px;border-bottom:1px solid #ededed}
.omc-side-card__head h2{font-family:var(--omc-content-font);font-size:18px;line-height:21.6px;color:#0E4434;margin:0;font-weight:600}
.omc-side-card__head p{font-family:var(--omc-content-font);font-size:15px;line-height:26px;font-weight:400;color:var(--omc-template-muted);margin:6px 0 0}
.omc-side-card__body{padding:18px}
.omc-related-list{display:flex;flex-direction:column}
.omc-related-item{display:grid;grid-template-columns:90px minmax(0,1fr);gap:11px;padding:13px 0;border-bottom:1px solid #ededed;align-items:center;color:#14261F;text-decoration:none}
.omc-related-item:first-child{padding-top:0}
.omc-related-item:last-child{border-bottom:0;padding-bottom:0}
.omc-related-item--no-image{grid-template-columns:1fr}
.omc-related-item__thumb{width:90px;aspect-ratio:1.25;background:#E6EEEA;border-radius:5px;overflow:hidden}
.omc-related-item__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.omc-related-item__title{font-family:var(--omc-content-font);font-size:15px;line-height:26px;font-weight:700;color:#14261F;margin:0 0 3px}
.omc-related-item__meta{font-family:var(--omc-content-font);font-size:12px;line-height:20px;color:var(--omc-template-muted)}

/* Article metadata belongs below the Featured Image, not in the title banner. */
.omc-article-byline{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px 10px;
  margin:-12px 0 26px;
  padding-bottom:16px;
  border-bottom:1px solid rgba(20,38,31,.10);
  font-family:var(--omc-content-font);
  font-size:13px;
  line-height:22px;
  color:var(--omc-template-muted);
}
.omc-article-byline strong{font-weight:700;color:#14261F}
.omc-article-byline__sep{opacity:.45}

@media(max-width:960px){
  .omc-service-shell,.omc-article-shell{grid-template-columns:1fr;gap:38px}
  .omc-service-sidebar,.omc-article-sidebar{position:static;display:grid;grid-template-columns:1fr 1fr;align-items:start}
}
@media(max-width:680px){
  .omc-template-wrap{width:min(100% - 28px,1180px)}
  .omc-template-hero{padding:24px 0 22px}
  /* Keep the supplied reference font sizes unchanged on mobile; only spacing/layout adapts. */
  .omc-template-hero h1{font-size:40px;line-height:40px;margin-bottom:12px}
  .omc-template-hero .omc-breadcrumbs{font-size:13px;line-height:22px}
  .omc-template-meta{font-size:12px;line-height:20px}
  .omc-template-main{padding:28px 0 44px}
  .omc-featured-media{border-radius:6px;margin-bottom:24px}
  .omc-featured-media img,.omc-service-template .omc-featured-media img,.omc-article-template .omc-featured-media img{aspect-ratio:16/9;max-height:none}
  .omc-rich-content h2{font-size:32px;line-height:38.4px;margin-top:34px;margin-bottom:13px}
  .omc-rich-content h3{font-size:18px;line-height:21.6px;margin-top:26px}
  .omc-rich-content h4{font-size:18px;line-height:24px}
  .omc-rich-content p{font-size:15px;line-height:26px}
  .omc-rich-content li,.omc-rich-content a{font-size:16px;line-height:24px}
  .omc-rich-content table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .omc-service-shell,.omc-article-shell{padding:28px 0 46px}
  .omc-service-main,.omc-article-main{padding:20px 18px 30px}
  .omc-service-sidebar,.omc-article-sidebar{grid-template-columns:1fr}
  .omc-side-card__head,.omc-side-card__body{padding-right:16px;padding-left:16px}
  .omc-article-byline{margin-top:-8px;margin-bottom:22px}
}
