/* /services (frontend/training.blade.php, rendered by servicesController@getServices): hero, a navy sidebar with the
   VAPT / GRC / SOC groups, and modern service cards that fade up when a category opens. */

/* the old "Don't just learn it, Master it!" training banner doesn't belong on the services page */
.cn-bg_services_mobile { display: none !important; }

/* hero */
.svx-hero { position: relative; overflow: hidden; padding: 50px 0 44px; color: #fff;
    background: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px) 0 0 / 22px 22px, #15416e; }
.svx-hero .container { position: relative; }
.svx-hero__kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12.5px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: #ffb37a; }
.svx-hero__kicker::before { content: ""; width: 28px; height: 2px; background: #f07f22; }
.svx-hero__title { max-width: 820px; margin: 0 0 12px; font-size: clamp(28px, 3vw, 44px); font-weight: 700; line-height: 1.15; color: #fff; text-transform: none; }
.svx-hero__title span { color: #ffa24c; }
.svx-hero__lead { max-width: 680px; margin: 0 0 24px; font-size: 16px; line-height: 1.7; color: #d3deec; }
.svx-hero__stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.svx-hero__stats li { display: flex; flex-direction: column; min-width: 140px; padding: 10px 16px; border-radius: 12px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); border-left: 3px solid #f07f22; }
.svx-hero__stats strong { font-size: 20px; line-height: 1.25; color: #fff; }
.svx-hero__stats span { font-size: 12.5px; color: #c3d2e6; }
.svx-hero > .container > * { animation: svx-up .8s cubic-bezier(.16, 1, .3, 1) both; }
.svx-hero__title { animation-delay: .08s !important; }
.svx-hero__lead { animation-delay: .16s !important; }
.svx-hero__stats { animation-delay: .24s !important; }
@keyframes svx-up { from { opacity: 0; transform: translateY(18px); } }

@media (min-width: 992px) {
    .training-page.svx { background: #eef2f7; padding: 34px 0 60px !important; }

    /* sidebar */
    .svx .cc-sidebar { overflow: hidden; border-radius: 14px; background: #fff !important; border: 1px solid #dfe7f1; box-shadow: 0 14px 32px -26px rgba(15, 42, 74, .5); }
    .svx .categorytitle { display: flex; align-items: center; gap: 10px; margin: 0 !important; padding: 15px 18px !important; background: #15416e !important;
        border-bottom: 3px solid #f07f22; color: #fff !important; font-size: 14px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
    .svx .categorytitle::after, .svx .categorytitle::before { display: none !important; }
    .svx .categorytitle i { color: #ffb37a; }
    /* sidebar head: white, with the catalogue size (replaces the dark "Browse services" bar) */
    .svx .svx-side-head { padding: 16px 16px 14px; background: #fff; border-bottom: 3px solid #f07f22; }
    .svx .svx-side-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #f07f22; }
    .svx .svx-side-kicker::before { content: ""; width: 18px; height: 2px; background: #f07f22; }
    .svx .svx-side-title { margin: 4px 0 0; font-size: 18px; font-weight: 700; line-height: 1.2; color: #15416e; }
    .svx .ecsp_div { background: #fff !important; padding: 0 !important; }
    .svx .tab2 { margin: 0 !important; padding: 0 !important; }
    .svx .group-heading { display: flex !important; align-items: center; justify-content: space-between; margin: 0 !important; padding: 10px 18px !important;
        background: #eef3f9 !important; border-top: 1px solid #dfe7f1; border-radius: 0 !important; color: #15416e !important;
        font-size: 12.5px !important; font-weight: 700 !important; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
    .svx .group-heading { justify-content: flex-start !important; gap: 10px; padding: 5px 14px !important; background: #15416e !important; color: #fff !important;
        border-top: 1px solid rgba(255, 255, 255, .08); }
    .svx .svx-group-icon { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
        background: rgba(240, 127, 34, .2); color: #ffb37a; font-size: 12px; }
    .svx .svx-group-name { flex: 1; font-size: 12.5px; line-height: 1.2; font-weight: 700; letter-spacing: .14em; color: #ffb37a; }
    .svx .group-heading .toggle-icon { font-size: 18px; color: #fff; }
    /* practice list: white, rounded rows with a dot that turns into an arrow; the open practice is a light-blue
       pill with an orange bar on the left and an arrow on the right (distinct from the blue group bars) */
    .svx .ecsp_div { padding: 6px 8px 10px !important; }
    .svx .group-heading { margin: 8px 0 4px !important; border-radius: 10px !important; border-top: 0 !important; }
    .svx .group-categories, .svx .tab2 { margin: 0 !important; padding: 0 !important; background: #fff !important; }   /* the old grey list bg showed as lines between rows */
    .svx .li_border { margin: 0 0 2px !important; border: 0 !important; list-style: none; }
    .svx .tablinks1 { position: relative; display: flex !important; align-items: center; gap: 10px; padding: 9px 30px 9px 12px !important; margin: 0 !important;
        border: 0 !important; border-radius: 8px !important; background: #fff !important; color: #46546a !important; font-size: 14px !important; font-weight: 600 !important;
        line-height: 1.35; transition: background-color .25s ease, color .25s ease, transform .3s cubic-bezier(.16, 1, .3, 1); }
    .svx .tablinks1::before { content: ""; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #c9d6e6; transition: background-color .25s ease, transform .3s ease; }
    .svx .tablinks1::after { content: "\f105"; position: absolute; right: 12px; top: 50%; font-family: FontAwesome; font-size: 14px; color: #f07f22;
        opacity: 0; transform: translate(-6px, -50%); transition: opacity .25s ease, transform .3s cubic-bezier(.16, 1, .3, 1); }
    .svx .tablinks1:hover { background: #f4f7fb !important; color: #0f2a4a !important; transform: translateX(3px); }
    .svx .tablinks1:hover::before { background: #f07f22; transform: scale(1.2); }
    .svx .tablinks1:hover::after { opacity: 1; transform: translate(0, -50%); }
    .svx .tablinks1.active { background: #e8f0f9 !important; color: #15416e !important; font-weight: 700 !important; transform: none;
        box-shadow: inset 4px 0 0 #f07f22; }
    .svx .tablinks1.active::before { background: #f07f22; }
    .svx .tablinks1.active::after { opacity: 1; transform: translate(0, -50%); }

    /* panel */
    .svx .mrgn-brdr { border: 0 !important; padding: 0 !important; background: transparent !important; }
    .svx .box-wrap { margin: 0 -10px !important; }
    /* category header: navy bar with an icon tile, the group (VAPT / GRC / SOC) above the name, and the count */
    .svx .svx-panel-head { position: relative; display: flex; align-items: center; gap: 14px; width: calc(100% - 20px); margin: 0 10px 18px; padding: 8px 16px; overflow: hidden;
        border-radius: 14px; background: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px) 0 0 / 18px 18px, #15416e; border-bottom: 3px solid #f07f22;
        box-shadow: 0 14px 30px -22px rgba(21, 65, 110, .6); }
    .svx .svx-panel-head .cat-title { flex: 1; min-width: 0; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
        font-size: 17px !important; font-weight: 700 !important; line-height: 1.2 !important; color: #fff !important; }
    .svx .svx-panel-head .cat-title::before, .svx .svx-panel-head .cat-title::after { display: none !important; }
    .svx .svx-count { flex: 0 0 auto; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
        color: #fff; font-size: 13px; font-weight: 600; }

    /* cards: icon tile + number chip, title, text, and an "Explore" link whose arrow line grows; on hover a navy disc
       grows from the top-right corner, the icon turns orange and the card lifts */
    .svx .box-wrap { counter-reset: svx; }
    .svx .mrgn-btm-iconbx { padding: 0 10px !important; margin-bottom: 16px !important; counter-increment: svx; }
    .svx .iconbox { position: relative; display: flex !important; flex-direction: column; height: 100% !important; min-height: 0 !important; margin: 0 !important;
        padding: 16px 18px 14px !important; border-radius: 16px !important; background: #fff !important; border: 1px solid #dfe7f1 !important; overflow: hidden; isolation: isolate;
        box-shadow: 0 10px 26px -22px rgba(15, 42, 74, .55) !important; transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .45s ease, border-color .45s ease; }
    .svx .iconbox::after { content: ""; position: absolute; z-index: -1; right: -56px; top: -56px; width: 116px; height: 116px; border-radius: 50%;
        background: #eef3f9; transition: transform .6s cubic-bezier(.16, 1, .3, 1), background-color .45s ease; }
    .svx .iconbox::before { content: counter(svx, decimal-leading-zero); position: absolute; right: 14px; top: 14px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%;
        background: #fff; border: 1px solid #dfe7f1; color: #15416e; font: 700 12px/1.3 "Roboto", Arial, sans-serif; letter-spacing: .04em; transition: all .45s ease; }
    .svx .iconbox:hover { transform: translateY(-8px); border-color: #c9d6e6 !important; box-shadow: 0 28px 46px -28px rgba(15, 42, 74, .6) !important; }
    /* hover: the disc stays a circle and grows (anchored at its own centre, which sits off the card's corner) only as far as
       the title allows: 116px -> 124px, bottom edge ~64px vs title at ~61px + its top padding */
    .svx .iconbox:hover::after { transform: scale(1.07); background: #15416e; }
    .svx .iconbox:hover::before { background: #f07f22; border-color: #f07f22; color: #fff; transform: scale(1.15); }
    .svx .box-header { position: relative; z-index: 1; display: block !important; padding: 0 !important; margin: 0 0 10px !important; background: none !important; border: 0 !important; }
    .svx .box-icon.pst-listing { display: inline-flex !important; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 0 0 10px !important;
        padding: 0 !important; border-radius: 12px; background: #f4f7fb !important; border: 1px solid #dfe7f1; color: #15416e; float: none !important;
        transition: border-color .35s ease, color .35s ease, background-color .35s ease; }   /* minimal: outline tile, no fill or shadow */
    .svx .box-icon.pst-listing::before, .svx .box-icon.pst-listing::after { display: none !important; }
    .svx .iconbox .box-header .box-icon i { position: static !important; width: auto !important; height: auto !important; line-height: 1 !important;
        background: none !important; color: inherit !important; font-size: 14px !important; text-shadow: none !important; }
    .svx .iconbox:hover .box-icon.pst-listing { background: #fff4ea !important; border-color: #f3c49c; color: #f07f22; }
    .svx .box-title { margin: 0 !important; padding: 0 !important; font-size: 15.5px !important; font-weight: 700 !important; line-height: 1.35 !important;
        color: #0f2a4a !important; min-height: 0 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .svx .iconbox .box-header .box-title { height: auto !important; }
    .svx .box-content { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; padding: 0 !important; }
    .svx .box-content-p { display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; }
    .svx .box-content-p p { margin: 0 0 12px !important; font-size: 13.5px !important; line-height: 1.55 !important; color: #5a6677 !important;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .svx .box-readmore { margin-top: auto; }
    .svx .box-readmore a { display: inline-flex !important; align-items: center; gap: 10px; padding: 0 !important; background: none !important; border: 0 !important;
        color: #15416e !important; font-size: 13.5px !important; font-weight: 700 !important; letter-spacing: .02em; text-transform: none !important; text-decoration: none !important; }
    .svx .box-readmore a::before { display: none !important; }
    .svx .box-readmore a::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: #f07f22; transition: width .45s cubic-bezier(.16, 1, .3, 1); }
    .svx .box-readmore a i { order: 2; width: auto; height: auto; margin-left: -10px; background: none !important; color: #f07f22 !important; font-size: 11px; }
    .svx .iconbox:hover .box-readmore a { color: #f07f22 !important; }
    .svx .iconbox:hover .box-readmore a::after { width: 56px; }
    .svx .iconbox:hover .box-readmore a i { transform: none; }
    /* smooth switch: the opened category fades up, its cards one after another */
    .svx .tabcontent1 { animation: svx-up .5s cubic-bezier(.16, 1, .3, 1) both; }
    /* cards arrive one after another, 1, 2, 3 … n (--svx-i is each card's position, set in training.blade.php) */
    .svx .tabcontent1 .mrgn-btm-iconbx { animation: svx-card-in .6s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--svx-i, 0) * 90ms); }
    @keyframes svx-card-in { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
}

@media (max-width: 991px) {
    .svx-hero { padding: 66px 0 30px; }   /* top clears the fixed mobile header */
    .svx-hero__stats li { min-width: 0; flex: 1 1 120px; }
}
@media (prefers-reduced-motion: reduce) {
    .svx-hero > .container > *, .svx .tabcontent1, .svx .tabcontent1 .mrgn-btm-iconbx { animation: none !important; }
}

/* hero photo mosaic (right side): two columns, the second offset down; tiles rise in one after another */
.svx-hero__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.svx-hero__grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 140px 140px; gap: 14px; }
.svx-tile { position: relative; margin: 0; overflow: hidden; border-radius: 14px; box-shadow: 0 20px 40px -22px rgba(0, 0, 0, .7);
    animation: svx-up .9s cubic-bezier(.16, 1, .3, 1) both; }
.svx-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.svx-tile:hover img { transform: scale(1.06); }
.svx-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(21, 65, 110, .9)); }
.svx-tile figcaption { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; font-size: 13px; font-weight: 600; line-height: 1.3; color: #fff; }
.svx-tile--b, .svx-tile--d { transform: translateY(24px); }
.svx-tile--b { animation-delay: .1s; } .svx-tile--c { animation-delay: .2s; } .svx-tile--d { animation-delay: .3s; }
@media (max-width: 991px) {
    .svx-hero__in { grid-template-columns: 1fr; gap: 24px; }
    .svx-hero__grid { grid-template-rows: 105px 105px; gap: 10px; }
    .svx-tile--b, .svx-tile--d { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .svx-tile { animation: none; } }

/* "band" hero (services + blogs): one photo filling the whole banner, the blue fading over it from the left, an orange bar
   on the left edge — the same look as the contact page's "Visit us" band. The photo is positioned against the section. */
.svx-hero--band { padding: 58px 0 54px; background: #15416e; }
.svx-hero--band .svx-hero__in { position: static; display: block; }
.svx-hero--band .svx-hero__copy { position: relative; z-index: 2; max-width: 620px; }
.svx-hero--band .svx-hero__bg { position: absolute; top: 0; right: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center;
    animation: svx-zoom 14s ease-out both; }
@keyframes svx-zoom { from { transform: scale(1.08); } }
.svx-hero--band::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(21, 65, 110, .9) 0%, rgba(21, 65, 110, .6) 40%, rgba(21, 65, 110, 0) 60%); }
.svx-hero--band::before { z-index: 1; }
.svx-hero--band .container { position: static; }   /* the photo is positioned against the section, not the container */
.svx-hero--band { box-shadow: inset 5px 0 0 #f07f22; }
@media (max-width: 991px) {
    .svx-hero--band { padding: 66px 0 30px; }
    .svx-hero--band .svx-hero__bg { width: 100%; opacity: .3; }
    .svx-hero--band::after { background: linear-gradient(180deg, rgba(21, 65, 110, .7), #15416e); }
}
@media (prefers-reduced-motion: reduce) { .svx-hero--band .svx-hero__bg { animation: none; } }
/* services hero art (animated SVG with a transparent background): never cropped — contained in the right ~55% */
.svx-hero--band .svx-hero__bg--contain { left: auto; right: 2%; width: 56%; height: 100%; object-fit: contain; object-position: right center; animation: none; }
@media (min-width: 992px) and (max-width: 1499px) { .svx-hero--band .svx-hero__bg--contain { right: 0; width: 46%; } }   /* laptops: keep the VAPT hexagon off the text */
@media (max-width: 991px) { .svx-hero--band .svx-hero__bg--contain { right: -10%; width: 100%; opacity: .35; } }

/* ===== cards: the contact page's quick-card animation — accent per practice group (VAPT orange, GRC blue, SOC green):
   accent bar on top, the soft corner disc swells to wash the whole card, the icon fills and tilts, Learn more turns accent ===== */
@media (min-width: 992px) {
    /* soft tint (disc, icon tile, hover wash): the light blue of the contact page's email card; the accent stays per group */
    .svx .tabcontent1 { --acc: #f07f22; --acc-soft: #e8f0fa; }
    .svx .tabcontent1.svx-g-grc { --acc: #2d6cb0; --acc-soft: #e8f0fa; }
    .svx .tabcontent1.svx-g-soc { --acc: #1fa855; --acc-soft: #e8f0fa; }
    .svx .tabcontent1 .iconbox { border-top: 0 !important; }
    /* top bar: site blue at rest, the group accent on hover */
    .svx .tabcontent1 .iconbox .box-header::before { content: ""; position: absolute; left: -18px; right: -18px; top: -16px; height: 4px; background: #15416e; transition: background-color .35s ease; }
    .svx .tabcontent1 .iconbox:hover .box-header::before { background: var(--acc); }
    .svx .tabcontent1 .iconbox::after { right: auto; left: auto; top: auto; inset: auto -40px -40px auto; width: 120px; height: 120px;
        background: var(--acc-soft) !important; transform: none; transition: transform .7s cubic-bezier(.16, 1, .3, 1) !important; }
    .svx .tabcontent1 .iconbox:hover::after { transform: scale(7) !important; background: var(--acc-soft) !important; }
    .svx .tabcontent1 .iconbox:hover { border-color: var(--acc) !important; }
    .svx .tabcontent1 .iconbox::before { color: #15416e; }   /* number and icon: site blue at rest, the group accent on hover */
    .svx .tabcontent1 .iconbox:hover::before { background: var(--acc); border-color: var(--acc); color: #fff; transform: none; }
    .svx .tabcontent1 .box-icon.pst-listing { background: var(--acc-soft) !important; border-color: transparent; color: #15416e; }
    .svx .tabcontent1 .iconbox:hover .box-icon.pst-listing { background: var(--acc) !important; border-color: var(--acc); color: #fff; transform: rotate(-10deg) scale(1.05); transition: all .35s ease; }
    .svx .tabcontent1 .box-readmore a::after { background: var(--acc); }
    .svx .tabcontent1 .box-readmore a i { color: var(--acc) !important; }
    .svx .tabcontent1 .iconbox:hover .box-readmore a { color: var(--acc) !important; }
}
