:root{
  /* Default: LIGHT (user can toggle to dark). */
  --ag-bg:#f6f7fb;
  --ag-bg2:#ffffff;
  --ag-card:#ffffff;
  --ag-elev: rgba(11,16,32,.06);
  --ag-text:#0b1020;
  --ag-muted: rgba(11,16,32,.70);
  --ag-muted2: rgba(11,16,32,.55);
  --ag-border: rgba(11,16,32,.12);
  --ag-accent:#5b45ff;
  --ag-accent2:#0ea5e9;
  --ag-shadow: 0 18px 50px rgba(15,23,42,.10);
  --ag-radius: 18px;
}

:root[data-theme="dark"]{
  --ag-bg:#020617;
  --ag-bg2:#020617;
  --ag-card:#0f172a;
  --ag-elev: rgba(255,255,255,.05);
  --ag-text:#f8fafc;
  --ag-muted:#94a3b8;
  --ag-muted2:#64748b;
  --ag-border: rgba(255,255,255,.08);
  --ag-accent:#6366f1;
  --ag-accent2:#0ea5e9;
  --ag-shadow: 0 16px 40px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(91,69,255,.18), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(14,165,233,.14), transparent 60%),
    linear-gradient(180deg, var(--ag-bg), var(--ag-bg2));
  color:var(--ag-text);
  line-height:1.55;
  overflow-x:hidden;
}

.ag-sr{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

:root[data-theme="dark"] body{
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(99,102,241,.15), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(14,165,233,.12), transparent 60%),
    linear-gradient(180deg, var(--ag-bg), var(--ag-bg2));
}

/* Light theme hard overrides for previously dark-only blocks */
:root[data-theme="light"] .custom-logo-link img{
  border-color: rgba(11,16,32,.10);
  background: rgba(11,16,32,.03);
}
:root[data-theme="light"] .ag-siteLogo{
  border-color: rgba(11,16,32,.10);
  background: rgba(11,16,32,.03);
}
:root[data-theme="light"] .ag-card__logo{
  border-color: rgba(11,16,32,.10);
  background: rgba(11,16,32,.03);
}

:root[data-theme="light"] .ag-article{
  background: rgba(255,255,255,.85);
}
:root[data-theme="light"] .ag-article .ag-content blockquote{
  background: rgba(11,16,32,.03);
}
:root[data-theme="light"] .ag-article .ag-content table{
  border-color: rgba(11,16,32,.12);
}
:root[data-theme="light"] .ag-article .ag-content th,
:root[data-theme="light"] .ag-article .ag-content td{
  border-bottom-color: rgba(11,16,32,.10);
}
:root[data-theme="light"] .ag-article .ag-content th{background: rgba(11,16,32,.03)}
:root[data-theme="light"] .ag-article .ag-content a{color: #2f21c8}
:root[data-theme="light"] .ag-article .ag-content :not(pre) > code{
  border-color: rgba(11,16,32,.12);
  background: rgba(11,16,32,.05);
  color: rgba(11,16,32,.90);
}

:root[data-theme="light"] .ag-summary{
  border-color: rgba(11,16,32,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.70));
}
:root[data-theme="light"] .ag-summary__text{color: rgba(11,16,32,.82)}
:root[data-theme="light"] .ag-chip{
  border-color: rgba(11,16,32,.12);
  background: rgba(11,16,32,.04);
  color: rgba(11,16,32,.82);
}
:root[data-theme="light"] .ag-chip:hover{background: rgba(11,16,32,.06)}
:root[data-theme="light"] .ag-summary__meta{
  border-color: rgba(11,16,32,.10);
  background: rgba(11,16,32,.03);
}
:root[data-theme="light"] .ag-summary__row{border-top-color: rgba(11,16,32,.12)}
:root[data-theme="light"] .ag-summary__v{color: rgba(11,16,32,.82)}
:root[data-theme="light"] .ag-summary__v a{color: rgba(11,16,32,.88)}

:root[data-theme="light"] .ag-sideBox{
  background: rgba(255,255,255,.75);
}
:root[data-theme="light"] .ag-feature{
  border-color: rgba(11,16,32,.10);
  background: rgba(11,16,32,.03);
}

:root[data-theme="light"] .ag-videoCard{
  border-color: rgba(11,16,32,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.68));
}
:root[data-theme="light"] .ag-video{background: rgba(11,16,32,.06)}
:root[data-theme="light"] .ag-videoCard__head{
  border-bottom-color: rgba(11,16,32,.10);
  background: rgba(11,16,32,.03);
}
:root[data-theme="light"] .ag-videoCard__link{
  color: rgba(11,16,32,.84);
  border-color: rgba(11,16,32,.12);
  background: rgba(11,16,32,.04);
}
:root[data-theme="light"] .ag-videoCard__link:hover{
  background: rgba(11,16,32,.06);
}
:root[data-theme="light"] .ag-thumbCard{
  border-color: rgba(11,16,32,.12);
  background: rgba(11,16,32,.03);
}
:root[data-theme="light"] .ag-postMeta{
  border-top-color: rgba(11,16,32,.12);
}

