/* =========================================================
   JDC ACTIVITIES HUB 1.0
   ========================================================= */

.jdc-activities {
    --navy: #0b2034;
    --navy2: #123b5e;
    --blue: #2475ad;
    --gold: #caa75f;
    --text: #152330;
    --muted: #677580;
    --line: #e2e8ed;
    --soft: #f6f8fa;

    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    color: var(--text);
}

.jdc-activities-page .hero-section {
    display: none !important;
}

.jdc-activities-page .entry-content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.jdc-activities-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* HERO */

.jdc-activities-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 650px;

    display: flex;
    align-items: center;

    padding: 92px 0 100px;

    color: #fff;

    background:
        radial-gradient(
            circle at 80% 42%,
            rgba(44, 132, 195, .30),
            transparent 27%
        ),
        radial-gradient(
            circle at 10% 7%,
            rgba(202, 167, 95, .13),
            transparent 25%
        ),
        linear-gradient(
            125deg,
            #071522 0%,
            #0b2237 50%,
            #103c60 100%
        );
}

.jdc-activities-grid-bg {
    position: absolute;
    inset: 0;
    z-index: -2;

    opacity: .5;

    background-image:
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    mask-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,.55),
            transparent 87%
        );
}

.jdc-activities-hero::before {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    right: -260px;
    top: -300px;

    z-index: -1;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(70, 160, 220, .18),
            transparent 68%
        );
}

.jdc-activities-hero .jdc-activities-shell {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 1.12fr)
        minmax(420px, .88fr);

    gap: 54px;
    align-items: center;
}


/* HERO COPY */

.jdc-activities-eyebrow {
    position: relative;

    display: inline-block;

    margin-bottom: 17px;
    padding-left: 38px;

    color: #e1c174;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: .16em;
}

.jdc-activities-eyebrow::before {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 26px;
    height: 2px;

    background: var(--gold);
}

.jdc-activities-hero h1 {
    max-width: 760px;

    margin: 0 0 23px;

    color: #fff;

    font-size: clamp(42px, 5vw, 68px);

    line-height: 1.02;

    letter-spacing: -.05em;
}

.jdc-activities-hero__copy > p {
    max-width: 735px;

    margin: 0;

    color: rgba(255,255,255,.73);

    font-size: 18px;
    line-height: 1.72;
}


/* BUTTONS */

.jdc-activities-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;
}

.jdc-btn {
    min-height: 49px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    padding: 0 22px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 750;

    text-decoration: none !important;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.jdc-btn:hover {
    transform: translateY(-2px);
}

.jdc-btn--primary {
    color: #102b42 !important;

    background: #fff;

    box-shadow:
        0 12px 30px
        rgba(0,0,0,.13);
}

.jdc-btn--ghost {
    color: #fff !important;

    border:
        1px solid
        rgba(255,255,255,.24);

    background:
        rgba(255,255,255,.055);
}

.jdc-btn--dark {
    color: #fff !important;

    background: var(--navy);
}


/* HERO PROOF */

.jdc-hero-proof {
    display: flex;

    margin-top: 45px;
    padding-top: 25px;

    border-top:
        1px solid
        rgba(255,255,255,.12);
}

.jdc-hero-proof > div {
    min-width: 145px;

    padding: 0 25px;

    border-right:
        1px solid
        rgba(255,255,255,.11);
}

.jdc-hero-proof > div:first-child {
    padding-left: 0;
}

.jdc-hero-proof > div:last-child {
    border-right: 0;
}

.jdc-hero-proof strong {
    display: block;

    color: #fff;

    font-size: 26px;
    line-height: 1;

    font-weight: 850;
}

.jdc-hero-proof span {
    display: block;

    margin-top: 7px;

    color: rgba(255,255,255,.48);

    font-size: 9px;
    line-height: 1.35;

    font-weight: 750;

    letter-spacing: .08em;
    text-transform: uppercase;
}


/* ECOSYSTEM */

.jdc-activities-hero__visual {
    position: relative;
    min-height: 460px;
}

.jdc-ecosystem {
    position: absolute;

    width: 440px;
    height: 440px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);
}

.jdc-ecosystem::before {
    content: "";

    position: absolute;

    inset: 65px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(38, 126, 186, .22),
            transparent 68%
        );
}

.jdc-ecosystem-orbit {
    position: absolute;

    left: 50%;
    top: 50%;

    border-radius: 50%;

    transform: translate(-50%, -50%);
}

