/* Steps Section Styles */

.steps-section {
    padding: 5rem 1rem;
    --color-text-title: #222;
    --color-text-body: #555;
    --color-step-bg: #fff;
    --color-step-border: rgba(0,0,0,0.1);
    --color-primary: var(--chickin-orange, #E65100);
    --color-line: #e0e0e0;
}

.steps-section.theme-dark {
    background-color: var(--chickin-anthracite);
    color: white;
    --color-text-title: #fff;
    --color-text-body: #ccc;
    --color-step-bg: transparent;
    --color-step-border: rgba(255,255,255,0.2);
    --color-line: #444;
}

/* Header */
.steps-section .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}
.steps-section .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-title);
}
.steps-section .section-description {
    font-size: 1.125rem;
    color: var(--color-text-body);
}

/* Base Step Structure */
.step-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.step-marker {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    z-index: 2; /* About connector line */
    box-shadow: 0 4px 10px rgba(230, 81, 0, 0.3);
    position: relative;
}

.step-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: currentColor;
}
.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text-title);
}
.step-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text-body);
    max-width: 300px;
    margin: 0 auto;
}


/* ===========================
   STYLE: HORIZONTAL (Process)
   =========================== */
.style-horizontal .steps-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

/* Connector Line */
.style-horizontal .step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px; /* Center of marker height */
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: var(--color-line);
    z-index: 1;
    transform: translateX(50%); /* Start from center of this item */
}

@media (max-width: 768px) {
    .style-horizontal .steps-wrapper {
        flex-direction: column;
        gap: 3rem;
    }
    .style-horizontal .step-item:not(:last-child)::after {
        width: 2px;
        height: 100%;
        top: 64px;
        left: 50%;
        transform: none; /* Vertical line */
        transform: translateX(-50%);
    }
}


/* ===========================
   STYLE: VERTICAL (Timeline)
   =========================== */
.style-vertical .steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.style-vertical .step-item {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    padding-bottom: 3rem;
    position: relative;
}

.style-vertical .step-marker {
    margin-right: 2rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.style-vertical .step-text {
    max-width: 100%;
    margin: 0;
}

/* Timeline vertical line */
.style-vertical .step-item:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 64px;
    left: 32px; /* Center of 64px marker */
    width: 2px;
    height: calc(100% - 64px);
    background-color: var(--color-line);
    transform: translateX(-50%);
}


/* ===========================
   STYLE: CARDS (Grid)
   =========================== */
.style-cards .steps-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.style-cards .step-item {
    background-color: var(--color-step-bg);
    border: 1px solid var(--color-step-border);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.2s;
}

.style-cards .step-item:hover {
    transform: translateY(-5px);
}

.style-cards .step-marker {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    box-shadow: none;
}