:root[data-theme="light"] .ag-badge{
  border-color: rgba(91,69,255,.32);
  background: rgba(91,69,255,.10);
  color: rgba(11,16,32,.92);
}
:root[data-theme="light"] .ag-badge--small{
  border-color: rgba(14,165,233,.32);
  background: rgba(14,165,233,.10);
}
:root[data-theme="light"] .ag-badge--audience{
  border-color: rgba(11,16,32,.14);
  background: rgba(11,16,32,.04);
}
:root[data-theme="light"] .ag-badge--tech-delivery{
  border-color: rgba(11,16,32,.14);
  background: rgba(11,16,32,.04);
}
a{color:inherit}
.ag-skip{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;height:1px;overflow:hidden;
}
.ag-skip:focus{
  left:16px;top:16px;width:auto;height:auto;
  padding:10px 12px;border-radius:12px;
  background:var(--ag-card);
  border:1px solid var(--ag-border);
  z-index:9999;
}

.ag-container{
  width:min(1120px, calc(100% - 32px));
  margin-inline:auto;
}

.ag-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:saturate(160%) blur(10px);
  background: linear-gradient(180deg, rgba(246,247,251,.82), rgba(246,247,251,.55));
  border-bottom: 1px solid rgba(11,16,32,.08);
}
:root[data-theme="dark"] .ag-header{
  background: linear-gradient(180deg, rgba(11,16,32,.82), rgba(11,16,32,.55));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ag-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}
.ag-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.custom-logo-link{display:inline-flex; align-items:center}
.custom-logo-link img{
  width:40px;
  height:40px;
  border-radius:14px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.ag-siteLogo{
  width:40px !important;
  height:40px !important;
  max-width:40px !important;
  max-height:40px !important;
  flex:0 0 40px;
  display:block;
  border-radius:14px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.ag-brand__mark{
  width:40px;height:40px;
  border-radius:14px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), rgba(255,255,255,0) 60%),
    linear-gradient(135deg, rgba(124,92,255,.95), rgba(34,211,238,.85));
  box-shadow: 0 10px 24px rgba(124,92,255,.25);
}
.ag-brand__text{display:flex;flex-direction:column;line-height:1.1}
.ag-brand__name{font-weight:750;letter-spacing:.2px}
.ag-brand__tag{font-size:12px;color:var(--ag-muted); margin-top:3px}

.ag-header__right{display:flex; align-items:center; gap:10px}

.ag-navToggle{
  display:none;
  border:1px solid var(--ag-border);
  background:rgba(11,16,32,.03);
  color:var(--ag-text);
  padding:10px 12px;
  border-radius:14px;
}
.ag-navToggle:hover{background:rgba(11,16,32,.06)}
:root[data-theme="dark"] .ag-navToggle{background:rgba(255,255,255,.04)}
:root[data-theme="dark"] .ag-navToggle:hover{background:rgba(255,255,255,.07)}

.ag-header__actions{display:flex; align-items:center; gap:10px}

.ag-themeBtn{
  width:40px;
  height:40px;
  border-radius: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--ag-border);
  background:rgba(255,255,255,.65);
  color:var(--ag-text);
  padding:0;
}
.ag-themeBtn svg{display:block}
.ag-themeBtn:hover{background:rgba(11,16,32,.06)}
:root[data-theme="light"] .ag-themeBtn:hover{background:rgba(11,16,32,.06)}
:root[data-theme="dark"] .ag-themeBtn{background:rgba(255,255,255,.04)}
:root[data-theme="dark"] .ag-themeBtn:hover{background:rgba(255,255,255,.07)}
.ag-nav{
  display:flex;
  align-items:center;
  gap:14px;
}
.ag-nav__list{
  list-style:none;
  display:flex;
  align-items:center;
  gap:14px;
  padding:0;
  margin:0;
}
.ag-nav__list li{margin:0;padding:0}
.ag-nav a{
  text-decoration:none;
  color:var(--ag-muted);
  padding:10px 10px;
  border-radius:12px;
}
.ag-nav a:hover{color:var(--ag-text); background:rgba(255,255,255,.04)}
.ag-nav .current-menu-item > a,
.ag-nav .current_page_item > a{color:var(--ag-text); background:rgba(255,255,255,.06)}
:root[data-theme="light"] .ag-nav a:hover{background:rgba(11,16,32,.04)}
:root[data-theme="light"] .ag-nav .current-menu-item > a,
:root[data-theme="light"] .ag-nav .current_page_item > a{background:rgba(11,16,32,.05)}

.ag-main{
  padding:34px 0 60px;
}

.ag-hero{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:20px;
  align-items:stretch;
  margin-top:10px;
}
.ag-heroCard{
  border:1px solid var(--ag-border);
  background: linear-gradient(180deg, rgba(11,16,32,.02), rgba(11,16,32,.01));
  border-radius: var(--ag-radius);
  box-shadow: var(--ag-shadow);
  padding:24px;
  position:relative;
  overflow:hidden;
}
:root[data-theme="dark"] .ag-heroCard{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.ag-heroCard:before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(600px 240px at 15% 10%, rgba(124,92,255,.25), transparent 60%),
    radial-gradient(520px 220px at 85% 30%, rgba(34,211,238,.18), transparent 60%);
  pointer-events:none;
}
.ag-heroCard > *{position:relative}
.ag-heroTitle{
  font-size: clamp(30px, 3.2vw, 44px);
  line-height:1.12;
  margin:0 0 10px;
  letter-spacing:-.3px;
}
.ag-heroSubtitle{
  margin:0;
  color:var(--ag-muted);
  font-size: 15.5px;
}
.ag-heroActions{
  margin-top:18px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.ag-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  border-radius:14px;
  padding:11px 14px;
  border:1px solid var(--ag-border);
  background:rgba(255,255,255,.04);
  color:var(--ag-text);
  font-weight:650;
}
.ag-btn:hover{background:rgba(255,255,255,.07)}
.ag-btn--primary{
  border-color: rgba(124,92,255,.55);
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(34,211,238,.60));
  box-shadow: 0 14px 30px rgba(124,92,255,.22);
}
.ag-btn--primary:hover{filter:saturate(1.1) brightness(1.03)}
.ag-icon{flex:0 0 auto; display:inline-block}