.jdc-ecosystem-orbit--outer {
    width: 390px;
    height: 390px;

    border:
        1px solid
        rgba(104, 188, 243, .22);
}

.jdc-ecosystem-orbit--inner {
    width: 260px;
    height: 260px;

    border:
        1px solid
        rgba(202, 167, 95, .22);
}


/* CORE */

.jdc-ecosystem-core {
    position: absolute;

    z-index: 5;

    left: 50%;
    top: 50%;

    width: 170px;
    height: 170px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    transform: translate(-50%, -50%);

    border:
        1px solid
        rgba(255,255,255,.18);

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.12),
            rgba(255,255,255,.035)
        );

    backdrop-filter: blur(12px);

    box-shadow:
        0 28px 80px rgba(0,0,0,.27),
        inset 0 0 50px rgba(255,255,255,.035);
}

.jdc-ecosystem-core strong {
    color: #fff;

    font-size: 49px;
    line-height: .9;

    font-weight: 850;

    letter-spacing: -.065em;
}

.jdc-ecosystem-core span {
    margin-top: 14px;

    color: rgba(255,255,255,.51);

    text-align: center;

    font-size: 8px;
    line-height: 1.45;

    font-weight: 750;

    letter-spacing: .15em;
}


/* NODES */

.jdc-ecosystem-node {
    position: absolute;

    z-index: 4;

    min-width: 91px;

    padding: 10px 14px;

    border:
        1px solid
        rgba(255,255,255,.14);

    border-radius: 8px;

    background:
        rgba(7, 25, 41, .81);

    backdrop-filter: blur(9px);

    box-shadow:
        0 12px 35px
        rgba(0,0,0,.16);
}

.jdc-ecosystem-node small {
    display: block;

    margin-bottom: 2px;

    color: var(--gold);

    font-size: 8px;

    font-weight: 850;

    letter-spacing: .1em;
}

.jdc-ecosystem-node strong {
    color: #fff;

    font-size: 13px;
}

.jdc-ecosystem-node::before {
    content: "";

    position: absolute;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #58a8dc;

    box-shadow:
        0 0 0 4px
        rgba(88,168,220,.11);
}

.jdc-node--internet {
    top: 20px;
    left: 166px;
}

.jdc-node--voip {
    top: 112px;
    right: -4px;
}

.jdc-node--cloud {
    right: 20px;
    bottom: 75px;
}

.jdc-node--it {
    bottom: 6px;
    left: 174px;
}

.jdc-node--web {
    left: 0;
    bottom: 80px;
}

.jdc-node--media {
    left: -4px;
    top: 108px;
}


/* HERO SIGNATURE */

.jdc-hero-signature {
    position: absolute;

    bottom: 18px;
    left: 50%;

    transform: translateX(-50%);

    color: rgba(255,255,255,.25);

    font-size: 8px;

    font-weight: 750;

    letter-spacing: .2em;

    white-space: nowrap;
}


/* SECTORS */

.jdc-activities-sectors {
    padding: 85px 0 92px;

    background: var(--soft);
}

.jdc-section-heading {
    max-width: 780px;

    margin-bottom: 40px;
}

.jdc-section-heading > span {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--blue);

    font-size: 11px;

    font-weight: 850;

    letter-spacing: .15em;
}

.jdc-section-heading h2 {
    margin: 0 0 15px;

    color: var(--text);

    font-size: clamp(31px, 4vw, 46px);

    line-height: 1.1;

    letter-spacing: -.035em;
}

.jdc-section-heading p {
    margin: 0;

    color: var(--muted);

    font-size: 17px;
    line-height: 1.65;
}


/* CARDS */

.jdc-sector-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.jdc-sector-card {
    position: relative;

    min-height: 315px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    padding: 27px 27px 24px;

    border: 1px solid var(--line);
    border-radius: 14px;

    background: #fff;

    box-shadow:
        0 10px 34px
        rgba(18,38,57,.045);

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.jdc-sector-card:hover {
    transform: translateY(-5px);

    border-color: #c9d5df;

    box-shadow:
        0 19px 48px
        rgba(18,38,57,.095);
}

.jdc-sector-card--active {
    border-color:
        rgba(36,117,173,.45);

    background:
        linear-gradient(
            145deg,
            #fff 0%,
            #fff 64%,
            #edf7fd 100%
        );
}

.jdc-sector-card--active::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--gold)
        );
}

