/* Term HERO — EXACT port of the Penetration Testing hero (page-id-259).
   Scope: body.terim-hero. Only the hero changes; the BODY IS KEPT.
   To revert = delete the privia-terim-hero* files. */
/* sizma-testi.css — isolated HERO design for the Penetration Testing service page (page-id-259).
   COLOURS UNCHANGED: the site’s original brand palette (navy #08112c / #0c3569, purple
   #7a25ca->#6990e8 / #7f24cf, cyan #86dbff, lavender #dbdaff) is kept.
   The STRUCTURE of the Red Team hero (page-id-263) was ported one to one; only the red tones
   were swapped for brand tones. NO recolour — hero block only.
   Loaded by privia-terim-hero.php only on single Cybersecurity Terms posts, AFTER custom.min.css.
   All selectors are scoped with `body.terim-hero` -> no other page is affected. */

/* ============================================================================
   HERO (SPLIT — pmap.io/careers style, in brand colours):
   LEFT = brand navy->purple background + "spotlit" purple glow + text.
   RIGHT = image; its left edge fades out with a mask and blends SOFTLY into the background (no card/hard
   edge, NO stretch). The theme hero bg (service-detail-hero-bg.webp, 100% 100%
   stretch = the source of the "break") is fully overridden.
   Image: sizma-testi.png (absolute URL, in the theme markup). A hi-res file placed at the same URL
   is picked up automatically. This page only. */
body.terim-hero .service-hero-wrapper.hero-service-detail{
    position:relative !important;
    overflow:hidden;
    min-height:100vh !important;
    height:auto !important;
    max-height:none !important;
    /* fully override the theme hero bg (webp/stretch): purple glow + brand navy->purple background */
    background:
        radial-gradient(72% 85% at 24% 34%, rgba(122,37,202,.40) 0%, rgba(122,37,202,0) 55%),  /* light/glow (brand purple) */
        linear-gradient(115deg, #08112c 0%, #0d1f45 46%, #2b1a5c 100%) !important;               /* brand navy->purple background */
    background-size:auto, cover !important;
    background-position:center, center !important;
    background-repeat:no-repeat !important;
}
/* RIGHT image: FULL HEIGHT (via inset), covers the right side, left edge blends into the background
   with a mask. Theme rules (height:356px / max-height:300px / height:auto / max-height:inherit)
   + any inline style are firmly overridden with !important. */
body.terim-hero .service-hero-wrapper.hero-service-detail img.service-detail-hero-right{
    position:absolute !important;
    top:0 !important; bottom:0 !important; right:0 !important; left:auto !important;
    z-index:1 !important;
    width:60% !important; height:100% !important;
    min-width:0 !important; min-height:0 !important;
    max-width:none !important; max-height:none !important;
    margin:0 !important; border-radius:0 !important;
    /* 40%: the hooded "Privia SECURITY" figure fades softly into the background at the left mask edge;
       the "ACCESS GRANTED" monitors stay in the CLEAR area on the right. */
    object-fit:cover !important; object-position:50% 50% !important;
    -webkit-mask-image:linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 24%, #000 48%);
            mask-image:linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 24%, #000 48%);
}
/* top scrim: keeps the fixed nav readable over the image */
body.terim-hero .service-hero-wrapper.hero-service-detail::after{
    content:""; position:absolute; top:0; left:0; right:0; height:200px; z-index:2;
    background:linear-gradient(180deg, rgba(6,10,24,.65) 0%, rgba(6,10,24,0) 100%);
    pointer-events:none;
}

/* ==== HERO-BEAM: same light effect as pmap.io/careers, in BRAND colours ====
   4 blurred (70px) vertical light beams tilted 14 degrees; each one drifts
   with translateX at a different speed/width/direction. On the dark navy background, cyan/
   purple/white/lavender LIGHT tones look like "light" (same logic as the pmap original).
   The beam divs are injected into the hero by the inline footer script in functions.php
   (.pt-hero-flow-bg). z-index:2 -> above the image (z1), below the text (z3). */
body.terim-hero .service-hero-wrapper.hero-service-detail .pt-hero-flow-bg{
    position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:2;
}
body.terim-hero .pt-hero-flow-bg .hero-beam{
    position:absolute; top:-15%; height:130%; width:260px;
    filter:blur(70px); will-change:transform;
}
/* cyan (#86dbff) */
body.terim-hero .pt-hero-flow-bg .hero-beam--p1{
    background:linear-gradient(to bottom, transparent 0%, rgba(134,219,255,0) 10%, rgba(134,219,255,.55) 50%, rgba(134,219,255,0) 90%, transparent 100%);
    transform:rotate(14deg); opacity:.85; animation:pt-beam-drift-1 28s linear infinite;
}
/* purple (#a78bfa / brand purple family) */
body.terim-hero .pt-hero-flow-bg .hero-beam--p2{
    background:linear-gradient(to bottom, transparent 0%, rgba(167,139,250,0) 10%, rgba(167,139,250,.5) 50%, rgba(167,139,250,0) 90%, transparent 100%);
    transform:rotate(14deg); opacity:.7; animation:pt-beam-drift-2 36s linear infinite; width:320px;
}
/* warm white */
body.terim-hero .pt-hero-flow-bg .hero-beam--p3{
    background:linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0) 10%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 90%, transparent 100%);
    transform:rotate(14deg); opacity:.75; animation:pt-beam-drift-3 44s linear infinite; width:200px;
}
/* lavender (#dbdaff) */
body.terim-hero .pt-hero-flow-bg .hero-beam--p4{
    background:linear-gradient(to bottom, transparent 0%, rgba(219,218,255,0) 15%, rgba(219,218,255,.5) 50%, rgba(219,218,255,0) 85%, transparent 100%);
    transform:rotate(14deg); opacity:.7; animation:pt-beam-drift-4 52s linear infinite; width:280px;
}
@keyframes pt-beam-drift-1{ 0%{transform:translateX(-15vw) rotate(14deg)} 100%{transform:translateX(115vw) rotate(14deg)} }
@keyframes pt-beam-drift-2{ 0%{transform:translateX(110vw) rotate(14deg)} 100%{transform:translateX(-20vw) rotate(14deg)} }
@keyframes pt-beam-drift-3{ 0%{transform:translateX(-10vw) rotate(14deg)} 100%{transform:translateX(110vw) rotate(14deg)} }
@keyframes pt-beam-drift-4{ 0%{transform:translateX(105vw) rotate(14deg)} 100%{transform:translateX(-15vw) rotate(14deg)} }
@media (prefers-reduced-motion: reduce){
    body.terim-hero .pt-hero-flow-bg .hero-beam{ animation:none !important }
}

