/* ==========================================================================
   KAY Scholar - Creative Pathway & Impact Section (Fun Facts Reimagined)
   Inspired by "From idea to impact" with 3D Glossy Clay Orbs, Wavy Connectors,
   Playful Doodles & KAY Scholar Brand Color Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Urbanist:wght@400;500;600;700;800;900&display=swap');

.home-pathway-section {
    position: relative;
    z-index: 5;
    padding: 30px 0 55px;
    margin: 0;
}

/* Master Pathway Wrapper (Clean, Open - No Box) */
.home-pathway-wrap,
.home-pathway-card {
    position: relative;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

/* ==========================================================================
   Left Column: Creative Intro Header & Doodles
   ========================================================================== */
.pathway-col-intro {
    position: relative;
    z-index: 2;
}

.pathway-intro-wrap {
    padding-right: clamp(10px, 2vw, 28px);
}

/* Pill Badge */
.pathway-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.07);
    border: 1px solid rgba(124, 58, 237, 0.16);
    font-family: 'Urbanist', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #6e39cb;
}

.pathway-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ec4899;
    box-shadow: 0 0 6px rgba(236, 72, 153, 0.6);
}

/* Heading with Instrument Serif Accent */
.pathway-heading {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(30px, 2.7vw, 42px);
    font-weight: 800;
    line-height: 1.18;
    color: #1a103c;
    margin: 14px 0 12px;
    letter-spacing: -0.6px;
}

.pathway-heading .serif-accent {
    font-family: 'Instrument Serif', 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.18em;
    background: linear-gradient(90deg, #7850e8 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    letter-spacing: -0.2px;
}

.pathway-heading .doodle-star {
    display: inline-block;
    vertical-align: middle;
    margin-left: 2px;
    transform: rotate(8deg);
    transition: transform 0.3s ease;
}

.home-pathway-section:hover .doodle-star {
    transform: rotate(24deg) scale(1.15);
}

/* Lead Subtitle */
.pathway-lead {
    font-family: 'Urbanist', sans-serif;
    font-size: 14.5px;
    line-height: 1.65;
    color: #5c5874;
    margin-bottom: 12px;
    max-width: 340px;
}

/* Creative Hand-Drawn Doodle Arrow */
.pathway-arrow-doodle {
    display: block;
    width: 96px;
    height: 56px;
    margin-top: 6px;
    margin-left: 14px;
    filter: drop-shadow(0 2px 4px rgba(124, 58, 237, 0.15));
    transition: transform 0.3s ease;
}

.home-pathway-section:hover .pathway-arrow-doodle {
    transform: translateX(4px) translateY(-2px);
}

.pathway-arrow-doodle svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Right Column: 4 Connected Pathway Nodes & Undulating Wave
   ========================================================================== */
.pathway-col-track {
    position: relative;
    z-index: 2;
}

.pathway-track-container {
    position: relative;
    width: 100%;
    padding: 10px 0;
}

/* Wavy Dashed Track Line */
.pathway-track-line-wrap {
    position: absolute;
    top: 13px;
    left: 4%;
    width: 92%;
    height: 56px;
    pointer-events: none;
    z-index: 1;
}

.pathway-svg-track {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.pathway-track-dashed {
    fill: none;
    stroke: #ffb199;
    stroke-width: 2.4;
    stroke-dasharray: 6 8;
    stroke-linecap: round;
    opacity: 0.9;
    transition: stroke-dashoffset 0.5s ease;
}

.home-pathway-section:hover .pathway-track-dashed {
    stroke: #ff9170;
}

/* 4 Grid Columns */
.pathway-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(14px, 1.8vw, 24px);
    position: relative;
    z-index: 2;
}

/* Individual Step Card */
.pathway-step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    cursor: default;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pathway-step-card:hover {
    transform: translateY(-4px);
}

/* Orb Wrapper & Radiating Sparkles */
.pathway-orb-wrapper {
    position: relative;
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

/* Sparkle / Burst Doodles above Orbs */
.pathway-doodle-sparkles {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 20px;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.85;
}

.pathway-step-card:hover .pathway-doodle-sparkles {
    transform: translateX(-50%) translateY(-3px) scale(1.15);
    opacity: 1;
}

.pathway-doodle-sparkles svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   3D Claymorphic Glossy Spheres
   ========================================================================== */
.pathway-3d-orb {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    will-change: transform;
}

/* Orb Gloss Specular Crescent (Toy/Clay Highlight) */
.pathway-3d-orb::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 13px;
    width: 26px;
    height: 15px;
    border-radius: 50% 50% 35% 35%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(-28deg);
    pointer-events: none;
    filter: blur(0.4px);
    z-index: 2;
}

/* Orb Floating Keyframe Animations (Staggered) */
@keyframes orbGentleFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-6px); }
}