.ag-heroSide{
  border:1px solid var(--ag-border);
  background: rgba(11,16,32,.02);
  border-radius: var(--ag-radius);
  padding:18px;
}
:root[data-theme="dark"] .ag-heroSide{background: rgba(255,255,255,.03)}
.ag-kpiGrid{display:grid;grid-template-columns:1fr;gap:10px}
.ag-kpi{
  border:1px solid rgba(11,16,32,.10);
  background: rgba(255,255,255,.70);
  border-radius: 16px;
  padding:12px 12px;
}
:root[data-theme="dark"] .ag-kpi{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}
.ag-kpi strong{display:block}
.ag-kpi span{display:block;color:var(--ag-muted);font-size:13px;margin-top:4px}

.ag-section{margin-top:26px}
.ag-sectionHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  margin:0 0 10px;
}
.ag-sectionTitle{margin:0;font-size:18px;letter-spacing:-.2px}
.ag-sectionNote{margin:0;color:var(--ag-muted);font-size:13.5px}

.ag-more{
  border:1px solid var(--ag-border);
  border-radius: 16px;
  background: rgba(11,16,32,.02);
  padding:12px 12px;
}
:root[data-theme="dark"] .ag-more{background: rgba(255,255,255,.02)}
.ag-more__summary{
  cursor:pointer;
  list-style:none;
  color:var(--ag-muted);
  font-weight:650;
}
.ag-more__summary::-webkit-details-marker{display:none}
.ag-more__body{padding-top:12px}

