/* ============================================================
 * Shortcode: [ginseng_core_values]
 * File: assets/css/ginseng-core-values.css
 * ============================================================ */

.ginseng-core-values-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
    background: transparent;
}

/* Header Title */
.ginseng-core-values-wrapper .core-values-header {
    text-align: center;
    margin-bottom: 45px;
}

.ginseng-core-values-wrapper .core-values-subtitle {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #c8102e;
    margin-bottom: 8px;
}

.ginseng-core-values-wrapper .core-values-main-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    line-height: 1.35;
    text-align: center;
}

/* 5 Columns Grid */
.ginseng-core-values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
    background: transparent;
}

/* Core Value Item */
.ginseng-core-values-grid .core-value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 22px;
    position: relative;
    border-right: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.ginseng-core-values-grid .core-value-item:last-child {
    border-right: none;
}

/* Big Number (01, 02, 03, 04, 05) */
.ginseng-core-values-grid .core-value-number {
    font-size: 82px;
    font-weight: 800;
    line-height: 1;
    color: #edf2f7;
    margin-bottom: 15px;
    user-select: none;
    transition: color 0.3s ease, transform 0.3s ease;
    font-family: inherit;
    display: inline-block;
    animation: coreValueNumberWave 30s infinite ease-in-out;
}

/* Item Title & Description */
.ginseng-core-values-grid .core-value-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 10px 0;
    line-height: 1.35;
    transition: color 0.3s ease;
    animation: coreValueTitleWave 30s infinite ease-in-out;
}

.ginseng-core-values-grid .core-value-desc {
    font-size: 13.5px;
    color: #718096;
    line-height: 1.6;
    margin: 0;
}

/* === Sequential Animation Delays (30s total, 6s per column) === */
.ginseng-core-values-grid .core-value-item:nth-child(1) .core-value-number,
.ginseng-core-values-grid .core-value-item:nth-child(1) .core-value-title {
    animation-delay: 0s;
}

.ginseng-core-values-grid .core-value-item:nth-child(2) .core-value-number,
.ginseng-core-values-grid .core-value-item:nth-child(2) .core-value-title {
    animation-delay: 6s;
}

.ginseng-core-values-grid .core-value-item:nth-child(3) .core-value-number,
.ginseng-core-values-grid .core-value-item:nth-child(3) .core-value-title {
    animation-delay: 12s;
}

.ginseng-core-values-grid .core-value-item:nth-child(4) .core-value-number,
.ginseng-core-values-grid .core-value-item:nth-child(4) .core-value-title {
    animation-delay: 18s;
}

.ginseng-core-values-grid .core-value-item:nth-child(5) .core-value-number,
.ginseng-core-values-grid .core-value-item:nth-child(5) .core-value-title {
    animation-delay: 24s;
}

/* === Keyframe Animations (30s total, 6s per column) === */
@keyframes coreValueNumberWave {
    0% {
        color: #edf2f7;
        transform: scale(1);
    }
    10% {
        color: #c8102e;
        transform: scale(1.1);
    }
    20%, 100% {
        color: #edf2f7;
        transform: scale(1);
    }
}

@keyframes coreValueTitleWave {
    0% {
        color: #2d3748;
    }
    10% {
        color: #c8102e;
    }
    20%, 100% {
        color: #2d3748;
    }
}

/* Hover Override */
.ginseng-core-values-grid .core-value-item:hover {
    transform: translateY(-5px);
}

.ginseng-core-values-grid .core-value-item:hover .core-value-number {
    color: #c8102e !important;
    transform: scale(1.1) !important;
    animation-play-state: paused;
}

.ginseng-core-values-grid .core-value-item:hover .core-value-title {
    color: #c8102e !important;
    animation-play-state: paused;
}

/* === Responsive Layout === */
@media (max-width: 1024px) {
    .ginseng-core-values-grid .core-value-number {
        font-size: 68px;
    }
    .ginseng-core-values-grid .core-value-item {
        padding: 15px 14px;
    }
    .ginseng-core-values-grid .core-value-title {
        font-size: 15.5px;
    }
}

@media (max-width: 768px) {
    .ginseng-core-values-wrapper .core-values-main-title {
        font-size: 22px;
    }

    .ginseng-core-values-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ginseng-core-values-grid .core-value-item {
        border-right: none;
        border-bottom: 1px dashed #e2e8f0;
        padding-bottom: 25px;
    }

    .ginseng-core-values-grid .core-value-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .ginseng-core-values-grid .core-value-number {
        font-size: 64px;
        margin-bottom: 8px;
    }
}