.jdc-sector-card__top {
    min-height: 34px;

    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 12px;

    margin-bottom: 24px;
}

.jdc-sector-number {
    color: #a4b0ba;

    font-size: 13px;

    font-weight: 850;

    letter-spacing: .1em;
}

.jdc-sector-status {
    padding: 6px 8px;

    border-radius: 5px;

    background: #f2f4f6;

    color: #8b959e;

    font-size: 8px;

    font-weight: 850;

    letter-spacing: .07em;
}

.jdc-sector-status--active {
    color: #17679d;

    background: #e8f4fb;
}

.jdc-sector-kicker {
    margin-bottom: 7px;

    color: var(--blue);

    font-size: 10px;

    font-weight: 850;

    letter-spacing: .1em;
}

.jdc-sector-card h3 {
    margin: 0 0 13px;

    color: var(--text);

    font-size: 22px;
    line-height: 1.16;

    letter-spacing: -.025em;
}

.jdc-sector-card > p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.63;
}

.jdc-sector-tags {
    margin-top: auto;
    padding-top: 24px;

    color: #60788b;

    font-size: 11px;

    font-weight: 720;
}

.jdc-sector-card__footer {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin:
        18px
        -27px
        -24px;

    padding:
        15px
        27px;

    border-top:
        1px solid
        #d6e7f1;

    color: #176399;

    background:
        rgba(234,245,251,.65);

    font-size: 12px;
}

.jdc-sector-card__footer span {
    font-size: 20px;
}


/* CTA */

.jdc-activities-project {
    padding: 72px 0;

    background: #fff;
}

.jdc-project-box {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 44px;

    padding: 42px 45px;

    border:
        1px solid
        var(--line);

    border-radius: 16px;

    background:
        linear-gradient(
            120deg,
            #f8fafc,
            #f0f6fa
        );
}

.jdc-project-box > div {
    max-width: 770px;
}

.jdc-project-box > div > span {
    color: var(--gold);

    font-size: 11px;

    font-weight: 900;

    letter-spacing: .16em;
}

.jdc-project-box h2 {
    margin: 7px 0 10px;

    font-size: 30px;

    letter-spacing: -.03em;
}

.jdc-project-box p {
    margin: 0;

    color: var(--muted);

    line-height: 1.65;
}


/* MOTION */

@media (prefers-reduced-motion: no-preference) {

    .jdc-ecosystem-core {
        animation:
            jdcCoreFloat
            6s
            ease-in-out
            infinite;
    }

    .jdc-ecosystem-orbit--outer {
        animation:
            jdcOrbitPulse
            7s
            ease-in-out
            infinite;
    }
}

@keyframes jdcCoreFloat {

    0%,
    100% {
        transform:
            translate(-50%, -50%)
            translateY(0);
    }

    50% {
        transform:
            translate(-50%, -50%)
            translateY(-6px);
    }
}

@keyframes jdcOrbitPulse {

    0%,
    100% {
        opacity: .68;

        transform:
            translate(-50%, -50%)
            scale(1);
    }

    50% {
        opacity: 1;

        transform:
            translate(-50%, -50%)
            scale(1.025);
    }
}


/* TABLET */

@media (max-width: 1024px) {

    .jdc-activities-hero {
        min-height: 0;
    }

    .jdc-activities-hero .jdc-activities-shell {
        grid-template-columns: 1fr;
    }

    .jdc-activities-hero__visual {
        min-height: 410px;
    }

    .jdc-sector-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* MOBILE */

@media (max-width: 680px) {

    .jdc-activities-shell {
        width:
            min(
                100% - 28px,
                1180px
            );
    }

    .jdc-activities-hero {
        padding: 65px 0 75px;
    }

    .jdc-activities-hero h1 {
        font-size: 39px;
    }

    .jdc-activities-hero__copy > p {
        font-size: 16px;
    }

    .jdc-hero-proof > div {
        min-width: 0;

        flex: 1;

        padding: 0 10px;
    }

    .jdc-hero-proof span {
        font-size: 7.5px;
    }

    .jdc-activities-hero__visual {
        min-height: 340px;
    }

    .jdc-ecosystem {
        transform:
            translate(-50%, -50%)
            scale(.69);
    }

    .jdc-hero-signature {
        display: none;
    }

    .jdc-sector-grid {
        grid-template-columns: 1fr;
    }

    .jdc-sector-card {
        min-height: 290px;
    }

    .jdc-project-box {
        display: block;

        padding: 30px 25px;
    }

    .jdc-project-box .jdc-btn {
        margin-top: 23px;
    }
}

/* Sector CTA links */
.jdc-sector-status--link {
    text-decoration: none;
    cursor: pointer;
}

.jdc-sector-status--link:hover {
    text-decoration: underline;
}


/* =========================================================
   FULL CLICKABLE SECTOR CARD
   The existing real CTA link expands across the whole card.
   ========================================================= */

.jdc-sector-card {
    position: relative;
}

.jdc-sector-status--link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: inherit;
}