.ag-serviceGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
}
.ag-serviceCard{
  border:1px solid var(--ag-border);
  background: linear-gradient(180deg, rgba(11,16,32,.02), rgba(11,16,32,.01));
  border-radius: 18px;
  padding:14px;
  display:grid;
  grid-template-columns: 34px 1fr;
  gap:12px;
}
:root[data-theme="dark"] .ag-serviceCard{
  background: var(--ag-card);
}
.ag-serviceCard__icon{
  width:34px;height:34px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(11,16,32,.10);
  background: rgba(255,255,255,.75);
}
:root[data-theme="dark"] .ag-serviceCard__icon{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.ag-serviceCard__title{margin:0; font-size:15px; letter-spacing:-.2px}
.ag-serviceCard__desc{margin:8px 0 0; color:var(--ag-muted); font-size:13.5px}

.ag-cards{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:14px;
}
.ag-cards--compact{gap:10px}
.ag-cards--projects{grid-template-columns: repeat(3, minmax(0, 1fr)); gap:12px}
@media (min-width: 1060px){
  .ag-cards{grid-template-columns: repeat(3, minmax(0,1fr));}
}
@media (max-width: 980px){
  .ag-cards--projects{grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media (max-width: 600px){
  .ag-cards--projects{grid-template-columns: 1fr;}
}
.ag-card{
  border:1px solid var(--ag-border);
  background: linear-gradient(180deg, rgba(11,16,32,.02), rgba(11,16,32,.01));
  border-radius: 18px;
  padding:14px;
  text-decoration:none;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
:root[data-theme="dark"] .ag-card{
  background: var(--ag-card);
}
.ag-card:hover{
  border-color: rgba(124,92,255,.42);
  transform: translateY(-1px);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
  background: linear-gradient(180deg, rgba(11,16,32,.03), rgba(11,16,32,.015));
}
:root[data-theme="dark"] .ag-card:hover{
  background: #1e293b; /* slightly lighter than slate-900 (#0f172a) */
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.ag-card__head{display:flex; align-items:center; justify-content:flex-start; gap:10px}
.ag-card__logo{display:inline-flex; align-items:center; justify-content:center}
.ag-card__logo :where(img, svg){
  width:42px;
  height:42px;
  border-radius: 14px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.ag-card__desc{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.ag-card__title{
  margin:12px 0 0;
  font-size:15px;
  letter-spacing:-.2px;
}
.ag-card__desc{
  margin:8px 0 0;
  color:var(--ag-muted);
  font-size:13.5px;
}
.ag-card__cta{
  margin-top:auto;
  padding-top:12px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color: rgba(232,236,255,.88);
  font-weight:650;
}

.ag-layout{
  display:grid;
  grid-template-columns: minmax(0,1fr) minmax(0,300px);
  gap:22px;
  align-items:start;
}
.ag-layout > *{min-width:0}
.ag-layout--single{grid-template-columns: 1fr}
.ag-article{
  border:1px solid var(--ag-border);
  background: var(--ag-card);
  border-radius: var(--ag-radius);
  padding:22px;
  box-shadow: var(--ag-shadow);
}
.ag-breadcrumbs{
  font-size:12.5px;
  color:var(--ag-muted);
  margin:0 0 10px;
}
.ag-breadcrumbs a{color:var(--ag-muted); text-decoration:none}
.ag-breadcrumbs a:hover{color:var(--ag-text); text-decoration:underline}
.ag-article h1{margin:0 0 10px; font-size:32px; font-weight:700; letter-spacing:-.03em; line-height:1.2}
.ag-article .ag-meta{color:var(--ag-muted); font-size:13.5px; display:flex; gap:10px; flex-wrap:wrap}
.ag-article .ag-content{margin-top:20px; font-size:15px; line-height:1.7;}
.ag-article .ag-content :where(h2,h3){scroll-margin-top: 92px}
.ag-article .ag-content h2{margin:28px 0 12px; font-size:22px; font-weight:700; letter-spacing:-.02em}
.ag-article .ag-content h3{margin:22px 0 10px; font-size:18px; font-weight:600; letter-spacing:-.01em}
.ag-article .ag-content :where(p,li){color:var(--ag-text); opacity:0.92}
.ag-article .ag-content ul{padding-left:18px}
.ag-article .ag-content li{margin:6px 0}
.ag-article .ag-content :where(img, video){
  max-width:100%;
  height:auto;
}
.ag-article .ag-content img{
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
:root[data-theme="light"] .ag-article .ag-content img{
  border-color: rgba(11,16,32,.12);
  background: rgba(255,255,255,.85);
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
}
.ag-article .ag-content iframe{max-width:100%}
.ag-article .ag-content :where(figure.wp-block-image, figure.wp-block-gallery){
  margin:16px 0;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.ag-article .ag-content :where(figure.wp-block-image, figure.wp-block-gallery) img{
  display:block;
  width:100%;
  height:auto;
}
.ag-article .ag-content figcaption{
  padding:10px 12px;
  font-size:13px;
  color:var(--ag-muted);
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.10);
}
:root[data-theme="light"] .ag-article .ag-content :where(figure.wp-block-image, figure.wp-block-gallery){
  border-color: rgba(11,16,32,.12);
  background: rgba(255,255,255,.85);
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
}
:root[data-theme="light"] .ag-article .ag-content figcaption{
  border-top-color: rgba(11,16,32,.10);
  background: rgba(11,16,32,.03);
}
.ag-article .ag-content blockquote{
  margin:14px 0;
  padding:12px 14px;
  border-left:3px solid rgba(99,102,241,.6);
  background: rgba(0,0,0,.2);
  border-radius: 14px;
}
.ag-article .ag-content table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  display:block;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  border:1px solid rgba(255,255,255,.08);
  border-radius: 16px;
}
.ag-article .ag-content th,
.ag-article .ag-content td{
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.06);
  vertical-align:top;
}
.ag-article .ag-content tr:last-child td{border-bottom:0}
.ag-article .ag-content th{color:var(--ag-text); text-align:start; background: rgba(0,0,0,.2)}
.ag-article .ag-content a{color: #818cf8}
.ag-article .ag-content pre{
  background:
    radial-gradient(600px 160px at 10% 0%, rgba(99,102,241,.10), transparent 55%),
    radial-gradient(520px 140px at 90% 10%, rgba(14,165,233,.08), transparent 55%),
    rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.06);
  border-left:3px solid rgba(99,102,241,.6);
  border-radius: 16px;
  padding:14px 14px;
  overflow:auto;
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
  -webkit-overflow-scrolling: touch;
  tab-size: 2;
}
.ag-article .ag-content pre code{color: rgba(232,236,255,.90)}
:root[data-theme="light"] .ag-article .ag-content pre{
  background:
    radial-gradient(600px 160px at 10% 0%, rgba(91,69,255,.10), transparent 55%),
    radial-gradient(520px 140px at 90% 10%, rgba(14,165,233,.08), transparent 55%),
    rgba(255,255,255,.90);
  border-color: rgba(11,16,32,.14);
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}
:root[data-theme="light"] .ag-article .ag-content pre code{
  color: rgba(11,16,32,.90);
}
.ag-article .ag-content pre code{
  display:block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12.75px;
  line-height: 1.55;
  color: rgba(232,236,255,.90);
}
.ag-article .ag-content code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.ag-article .ag-content :not(pre) > code{
  padding: 2px 7px;
  border-radius: 10px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(232,236,255,.92);
}
.ag-article .ag-content pre::-webkit-scrollbar{height:10px;width:10px}
.ag-article .ag-content pre::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.14);
  border-radius: 999px;
  border:2px solid rgba(0,0,0,.20);
}
.ag-article .ag-content pre::-webkit-scrollbar-thumb:hover{background: rgba(255,255,255,.22)}
.ag-article .ag-content pre::-webkit-scrollbar-track{background: rgba(0,0,0,.12)}

/* WordPress specific blocks */
.ag-article .ag-content pre.wp-block-code{
  padding:14px;
}
.ag-article .ag-content .wp-block-preformatted{
  white-space: pre;
  overflow:auto;
}

.ag-summary{
  margin-top:14px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius: 18px;
  padding:14px;
}
.ag-summary__grid{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap:14px;
  align-items:start;
}
.ag-summary__text{margin:0; color:rgba(232,236,255,.88); font-size:14px}
.ag-summary__links{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.ag-chip{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  padding:8px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  color: rgba(232,236,255,.86);
  font-size:13px;
  font-weight:650;
}
.ag-chip:hover{background: rgba(255,255,255,.06); color: var(--ag-text)}
.ag-summary__meta{
  border:1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.2);
  border-radius: 16px;
  padding:10px 12px;
}
.ag-summary__row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:8px 0;
  border-top:1px dashed rgba(255,255,255,.10);
  flex-wrap:wrap;
  align-items:flex-start;
}
.ag-summary__row:first-child{border-top:0}
.ag-summary__k{color:var(--ag-muted); font-size:12.5px}
.ag-summary__v{color:rgba(232,236,255,.88); font-size:12.5px; text-align:end}
.ag-summary__v a{color: rgba(232,236,255,.92); text-decoration:none}
.ag-summary__v a:hover{text-decoration:underline}
.ag-tag{
  display:inline-flex;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  font-size:12px;
  text-decoration:none;
  color: rgba(232,236,255,.84);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.ag-tag:hover{background: rgba(255,255,255,.06); border-color: rgba(124,92,255,.28); color: var(--ag-text); transform: translateY(-1px)}

/* Fallback for themes/plugins output */
.ag-article .tags-links a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  text-decoration:none;
  color: rgba(232,236,255,.84);
  font-size:12px;
}
.ag-article .tags-links a:hover{background: rgba(255,255,255,.06); border-color: rgba(124,92,255,.28); color: var(--ag-text)}
:root[data-theme="light"] .ag-article .tags-links a{
  border-color: rgba(11,16,32,.12);
  background: rgba(11,16,32,.03);
  color: rgba(11,16,32,.78);
}
:root[data-theme="light"] .ag-article .tags-links a:hover{
  background: rgba(11,16,32,.06);
  border-color: rgba(91,69,255,.28);
  color: rgba(11,16,32,.92);
}


.ag-side{
  position:sticky;
  top:88px;
}
.ag-sideBox{
  border:1px solid var(--ag-border);
  background: var(--ag-card);
  border-radius: var(--ag-radius);
  padding:14px;
  max-width:100%;
  overflow-wrap:anywhere;
}
.ag-sideTitle{margin:0 0 10px; font-size:13px; color:var(--ag-muted); text-transform:uppercase; letter-spacing:.12em}
.ag-feature{
  display:grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap:9px;
  padding:9px 10px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.16);
  min-width:0;
}
.ag-feature > div{min-width:0}
.ag-feature + .ag-feature{margin-top:10px}
.ag-feature .ag-icon{display:block; color: var(--ag-accent2)}
.ag-featureText{display:block; font-size:12.75px; color: rgba(232,236,255,.88); overflow-wrap:anywhere; word-break:break-word}
:root[data-theme="light"] .ag-featureText{color: rgba(11,16,32,.86)}

.ag-videoCard{
  margin:14px 0;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius: 18px;
  box-shadow: var(--ag-shadow);
  overflow:hidden;
}
.ag-videoCard__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
}
.ag-videoCard__label{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--ag-muted);
  font-weight:750;
}
.ag-videoCard__link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  font-size:13px;
  color: rgba(232,236,255,.90);
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.ag-videoCard__link:hover{
  border-color: rgba(124,92,255,.35);
  background: rgba(255,255,255,.07);
  color: var(--ag-text);
}
.ag-video{
  position:relative;
  aspect-ratio:16/9;
  background: rgba(0,0,0,.22);
}
.ag-video :where(iframe, video){
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

.ag-thumbCard{
  margin:0 0 10px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  border-radius: 18px;
  overflow:hidden;
}
.ag-thumbCard img{display:block; width:100%; height:200px; object-fit:cover}

.ag-postMeta{
  margin-top:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  border-radius: 18px;
  padding:14px;
}
.ag-tags{display:flex; flex-wrap:wrap; gap:8px}
:root[data-theme="light"] .ag-postMeta{
  border-color: rgba(11,16,32,.12);
  background: rgba(255,255,255,.85);
}
:root[data-theme="light"] .ag-tag{
  border-color: rgba(11,16,32,.12);
  background: rgba(11,16,32,.03);
  color: rgba(11,16,32,.78);
}
:root[data-theme="light"] .ag-tag:hover{
  background: rgba(11,16,32,.06);
  border-color: rgba(91,69,255,.28);
  color: rgba(11,16,32,.92);
}

/* Archives */
.ag-archiveHead{
  margin: 40px 0 30px;
  text-align: center;
}
.ag-archiveTitle{
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.ag-archiveTitle span{
  color: var(--ag-accent);
}
.ag-archiveDesc{
  margin: 12px auto 0;
  color: var(--ag-muted);
  font-size: 15px;
  max-width: 600px;
}
.ag-archiveGrid{
  display: grid;
  gap: 20px;
}
.ag-postCard{
  border: 1px solid var(--ag-border);
  background: var(--ag-card);
  border-radius: var(--ag-radius);
  padding: 24px;
  box-shadow: var(--ag-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
:root[data-theme="light"] .ag-postCard{
  background: rgba(255,255,255,.85);
  box-shadow: 0 4px 14px rgba(15,23,42,.04);
}
.ag-postCard:hover{
  transform: translateY(-2px);
  border-color: rgba(99,102,241,.4);
}
:root[data-theme="light"] .ag-postCard:hover{
  background: rgba(255,255,255,1);
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
}
.ag-postCard__title{
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}
.ag-postCard__title a{
  color: var(--ag-text);
  text-decoration: none;
}
.ag-postCard__title a:hover{
  color: var(--ag-accent);
}
.ag-postCard__meta{
  display: flex;
  gap: 16px;
  color: var(--ag-muted);
  font-size: 13px;
  margin-bottom: 14px;
}
.ag-postCard__meta span{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ag-postCard__excerpt{
  color: var(--ag-muted);
  font-size: 14px;
  line-height: 1.6;
}
.ag-postCard__excerpt p{
  margin: 0;
}
.ag-archivePagination{
  margin-top: 40px;
}
.ag-archivePagination .page-numbers{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--ag-card);
  border: 1px solid var(--ag-border);
  color: var(--ag-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin: 0 4px;
  transition: all .2s;
}
.ag-archivePagination .page-numbers:hover{
  background: rgba(99,102,241,.1);
  border-color: rgba(99,102,241,.4);
  color: var(--ag-accent);
}
.ag-archivePagination .page-numbers.current{
  background: var(--ag-accent);
  border-color: var(--ag-accent);
  color: #fff;
}
:root[data-theme="light"] .ag-archivePagination .page-numbers{
  background: #fff;
}
:root[data-theme="light"] .ag-archivePagination .page-numbers.current{
  color: #fff;
}

.ag-timeline{
  margin-top:18px;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:18px;
}
  margin: 40px 0 30px;
  text-align: center;
}
.ag-archiveTitle{
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.ag-archiveTitle span{
  color: var(--ag-accent);
}
.ag-archiveDesc{
  margin: 12px auto 0;
  color: var(--ag-muted);
  font-size: 15px;
  max-width: 600px;
}
.ag-archiveGrid{
  display: grid;
  gap: 20px;
}
.ag-postCard{
  border: 1px solid var(--ag-border);
  background: var(--ag-card);
  border-radius: var(--ag-radius);
  padding: 24px;
  box-shadow: var(--ag-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
:root[data-theme="light"] .ag-postCard{
  background: rgba(255,255,255,.85);
  box-shadow: 0 4px 14px rgba(15,23,42,.04);
}
.ag-postCard:hover{
  transform: translateY(-2px);
  border-color: rgba(99,102,241,.4);
}
:root[data-theme="light"] .ag-postCard:hover{
  background: rgba(255,255,255,1);
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
}
.ag-postCard__title{
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}
.ag-postCard__title a{
  color: var(--ag-text);
  text-decoration: none;
}
.ag-postCard__title a:hover{
  color: var(--ag-accent);
}
.ag-postCard__meta{
  display: flex;
  gap: 16px;
  color: var(--ag-muted);
  font-size: 13px;
  margin-bottom: 14px;
}
.ag-postCard__meta span{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ag-postCard__excerpt{
  color: var(--ag-muted);
  font-size: 14px;
  line-height: 1.6;
}
.ag-postCard__excerpt p{
  margin: 0;
}
.ag-archivePagination{
  margin-top: 40px;
}
.ag-archivePagination .page-numbers{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--ag-card);
  border: 1px solid var(--ag-border);
  color: var(--ag-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin: 0 4px;
  transition: all .2s;
}
.ag-archivePagination .page-numbers:hover{
  background: rgba(99,102,241,.1);
  border-color: rgba(99,102,241,.4);
  color: var(--ag-accent);
}
.ag-archivePagination .page-numbers.current{
  background: var(--ag-accent);
  border-color: var(--ag-accent);
  color: #fff;
}
:root[data-theme="light"] .ag-archivePagination .page-numbers{
  background: #fff;
}
:root[data-theme="light"] .ag-archivePagination .page-numbers.current{
  color: #fff;
}
  margin-top:18px;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:18px;
}
.ag-timelineItem{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap:14px;
  padding:12px 0;
}
.ag-timelineItem--latest .ag-timelineDate{
  color: rgba(232,236,255,.92);
}
.ag-timelineItem--latest{
  border-radius: 16px;
  padding:14px 12px;
  background: radial-gradient(400px 140px at 15% 10%, rgba(124,92,255,.18), transparent 60%),
    rgba(255,255,255,.02);
  border:1px solid rgba(124,92,255,.30);
}
.ag-badge{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius: 999px;
  border:1px solid rgba(124,92,255,.45);
  background: rgba(124,92,255,.18);
  color: rgba(232,236,255,.92);
  font-size:12px;
  font-weight:750;
  margin-inline-start:10px;
}
.ag-badge--small{
  padding:4px 8px;
  font-size:11.5px;
  margin-inline-start:8px;
  border-color: rgba(34,211,238,.40);
  background: rgba(34,211,238,.14);
}
.ag-badge--audience{
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
}
.ag-badge--tech{
  border-color: rgba(124,92,255,.35);
  background: rgba(124,92,255,.12);
}
.ag-badge--tech-platform{
  border-color: rgba(34,211,238,.35);
  background: rgba(34,211,238,.12);
}
.ag-badge--tech-delivery{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
}
.ag-badgeRow{
  margin:8px 0 6px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.ag-summary__v--badges{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  justify-content:flex-end;
}
.ag-postRow__badges{
  margin-top:8px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.ag-timelineItem + .ag-timelineItem{border-top:1px dashed rgba(255,255,255,.10)}
.ag-timelineDate{
  color:var(--ag-muted);
  font-weight:650;
  font-size:13px;
}
.ag-timelineBody h3{margin:0 0 6px; font-size:15px}
.ag-timelineBody .ag-timelineText{
  color:rgba(232,236,255,.88);
  font-size:13.5px;
}
.ag-bullets{
  margin:10px 0 0;
  padding-left: 18px;
}
.ag-bullets li{margin:6px 0}

.ag-toc__list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.ag-toc__item a{
  display:block;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.14);
  color: rgba(232,236,255,.86);
  text-decoration:none;
  font-size:13px;
}
.ag-toc__item a:hover{background: rgba(255,255,255,.06); color: var(--ag-text)}
.ag-toc__item--l3 a{margin-left:10px; opacity:.92}

.ag-archiveHead{margin-bottom:14px}
.ag-archiveTitle{margin:0 0 6px; font-size:22px; letter-spacing:-.2px}
.ag-archiveDesc{color:var(--ag-muted); font-size:13.5px}
.ag-monthHeading{
  margin:18px 0 10px;
  font-size:13px;
  color:var(--ag-muted);
  text-transform:uppercase;
  letter-spacing:.12em;
}
.ag-postRow{margin:0}
.ag-postRow__link{
  display:grid;
  grid-template-columns: 64px 1fr;
  gap:14px;
  text-decoration:none;
  border:1px solid var(--ag-border);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius: 18px;
  padding:14px;
}
.ag-postRow__link:hover{
  border-color: rgba(124,92,255,.42);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
}
.ag-postRow__date{
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:10px 8px;
  line-height:1.05;
}
.ag-postRow__date strong{font-size:18px}
.ag-postRow__date span{font-size:12px; color:var(--ag-muted); margin-top:6px}
.ag-postRow__title{margin:0; font-size:15.5px; letter-spacing:-.2px}
.ag-postRow__title .ag-badge{vertical-align:middle}
.ag-postRow__excerpt{margin:8px 0 0; color:var(--ag-muted); font-size:13.5px}
.ag-postRow__cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  font-weight:650;
  color: rgba(232,236,255,.88);
}
.ag-archiveList{display:flex; flex-direction:column; gap:12px}
.ag-archivePagination{margin-top:16px; color:var(--ag-muted)}

.ag-archivePagination :where(.navigation.pagination, .nav-links){
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
}
.ag-archivePagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  height:40px;
  padding:0 12px;
  border-radius: 14px;
  border:1px solid var(--ag-border);
  background: rgba(255,255,255,.03);
  color: var(--ag-muted);
  text-decoration:none;
  font-weight:700;
}
.ag-archivePagination .page-numbers:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(124,92,255,.28);
  color: var(--ag-text);
}
.ag-archivePagination .page-numbers.current{
  background: rgba(124,92,255,.18);
  border-color: rgba(124,92,255,.35);
  color: rgba(232,236,255,.95);
}
.ag-archivePagination .page-numbers.dots{
  border-style:dashed;
  background: transparent;
}
:root[data-theme="light"] .ag-archivePagination .page-numbers{
  background: rgba(11,16,32,.03);
}
:root[data-theme="light"] .ag-archivePagination .page-numbers.current{
  color: rgba(11,16,32,.95);
  background: rgba(91,69,255,.14);
  border-color: rgba(91,69,255,.28);
}
:root[data-theme="light"] .ag-archivePagination .page-numbers:hover{
  background: rgba(11,16,32,.06);
}

:root[data-theme="light"] .ag-postRow__link{
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.70));
}
:root[data-theme="light"] .ag-postRow__link:hover{
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.75));
}
:root[data-theme="light"] .ag-postRow__date{
  border-color: rgba(11,16,32,.12);
  background: rgba(11,16,32,.03);
}
:root[data-theme="light"] .ag-postRow__cta{color: rgba(11,16,32,.80)}

.ag-postRow--featured .ag-postRow__link{
  border-color: rgba(34,211,238,.35);
  box-shadow: 0 10px 30px rgba(34,211,238,.08);
}

.ag-more{
  margin-top:10px;
  border:1px dashed rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(0,0,0,.12);
  padding:8px 12px;
}
.ag-more__summary{
  cursor:pointer;
  color: rgba(232,236,255,.88);
  font-weight:650;
  padding:8px 6px;
}
.ag-more__body{padding:6px 0 2px}
.ag-footer{
  border-top:1px solid rgba(255,255,255,.08);
  padding:22px 0;
  color:var(--ag-muted);
  font-size:13px;
}
.ag-footerNav{
  list-style:none;
  display:flex;
  gap:12px;
  padding:0;
  margin:0;
}
.ag-footerNav li{margin:0}
.ag-footerNav a{color:var(--ag-muted); text-decoration:none}
.ag-footerNav a:hover{color:var(--ag-text)}
.ag-footer__inner{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.ag-social{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-start;
  padding:14px 0 0;
}
.ag-social__link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(232,236,255,.9);
}
.ag-social__link:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(124,92,255,.35);
}
.ag-social__name{font-size:13px; color: rgba(232,236,255,.82)}

