/* OGC Blog visual correction V7 — image-backed heroes, wide article layout and partner sidebar. */
:root{--ogcb-deep:#102d38;--ogcb-green:#35b78f;--ogcb-ink:#173d46;--ogcb-muted:#6b817f;--ogcb-line:#e2ece7;}

/* Blog landing hero: use a resolvable absolute asset path and retain a strong text overlay. */
.ogcb-public-hero{
  min-height:450px!important;display:flex!important;align-items:center!important;padding:96px 0 88px!important;
  background-color:var(--ogcb-deep)!important;
  background-image:linear-gradient(90deg,rgba(7,30,39,.94) 0%,rgba(7,30,39,.78) 43%,rgba(7,30,39,.26) 100%),url('/assets/images/ogc-blog-drone-hero-v7.webp')!important;
  background-position:center,center 47%!important;background-size:cover!important;background-repeat:no-repeat!important;
}
.ogcb-public-hero-inner{width:min(1380px,calc(100% - 64px))!important;max-width:1380px!important;margin-inline:auto!important;}
.ogcb-public-hero h1{max-width:920px!important;text-wrap:balance!important;text-shadow:0 3px 22px rgba(0,0,0,.2);}
.ogcb-public-hero p{max-width:780px!important;}

/* Seito-inspired article cover. The per-article featured image is set by the PHP template. */
.ogcb-article-header--hero{
  position:relative!important;isolation:isolate!important;display:flex!important;align-items:center!important;
  width:100vw!important;max-width:none!important;min-height:465px!important;left:50%!important;
  margin:0 0 42px -50vw!important;padding:76px 0 72px!important;overflow:hidden!important;
  background-color:var(--ogcb-deep)!important;
  background-image:linear-gradient(90deg,rgba(7,30,39,.88) 0%,rgba(7,30,39,.70) 54%,rgba(7,30,39,.48) 100%),var(--ogcb-article-hero-image,url('/assets/images/ogc-blog-drone-hero-v7.webp'))!important;
  background-position:center,center 46%!important;background-size:cover!important;background-repeat:no-repeat!important;
  text-align:center!important;color:#fff!important;
}
.ogcb-article-header--hero:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(4,23,30,.36),transparent 52%,rgba(4,23,30,.12));}
.ogcb-article-hero-inner{position:relative;z-index:1;width:min(1220px,calc(100% - 56px));max-width:1220px;margin:0 auto;}
.ogcb-article-header--hero .ogcb-article-category{display:inline-flex;align-items:center;padding:8px 14px;border:1px solid rgba(255,255,255,.34);border-radius:99px;background:rgba(9,53,55,.50);color:#a8efcf;backdrop-filter:blur(8px);font-size:10px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;text-decoration:none;}
.ogcb-article-header--hero h1{max-width:1120px;margin:19px auto 15px;color:#fff;font-size:clamp(36px,4.4vw,62px);font-weight:900;line-height:1.06;letter-spacing:-.045em;text-wrap:balance;text-shadow:0 2px 22px rgba(0,0,0,.22);}
.ogcb-article-header--hero .ogcb-article-deck{max-width:900px;margin:0 auto;color:rgba(246,251,248,.94);font-size:clamp(15px,1.28vw,18px);line-height:1.7;text-wrap:pretty;}
.ogcb-article-header--hero .ogcb-article-byline{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:14px;margin-top:26px;color:#f2f8f5;text-align:left;}
.ogcb-article-header--hero .ogcb-author-mark{display:inline-flex;align-items:center;justify-content:center;width:43px;height:43px;border-radius:50%;background:rgba(5,36,43,.82);color:#a8e4c4;border:1px solid rgba(255,255,255,.2);font-size:20px;}
.ogcb-article-header--hero .ogcb-article-byline b{display:block;color:#fff;font-size:12px;font-weight:800;}
.ogcb-article-header--hero .ogcb-article-byline small{display:block;color:rgba(238,247,243,.78);font-size:10px;margin-top:3px;}
.ogcb-article-header--hero .ogcb-article-byline>i{width:1px;height:30px;background:rgba(255,255,255,.32);}

/* Widen the reading column and reserve a true third column for OGC partner placements. */
.ogcb-article-layout{
  display:grid!important;grid-template-columns:54px minmax(0,1fr) 320px!important;gap:34px!important;
  width:min(1380px,calc(100% - 64px))!important;max-width:1380px!important;margin:42px auto 72px!important;
  padding:0!important;align-items:start!important;
}
.ogcb-article-share{grid-column:1;position:sticky;top:24px;align-self:start;}
.ogcb-article-body{grid-column:2;min-width:0!important;width:100%!important;max-width:none!important;}
.ogcb-rich-content{max-width:none!important;width:100%!important;color:#344a4e;font-size:16px;line-height:1.9;overflow-wrap:anywhere;}
.ogcb-rich-content h2,.ogcb-rich-content h3,.ogcb-rich-content h4{scroll-margin-top:100px;}
.ogcb-rich-content img{max-width:100%;height:auto;border-radius:12px;}
.ogcb-related{width:min(1380px,calc(100% - 64px))!important;max-width:1380px!important;margin-inline:auto!important;}

/* Right-hand advertising area, styled as clearly labelled placements rather than fake ads. */
.ogcb-article-sidebar{grid-column:3;position:sticky;top:24px;align-self:start;min-width:0;display:flex;flex-direction:column;gap:18px;}
.ogcb-ad-card{padding:18px;border:1px solid var(--ogcb-line);border-radius:16px;background:#fff;box-shadow:0 12px 32px rgba(18,57,54,.055);}
.ogcb-ad-kicker{display:block;margin-bottom:7px;color:#319d7b;font-size:9px;font-weight:900;letter-spacing:.16em;text-transform:uppercase;}
.ogcb-ad-card h3{margin:0 0 8px;color:var(--ogcb-ink);font-size:19px;font-weight:850;line-height:1.25;}
.ogcb-ad-card p{margin:0 0 14px;color:#6f8381;font-size:12px;line-height:1.65;}
.ogcb-ad-slot{position:relative;display:flex;min-height:250px;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:20px;border:1px dashed #b9d7cc;border-radius:12px;background:linear-gradient(145deg,#f5faf7,#edf6f1);text-align:center;color:#63847a;}
.ogcb-ad-slot i{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:13px;background:#dff3e9;color:#278e6b;font-size:20px;}
.ogcb-ad-slot strong{color:#244f4a;font-size:15px;font-weight:850;letter-spacing:.02em;}
.ogcb-ad-slot span{font-size:11px;line-height:1.5;}
.ogcb-ad-slot small{position:absolute;top:12px;left:13px;color:#8b9e98;font-size:8px;font-weight:800;letter-spacing:.12em;}
.ogcb-ad-slot--tall{min-height:360px;background:linear-gradient(155deg,#edf6f1,#f8fbf9);}
.ogcb-ad-cta{display:inline-flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin-top:14px;padding:11px 13px;border-radius:9px;background:#2eaa82;color:#fff!important;font-size:12px;font-weight:800;text-decoration:none!important;}
.ogcb-ad-cta:hover{background:#238d6b;color:#fff!important;}
.ogcb-ad-note{margin-top:10px!important;margin-bottom:0!important;font-size:10px!important;}

/* Remove any screen-reader fallback text leaking below the byline in older V6 markup. */
.ogcb-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}

@media(max-width:1120px){
  .ogcb-article-layout{width:calc(100% - 44px)!important;grid-template-columns:46px minmax(0,1fr) 286px!important;gap:24px!important;}
  .ogcb-article-sidebar{top:18px;}
}
@media(max-width:900px){
  .ogcb-public-hero{min-height:410px!important;padding:78px 0 70px!important;background-position:center,58% center!important;}
  .ogcb-article-header--hero{min-height:420px!important;padding:64px 0!important;}
  .ogcb-article-layout{width:calc(100% - 40px)!important;grid-template-columns:42px minmax(0,1fr)!important;gap:22px!important;}
  .ogcb-article-share{grid-column:1;}
  .ogcb-article-body{grid-column:2;}
  .ogcb-article-sidebar{grid-column:2;position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;}
  .ogcb-ad-slot--tall{min-height:250px;}
}
@media(max-width:620px){
  .ogcb-public-hero{min-height:420px!important;padding:68px 0 60px!important;background-image:linear-gradient(90deg,rgba(7,30,39,.9),rgba(7,30,39,.62)),url('/assets/images/ogc-blog-drone-hero-v7.webp')!important;background-position:center,62% center!important;}
  .ogcb-public-hero-inner{width:calc(100% - 36px)!important;}
  .ogcb-public-hero h1{font-size:clamp(35px,10vw,44px)!important;}
  .ogcb-article-header--hero{min-height:430px!important;padding:56px 0 52px!important;margin-bottom:26px!important;background-position:center,60% center!important;}
  .ogcb-article-hero-inner{width:calc(100% - 34px)!important;}
  .ogcb-article-header--hero h1{font-size:clamp(31px,8.6vw,40px)!important;line-height:1.08!important;margin:17px auto 13px!important;}
  .ogcb-article-header--hero .ogcb-article-deck{font-size:13px!important;line-height:1.62!important;}
  .ogcb-article-header--hero .ogcb-article-byline{gap:8px 12px!important;margin-top:20px!important;}
  .ogcb-article-header--hero .ogcb-article-byline>i{display:none!important;}
  .ogcb-article-layout{width:calc(100% - 30px)!important;grid-template-columns:1fr!important;gap:18px!important;margin:28px auto 48px!important;}
  .ogcb-article-share{grid-column:1;position:static;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;}
  .ogcb-article-body{grid-column:1;}
  .ogcb-article-sidebar{grid-column:1;display:grid;grid-template-columns:1fr;gap:14px;}
  .ogcb-rich-content{font-size:15px;line-height:1.82;}
  .ogcb-related{width:calc(100% - 30px)!important;}
}
