@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    --primary-green: #00853e;
    --bg-gray: #f4f6f8;
    --text-dark: #333;
    --text-gray: #888;
    --circle-size: 140px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #fff;
    display: flex;
    justify-content: center;
    padding: 50px 20px;
}

.process-wrapper {
    background-color: var(--bg-gray);
    padding: 60px 40px;
    border-radius: 10px;
    max-width: 1200px;
    width: 100%;
    border: 1px solid #e0e0e0;
}

/* Header Section */
.header-content { text-align:center; margin-bottom:60px; }
.badge { display:inline-block; background:var(--primary-green); color:#fff; padding:4px 16px; border-radius:20px; font-weight:700; font-size:14px; margin-bottom:15px; }
.main-title { font-size:28px; margin-bottom:10px; word-break:keep-all; }
.sub-title { color:var(--text-gray); font-size:18px; margin-bottom:40px; word-break:keep-all; }

.service-info { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:20px; }
.info-card { background:#fff; padding:25px; border-radius:16px; text-align:left; border:1px solid #e2e8f0; }
.info-card h4 { color:var(--primary-green); margin-bottom:10px; font-size:18px; }
.info-card p { font-size:15px; color:var(--text-gray); }

.process-section-title { text-align:center; font-size:24px; margin:60px 0 40px; color:#0f172a; position:relative; }
.responsive-note { text-align:center; margin-top:50px; font-size:13px; color:var(--text-gray); }
/* Grid Layout */
.process-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 80px 20px;
    position: relative;
}

/* Individual Item Styling */
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Grid Positioning for Snake Flow */
.step-1 { grid-area: 1 / 1; }
.step-2 { grid-area: 1 / 2; }
.step-3 { grid-area: 1 / 3; }

.step-4 { grid-area: 2 / 3; }
.step-5 { grid-area: 2 / 2; }
.step-6 { grid-area: 2 / 1; }

.step-7 { grid-area: 3 / 1; }
.step-8 { grid-area: 3 / 2; }
.step-9 { grid-area: 3 / 3; }

.step-10 { grid-area: 4 / 3; }
.step-11 { grid-area: 4 / 2; }
.step-12 { grid-area: 4 / 1; }

.step-13 { grid-area: 5 / 1; }
.step-14 { grid-area: 5 / 2; }

/* Label (STEP 01) */
.step-label {
    font-size: 14px;
    color: #999;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* Circle Icon Container */
.circle {
    width: var(--circle-size);
    height: var(--circle-size);
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.3s ease;
}

.circle:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
}

/* Icons */
.circle i {
    font-size: 50px;
    color: var(--primary-green);
    /* Ensure font-family is applied if specific overrides happen */
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; /* Solid icons require weight 900 */
}

/* Text Description */
.step-desc {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.4;
    word-break: keep-all;
}

/* ================= Arrows ================= */

.arrow-right, .arrow-left, .arrow-down {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* Right Arrow */
.arrow-right {
    top: 50%;
    right: -80px;           /* short distance */
    width: 150px;             /* short horizontal line */
    height: 2px;
    border-top: 2px dashed #00853e; /* light green dashed line */
    transform: translateY(-50%);
}

.arrow-right::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #00853e;
    border-right: 2px solid #00853e;
    transform: translateY(-50%) rotate(45deg); /* arrowhead */
}

/* Left Arrow */
.arrow-left {
    top: 50%;
    left: -80px;
    width: 150px;
    height: 2px;
    border-top: 2px dashed #00853e;
    transform: translateY(-50%);
}

.arrow-left::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #00853e;
    border-left: 2px solid #00853e;
    transform: translateY(-50%) rotate(-45deg);
}

/* Down Arrow */
.arrow-down {
    bottom: -60px;           /* shorter vertical line */
    left: 50%;
    width: 2px;
    height: 50px;
    border-left: 2px dashed #00853e;
    transform: translateX(-50%);
}

.arrow-down::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 8px;
    height: 8px;
    border-left: 2px solid #00853e;
    border-bottom: 2px solid #00853e;
    transform: translateX(-50%) rotate(-45deg);
}



/* Responsive */
@media (max-width: 900px) {
    .process-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 40px;
    }
    .step-1, .step-2, .step-3, .step-4,
    .step-5, .step-6, .step-7, .step-8,
    .step-9, .step-10, .step-11, .step-12,
    .step-13, .step-14 {
        grid-area: auto;
    }
    .arrow-right, .arrow-left, .arrow-down {
        display: none;
    }
    .step-item::after {
        content: '↓';
        position: absolute;
        bottom: -30px;
        font-size: 20px;
        color: #8fc9ae;
    }
    .step-item:last-child::after {
        display: none;
    }
    
}

/* Back Button Styles */
.back-btn {
    position: fixed; /* Keeps it in the corner */
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-green); /* Uses your brand green */
    background: #ffffff;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1100; /* Higher than the navbar */
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 133, 62, 0.1);
}

.back-btn:hover {
    background: var(--primary-green);
    color: #ffffff;
    transform: translateX(-5px); /* Subtle animation to the left */
    box-shadow: 0 6px 15px rgba(0, 133, 62, 0.2);
}

.back-btn i {
    font-size: 14px;
    font-weight: 900; /* Ensures icon shows correctly */
}

/* Ensure mobile compatibility */
@media (max-width: 768px) {
    .back-btn {
        top: 15px;
        left: 15px;
        padding: 8px 14px;
        font-size: 14px;
    }
}