:root[data-theme="light"] .ag-social__link{
  border-color: rgba(11,16,32,.12);
  background: rgba(255,255,255,.70);
  color: rgba(11,16,32,.88);
}
:root[data-theme="light"] .ag-social__name{color: rgba(11,16,32,.72)}
:root[data-theme="light"] .ag-social__link:hover{
  background: rgba(11,16,32,.04);
  border-color: rgba(91,69,255,.28);
}

@media (max-width: 1080px){
  .ag-hero{grid-template-columns: 1fr}
  .ag-layout{grid-template-columns: 1fr}
  .ag-side{position:static}
  .ag-cards{grid-template-columns: 1fr}
  .ag-serviceGrid{grid-template-columns: 1fr}
  .ag-summary__grid{grid-template-columns: 1fr}
  .ag-navToggle{display:inline-flex}
  .ag-nav{
    position:absolute;
    right:16px;
    top:60px;
    flex-direction:column;
    align-items:stretch;
    min-width: 230px;
    padding:10px;
    border:1px solid var(--ag-border);
    background: rgba(255,255,255,.96);
    border-radius: 18px;
    box-shadow: var(--ag-shadow);
    display:none;
  }
  .ag-nav[data-open]{display:flex}
}

/* Better behavior on desktop zoom (e.g. 125%/150%) */
@media (max-width: 1240px){
  .ag-layout{grid-template-columns: 1fr}
  .ag-side{position:static}
}