.jdc-sector-card:has(.jdc-sector-status--link) {
    cursor: pointer;
}

.jdc-sector-card:has(.jdc-sector-status--link):hover {
    transform: translateY(-5px);
}

.jdc-sector-card:has(.jdc-sector-status--link) .jdc-sector-status--link {
    position: relative;
    z-index: 6;
}


/* =========================================================
   SECTOR ICONS
   ========================================================= */

.jdc-sector-icon-wrapper {
    margin-bottom: 16px;
}

.jdc-sector-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background:
        linear-gradient(
            145deg,
            #f6fbff 0%,
            #ecf6fd 100%
        );
    border: 1px solid #dcebf5;
    box-shadow: 0 6px 18px rgba(18,38,57,.05);
}

.jdc-sector-card--active .jdc-sector-icon {
    background:
        linear-gradient(
            145deg,
            #edf8ff 0%,
            #e6f2fb 100%
        );
    border-color: #cfe5f3;
}

.jdc-sector-icon svg {
    width: 26px;
    height: 26px;
    display: block;
    stroke: #1f6ea7;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jdc-sector-card--active .jdc-sector-icon svg {
    stroke: #165e92;
}


/* =========================================================
   FULL CLICKABLE SECTOR CARD - FINAL
   ========================================================= */

/* Disable previous pseudo-element overlay */
.jdc-sector-status--link::after {
    content: none !important;
    display: none !important;
}

.jdc-sector-card--clickable {
    cursor: pointer;
}

.jdc-sector-card--clickable:hover {
    transform: translateY(-5px);
}

.jdc-sector-card--clickable:focus-visible {
    outline: 3px solid rgba(31, 110, 167, .35);
    outline-offset: 4px;
}

/* JDC ACTIVITIES COMPACT HERO START */

@media (min-width:901px) {

    body .jdc-activities-hero {
        min-height: 520px !important;
        padding-top: 46px !important;
        padding-bottom: 50px !important;
    }

}

/* JDC ACTIVITIES COMPACT HERO END */

/* JDC ACTIVITIES HERO TYPOGRAPHY START */

@media (min-width:901px) {

    body.jdc-activities-page .jdc-activities-eyebrow {
        font-size: 12px !important;
        line-height: 1.2 !important;
        letter-spacing: .12em !important;
    }

    body.jdc-activities-page .jdc-activities-hero__copy h1 {
        font-size: clamp(38px, 3.3vw, 50px) !important;
        line-height: 1.04 !important;
        letter-spacing: -.025em !important;
    }

}

/* JDC ACTIVITIES HERO TYPOGRAPHY END */


/* JDC ACTIVITIES ICON SIZE FIX START */

/*
 * Desktop keeps the original approved icon size.
 * Mobile gets a much more compact icon.
 */

@media (max-width: 680px) {

    body.jdc-activities-page
    .jdc-sector-card
    .jdc-sector-icon-wrapper {
        margin-bottom: 9px !important;
    }

    body.jdc-activities-page
    .jdc-sector-card
    .jdc-sector-icon {
        width: 32px !important;
        height: 32px !important;

        min-width: 32px !important;
        min-height: 32px !important;

        max-width: 32px !important;
        max-height: 32px !important;

        flex: 0 0 32px !important;

        padding: 0 !important;
        margin: 0 !important;

        border-radius: 8px !important;

        box-sizing: border-box !important;
    }

    body.jdc-activities-page
    .jdc-sector-card
    .jdc-sector-icon svg {
        width: 15px !important;
        height: 15px !important;

        min-width: 15px !important;
        min-height: 15px !important;

        max-width: 15px !important;
        max-height: 15px !important;

        display: block !important;

        margin: 0 !important;
        padding: 0 !important;

        transform: none !important;
    }

}

/* JDC ACTIVITIES ICON SIZE FIX END */

