/* SPK Infratech Journey Section - Unique Styles */
:root {
    --spkJourney-primary: #71B100;
    --spkJourney-secondary: #0F2B46;
    --spkJourney-bg: #0F2B46;
    /* Changed to Dark Blue */
    --spkJourney-white: #ffffff;
    --spkJourney-text: #e6e6e6;
    /* Light text for dark bg */
}

.spkJourney_section {
    position: relative;
    padding: 80px 20px 120px;
    background: var(--spkJourney-bg);
    overflow: hidden;
    color: var(--spkJourney-text);
    z-index: 1;
    /* Ensure base context is low */
}

/* 1. Header Area */
.spkJourney_headerArea {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
    /* Reduced from 2 */
}

.spkJourney_title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    /* Explicit white */
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spkJourney_title span {
    color: var(--spkJourney-primary);
}

.spkJourney_title::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(113, 177, 0, 0.1);
    top: -20px;
    left: -20px;
    z-index: -1;
    border-radius: 4px;
    transform: rotate(-10deg);
}

.spkJourney_desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--spkJourney-text);
    margin-bottom: 20px;
}

.spkJourney_desc strong {
    color: #ffffff;
    font-weight: 600;
}

.spkJourney_highlight {
    color: var(--spkJourney-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

/* 2. Hexagon Grid Layout */
.spkJourney_hexContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 40px auto 0;
    gap: 15px;
    /* Gap between hexes */
    padding-bottom: 40px;
}

/* Hexagon Shape Logic */
.spkJourney_hexWrapper {
    width: 260px;
    height: 290px;
    /* Aspect ratio for hex */
    position: relative;
    margin: 0 10px;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.05));
    display: flex;
    justify-content: center;
    align-items: center;
}

.spkJourney_hexWrapper:hover {
    filter: drop-shadow(0 20px 25px rgba(113, 177, 0, 0.25));
    z-index: 5;
    /* Reduced from 10 */
}

/* The actual hex shape using clip-path */
.spkJourney_hexInner {
    width: 100%;
    height: 100%;
    /* Gradient Border Effect */
    background: linear-gradient(135deg, var(--spkJourney-primary), #005f73);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2px;
    /* Control border thickness */
    position: relative;
    z-index: 1;
}

/* Border effect using a pseudo-element behind */
.spkJourney_hexInner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--spkJourney-primary), var(--spkJourney-secondary));
    z-index: -1;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0;
    /* Hidden by default, shown on specific cards or hover */
    transition: opacity 0.3s ease;
}

/* Inner content area to cover the border */
.spkJourney_hexContent {
    width: 96%;
    height: 96%;
    background: #f8fafc;
    /* Default light cool grey */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.spkJourney_hexTitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--spkJourney-secondary);
    margin-top: 10px;
    max-width: 80%;
}

.spkJourney_hexIcon {
    font-size: 2rem;
    color: var(--spkJourney-primary);
    margin-bottom: 5px;
}

/* Center Hex Specifics */
.spkJourney_hexCenter .spkJourney_hexWrapper {
    width: 300px;
    height: 340px;
    z-index: 5;
}

.spkJourney_hexCenter .spkJourney_hexContent {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: none;
    /* Logic handled by wrapper background if needed */
}

/* Add a visible border to center hex */
.spkJourney_hexCenter .spkJourney_hexInner {
    background: var(--spkJourney-primary);
    /* The border color */
}

.spkJourney_hexCenter .spkJourney_hexTitle {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Background blob */
.spkJourney_blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.spkJourney_blob1 {
    width: 400px;
    height: 400px;
    background: rgba(113, 177, 0, 0.15);
    /* Slightly more visible on dark */
    top: 10%;
    right: -100px;
}

.spkJourney_blob2 {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    /* White highlight blob */
    bottom: 5%;
    left: -50px;
}

/* Responsive Layout Adjustment */
/* We want a honeycomb look on desktop, stack on mobile */
@media (min-width: 992px) {
    .spkJourney_hexContainer {
        position: relative;
        height: 750px;
        /* Increased height for spacing */
        /* Fixed height container for absolute positioning layout */
        max-width: 1100px;
        /* Increased width for spacing */
    }

    .spkJourney_hexWrapper {
        position: relative;
    }

    /* Positioning logic: Center is center. Others surround. */
    .spkJourney_hexCenter,
    .spkJourney_pos1,
    .spkJourney_pos2,
    .spkJourney_pos3,
    .spkJourney_pos4,
    .spkJourney_pos5 {
        position: absolute;
    }

    .spkJourney_hexCenter {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 4;
        /* Reduced from 10 to be behind header */
    }

    /* Top Left - Moved further out */
    .spkJourney_pos1 {
        top: 5%;
        left: 15%;
    }

    /* Top Right - Moved further out */
    .spkJourney_pos2 {
        top: 5%;
        right: 15%;
    }

    /* Middle Left - Moved further out */
    .spkJourney_pos3 {
        top: 50%;
        left: 2%;
        /* Reduced from 5% */
        transform: translateY(-50%);
    }

    /* Middle Right - Moved further out */
    .spkJourney_pos4 {
        top: 50%;
        right: 2%;
        /* Reduced from 5% */
        transform: translateY(-50%);
    }

    /* Bottom Center - Moved further down */
    .spkJourney_pos5 {
        bottom: 0%;
        /* Push to very bottom */
        left: 50%;
        transform: translateX(-50%);
    }

    /* Specific Tint Colors for attractiveness */
    .spkJourney_pos1 .spkJourney_hexContent {
        background: linear-gradient(180deg, #ffffff, #e6fffa);
    }

    .spkJourney_pos2 .spkJourney_hexContent {
        background: linear-gradient(180deg, #ffffff, #e1f5fe);
    }

    .spkJourney_pos3 .spkJourney_hexContent {
        background: linear-gradient(180deg, #ffffff, #f1f8e9);
    }

    .spkJourney_pos4 .spkJourney_hexContent {
        background: linear-gradient(180deg, #ffffff, #fff3e0);
    }

    .spkJourney_pos5 .spkJourney_hexContent {
        background: linear-gradient(180deg, #ffffff, #f3e5f5);
    }

    .spkJourney_hexWrapper:hover .spkJourney_hexContent {
        background: #ffffff;
    }

    /* Hover effects need to account for positioning */
    .spkJourney_hexCenter:hover {
        transform: translate(-50%, -50%) scale(1.05);
    }

    .spkJourney_pos1:hover {
        transform: translateY(-10px);
    }

    .spkJourney_pos2:hover {
        transform: translateY(-10px);
    }

    .spkJourney_pos3:hover {
        transform: translateY(-50%) translateY(-10px);
    }

    .spkJourney_pos4:hover {
        transform: translateY(-50%) translateY(-10px);
    }

    .spkJourney_pos5:hover {
        transform: translateX(-50%) translateY(-10px);
    }
}

@media (max-width: 991px) {
    .spkJourney_hexContainer {
        flex-direction: column;
        height: auto;
    }

    .spkJourney_hexWrapper {
        width: 260px;
        height: 290px;
        margin-bottom: -40px;
        /* Overlap slightly for honeycomb vertical feel */
    }

    .spkJourney_hexCenter .spkJourney_hexWrapper {
        width: 280px;
        height: 310px;
        margin-bottom: -40px;
    }

    .spkJourney_hexWrapper:last-child {
        margin-bottom: 0;
    }
}