@media (max-width: 1080px){
  :root[data-theme="dark"] .ag-nav{background: rgba(11,16,32,.94)}
}

@media (max-width: 560px){
  .ag-summary__v{text-align:start}
  /* Device lists in code blocks become readable */
  .ag-article .ag-content pre{
    white-space: pre-wrap;
    word-break: break-word;
  }
}

/* Minimal admin repeater look (WP inherits, this just adds spacing) */
.alephgsm-repeat-list .ag-admin-item{
  border:1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.02);
  border-radius: 10px;
  padding:10px;
  margin-top:10px;
}

/* Trusted By */
.ag-trusted{
  margin: 60px auto 30px;
  text-align: start;
  background: var(--ag-card);
  border: 1px solid var(--ag-border);
  border-radius: 24px;
  padding: 30px 0;
  box-shadow: var(--ag-shadow);
  overflow: hidden;
}
:root[data-theme="light"] .ag-trusted{
  background: rgba(255,255,255,.65);
  box-shadow: 0 4px 14px rgba(15,23,42,.04);
}
:root[data-theme="light"] .ag-trusted__logos-wrap::before {
  background: linear-gradient(to right, #f8fafc, transparent);
}
:root[data-theme="light"] .ag-trusted__logos-wrap::after {
  background: linear-gradient(to left, #f8fafc, transparent);
}
.ag-trusted__title{
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ag-text);
  margin: 0 30px 8px;
}
.ag-trusted__desc{
  font-size: 13.5px;
  color: var(--ag-muted2);
  margin: 0 30px 24px;
}
.ag-trusted__logos{
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none; /* Hide scrollbar for clean look */
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.ag-trusted__logos::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}
.ag-trusted__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ag-border);
  background: var(--ag-card);
  color: var(--ag-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: all .2s;
  opacity: 0;
  pointer-events: none;
}
.ag-trusted:hover .ag-trusted__nav{
  opacity: 1;
  pointer-events: auto;
}
.ag-trusted__nav[disabled]{
  opacity: 0.3 !important;
  pointer-events: none !important;
}
.ag-trusted__nav:hover{
  background: rgba(99,102,241,.1);
  border-color: rgba(99,102,241,.4);
  color: var(--ag-accent);
}
.ag-trusted__nav--prev{
  left: 0;
}
.ag-trusted__nav--next{
  right: 0;
}
:root[data-theme="light"] .ag-trusted__nav{
  background: #fff;
  box-shadow: 0 4px 12px rgba(15,23,42,.1);
}

