:root{
  --ap-bg: #0b1220;
  --ap-ink: #0f172a;
  --ap-paper: #ffffff;
  --ap-paper-2: #f6f8fb;
  --ap-line: rgba(15,23,42,.10);
  --ap-muted: rgba(15,23,42,.65);
  --ap-accent: #00D4FF;
  --ap-accent2: #7CFFB2;
  --ap-shadow: 0 18px 60px rgba(2,6,23,.10);
  --ap-radius: 18px;
  --ap-radius2: 26px;
  --ap-max: 1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ap-ink);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(0,212,255,.20), transparent 60%),
              radial-gradient(1000px 520px at 90% 0%, rgba(124,255,178,.18), transparent 55%),
              linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
}

a{color:inherit}
img{max-width:100%; height:auto}
.ap-container{max-width:var(--ap-max); margin:0 auto; padding:0 18px}

/* Accessibility */
.screen-reader-text{position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}
:focus-visible{outline: 3px solid rgba(0,212,255,.55); outline-offset: 3px}

/* Top bar */
.ap-topbar{
  background: linear-gradient(90deg, rgba(11,18,32,1), rgba(11,18,32,.92));
  color: #E9F4FF;
  position: sticky;
  top:0;
  z-index: 50;
  border-bottom: 1px solid rgba(233,244,255,.10);
  backdrop-filter: blur(10px);
}
.ap-topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 0;
  gap: 14px;
  flex-wrap: wrap;
}
.ap-brand{display:flex; align-items:center; gap:12px; min-width: 180px; text-decoration:none}
.ap-brand img{width: 160px; height:auto; display:block}
.ap-nav{display:flex; align-items:center; gap: 6px; flex-wrap:wrap}
.ap-nav a{
  display:inline-block;
  padding: 9px 10px;
  border-radius: 999px;
  color: rgba(233,244,255,.90);
  font-weight: 650;
  font-size: 14px;
  text-decoration:none;
}
.ap-nav a:hover{background: rgba(233,244,255,.10)}
.ap-actions{display:flex; align-items:center; gap:10px}
.ap-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(233,244,255,.18);
  background: rgba(233,244,255,.08);
  color:#E9F4FF;
  font-weight:800;
  font-size: 14px;
  text-decoration:none;
  cursor:pointer;
}
.ap-btn:hover{background: rgba(233,244,255,.14)}
.ap-btn.primary{
  border: none;
  background: linear-gradient(135deg, var(--ap-accent), var(--ap-accent2));
  color: #06101f;
}
.ap-menu-btn{
  display:none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(233,244,255,.18);
  background: rgba(233,244,255,.08);
  color:#E9F4FF;
}

/* Hero */
.ap-hero{padding: 34px 0 12px}
.ap-hero-grid{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 18px;
  align-items: stretch;
}
.ap-card{
  background: var(--ap-paper);
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius2);
  box-shadow: var(--ap-shadow);
  overflow:hidden;
}
.ap-lead{padding: 26px; position: relative; isolation: isolate}
.ap-kicker{
  display:inline-flex; align-items:center; gap:10px;
  font-weight:850;
  letter-spacing: .08em;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(15,23,42,.70);
}
.ap-kicker .dot{width:10px; height:10px; border-radius:999px; background: linear-gradient(135deg, var(--ap-accent), var(--ap-accent2))}
.ap-lead h1{margin: 12px 0 10px; font-size: clamp(28px, 3.1vw, 42px); line-height: 1.08}
.ap-lead p{margin: 0 0 16px; color: var(--ap-muted); font-size: 16px; line-height: 1.7}
.ap-badges{display:flex; flex-wrap:wrap; gap:8px; margin-top: 10px}
.ap-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 7px 10px; border-radius: 999px;
  background: rgba(2,6,23,.04);
  border: 1px solid rgba(2,6,23,.06);
  font-weight:800; font-size: 13px;
  color: rgba(15,23,42,.80);
}
.ap-badge strong{color: rgba(15,23,42,1)}
.ap-lead::before{
  content:""; position:absolute; inset:-40%;
  background: radial-gradient(closest-side at 25% 30%, rgba(0,212,255,.25), transparent 60%),
              radial-gradient(closest-side at 80% 20%, rgba(124,255,178,.22), transparent 55%);
  z-index:-1; transform: rotate(-7deg);
}
.ap-hr{height:1px; background: var(--ap-line); margin: 18px 0}

