/* Service pages, "G" layout (Nov 2026): one continuous page.
   Full-bleed photo that fades out → dark → teal → cream → back to dark for the contact form and footer. */
.ag-dark-page.ag-g{padding:0;background:#17181A;color:#F6F2E9;}
.ag-g::before,.ag-g::after{display:none;}

/* Hero */
.ag-g-hero{position:relative;isolation:isolate;min-height:min(100vh,880px);display:flex;flex-direction:column;padding:118px 0 190px;overflow:hidden;}
.ag-g-hero-bg{position:absolute;inset:0;z-index:-2;}
.ag-g-hero-bg img{width:100%;height:100%;object-fit:cover;object-position:center 55%;display:block;
  -webkit-mask-image:linear-gradient(180deg,#000 40%,transparent 100%);mask-image:linear-gradient(180deg,#000 40%,transparent 100%);}
.ag-g-hero-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(23,24,26,.94) 0%,rgba(23,24,26,.74) 45%,rgba(23,24,26,.08) 82%);}
[dir="rtl"] .ag-g-hero-shade{background:linear-gradient(270deg,rgba(23,24,26,.94) 0%,rgba(23,24,26,.74) 45%,rgba(23,24,26,.08) 82%);}
.ag-g-hero-in{flex:1;display:flex;flex-direction:column;width:100%;}
.ag-g .client-back{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13.5px;color:rgba(246,242,233,.55);}
.ag-g .client-back a{color:rgba(246,242,233,.72);}
.ag-g .client-back span[aria-current]{color:#F6F2E9;font-weight:700;}
.ag-g-hero-text{flex:1;display:flex;flex-direction:column;justify-content:center;max-width:720px;padding-top:40px;}
.ag-g-hero .eyebrow{display:flex;align-items:center;gap:12px;color:#D4A94C;font-weight:700;font-size:14px;}
.ag-g-hero .eyebrow::before{content:"";display:block;width:36px;height:2px;background:#D4A94C;flex:0 0 36px;}
.ag-g-hero h1{color:#F6F2E9;font-size:clamp(38px,5vw,70px);font-weight:900;line-height:1.18;margin:20px 0 22px;}
.ag-g-hero .ag-lp-intro{color:rgba(246,242,233,.86);font-size:18.5px;max-width:640px;}

/* Accents: saffron instead of cyan */
.ag-g .eyebrow{color:#D4A94C;}
.ag-g .ag-lp-link{color:#D4A94C;border-bottom-color:rgba(212,169,76,.45);}
.ag-g .ag-lp-link:hover{color:#F6F2E9;border-color:#F6F2E9;}
.ag-g .ag-lp-num{color:rgba(212,169,76,.6);}
.ag-g .ag-lp-yes .ag-lp-ico{background:rgba(212,169,76,.16);color:#D4A94C;}
.ag-g .ag-lp-step-n{background:#D4A94C;color:#17181A;}
.ag-g .ag-lp-faq summary::after{color:#D4A94C;}
.ag-g .ag-brand:hover img{border-color:#D4A94C;}
.ag-g .ag-lp-card{background:rgba(246,242,233,.06);border-color:rgba(246,242,233,.13);}
.ag-g .ag-lp-steps li{background:rgba(23,24,26,.22);border-color:rgba(246,242,233,.12);}

/* Dark zone: starts under the fading photo, drifts to teal */
.ag-g-dark{position:relative;margin-top:-150px;padding:0 0 90px;
  background:linear-gradient(180deg,rgba(23,24,26,0) 0,#17181A 150px,#1A2C33 40%,#1D3741 65%,#244E5D 88%,#2F6578 100%);}
.ag-g-dark > .ag-lp-sec:first-child,.ag-g-dark > .ag-courses-video:first-child{padding-top:0;}

/* Soft colour changes, no hard edges */
.ag-g-fade{height:220px;background:linear-gradient(180deg,#2F6578 0%,#F6F2E9 100%);}
.ag-g-fade-back{height:200px;background:linear-gradient(180deg,#F6F2E9 0%,#2F6578 55%,#17181A 100%);}

/* Cream zone */
.ag-g-light{background:#F6F2E9;color:#2a2a26;padding-bottom:90px;}
.ag-g-light .ag-lp-sec{color:#2a2a26;}
.ag-g-light .ag-lp-sec:first-child{padding-top:10px;}
.ag-g-light .ag-lp-sec h2,.ag-g-light .ag-lp-sec h3,.ag-g-light .ag-cta h2{color:#17181A;}
.ag-g-light .ag-lp-sec p,.ag-g-light .ag-lp-close{color:#4a4a44;}
.ag-g-light .ag-lp-note,.ag-g-light .ag-lp-brands-label{color:#6b6a62;}
.ag-g-light .ag-lp-link{color:#244E5D;border-bottom-color:rgba(36,78,93,.35);}
.ag-g-light .ag-lp-link:hover{color:#17181A;border-color:#17181A;}
.ag-g-light .ag-lp-aside{background:#fff;border:1px solid #e3d9c4;}
.ag-g-light .ag-brand{color:#2a2a26;}
.ag-g-light .ag-brand img{border-color:#e3d9c4;}
.ag-g-light .ag-lp-faq details{border-bottom-color:#ddd3bf;}
.ag-g-light .ag-lp-faq summary{color:#17181A;}
.ag-g-light .ag-lp-faq details p{color:#4a4a44;}
.ag-g-light .ag-blog-card{background:#fff;border-color:#e6dcc8;}
.ag-g-light .ag-blog-card:hover{background:#fff;border-color:#D4A94C;}
.ag-g-light .ag-blog-card b{color:#17181A;}
.ag-g-light .ag-blog-ex{color:#5b5b54;}
.ag-g-light .ag-blog-card-img{background:#e9e1cf;}
.ag-g-light .ag-lp-related a{background:#fff;border-color:#e6dcc8;}
.ag-g-light .ag-lp-related a:hover{background:#fff;border-color:#D4A94C;}
.ag-g-light .ag-lp-related b{color:#17181A;}
.ag-g-light .ag-lp-related small{color:#5b5b54;}
.ag-g .ag-contact{padding-top:30px;}

@media (max-width:860px){
  .ag-g-hero{min-height:0;padding:100px 0 150px;}
  .ag-g-hero h1{font-size:clamp(32px,8.6vw,44px);}
  .ag-g-hero .ag-lp-intro{font-size:16px;}
  .ag-g-hero-shade,[dir="rtl"] .ag-g-hero-shade{background:linear-gradient(180deg,rgba(23,24,26,.55) 0%,rgba(23,24,26,.82) 60%,rgba(23,24,26,.9) 100%);}
  .ag-g-dark{margin-top:-110px;}
  .ag-g-fade,.ag-g-fade-back{height:140px;}
}

/* ---- Blog articles, same layout (Nov 2026): full-bleed cover, cream reading zone ---- */
.ag-blog-hero{min-height:min(88vh,720px);padding-bottom:170px;}
.ag-blog-hero h1{font-size:clamp(32px,4vw,52px);line-height:1.3;}
.ag-blog-hero .eyebrow{text-decoration:none;}
.ag-blog-hero .ag-blog-meta{color:rgba(246,242,233,.68);font-size:14px;margin:18px 0 0;}
.ag-blog-fade{position:relative;height:200px;margin-top:-130px;background:linear-gradient(180deg,rgba(23,24,26,0) 0%,#17181A 30%,#2F6578 68%,#F6F2E9 100%);}
.ag-blog-light{padding-top:10px;}
.ag-blog-light .ag-post-layout{grid-template-columns:300px minmax(0,1fr);gap:64px;max-width:1180px;}
.ag-blog-light .ag-post-aside{order:0;top:96px;}
.ag-blog-light .ag-post-toc{background:#fff;border:1px solid #e3d9c4;}
.ag-blog-light .ag-post-toc b{color:#6b6a62;font-size:14px;}
.ag-blog-light .ag-post-toc a{color:#2a2a26;}
.ag-blog-light .ag-post-toc a:hover{color:#244E5D;}
.ag-blog-light .ag-post-svc{background:#244E5D;border:0;color:#F6F2E9;display:flex;flex-direction:column;gap:8px;}
.ag-blog-light .ag-post-svc small{color:#D4A94C;}
.ag-blog-light .ag-post-svc b{color:#F6F2E9;font-size:19px;margin:0;}
.ag-blog-light .ag-post-svc p{color:rgba(246,242,233,.82);margin:0;}
.ag-blog-light .ag-post-svc .btn{align-self:stretch;justify-content:center;text-align:center;margin-top:6px;}
.ag-blog-light .ag-post-svc .ag-lp-link{color:#D4A94C;border-bottom-color:rgba(212,169,76,.45);align-self:flex-start;}
.ag-blog-light .ag-post-body{color:#3d3d38;font-size:18px;line-height:2.05;}
.ag-blog-light .ag-post-body h2,.ag-blog-light .ag-post-body h3,.ag-blog-light .ag-post-body strong{color:#17181A;}
.ag-blog-light .ag-post-body h2{font-weight:900;}
.ag-blog-light .ag-post-body a{color:#244E5D;}
.ag-blog-light .ag-post-body code{background:#ece4d3;color:#17181A;padding:1px 6px;border-radius:6px;font-size:.88em;}
.ag-blog-light .ag-post-body blockquote{background:#fff;border-inline-start-color:#D4A94C;}
.ag-post-body .ag-tldr{background:#fff;border-inline-start:4px solid #D4A94C;border-radius:14px;padding:18px 22px;}

/* Tables: desktop */
.ag-tbl-wrap{margin:22px 0 26px;}
.ag-blog-light .ag-post-body table.ag-tbl{margin:0;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid #e3d9c4;border-radius:18px;overflow:hidden;font-size:16px;}
.ag-blog-light .ag-post-body .ag-tbl thead th{background:#244E5D;color:#F6F2E9;font-weight:800;padding:14px 18px;}
.ag-blog-light .ag-post-body .ag-tbl td{padding:15px 18px;border-bottom:1px solid #efe7d6;color:#3d3d38;vertical-align:top;line-height:1.85;}
.ag-blog-light .ag-post-body .ag-tbl tbody tr:last-child td{border-bottom:0;}
.ag-blog-light .ag-post-body .ag-tbl tbody tr:nth-child(even){background:#fbf8f1;}
.ag-blog-light .ag-post-body .ag-tbl td:first-child{font-weight:800;color:#17181A;}
.ag-blog-light .ag-post-body .ag-tbl-price td:nth-child(2){font-weight:800;color:#244E5D;white-space:nowrap;}

/* CTA box and FAQ in the cream zone */
.ag-blog-light .ag-post-cta{background:#17181A;border:0;color:#F6F2E9;}
.ag-blog-light .ag-post-cta b{color:#F6F2E9;}
.ag-blog-light .ag-post-cta p{color:rgba(246,242,233,.82);}
.ag-blog-light .ag-post-cta .ag-lp-link{color:#D4A94C;border-bottom-color:rgba(212,169,76,.45);}
.ag-blog-light .ag-post-faq h2{color:#17181A;}

@media (max-width:1000px){
  .ag-blog-light .ag-post-layout{grid-template-columns:1fr;gap:18px;}
}
/* Tables: mobile — every row becomes a card */
@media (max-width:700px){
  .ag-blog-hero{min-height:0;padding:100px 0 140px;}
  .ag-blog-hero h1{font-size:clamp(25px,7vw,34px);}
  .ag-blog-fade{height:150px;margin-top:-100px;}
  .ag-blog-light .ag-post-body{font-size:16.5px;}
  .ag-blog-light .ag-post-body table.ag-tbl,.ag-blog-light .ag-post-body .ag-tbl tbody,.ag-blog-light .ag-post-body .ag-tbl tr,.ag-blog-light .ag-post-body .ag-tbl td{display:block;width:auto;}
  .ag-blog-light .ag-post-body table.ag-tbl{background:none;border:0;border-radius:0;overflow:visible;}
  .ag-blog-light .ag-post-body .ag-tbl thead{display:none;}
  .ag-blog-light .ag-post-body .ag-tbl tbody tr,.ag-blog-light .ag-post-body .ag-tbl tbody tr:nth-child(even){background:#fff;border:1px solid #e3d9c4;border-radius:16px;padding:12px 16px;margin-bottom:12px;}
  .ag-blog-light .ag-post-body .ag-tbl td{border:0;padding:4px 0;font-size:14.5px;line-height:1.8;}
  .ag-blog-light .ag-post-body .ag-tbl td:first-child{font-size:17px;padding-bottom:6px;}
  .ag-blog-light .ag-post-body .ag-tbl td:not(:first-child)[data-label]::before{content:attr(data-label);display:block;font-size:13px;font-weight:800;color:#6b6a62;}
  /* price tables: name and price on one line */
  .ag-blog-light .ag-post-body .ag-tbl-price tbody tr{display:grid;grid-template-columns:1fr auto;column-gap:12px;align-items:baseline;}
  .ag-blog-light .ag-post-body .ag-tbl-price td:nth-child(2){font-size:15px;white-space:normal;text-align:end;}
  .ag-blog-light .ag-post-body .ag-tbl-price td:nth-child(2)::before{display:none !important;}
  .ag-blog-light .ag-post-body .ag-tbl-price td:nth-child(n+3){grid-column:1/-1;}
  .ag-blog-light .ag-post-body .ag-tbl-2.ag-tbl-price tbody tr{padding:10px 14px;}
}
.ag-g-light .ag-blog-tag{color:#2F6578;}
@media (max-width:1000px){.ag-blog-light .ag-post-svc{display:none;}}
@media (max-width:700px){
  .ag-blog-hero{padding:96px 0 120px;}
  .ag-blog-hero .client-back span[aria-current],.ag-blog-hero .client-back span[aria-hidden="true"]:last-of-type{display:none;}
  .ag-blog-hero .ag-lp-intro{font-size:15px;line-height:1.85;}
  .ag-blog-hero .ag-blog-meta{font-size:13px;margin-top:12px;}
  .ag-blog-hero .ag-g-hero-text{padding-top:20px;}
}
/* 6 related services now (motion graphics added): 3 per row on desktop */
@media (min-width:1061px){.ag-lp-related{grid-template-columns:repeat(3,minmax(0,1fr));}}
