/* CareerGuide / Details — modern animated pathway page */

.cgd {
    --cgd-green-50: #ecfdf5;
    --cgd-green-100: #d1fae5;
    --cgd-green-200: #a7f3d0;
    --cgd-green-400: #34d399;
    --cgd-green-500: #10b981;
    --cgd-green-600: #059669;
    --cgd-green-700: #047857;
    --cgd-green-800: #065f46;
    --cgd-ink: #0f172a;
    --cgd-muted: #64748b;
    --cgd-line: rgba(15,23,42,.08);
    --cgd-bg: #F5F7F8;
    color: var(--cgd-ink);
    background: var(--cgd-bg);
}

/* Reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}

    [data-reveal].is-in {
        opacity: 1;
        transform: none;
    }
main[role="main"] {
    background: linear-gradient( 135deg, #ffd19436, #70e1f552 ) !important;
}
/* ---------- HERO ---------- */
.cgd-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 56px;
    background: radial-gradient(1100px 500px at 85% -10%, #d1fae5 0%, transparent 60%), radial-gradient(900px 480px at -5% 0%, #ecfdf5 0%, transparent 55%), linear-gradient(180deg, #ffffff 0%, #f6fbf7 100%);
    isolation: isolate;
}

.cgd-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.cgd-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(16,185,129,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(16,185,129,.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}

.cgd-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
    animation: cgdFloat 14s ease-in-out infinite;
}

.cgd-blob--a {
    width: 380px;
    height: 380px;
    background: #34d399;
    top: -120px;
    right: -80px;
}

.cgd-blob--b {
    width: 320px;
    height: 320px;
    background: #a7f3d0;
    bottom: -140px;
    left: -60px;
    animation-delay: -4s;
}

.cgd-blob--c {
    width: 240px;
    height: 240px;
    background: #6ee7b7;
    top: 40%;
    left: 55%;
    animation-delay: -8s;
    opacity: .4;
}

@keyframes cgdFloat {
    0%,100% {
        transform: translate(0,0) scale(1);
    }

    50% {
        transform: translate(20px,-20px) scale(1.06);
    }
}

.cgd-hero__inner {
    position: relative;
    z-index: 1;
}

.cgd-crumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .92rem;
    color: var(--cgd-muted);
    margin-bottom: 22px;
}

    .cgd-crumbs a {
        color: var(--cgd-green-700);
        text-decoration: none;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

        .cgd-crumbs a:hover {
            color: var(--cgd-green-800);
        }

.cgd-crumbs__sep {
    opacity: .5;
}

.cgd-crumbs__sector {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cgd-ink);
    font-weight: 600;
}

.cgd-hero__head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 36px;
    align-items: center;
}

.cgd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(16,185,129,.12);
    color: var(--cgd-green-800);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.cgd-eyebrow__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cgd-green-500);
    box-shadow: 0 0 0 4px rgba(16,185,129,.22);
    animation: cgdPulse 2.2s infinite;
}

@keyframes cgdPulse {
    0%,100% {
        box-shadow: 0 0 0 0 rgba(16,185,129,.5);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(16,185,129,0);
    }
}

.cgd-title {
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
    margin: 0 0 14px;
    background: linear-gradient(120deg,#0f172a 0%,#065f46 60%,#10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cgd-tagline {
    font-size: 1.1rem;
    color: var(--cgd-muted);
    max-width: 720px;
    margin: 0 0 22px;
}

.cgd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cgd-meta__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--cgd-line);
    font-size: .88rem;
    font-weight: 600;
    color: var(--cgd-ink);
    box-shadow: 0 4px 14px rgba(15,23,42,.04);
}

    .cgd-meta__chip i {
        color: var(--cgd-green-600);
    }

.cgd-meta__chip--ghost {
    background: transparent;
    border-style: dashed;
    color: var(--cgd-muted);
}

    .cgd-meta__chip--ghost i {
        color: var(--cgd-muted);
    }

