.partner-intro-text {
    width: 100%;
    text-align: center;
    margin: 40px 0 60px 0;
}

.partner-intro-text p {
    font-size: 1.15rem;
    color: #475569;
    font-weight: 500;
    word-break: keep-all;
}

.achieve-grid {
    display: grid !important;
    row-gap: 50px;
    column-gap: 40px;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.achieve-card {

    border-radius: 12px;
    overflow: hidden;
}


.achieve-logo-box {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.achieve-logo-box img {
    max-width: 80%;
    max-height: 60%;
    object-fit: contain;
}

.achieve-logo-box.eqc-bg {
    background-color: #1a375f;
}



.history-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 40px;
    border-radius: 5px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 15px;
}

.filter-btn.active,
.filter-btn:hover {
    background: #1e3a8a;
    /* 딥블루 포인트 */
    color: #fff;
    border-color: #1e3a8a;
}



.history-list {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* 박스 사이 간격 */
}

/* 프로젝트 항목:모든 박스의 높이와 정렬을 일치시킴 */
.history-item {
    display: flex;
    align-items: center;
    background: #fff;
    /* [핵심] 박스 높이 고정 */
    min-height: 110px;
    /* 모든 박스의 최소 높이를 통일 (필요시 조절) */
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s ease;
}

.history-item:hover {
    transform: translateY(-3px);
}

.history-year {
    font-size: 1rem;
    font-weight: 700;
    color: #3b82f6;
    width: 110px;
    /* 연도 영역 너비 고정 */
    flex-shrink: 0;
    background: #eff6ff;
    padding: 6px 10px;
    border-radius: 30px;
    text-align: center;
    margin-right: 25px;
}

.history-content {
    flex-grow: 1;
    min-width: 0;
    /* 텍스트 넘침 방지 */
    padding-right: 20px;

    /* [추가] 내용이 많아도 중앙 정렬 유지 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.history-content strong {
    display: block;
    font-size: 1.05rem;
    color: #1e293b;
    margin-bottom: 5px;
    line-height: 1.4;
    word-break: keep-all;
    /* 단어 단위 줄바꿈으로 깔끔하게 */
}

.history-content span {
    color: #64748b;
    font-size: 0.9rem;
    display: block;
}

/* 태그 영역:우측에 고정 배치하여 수직 라인을 맞춤 */
.history-tag {
    flex-shrink: 0;
    width: 220px;
    /* 태그 박스 너비 고정 */
    height: 40px;
    /* 태그 높이 고정 */
    display: flex;
    /* 태그 내부 글자 중앙 정렬 */
    align-items: center;
    justify-content: center;

    font-size: 0.85rem;
    background: #f8fafc;
    color: #475569;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    white-space: normal;
    /* 태그 내용이 길면 줄바꿈 허용 */
    line-height: 1.2;
}


/* ==========================================
   MOBILE RESPONSIVE (반응형 대응)
   ========================================== */
/* 모바일에서는 고정 높이를 해제해야 깨지지 않습니다 */
@media (max-width: 768px) {
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        /* 모바일은 내용에 맞게 조절 */
        padding: 20px;
    }

    .history-year {
        margin-bottom: 15px;
        margin-right: 0;
    }

    .history-tag {
        width: 100%;
        /* 모바일은 가로 꽉 차게 */
        margin-top: 15px;
    }
}

@media (max-width: 768px) {

    /* 1. 파트너사 그리드: 2열로 조정하고 가로폭 90% 맞춤 */
    .achieve-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        width: 90% !important;
        margin: 0 auto !important;
        gap: 15px !important;
    }

    .achieve-logo-box {
        height: 80px !important;
        /* 모바일에서 로고 박스 높이 축소 */
        padding: 10px !important;
    }

    .partner-intro-text p {
        font-size: 15px;
        margin: 0 40px;
    }

    /* 2. 프로젝트 이력 필터 버튼: 가로 스크롤 허용 및 크기 조정 */
    .history-filter {
        display: flex !important;
        flex-wrap: wrap !important;       /* 버튼이 넘치면 다음 줄로 */
        justify-content: center !important; /* 버튼들을 가운대로 모음 */
        padding: 0 5% !important;
        gap: 8px !important;               /* 버튼 사이 간격 축소 */
        overflow-x: visible !important;    /* 옆으로 밀리는 현상 방지 */
        margin-bottom: 30px !important;
    }

    /* 2. 필터 버튼: 모바일에서 너무 커지지 않게 조정 */
    .filter-btn {
        padding: 8px 15px !important;      /* 좌우 여백 살짝 줄임 */
        font-size: 13px !important;
        flex: none !important;             /* 너비를 고정하지 않음 */
        border-radius: 6px !important;
    }

    /* 3. 프로젝트 이력 리스트 디자인 (핵심) */
    .history-list {
        width: 90% !important;
        margin: 0 auto !important;
    }

    .history-item {
        flex-direction: column !important;
        /* 가로 배열을 세로로 */
        align-items: flex-start !important;
        padding: 20px !important;
        gap: 12px !important;
    }

    .history-year {
        width: auto !important;
        font-weight: 700;
        color: #1a375f;
        font-size: 14px;
        background: #f1f5f9;
        padding: 2px 8px;
        border-radius: 4px;
    }

    .history-content {
        flex: none !important;
        width: 100%;
    }

    .history-content strong {
        font-size: 16px !important;
        display: block;
        margin-bottom: 5px;
        line-height: 1.4;
    }

    .history-tag {
        align-self: flex-start !important;
        /* 태그를 왼쪽 하단으로 */
        font-size: 14px !important;
        padding: 4px 10px !important;
    }
}