/* Client Solution Page Specific Styles */
/* Reuse product.css variables where possible, but define overrides here */

/* --- Layout Wrappers --- */
.solution-section {
    padding: 60px 0;
    /* Reduced from 100px */
    position: relative;
    background: transparent !important;
}

/* --- Header Adjustment (Matching 'Own Product' Exactly) --- */
.client-solution-header {
    background-color: #fdfdfd;
    min-height: 75vh;
    padding: 0;
    display: flex;
    align-items: center;
}

.client-solution-header .header-main-flex {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    position: relative;
    z-index: 5;
    padding-top: 100px;
    width: 100%;
}

.client-solution-header .header-left-decor {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.client-solution-header .decor-tag {
    writing-mode: vertical-rl;
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: 0.4em;
    font-weight: 700;
    color: #bbb;
    transform: rotate(180deg);
}

.client-solution-header .decor-line {
    width: 1px;
    height: 100px;
    background: #000;
    margin-top: 30px;
}

/* Same ratio as product.css */
.client-solution-header .header-content-group {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8vw;
}

/* Title Column - Fixed (Auto) Width */
.client-solution-header .header-title-col {
    flex: 0 0 450px;
    text-align: left;
    padding-left: 5vw;
}

.client-solution-header .sub-title-en {
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    color: #aaa;
    line-height: 1;
    margin-bottom: -5px;
    letter-spacing: -0.02em;
    font-family: var(--font-en);
}

.client-solution-header .page-title {
    /* MATCHED product.css exactly */
    font-size: clamp(4rem, 10vw, 7rem) !important;
    font-weight: 800 !important;
    line-height: 0.9 !important;
    margin-left: -4px;
    letter-spacing: -0.05em !important;
    font-family: var(--font-en);
    background: linear-gradient(135deg, #1a1a1a 0%, #5d8bb3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Message Column - Flex 1 (Fills Rest) */
.client-solution-header .header-message-col {
    flex: 1;
    /* MATCHED */
    padding-bottom: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    /* Top border line */
    padding-top: 40px;
    max-width: 600px;
    /* MATCHED */
    position: relative;
    text-align: left;
}

.client-solution-header .message-accent-line {
    position: absolute;
    top: -1px;
    left: 0;
    width: 80px;
    height: 1.5px;
    background: #5d8bb3;
    display: block !important;
}

.client-solution-header .caption-text {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 16px;
    color: #5d8bb3;
    margin-bottom: 25px;
    letter-spacing: 0.1em;
    display: block;
    padding-top: 0;
    text-transform: uppercase;
}

.client-solution-header .caption-text::before {
    display: none;
}

.client-solution-header .caption-desc {
    font-size: 15px !important;
    /* MATCHED product.css with !important overrides */
    font-weight: 500 !important;
    line-height: 2 !important;
    color: #666 !important;
    margin: 0 !important;
    text-align: left;
}


/* --- Responsive Header --- */
@media (max-width: 900px) {
    .client-solution-header {
        min-height: auto !important;
        padding-bottom: 80px !important;
    }

    .client-solution-header .header-main-flex {
        flex-direction: column;
        align-items: center;
        /* Center horizontally */
        gap: 30px;
        padding-top: 40px;
        text-align: center;
        /* Center children text */
    }

    .client-solution-header .header-left-decor {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        /* Center horizontally */
        gap: 20px;
    }

    .client-solution-header .decor-tag {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .client-solution-header .decor-line {
        width: 60px;
        height: 1px;
        margin-top: 0;
    }

    .client-solution-header .header-content-group {
        flex-direction: column;
        align-items: center;
        /* Center horizontally */
        gap: 40px;
        text-align: center;
    }

    .client-solution-header .header-title-col {
        padding-left: 0;
        flex: none !important;
        width: 100%;
        text-align: center;
    }

    .client-solution-header .page-title {
        font-size: clamp(3rem, 15vw, 6rem) !important;
    }

    .client-solution-header .header-message-col {
        width: 100%;
        max-width: none;
        padding-top: 30px;
        text-align: center;
    }

    .client-solution-header .message-accent-line {
        left: 50%;
        transform: translateX(-50%);
    }

    .client-solution-header .caption-desc {
        text-align: center !important;
    }
}


/* --- 3-Phase Flow Diagram --- */
.flow-diagram-wrapper {
    margin-top: 40px;
    /* Reduced from 80px */
    width: 100%;
    position: relative;
    padding: 20px;
    /* Reduced from 40px 20px */
    background: transparent !important;
}

.flow-diagram-wrapper::before {
    display: none !important;
}

/* Existing Flow Styles preserved */
.flow-header-bar {
    text-align: center;
    margin-bottom: 25px;
    /* Reduced from 40px */
    font-weight: 700;
    color: var(--text-main);
    background: #fff;
    padding: 12px 36px;
    border-radius: 50px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.flow-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 900px) {
    .flow-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 60px;
    }
}

.flow-step-header {
    background: #333;
    /* Fallback */
    color: #fff;
    text-align: center;
    padding: 14px 0;
    border-radius: 100px;
    font-family: var(--font-en);
    font-weight: 800;
    margin-bottom: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.flow-step-header.phase-01,
.flow-step-header.phase-02,
.flow-step-header.phase-03 {
    background: #1a1a1a;
    /* Reverted to consistent dark color */
}

.flow-content-box {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 24px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.flow-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    font-weight: 700;
}

.flow-item.etc {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #aaa;
}


/* --- Solution Example: 4-Column Grid with Stacked Cards --- */

.solution-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    /* Reduced gaps slightly */
    margin-top: 40px;
    /* Reduced from 60px */
}

@media (min-width: 600px) {
    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .solution-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        align-items: stretch;
    }
}

/* Individual Column Wrapper */
.solution-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

/* Column Header (Icon + Title) - Slightly reduced height logic to be tighter */
.column-header {
    margin-bottom: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* We still want some min-height to align cards if title wraps on narrower screens, 
       but user requested 1-line look. Let's keep a safe min-height for the icon+text block. */
    min-height: 80px;
}

.column-icon-box {
    width: 44px;
    /* Slightly smaller icon to help space */
    height: 44px;
    background: #333;
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.column-title {
    font-size: 1.0rem;
    /* reduced from 1.1 with no BR for fit */
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    margin: 0;
}

/* Unit Cards */
.solution-unit-card {
    border-radius: 16px;
    padding: 24px;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 140px;
}



/* Standard Support Style */
.solution-unit-card.standard {
    background: #fff;
    border-color: #eee;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.02);
    /* Flex grow to push AI card down */
    flex: 1;
}

/* With AI Style */
.solution-unit-card.with-ai {
    background: #f4f9ff;
    border-color: #dbeafe;
    flex: 0 0 auto;
}

.unit-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #999;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.solution-unit-card.with-ai .unit-label {
    background: #eef2f6;
    /* Very subtle blue-gray */
    color: #5d8bb3;
    /* Brand blue text */
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    width: fit-content;
    /* Ensure it doesn't stretch too wide */
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    border: 1px solid #dbeafe;
}

.unit-desc {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-main);
    margin: 0;
}