/* Orb */
.cgd-hero__orb {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cgd-orb {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #6ee7b7, #10b981 60%, #047857);
    box-shadow: 0 30px 60px -20px rgba(16,185,129,.55), inset 0 -20px 40px rgba(0,0,0,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    animation: cgdSpinSlow 22s linear infinite;
}

    .cgd-orb i {
        font-size: 4.6rem;
        filter: drop-shadow(0 6px 12px rgba(0,0,0,.25));
        animation: cgdSpinSlowRev 22s linear infinite;
    }

.cgd-orb__ring {
    position: absolute;
    inset: -14px;
    border: 2px dashed rgba(16,185,129,.45);
    border-radius: 50%;
    animation: cgdSpin 14s linear infinite;
}

.cgd-orb__ring--2 {
    inset: -30px;
    border-color: rgba(16,185,129,.28);
    animation-duration: 22s;
    animation-direction: reverse;
}

.cgd-orb__ring--3 {
    inset: -50px;
    border-color: rgba(16,185,129,.18);
    animation-duration: 32s;
}

@keyframes cgdSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes cgdSpinSlow {
    to {
        transform: rotate(360deg);
    }
}

@keyframes cgdSpinSlowRev {
    to {
        transform: rotate(-360deg);
    }
}

/* ---------- BODY ---------- */
.cgd-body {
    padding: 24px 0 80px;
}

.cgd-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 340px;
    gap: 32px;
    align-items: start;
}

.cgd-panel {
    background: #fff;
    border: 1px solid var(--cgd-line);
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 24px;
    /*box-shadow:0 10px 30px -18px rgba(15,23,42,.18);*/
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

    .cgd-panel::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, var(--cgd-green-400), var(--cgd-green-700));
        border-radius: 4px 0 0 4px;
        opacity: .85;
    }

.cgd-panel__head {
    margin-bottom: 18px;
}

    .cgd-panel__head h2 {
        font-size: 1.2rem;
        font-weight: 800;
        margin: 0 0 4px;
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

        .cgd-panel__head h2 i {
            color: var(--cgd-green-600);
        }

    .cgd-panel__head p {
        margin: 0;
        color: var(--cgd-muted);
        font-size: .92rem;
    }

.cgd-prose {
    margin: 0;
    color: #334155;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Steps */
.cgd-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
    counter-reset: cgd;
}

.cgd-step {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border: 1px solid var(--cgd-green-100);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    transition-delay: var(--cgd-step-delay,0ms);
}

    .cgd-step:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 36px -22px rgba(16,185,129,.45);
        border-color: var(--cgd-green-200);
    }

.cgd-step__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--cgd-green-500), var(--cgd-green-700));
    box-shadow: 0 10px 22px -10px rgba(16,185,129,.6);
    flex-shrink: 0;
}

.cgd-step--mid .cgd-step__icon {
    background: linear-gradient(135deg,#22c55e,#0ea5e9);
}

.cgd-step--adv .cgd-step__icon {
    background: linear-gradient(135deg,#0ea5e9,#7c3aed);
}

.cgd-step__label {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--cgd-green-700);
}

.cgd-step--mid .cgd-step__label {
    color: #0e7490;
}

.cgd-step--adv .cgd-step__label {
    color: #6d28d9;
}

.cgd-step__role {
    margin: 2px 0 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cgd-ink);
}

.cgd-step__no {
    font-weight: 800;
    font-size: 1.4rem;
    color: rgba(15,23,42,.15);
    font-variant-numeric: tabular-nums;
}

/* Pills */
.cgd-pills {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cgd-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(16,185,129,.08);
    color: var(--cgd-green-800);
    font-weight: 600;
    font-size: .88rem;
    border: 1px solid rgba(16,185,129,.18);
    transition: transform .25s ease, background .25s ease;
}

    .cgd-pill:hover {
        transform: translateY(-2px);
        background: rgba(16,185,129,.16);
    }

    .cgd-pill i {
        color: var(--cgd-green-600);
    }