.ag-trusted__logos-wrap {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.ag-trusted__logos-wrap::before,
.ag-trusted__logos-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.ag-trusted__logos-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--ag-card), transparent);
}
.ag-trusted__logos-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--ag-card), transparent);
}

.ag-trusted__item{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 64px;
  padding: 12px 20px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--ag-border);
  border-radius: 16px;
  transition: border-color .3s, background .3s;
  box-sizing: border-box;
}
:root[data-theme="light"] .ag-trusted__item{
  background: rgba(255,255,255,.8);
  box-shadow: 0 2px 8px rgba(15,23,42,.03);
}

.ag-trusted__img{
  max-width: 110px;
  height: auto;
  max-height: 34px;
  object-fit: contain;
  opacity: 0.65;
  filter: grayscale(100%) contrast(120%);
  transition: all .3s ease;
}
:root[data-theme="light"] .ag-trusted__img{
  opacity: 0.8;
  filter: grayscale(100%);
}

.ag-trusted__item:hover{
  border-color: rgba(99,102,241,.4);
  background: rgba(255,255,255,.05);
}
:root[data-theme="light"] .ag-trusted__item:hover{
  background: #fff;
}
.ag-trusted__item:hover .ag-trusted__img{
  opacity: 1;
  filter: grayscale(0%) contrast(100%);
}

/* Categories Section */
.ag-section--categories {
  margin-top: 50px;
  padding-top: 50px;
  border-top: 1px solid var(--ag-border);
}
.ag-catsGrid{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}
.ag-catCard{
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--ag-card);
  border: 1px solid var(--ag-border);
  border-radius: 999px;
  color: var(--ag-text);
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  white-space: nowrap;
}
:root[data-theme="light"] .ag-catCard{
  background: rgba(255,255,255,.8);
  box-shadow: 0 4px 12px rgba(15,23,42,.03);
}
.ag-catCard:hover{
  border-color: rgba(99,102,241,.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
:root[data-theme="light"] .ag-catCard:hover{
  border-color: rgba(99,102,241,.4);
  background: #fff;
  box-shadow: 0 6px 16px rgba(15,23,42,.06);
}
.ag-catCard__name{
  font-weight: 600;
  font-size: 14.5px;
}
.ag-catCard__count{
  font-size: 11.5px;
  color: var(--ag-muted);
  background: rgba(255,255,255,.05);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.05);
}
:root[data-theme="light"] .ag-catCard__count{
  background: rgba(11,16,32,.03);
  border-color: rgba(11,16,32,.05);
}