/* The CONTAINER must be STATIC: otherwise the container becomes the absolute image’s containing block
   and height:100% = text height -> the image turns into a "strip" (this bug happened on red-team).
   Once static, the image’s containing block is the HERO -> it fills the full height. */
body.terim-hero .service-hero-wrapper.hero-service-detail .service-hero-container{
    position:static !important;
    width:100% !important;
    justify-content:flex-start !important;
    align-items:center !important;
}
/* bring the text ABOVE the image (z1) and the light beams (z2) */
body.terim-hero .service-hero-wrapper.hero-service-detail .service-detail-hero-left{
    position:relative !important; z-index:3 !important;
    max-width:600px !important;
}
/* MOBILE (<=1024): image in the flow, below the text, soft bottom fade. Mobile also uses !important
   to override the desktop !important (and wins because it comes later in the file). */
@media (max-width:1024px){
    body.terim-hero .service-hero-wrapper.hero-service-detail{min-height:auto !important}
    body.terim-hero .service-hero-wrapper.hero-service-detail img.service-detail-hero-right{
        position:relative !important;
        top:auto !important; bottom:auto !important; right:auto !important; left:auto !important;
        width:100% !important; height:auto !important;
        max-height:340px !important;
        -webkit-mask-image:linear-gradient(180deg, #000 55%, transparent 100%);
                mask-image:linear-gradient(180deg, #000 55%, transparent 100%);
    }
    body.terim-hero .service-hero-wrapper.hero-service-detail::after{height:120px}
}

/* hide the default term hero (service-hero is injected in its place) */
body.terim-hero .cover-area.blog-details-hero{display:none !important;}

/* deter easy access to the hero image (right-click / drag / save) */
body.terim-hero .service-hero-wrapper.hero-service-detail img.service-detail-hero-right{
  pointer-events:none !important;
  -webkit-user-drag:none; -khtml-user-drag:none; user-select:none;
  -webkit-user-select:none; -webkit-touch-callout:none;
}

/* --- Service CTA (design 30, clean corporate) --- */
body.terim-hero .pth-cta-30{font-family:'Plus Jakarta Sans',system-ui,sans-serif;background:#fff;border:1px solid #eceef4;border-radius:16px;padding:38px 34px;text-align:center;margin:30px 0;box-shadow:0 10px 30px rgba(16,20,40,.06);}
body.terim-hero .pth-cta-30 .pth-eb{font-size:11.5px;letter-spacing:.2em;text-transform:uppercase;font-weight:800;color:#7a25ca;}
body.terim-hero .pth-cta-30 h3{margin:12px auto 8px;font-size:24px;font-weight:800;color:#0d1330;line-height:1.25;white-space:nowrap;}
@media(max-width:640px){body.terim-hero .pth-cta-30 h3{white-space:normal;font-size:20px;}}
body.terim-hero .pth-cta-30 p{margin:0 auto 20px;color:#5a6072;font-size:15px;max-width:52ch;line-height:1.55;}
body.terim-hero .pth-cta-30 .pth-btn{display:inline-flex;align-items:center;gap:9px;text-decoration:none;font-weight:700;font-size:15px;padding:14px 26px;border-radius:12px;color:#fff;background:linear-gradient(100deg,#1b2a6b 0%,#7a25ca 100%);box-shadow:0 10px 26px rgba(122,37,202,.28);transition:transform .15s,box-shadow .15s;}
body.terim-hero .pth-cta-30 .pth-btn:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(122,37,202,.4);}
body.terim-hero .pth-cta-30 .pth-btn svg{width:17px;height:17px;stroke:#fff;fill:none;stroke-width:2.2;stroke-linecap:round;}
