/* Gear Parts Manufacturing Process */
.gear-wrap {
    max-width: 1500px;
    margin: 0 auto;
    padding: 60px 20px 100px;
    font-family: 'Pretendard', sans-serif;
}

/* Gear Info Table */
.gear_info {
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.gear-info-img {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.gear-info-img img {
    max-width: 100%;
    height: auto;
}

.gear-machine-table {
    border-collapse: collapse;
    width: 100%;
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.gear-machine-table th,
.gear-machine-table td {
    border: 1px solid #000;
    padding: 12px 10px;
    vertical-align: middle;
}

.gear-machine-table thead th {
    background-color: #f7cbac;
}

.gear-machine-table tbody .col-machine {
    background-color: #dae3f3;
}

.gear-machine-table tbody td:not(.col-machine):not(.col-total) {
    background-color: #fff;
}

.gear-machine-table .col-total {
    background-color: #e2efda;
}

.gear-machine-table thead .col-total {
    background-color: #f7cbac;
}

@media (max-width: 1024px) {
    .gear_info {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .gear_info {
        gap: 20px;
    }

    .gear-machine-table {
        font-size: 14px;
        min-width: 100%;
    }

    .gear-info-img {
        min-width: 100%;
    }
}

.gear-header {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    padding-left: 10px;
}

.gear-title {
    font-size: 36px;
    font-weight: 800;
    color: #000;
    position: relative;
    padding-left: 25px;
    line-height: 1.2;
}

.gear-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 24px;
    background: #1f448e;
    border-radius: 3px;
}

.gear-content {
    background: transparent;
}

.gear-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 60px;
}

.process-item {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.process-item:not(:nth-child(4n))::after {
    content: '\2192';
    /* Unicode right arrow */
    position: absolute;
    top: 50%;
    right: -42px;
    transform: translateY(-50%);
    font-size: 24px;
    color: #333;
    font-weight: 300;
}

.process-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    min-height: 55px;
    /* ensure alignment of row item heights if title is two lines */
}

.process-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ecf3fa;
    color: #1f448e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.process-name {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.process-img {
    width: 100%;
    height: 180px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.process-img .img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.process-info {
    margin-top: 16px;
    color: #3b3b3b;
    line-height: 1.5;
    background-color: #e4e4e4;
    border-radius: 8px;
    padding: 10px;
}

.midder_bar {
    margin: 60px 0;
}

/* Responsive */
@media (max-width: 1400px) {
    .gear-process-grid {
        gap: 30px 40px;
    }

    .process-item:not(:nth-child(4n))::after {
        right: -28px;
    }
}

@media (max-width: 1200px) {
    .gear-process-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 35px;
    }

    .process-item::after {
        display: none !important;
    }

    /* Switch to 3 items per row logic */
    .process-item:not(:nth-child(3n))::after {
        display: block !important;
        right: -24px;
    }
}

@media (max-width: 1024px) {
    .gear-process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 30px;
    }

    .process-item::after {
        display: none !important;
    }

    /* Switch to 2 items per row logic */
    .process-item:not(:nth-child(2n))::after {
        display: block !important;
        right: -20px;
    }

    .gear-title {
        font-size: 30px;
    }
}

@media (max-width: 600px) {
    .gear-process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .process-item::after {
        display: none !important;
    }

    .process-head {
        min-height: auto;
    }

    .process-name {
        font-size: 16px;
    }

    .gear-title {
        font-size: 26px;
    }

    .gear-header {
        margin-bottom: 30px;
    }
}

/* Sub3 Common Styles */
.business-wrap {
    max-width: 1500px;
    margin: 0 auto;
    padding: 60px 20px 100px;
}

.biz-section {
    margin-bottom: 80px;
}

.biz-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    padding-left: 10px;
}

.biz-title {
    font-size: 40px;
    font-weight: 800;
    /* ExtraBold */
    color: #000;
    position: relative;
    padding-left: 25px;
    line-height: 1.2;
}

.biz-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 13px;
    background: #1f448e;
    border-radius: 5px;
}