.cgd-pill--link {
    text-decoration: none;
}

    .cgd-pill--link:hover {
        color: var(--cgd-green-800);
    }

/* Courses */
.cgd-courses {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.cgd-course {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--cgd-line);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    transition-delay: var(--cgd-course-delay,0ms);
    cursor: default;
}

    .cgd-course:hover {
        transform: translateX(4px);
        border-color: var(--cgd-green-200);
        box-shadow: 0 10px 24px -16px rgba(16,185,129,.4);
    }

.cgd-course__no {
    font-weight: 800;
    color: var(--cgd-green-600);
    font-variant-numeric: tabular-nums;
    font-size: .92rem;
}

.cgd-course__name {
    font-weight: 600;
    color: var(--cgd-ink);
}

.cgd-course__name--link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--cgd-ink);
}

    .cgd-course__name--link:hover {
        color: var(--cgd-green-700);
    }

.cgd-course__arrow {
    color: var(--cgd-muted);
    transition: color .25s ease, transform .25s ease;
}

.cgd-course:hover .cgd-course__arrow {
    color: var(--cgd-green-600);
    transform: translate(2px,-2px);
}

/* Sidebar */
.cgd-side {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cgd-card {
    background: #fff;
    border: 1px solid var(--cgd-line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 36px -22px rgba(15,23,42,.18);
}

    .cgd-card h3 {
        font-size: 1rem;
        font-weight: 800;
        margin: 0 0 14px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

        .cgd-card h3 i {
            color: var(--cgd-green-600);
        }

.cgd-dl {
    margin: 0;
    display: grid;
    gap: 10px;
}

    .cgd-dl > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 8px 0;
        border-bottom: 1px dashed var(--cgd-line);
    }

        .cgd-dl > div:last-child {
            border-bottom: 0;
        }

    .cgd-dl dt {
        margin: 0;
        color: var(--cgd-muted);
        font-size: .85rem;
    }

    .cgd-dl dd {
        margin: 0;
        font-weight: 700;
        color: var(--cgd-ink);
        text-align: right;
    }

.cgd-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

    .cgd-status.is-on {
        background: rgba(16,185,129,.12);
        color: var(--cgd-green-700);
    }

    .cgd-status.is-off {
        background: rgba(148,163,184,.16);
        color: #475569;
    }

.cgd-status__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.cgd-card--cta {
    background: linear-gradient(160deg, var(--cgd-green-700) 0%, var(--cgd-green-500) 100%);
    color: #fff;
    border-color: transparent;
    overflow: hidden;
    position: relative;
}

    .cgd-card--cta::after {
        content: "";
        position: absolute;
        right: -40px;
        bottom: -40px;
        width: 160px;
        height: 160px;
        border-radius: 50%;
        background: rgba(255,255,255,.12);
    }

    .cgd-card--cta h3, .cgd-card--cta h3 i {
        color: #fff;
    }

    .cgd-card--cta p {
        color: rgba(255,255,255,.85);
        margin: 0 0 14px;
        font-size: .92rem;
    }

.cgd-cta__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.cgd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    width: 100%;
    margin-top: 8px;
}

.cgd-btn--primary {
    background: #fff;
    color: var(--cgd-green-800);
}

    .cgd-btn--primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px -10px rgba(0,0,0,.35);
        color: var(--cgd-green-800);
    }

.cgd-btn--ghost {
    background: rgba(255,255,255,.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
}

    .cgd-btn--ghost:hover {
        background: rgba(255,255,255,.22);
        color: #fff;
    }

/* Media / gallery */
.cgd-cover-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 40px -22px rgba(15, 23, 42, 0.35);
    padding: .7rem;
    margin-bottom: 1rem;
}