.step-card-1 .pathway-3d-orb {
    animation: orbGentleFloat 3.6s ease-in-out infinite alternate;
    animation-delay: 0s;
}
.step-card-2 .pathway-3d-orb {
    animation: orbGentleFloat 3.6s ease-in-out infinite alternate;
    animation-delay: 0.6s;
}
.step-card-3 .pathway-3d-orb {
    animation: orbGentleFloat 3.6s ease-in-out infinite alternate;
    animation-delay: 1.2s;
}
.step-card-4 .pathway-3d-orb {
    animation: orbGentleFloat 3.6s ease-in-out infinite alternate;
    animation-delay: 1.8s;
}

/* 3D Orb Color Themes */
/* 1. Purple Orb (Discover) */
.orb-purple {
    background: radial-gradient(circle at 35% 30%, #c4b5fd 0%, #8b5cf6 45%, #6d28d9 80%, #4c1d95 100%);
    box-shadow: 0 14px 28px rgba(109, 40, 217, 0.35),
                inset 0 2.5px 5px rgba(255, 255, 255, 0.85),
                inset 0 -3.5px 7px rgba(0, 0, 0, 0.25);
}
.pathway-step-card:hover .orb-purple {
    transform: translateY(-8px) scale(1.10) !important;
    box-shadow: 0 20px 38px rgba(109, 40, 217, 0.48),
                inset 0 2.5px 5px rgba(255, 255, 255, 0.95),
                inset 0 -3.5px 7px rgba(0, 0, 0, 0.25);
}

/* 2. Amber / Peach Orb (Master) */
.orb-amber {
    background: radial-gradient(circle at 35% 30%, #fde68a 0%, #fbbf24 35%, #f59e0b 70%, #d97706 100%);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.35),
                inset 0 2.5px 5px rgba(255, 255, 255, 0.85),
                inset 0 -3.5px 7px rgba(0, 0, 0, 0.25);
}
.pathway-step-card:hover .orb-amber {
    transform: translateY(-8px) scale(1.10) !important;
    box-shadow: 0 20px 38px rgba(245, 158, 11, 0.48),
                inset 0 2.5px 5px rgba(255, 255, 255, 0.95),
                inset 0 -3.5px 7px rgba(0, 0, 0, 0.25);
}

/* 3. Rose / Coral Orb (Connect) */
.orb-rose {
    background: radial-gradient(circle at 35% 30%, #fecdd3 0%, #fb7185 40%, #f43f5e 75%, #be123c 100%);
    box-shadow: 0 14px 28px rgba(244, 63, 94, 0.35),
                inset 0 2.5px 5px rgba(255, 255, 255, 0.85),
                inset 0 -3.5px 7px rgba(0, 0, 0, 0.25);
}
.pathway-step-card:hover .orb-rose {
    transform: translateY(-8px) scale(1.10) !important;
    box-shadow: 0 20px 38px rgba(244, 63, 94, 0.48),
                inset 0 2.5px 5px rgba(255, 255, 255, 0.95),
                inset 0 -3.5px 7px rgba(0, 0, 0, 0.25);
}

/* 4. Violet / Electric Lilac Orb (Deliver) */
.orb-violet {
    background: radial-gradient(circle at 35% 30%, #e9d5ff 0%, #c084fc 40%, #a855f7 70%, #7e22ce 100%);
    box-shadow: 0 14px 28px rgba(168, 85, 247, 0.35),
                inset 0 2.5px 5px rgba(255, 255, 255, 0.85),
                inset 0 -3.5px 7px rgba(0, 0, 0, 0.25);
}
.pathway-step-card:hover .orb-violet {
    transform: translateY(-8px) scale(1.10) !important;
    box-shadow: 0 20px 38px rgba(168, 85, 247, 0.48),
                inset 0 2.5px 5px rgba(255, 255, 255, 0.95),
                inset 0 -3.5px 7px rgba(0, 0, 0, 0.25);
}

/* Orb Inner Icon */
.orb-icon {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
    transition: transform 0.35s ease;
}

.step-card-1:hover .orb-icon {
    transform: rotate(-12deg) scale(1.15);
}
.step-card-2:hover .orb-icon {
    transform: rotate(15deg) scale(1.12);
}
.step-card-3:hover .orb-icon {
    transform: scale(1.18);
}
.step-card-4:hover .orb-icon {
    transform: translate(2px, -3px) scale(1.15);
}

/* ==========================================================================
   Step Typography & Odometers
   ========================================================================== */
.pathway-step-body {
    width: 100%;
}

/* Step Label (e.g. 1. Discover) */
.pathway-step-num {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #1a103c;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
    transition: color 0.25s ease;
}

.step-card-1:hover .pathway-step-num { color: #6d28d9; }
.step-card-2:hover .pathway-step-num { color: #d97706; }
.step-card-3:hover .pathway-step-num { color: #e11d48; }
.step-card-4:hover .pathway-step-num { color: #9333ea; }

/* Metric with animated odometer */
.pathway-metric {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(21px, 1.8vw, 26px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 6px;
    letter-spacing: -0.4px;
    color: #1a103c;
}

.pathway-metric .odometer {
    font-family: 'Urbanist', sans-serif;
    font-weight: 800;
    color: #6e39cb;
}

.pathway-metric .metric-accent {
    color: #ec4899;
    font-weight: 800;
}

.pathway-metric .metric-curr {
    color: #f59e0b;
    font-weight: 800;
    font-size: 0.9em;
    margin-right: 1px;
}

.pathway-metric .metric-unit {
    font-size: 0.65em;
    font-weight: 700;
    color: #5c5874;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 2px;
}

/* Description Text */
.pathway-desc {
    font-family: 'Urbanist', sans-serif;
    font-size: 12.5px;
    line-height: 1.5;
    color: #6e6b7b;
    margin: 0;
    padding: 0 4px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1199px) {
    .pathway-heading {
        font-size: 32px;
    }
    .pathway-track-line-wrap {
        top: 32px;
    }
    .pathway-3d-orb {
        width: 66px;
        height: 66px;
    }
    .pathway-orb-wrapper {
        width: 74px;
        height: 74px;
    }
    .orb-icon {
        width: 28px;
        height: 28px;
    }
    .pathway-desc {
        font-size: 12px;
    }
}

@media (max-width: 991px) {
    .home-pathway-section {
        padding: 24px 0 40px;
        margin: 0;
    }
    .pathway-col-intro {
        text-align: center;
        margin-bottom: 34px;
    }
    .pathway-intro-wrap {
        padding-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .pathway-lead {
        max-width: 520px;
    }
    .pathway-arrow-doodle {
        display: none; /* Hide doodle on mobile/tablet to save space */
    }
    .pathway-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 18px;
    }
    .pathway-track-line-wrap {
        display: none; /* Wavy line is horizontal, hide on 2x2 grid */
    }
}

@media (max-width: 575px) {
    .home-pathway-section {
        padding: 16px 0 32px;
        margin: 0;
    }
    .pathway-heading {
        font-size: 26px;
    }
    .pathway-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 12px;
    }
    .pathway-3d-orb {
        width: 60px;
        height: 60px;
    }
    .pathway-orb-wrapper {
        width: 68px;
        height: 68px;
        margin-bottom: 8px;
    }
    .orb-icon {
        width: 26px;
        height: 26px;
    }
    .pathway-step-num {
        font-size: 14px;
    }
    .pathway-metric {
        font-size: 20px;
    }
    .pathway-desc {
        font-size: 11.5px;
        line-height: 1.4;
    }
}