/* Sidebar */
.ap-sidebar{
  padding: 20px;
  display:flex;
  flex-direction:column;
  gap: 14px;
  background: linear-gradient(180deg, rgba(11,18,32,1) 0%, rgba(11,18,32,.92) 100%);
  color: #E9F4FF;
  border: 1px solid rgba(233,244,255,.10);
}
.ap-sidebar h3{margin:0; font-size: 18px}
.ap-sidebar p{margin:0; color: rgba(233,244,255,.75); line-height: 1.6}
.ap-field{display:flex; gap:10px}
.ap-input{
  flex:1; padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(233,244,255,.18);
  background: rgba(233,244,255,.08);
  color:#E9F4FF;
  outline:none;
}
.ap-input::placeholder{color: rgba(233,244,255,.55)}
.ap-small{font-size: 12px; color: rgba(233,244,255,.62)}

/* Sections / Grid */
.ap-section{padding: 16px 0 38px}
.ap-section-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap: 14px;
  margin: 18px 0 12px;
  flex-wrap: wrap;
}
.ap-section-head h2{margin:0; font-size: 20px; letter-spacing: .01em}
.ap-section-head p{margin:0; color: var(--ap-muted); font-size: 14px}

.ap-grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.ap-tile{
  background: var(--ap-paper);
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
  overflow:hidden;
  box-shadow: 0 14px 36px rgba(2,6,23,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ap-tile:hover{transform: translateY(-2px); box-shadow: 0 18px 48px rgba(2,6,23,.10)}
.ap-tile-top{padding: 16px 16px 8px; display:flex; justify-content:space-between; gap: 12px; align-items:flex-start}
.ap-pill{
  display:inline-flex; align-items:center;
  padding: 6px 10px; border-radius: 999px;
  font-weight:900; font-size: 12px;
  background: rgba(0,212,255,.10);
  border: 1px solid rgba(0,212,255,.18);
  color: rgba(3,105,161,1);
}
.ap-tile h3{margin:0; padding: 0 16px; font-size: 16px; line-height: 1.3}
.ap-tile p{margin: 8px 0 0; padding: 0 16px 14px; color: var(--ap-muted); line-height: 1.6; font-size: 14px}
.ap-more{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--ap-line);
  font-weight: 900;
  color: rgba(2,6,23,.78);
  text-decoration:none;
}
.ap-more:hover{background: rgba(2,6,23,.03)}

/* Content pages */
.ap-content-card{
  padding: 18px;
  border-radius: var(--ap-radius2);
}
.ap-entry-title{margin: 0 0 10px}
.ap-meta{color: var(--ap-muted); font-size: 13px; font-weight: 700}
.ap-content{line-height: 1.85}
.ap-content a{color: rgba(2,132,199,1)}
.ap-content a:hover{text-decoration:underline}

/* WordPress blocks / images */
.wp-block-image img{border-radius: 14px}
.wp-block-quote{border-left: 4px solid rgba(0,212,255,.35); padding-left: 14px; margin-left:0}

/* Widgets */
.widget{padding: 16px; border:1px solid var(--ap-line); border-radius: var(--ap-radius); background: var(--ap-paper)}
.widget-title{margin:0 0 10px; font-size: 16px}

/* Footer */
.ap-footer{
  background: #071022;
  color: rgba(233,244,255,.90);
  padding: 34px 0;
  border-top: 1px solid rgba(233,244,255,.10);
}
.ap-footer-grid{
  display:grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 18px;
}
.ap-footer a{color: rgba(233,244,255,.86); text-decoration:none}
.ap-footer a:hover{color:#fff}
.ap-footer h4{margin:0 0 10px}
.ap-footer p{margin:0; color: rgba(233,244,255,.70); line-height: 1.7}
.ap-mini{margin-top:14px; color: rgba(233,244,255,.55); font-size: 12px}

/* Responsive */
@media (max-width: 940px){
  .ap-hero-grid{grid-template-columns: 1fr}
  .ap-menu-btn{display:inline-flex; align-items:center; justify-content:center}
  .ap-nav{display:none; width: 100%}
  .ap-nav.open{display:flex; padding: 12px 0 0}
  .ap-grid{grid-template-columns: 1fr 1fr}
  .ap-footer-grid{grid-template-columns: 1fr}
}
@media (max-width: 520px){
  .ap-grid{grid-template-columns: 1fr}
  .ap-brand img{width: 140px}
  .ap-lead{padding: 20px}
}

/* WP menu reset */
.ap-nav ul{list-style:none; padding:0; margin:0; display:flex; gap:6px; flex-wrap:wrap}
.ap-nav li{list-style:none; margin:0; padding:0}
.ap-nav li a{display:inline-block}


/* Header layout tweak: logo left, menu right */
.ap-topbar-inner{flex-wrap:nowrap}
.ap-nav{margin-left:auto}
.ap-brand .custom-logo{max-height:48px; width:auto; height:auto; display:block}
.ap-brand .custom-logo-link{display:inline-flex; align-items:center}
@media (max-width: 940px){
  .ap-topbar-inner{flex-wrap:wrap}
  .ap-nav{margin-left:0}
}

/* force LTR header: keep logo visually left and menu right even on RTL sites */
.ap-topbar{direction:ltr}
.ap-topbar .ap-nav{direction:ltr}

/* Header full-width container on large screens */
.ap-topbar .ap-container{max-width:none}

/* Content + sidebar layouts */
.ap-layout{display:grid; grid-template-columns: 1.35fr .65fr; gap: 18px; align-items:start}
@media (max-width: 940px){ .ap-layout{grid-template-columns: 1fr} }

/* Logo sizing */
.custom-logo, .custom-logo-link img, .ap-brand img {height:50px; width:auto; max-height:50px}

/* Footer widgets: keep same background as footer (no white cards) */
.ap-footer .widget{
  background: transparent;
  border-color: rgba(233,244,255,.14);
}
.ap-footer .widget-title{
  color: rgba(233,244,255,.92);
}
.ap-footer .widget a{color: rgba(233,244,255,.86)}
.ap-footer .widget a:hover{color:#fff}
.ap-footer .widget p, .ap-footer .widget li{color: rgba(233,244,255,.74)}
.ap-footer-bottom{margin-top:18px; padding-top:14px; border-top:1px solid rgba(233,244,255,.10)}

/* Sidebar widget areas (match footer style: dark background, no white widget cards) */
.ap-sidebar-area{
  background:#071022;
  color: rgba(233,244,255,.90);
  border: 1px solid rgba(233,244,255,.10);
}
.ap-sidebar-title{margin:0 0 10px; font-size:18px; color:#E9F4FF}
.ap-sidebar-hint{margin:0 0 14px; color: rgba(233,244,255,.75); line-height:1.6}
.ap-widgets{display:grid; gap:12px}
.ap-sidebar-area .widget{
  background: transparent;
  border-color: rgba(233,244,255,.14);
}
.ap-sidebar-area .widget-title{
  color: rgba(233,244,255,.92);
}
.ap-sidebar-area .widget a{color: rgba(233,244,255,.86)}
.ap-sidebar-area .widget a:hover{color:#fff}
.ap-sidebar-area .widget p, .ap-sidebar-area .widget li{color: rgba(233,244,255,.74)}

/* Custom widgets list */
.ap-widget-list{display:grid; gap:10px}
.ap-widget-item{
  display:block;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(233,244,255,.14);
  background: rgba(233,244,255,.06);
  text-decoration:none;
}
.ap-widget-title{font-weight:900; line-height:1.35; color:#E9F4FF}
.ap-widget-item:hover{background: rgba(233,244,255,.10)}