.cgd-cover-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.cgd-cover-btn,
.cgd-gallery-btn {
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    display: block;
    cursor: zoom-in;
}

.cgd-gallery-btn img {
    transition: transform .25s ease;
}

.cgd-gallery-btn:hover img {
    transform: scale(1.03);
}

.cgd-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .9rem;
}

.cgd-media-card {
    border: 1px solid #e5e7eb;
    border-radius: .8rem;
    background: #fff;
    overflow: hidden;
}

.cgd-media-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.cgd-gallery-modal .modal-content {
    background: rgba(2, 6, 23, .96);
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 1rem;
}

.cgd-gallery-modal .modal-header {
    border-bottom-color: rgba(148, 163, 184, .2);
    padding: .7rem .9rem;
}

.cgd-gallery-modal .modal-title,
.cgd-gallery-modal .btn-close {
    color: #fff;
    filter: invert(1) grayscale(100%);
}

.cgd-gallery-modal .modal-body {
    padding: 0;
}

.cgd-gallery-main,
.cgd-gallery-slide {
    background: #020617;
}

.cgd-gallery-slide {
    text-align: center;
}

.cgd-gallery-slide img {
    max-height: 72vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
    border-radius: .65rem;
}

.cgd-gallery-main .carousel-control-prev,
.cgd-gallery-main .carousel-control-next {
    width: 52px;
    height: 52px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(15, 23, 42, .62);
    border: 1px solid rgba(255,255,255,.25);
    opacity: .92;
    margin: 0 .65rem;
}

.cgd-gallery-meta {
    text-align: center;
    color: #e2e8f0;
    padding: .95rem .8rem .55rem;
}

.cgd-gallery-meta__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: .5rem;
    background: rgba(100, 116, 139, .35);
    color: #fff;
    border: 1px solid rgba(148, 163, 184, .45);
    border-radius: 999px;
    min-width: 62px;
    height: 30px;
    font-size: .84rem;
    font-weight: 700;
    padding: 0 .7rem;
}

.cgd-gallery-thumbs-wrap {
    padding: .65rem .8rem .95rem;
    display: flex;
    justify-content: center;
}

.cgd-gallery-thumbs {
    max-width: 100%;
    display: flex;
    gap: .45rem;
    padding: .55rem;
    border-radius: .85rem;
    background: rgba(15, 23, 42, .7);
    border: 1px solid rgba(148, 163, 184, .3);
    overflow-x: auto;
    scrollbar-width: thin;
}

.cgd-gallery-thumb {
    border: 2px solid transparent;
    background: transparent;
    padding: 0;
    border-radius: .55rem;
    overflow: hidden;
    width: 84px;
    min-width: 84px;
    height: 54px;
    opacity: .72;
    transition: all .2s ease;
}

.cgd-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cgd-gallery-thumb.is-active {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, .22);
    opacity: 1;
}

.cgd-file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.cgd-file-list a {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: .7rem;
    padding: .6rem .75rem;
    color: #0f172a;
    background: #fff;
}

.cgd-file-list a:hover {
    border-color: #86efac;
    color: #166534;
}

/* Responsive */
@media (max-width: 992px) {
    .cgd-hero__head {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .cgd-hero__orb {
        justify-content: flex-start;
    }

    .cgd-layout {
        grid-template-columns: 1fr;
    }

    .cgd-side {
        position: static;
    }
}

@media (max-width: 576px) {
    .cgd-hero {
        padding: 48px 0 36px;
    }

    .cgd-orb {
        width: 150px;
        height: 150px;
    }

        .cgd-orb i {
            font-size: 3.4rem;
        }

    .cgd-panel {
        padding: 20px;
    }

    .cgd-step {
        grid-template-columns: auto 1fr;
    }

    .cgd-step__no {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .cgd-blob, .cgd-orb, .cgd-orb i, .cgd-orb__ring, .cgd-eyebrow__dot {
        animation: none !important;
    }
}