.biz-subtitle {
    font-size: 22px;
    color: #a9a9a9;
    font-weight: 400;
    /* Regular */
    letter-spacing: 1px;
    margin-top: 8px;
    /* Align slightly with text */
}

.biz-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.biz-item {
    background: #fff;
    border: 1px solid #d1d1d1;
    border-radius: 11px;
    box-shadow: 0 0 11px rgba(0, 70, 82, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    transition: transform 0.3s ease;
}

.biz-item:hover {
    transform: translateY(-5px);
}

.biz-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px 10px 0 0;
}

.biz-item-title {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100px;
    padding: 20px;
    font-size: 18px;
    font-weight: 400;
    color: #000;
    text-align: left;
    /* margin-top: 20px; */
    /* background-color: #e4e4e4; */
    border-radius: 0 0 10px 10px;
}

/* Specific Adjustments per section if needed */
/* Since grid handles wrapping, 6 items will separate 4 and 2. Figma looked like 4 per row. */

/* Responsive */
@media (max-width: 1200px) {
    .biz-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .biz-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .biz-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .biz-subtitle {
        margin-top: 0;
        padding-left: 25px;
        /* Align with text */
        font-size: 18px;
    }

    .biz-title {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .biz-list {
        grid-template-columns: 1fr;
        /* Or 2 columns for logos usually looks ok */
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Customer/Partner Page (sub3_2.php) - Coming Soon */
.coming-soon-wrap {
    max-width: 1500px;
    margin: 0 auto;
    padding: 100px 20px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-content {
    text-align: center;
}

.coming-soon-content img {
    max-width: 100%;
}

/* Table Layout for Sub 3-2 (Replaces Grid/Column) */
.biz-table {
    width: 100%;
    border-collapse: collapse;
    /* border-top removed to allow separate column headers */
}

/* Apply top border to the first row's cells instead */
.biz-table tr:first-child td {
    border-top: 2px solid #3b78c9;
}

.biz-table td {
    border-bottom: 1px solid #e5e5e5;
    height: 44px;
    padding: 0 10px;
    background: #fff;
    vertical-align: middle;
}

/* Vertical Dividers: Apply border-right to even columns (2, 4) or odd pairs? 
   Columns: Num, Name, Num, Name, Num, Name 
   Indices: 1    2     3    4     5    6
   Divider needed after column 2 and 4.
*/


.biz-table td.spacer {
    border: none !important;
    background: transparent !important;
    padding: 0;
    /* optional: ensure no border-bottom if row lines should break too. 
       If row lines should continue across gap, remove border:none.
       User said "still connected", implying they want gap in lines too.
    */
    border-bottom: none !important;
    border-top: none !important;
    /* Ensure top border is also removed for spacer */
}

/* Gap simulation: Add padding-right to Name column and padding-left to next Num column? 
   Table borders are strict. To create "70px gap" with a line in middle is tricky with simple table.
   Actually Figma has a line divider.
   We can just set the column width logic. 
   But user asked for "Table". Simplest is just borders.
   We will treat the border-right as the divider. 
   To mimic gap, we might need empty spacer columns, but that complicates PHP.
   We will rely on cell padding for spacing.
*/

/* Number Column Styling */
.biz-table td.num {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #444;
    border-right: solid 1px #D1D1D1;
}

/* Name Column Styling */
.biz-table td.name {
    font-size: 18px;
    font-weight: 400;
    color: #000;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Responsive Table */
@media (max-width: 1024px) {
    .biz-table-wrap {
        overflow-x: auto;
    }

    .biz-table {
        min-width: 900px;
        /* Force scroll on small screens */
    }

    /* Hide empty cells on mobile? No, keeping structure is safer for table */
}

/* Case Parts Manufacturing Process */
.case-wrap {
    max-width: 1500px;
    margin: 0 auto;
    padding: 60px 20px 100px;
    font-family: 'Pretendard', sans-serif;
}

.case-header {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    padding-left: 10px;
}

.case-title {
    font-size: 36px;
    font-weight: 800;
    color: #000;
    position: relative;
    padding-left: 25px;
    line-height: 1.2;
}

.case-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 24px;
    background: #1f448e;
    border-radius: 3px;
}

.case-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 60px;
}

/* Span classes */
.case-process-grid .process-item.span-2 {
    grid-column: span 2;
}

/* Double item inner layout */
.case-process-grid .double-item .double-item-inner {
    display: flex;
    gap: 20px;
    height: 100%;
}

.case-process-grid .double-item .sub-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Showcase item (Case for Gear Pump) */
.case-process-grid .showcase-item {
    justify-content: center;
    align-items: center;
    padding: 24px 40px;
}

.case-process-grid .showcase-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.case-process-grid .showcase-item .process-img.lg-img {
    height: 220px;
    background: #399166;
    /* Image background matching */
    border-radius: 8px;
    width: 100%;
}

.case-process-grid .showcase-item .process-img.lg-img img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.case-process-grid .showcase-title {
    font-size: 28px;
    font-weight: 800;
    margin-top: 25px;
    color: #000;
}

/* Arrows for Case Process Grid */
.case-process-grid .process-item::after {
    display: block;
    content: '\2192';
    position: absolute;
    top: 50%;
    right: -42px;
    transform: translateY(-50%);
    font-size: 24px;
    color: #333;
    font-weight: 300;
}

/* Specific no-arrow overrides */
.case-process-grid .process-item.no-arrow::after {
    display: none !important;
}

/* Responsive Overrides */
@media (max-width: 1400px) {
    .case-process-grid {
        gap: 30px 40px;
    }

    .case-process-grid .process-item::after {
        right: -28px;
    }
}

@media (max-width: 1200px) {
    .case-process-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 35px;
    }

    .case-process-grid .process-item::after {
        display: none !important;
    }

    .case-process-grid .double-item .double-item-inner {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .case-process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 30px;
    }

    .case-process-grid .process-item.span-2 {
        grid-column: span 2;
    }

    .case-title {
        font-size: 30px;
    }

    .case-process-grid .double-item .double-item-inner {
        flex-direction: row;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .case-process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .case-process-grid .process-item.span-2 {
        grid-column: span 1;
    }

    .case-process-grid .double-item .double-item-inner {
        flex-direction: column;
        gap: 30px;
    }

    .case-title {
        font-size: 26px;
    }

    .case-process-grid .showcase-item {
        padding: 20px 15px;
    }

    .case-process-grid .showcase-item .process-img.lg-img {
        height: 180px;
    }

    .case-process-grid .showcase-title {
        font-size: 22px;
    }
}

/* Assembly/Painting Manufacturing Process */
.assembly-wrap {
    max-width: 1500px;
    margin: 0 auto;
    padding: 60px 20px 100px;
    font-family: 'Pretendard', sans-serif;
}

.assembly-header {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    padding-left: 10px;
}

.assembly-title {
    font-size: 36px;
    font-weight: 800;
    color: #000;
    position: relative;
    padding-left: 25px;
    line-height: 1.2;
}

.assembly-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 24px;
    background: #1f448e;
    border-radius: 3px;
}

.assembly-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 60px;
}

/* Inherit process-item styling from earlier definitions (sub3_1.php styles) 
   We only need to replicate the class for assembly-process-grid grid rules if needed, 
   but gap and columns are defined above. The arrows and responsive logic are tied to 
   .process-item, so we just need to redeclare the media queries to ensure 
   the grid behaves correctly on small screens. */

@media (max-width: 1400px) {
    .assembly-process-grid {
        gap: 30px 40px;
    }
}

@media (max-width: 1200px) {
    .assembly-process-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 35px;
    }
}

@media (max-width: 1024px) {
    .assembly-process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 30px;
    }

    .assembly-title {
        font-size: 30px;
    }
}

@media (max-width: 600px) {
    .assembly-process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .assembly-title {
        font-size: 26px;
    }

    .assembly-header {
        margin-bottom: 30px;
    }
}